..
This commit is contained in:
parent
9689bfcc18
commit
62a385e4c9
33 changed files with 2649 additions and 809 deletions
132
tests/fixtures/angled-room-f8.json
vendored
Normal file
132
tests/fixtures/angled-room-f8.json
vendored
Normal file
|
|
@ -0,0 +1,132 @@
|
|||
{
|
||||
"project": {
|
||||
"version": 1,
|
||||
"name": "My flooring project",
|
||||
"rooms": [
|
||||
{
|
||||
"id": "room-2",
|
||||
"name": "Room 2",
|
||||
"walls": [
|
||||
{
|
||||
"id": "room-2-w1",
|
||||
"length": 4800,
|
||||
"turn": 10,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w2",
|
||||
"length": 3600,
|
||||
"turn": 90,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w3",
|
||||
"length": 1650,
|
||||
"turn": 90,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w4",
|
||||
"length": 450,
|
||||
"turn": -90,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w5",
|
||||
"length": 1500,
|
||||
"turn": -90,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w6",
|
||||
"length": 450,
|
||||
"turn": 90,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w8",
|
||||
"length": 3600,
|
||||
"turn": 90,
|
||||
"doors": [
|
||||
{
|
||||
"id": "room-2-door-1",
|
||||
"offset": 500,
|
||||
"width": 826
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "room-2-w7",
|
||||
"length": 1650,
|
||||
"turn": 90,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w-3",
|
||||
"length": 1000,
|
||||
"turn": -72.12516087806887,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w-1",
|
||||
"length": 1000,
|
||||
"turn": 93.2,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w-2",
|
||||
"length": 1000,
|
||||
"turn": -91.7,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w-4",
|
||||
"length": 6097,
|
||||
"turn": 59.23323117818302,
|
||||
"doors": [
|
||||
{
|
||||
"id": "room-2-door-2",
|
||||
"offset": 500,
|
||||
"width": 826
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "room-2-w-5",
|
||||
"length": 1687,
|
||||
"turn": 90,
|
||||
"doors": []
|
||||
}
|
||||
],
|
||||
"direction": 90
|
||||
}
|
||||
],
|
||||
"flooring": {
|
||||
"length": 1200,
|
||||
"width": 190,
|
||||
"gap": 10,
|
||||
"pattern": "random",
|
||||
"minOffset": 0.1,
|
||||
"maxOffset": 1000,
|
||||
"minLength": 0.1,
|
||||
"minWidth": 0.1,
|
||||
"kerf": 3
|
||||
},
|
||||
"skirting": {
|
||||
"stockLengths": [
|
||||
2400
|
||||
],
|
||||
"thickness": 27,
|
||||
"minLength": 200,
|
||||
"kerf": 3
|
||||
},
|
||||
"tolerance": 50,
|
||||
"completedBoards": []
|
||||
},
|
||||
"view": {
|
||||
"roomId": "room-2",
|
||||
"selectedPiece": "F8",
|
||||
"search": "F8",
|
||||
"collapsedSections": []
|
||||
}
|
||||
}
|
||||
115
tests/fixtures/angled-room.json
vendored
Normal file
115
tests/fixtures/angled-room.json
vendored
Normal file
|
|
@ -0,0 +1,115 @@
|
|||
{
|
||||
"project": {
|
||||
"version": 1,
|
||||
"name": "My flooring project",
|
||||
"rooms": [
|
||||
{
|
||||
"id": "room-2",
|
||||
"name": "Room 2",
|
||||
"walls": [
|
||||
{
|
||||
"id": "room-2-w1",
|
||||
"length": 4800,
|
||||
"turn": 10,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w2",
|
||||
"length": 3600,
|
||||
"turn": 90,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w3",
|
||||
"length": 1650,
|
||||
"turn": 90,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w4",
|
||||
"length": 450,
|
||||
"turn": -90,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w5",
|
||||
"length": 1500,
|
||||
"turn": -90,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w6",
|
||||
"length": 450,
|
||||
"turn": 90,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w7",
|
||||
"length": 1650,
|
||||
"turn": 90,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w8",
|
||||
"length": 3600,
|
||||
"turn": 90,
|
||||
"doors": [
|
||||
{
|
||||
"id": "room-2-door-1",
|
||||
"offset": 500,
|
||||
"width": 826
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "room-2-w-1",
|
||||
"length": 1000,
|
||||
"turn": 93.2,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w-2",
|
||||
"length": 1000,
|
||||
"turn": -91.7,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w-3",
|
||||
"length": 1000,
|
||||
"turn": -72.12516087806887,
|
||||
"doors": []
|
||||
},
|
||||
{
|
||||
"id": "room-2-w-4",
|
||||
"length": 6097,
|
||||
"turn": 90,
|
||||
"doors": []
|
||||
}
|
||||
],
|
||||
"direction": 90
|
||||
}
|
||||
],
|
||||
"flooring": {
|
||||
"length": 1200,
|
||||
"width": 190,
|
||||
"gap": 10,
|
||||
"pattern": "random",
|
||||
"minOffset": 0.1,
|
||||
"maxOffset": 1000,
|
||||
"minLength": 0.1,
|
||||
"minWidth": 0.1,
|
||||
"kerf": 3
|
||||
},
|
||||
"skirting": {
|
||||
"stockLengths": [2400],
|
||||
"thickness": 27,
|
||||
"minLength": 200,
|
||||
"kerf": 3
|
||||
},
|
||||
"tolerance": 50
|
||||
},
|
||||
"view": {
|
||||
"roomId": "room-2",
|
||||
"selectedPiece": null
|
||||
}
|
||||
}
|
||||
Loading…
Reference in a new issue