kitchen-simulator 1.1.1-test.71 → 1.1.1-test.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/@history.js +5 -2
- package/es/AppContext.js +6 -3
- package/es/KitchenConfigurator.js +86 -87
- package/es/KitchenConfiguratorApp.js +128 -135
- package/es/actions/area-actions.js +8 -5
- package/es/actions/export.js +24 -12
- package/es/actions/groups-actions.js +41 -27
- package/es/actions/holes-actions.js +51 -34
- package/es/actions/items-actions.js +141 -94
- package/es/actions/lines-actions.js +32 -21
- package/es/actions/project-actions.js +141 -94
- package/es/actions/scene-actions.js +17 -11
- package/es/actions/vertices-actions.js +11 -7
- package/es/actions/viewer2d-actions.js +32 -21
- package/es/actions/viewer3d-actions.js +14 -9
- package/es/catalog/areas/area/planner-element.js +5 -2
- package/es/catalog/catalog.js +17 -15
- package/es/catalog/factories/area-factory-3d.js +26 -22
- package/es/catalog/factories/area-factory.js +15 -13
- package/es/catalog/factories/export.js +10 -6
- package/es/catalog/factories/wall-factory-3d.js +36 -31
- package/es/catalog/factories/wall-factory.js +26 -21
- package/es/catalog/holes/door-closet/planner-element.js +19 -15
- package/es/catalog/holes/door-double/planner-element.js +19 -15
- package/es/catalog/holes/door-exterior/planner-element.js +20 -16
- package/es/catalog/holes/door-interior/planner-element.js +20 -16
- package/es/catalog/holes/door-panic/planner-element.js +11 -7
- package/es/catalog/holes/door-panic-double/planner-element.js +19 -15
- package/es/catalog/holes/door-sliding/planner-element.js +21 -17
- package/es/catalog/holes/doorway-framed/planner-element.js +15 -11
- package/es/catalog/holes/doorway-frameless/planner-element.js +11 -7
- package/es/catalog/holes/export.js +29 -13
- package/es/catalog/holes/window-clear/planner-element.js +14 -10
- package/es/catalog/holes/window-cross/planner-element.js +14 -10
- package/es/catalog/holes/window-double-hung/planner-element.js +14 -10
- package/es/catalog/holes/window-vertical/planner-element.js +14 -10
- package/es/catalog/lines/wall/planner-element.js +5 -2
- package/es/catalog/molding/molding-dcm/planner-element.js +9 -5
- package/es/catalog/molding/molding-fbm/planner-element.js +9 -5
- package/es/catalog/molding/molding-lrm/planner-element.js +9 -5
- package/es/catalog/properties/export.js +31 -20
- package/es/catalog/properties/property-checkbox.js +29 -28
- package/es/catalog/properties/property-color.js +19 -16
- package/es/catalog/properties/property-enum.js +27 -24
- package/es/catalog/properties/property-hidden.js +12 -9
- package/es/catalog/properties/property-lenght-measure.js +41 -38
- package/es/catalog/properties/property-length-measure.js +39 -36
- package/es/catalog/properties/property-length-measure_hole.js +41 -38
- package/es/catalog/properties/property-number.js +20 -17
- package/es/catalog/properties/property-read-only.js +19 -16
- package/es/catalog/properties/property-string.js +19 -16
- package/es/catalog/properties/property-toggle.js +19 -16
- package/es/catalog/properties/shared-property-style.js +3 -1
- package/es/catalog/utils/FuseUtils.js +13 -12
- package/es/catalog/utils/exporter.js +11 -10
- package/es/catalog/utils/geom-utils.js +24 -13
- package/es/catalog/utils/item-loader.js +92 -86
- package/es/catalog/utils/load-obj.js +24 -20
- package/es/catalog/utils/mtl-loader.js +4 -3
- package/es/catalog/utils/obj-loader.js +4 -3
- package/es/class/FuseUtils.js +13 -12
- package/es/class/area.js +24 -24
- package/es/class/export.js +36 -23
- package/es/class/group.js +55 -53
- package/es/class/guide.js +17 -15
- package/es/class/hole.js +85 -83
- package/es/class/item.js +155 -155
- package/es/class/layer.js +61 -59
- package/es/class/line.js +138 -135
- package/es/class/project.js +94 -93
- package/es/class/vertex.js +31 -29
- package/es/components/content.js +23 -19
- package/es/components/disclaimer/disclaimer.js +13 -10
- package/es/components/export.js +13 -8
- package/es/components/style/button.js +25 -25
- package/es/components/style/cancel-button.js +10 -7
- package/es/components/style/content-container.js +12 -11
- package/es/components/style/content-title.js +15 -13
- package/es/components/style/delete-button.js +12 -8
- package/es/components/style/export.js +46 -30
- package/es/components/style/form-block.js +11 -10
- package/es/components/style/form-color-input.js +10 -7
- package/es/components/style/form-label.js +11 -10
- package/es/components/style/form-number-input.js +43 -45
- package/es/components/style/form-number-input_2.js +39 -41
- package/es/components/style/form-select.js +20 -19
- package/es/components/style/form-slider.js +13 -10
- package/es/components/style/form-submit-button.js +12 -8
- package/es/components/style/form-text-input.js +28 -30
- package/es/components/viewer2d/area.js +20 -17
- package/es/components/viewer2d/export.js +46 -30
- package/es/components/viewer2d/grids/grid-horizontal-streak.js +13 -10
- package/es/components/viewer2d/grids/grid-streak.js +13 -10
- package/es/components/viewer2d/grids/grid-vertical-streak.js +13 -10
- package/es/components/viewer2d/grids/grids.js +14 -10
- package/es/components/viewer2d/group.js +19 -15
- package/es/components/viewer2d/item.js +65 -61
- package/es/components/viewer2d/layer.js +26 -23
- package/es/components/viewer2d/line.js +106 -101
- package/es/components/viewer2d/ruler.js +25 -22
- package/es/components/viewer2d/rulerDist.js +24 -21
- package/es/components/viewer2d/rulerX.js +44 -46
- package/es/components/viewer2d/rulerY.js +42 -44
- package/es/components/viewer2d/scene.js +34 -35
- package/es/components/viewer2d/snap.js +17 -13
- package/es/components/viewer2d/state.js +22 -18
- package/es/components/viewer2d/utils.js +33 -24
- package/es/components/viewer2d/vertex.js +12 -8
- package/es/components/viewer2d/viewer2d.js +159 -156
- package/es/components/viewer3d/camera-controls-module/camera-controls.module.js +19 -21
- package/es/components/viewer3d/dcm.js +3 -1
- package/es/components/viewer3d/fbm.js +3 -1
- package/es/components/viewer3d/front3D.js +16 -12
- package/es/components/viewer3d/grid-creator.js +12 -8
- package/es/components/viewer3d/grids/grid-horizontal-streak.js +9 -6
- package/es/components/viewer3d/grids/grid-streak.js +8 -5
- package/es/components/viewer3d/grids/grid-vertical-streak.js +9 -6
- package/es/components/viewer3d/libs/first-person-controls.js +5 -2
- package/es/components/viewer3d/libs/helvetiker_regular.typeface.js +3 -1
- package/es/components/viewer3d/libs/mtl-loader.js +3 -1
- package/es/components/viewer3d/libs/obj-loader.js +3 -1
- package/es/components/viewer3d/libs/orbit-controls.js +4 -2
- package/es/components/viewer3d/libs/pointer-lock-controls.js +4 -2
- package/es/components/viewer3d/lrm.js +3 -1
- package/es/components/viewer3d/model.js +3 -1
- package/es/components/viewer3d/pointer-lock-navigation.js +6 -3
- package/es/components/viewer3d/ruler-utils/itemRect.js +21 -18
- package/es/components/viewer3d/ruler-utils/layer3D.js +62 -59
- package/es/components/viewer3d/ruler-utils/ruler3D.js +43 -42
- package/es/components/viewer3d/ruler-utils/scene3D.js +13 -9
- package/es/components/viewer3d/ruler-utils/state3D.js +7 -4
- package/es/components/viewer3d/scene-creator.js +223 -197
- package/es/components/viewer3d/three-memory-cleaner.js +7 -3
- package/es/components/viewer3d/viewer3d-first-person.js +42 -42
- package/es/components/viewer3d/viewer3d.js +198 -200
- package/es/constants.js +354 -349
- package/es/index.js +11 -7
- package/es/models.js +191 -193
- package/es/plugins/SVGLoader.js +49 -48
- package/es/plugins/autosave.js +5 -3
- package/es/plugins/console-debugger.js +7 -6
- package/es/plugins/export.js +13 -8
- package/es/plugins/keyboard.js +31 -29
- package/es/reducers/areas-reducer.js +9 -7
- package/es/reducers/export.js +37 -24
- package/es/reducers/groups-reducer.js +33 -31
- package/es/reducers/holes-reducer.js +45 -43
- package/es/reducers/items-reducer.js +108 -106
- package/es/reducers/lines-reducer.js +30 -28
- package/es/reducers/project-reducer.js +107 -105
- package/es/reducers/reducer.js +19 -16
- package/es/reducers/scene-reducer.js +17 -15
- package/es/reducers/user-reducer.js +7 -5
- package/es/reducers/vertices-reducer.js +13 -11
- package/es/reducers/viewer2d-reducer.js +20 -18
- package/es/reducers/viewer3d-reducer.js +18 -16
- package/es/shared-style.js +12 -10
- package/es/styles/export.js +6 -3
- package/es/translator/en.js +3 -1
- package/es/translator/it.js +3 -1
- package/es/translator/ru.js +3 -1
- package/es/translator/translator.js +15 -13
- package/es/utils/browser.js +5 -2
- package/es/utils/convert-units-lite.js +3 -1
- package/es/utils/email-validator.js +3 -1
- package/es/utils/export.js +29 -15
- package/es/utils/geometry.js +280 -190
- package/es/utils/get-edges-of-subgraphs.js +5 -2
- package/es/utils/graph-cycles.js +7 -8
- package/es/utils/graph-inner-cycles.js +14 -10
- package/es/utils/graph.js +13 -9
- package/es/utils/helper.js +58 -41
- package/es/utils/history.js +11 -8
- package/es/utils/id-broker.js +11 -8
- package/es/utils/logger.js +3 -1
- package/es/utils/math.js +8 -5
- package/es/utils/molding.js +146 -130
- package/es/utils/name-generator.js +9 -7
- package/es/utils/objects-utils.js +14 -7
- package/es/utils/phone-validator.js +3 -1
- package/es/utils/process-black-list.js +6 -5
- package/es/utils/react-if.js +9 -7
- package/es/utils/snap-scene.js +30 -27
- package/es/utils/snap.js +57 -53
- package/es/utils/summarizeCart.js +3 -1
- package/es/utils/threeCSG.es6.js +17 -13
- package/es/version.js +3 -1
- package/package.json +1 -1
|
@@ -1,81 +1,128 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
exports.__esModule = true;
|
|
2
|
+
exports.addCircularGuide = addCircularGuide;
|
|
3
|
+
exports.addHorizontalGuide = addHorizontalGuide;
|
|
4
|
+
exports.addVerticalGuide = addVerticalGuide;
|
|
5
|
+
exports.changeCatalogPage = changeCatalogPage;
|
|
6
|
+
exports.copyProperties = copyProperties;
|
|
7
|
+
exports.goBackToCatalogPage = goBackToCatalogPage;
|
|
8
|
+
exports.initCatalog = initCatalog;
|
|
9
|
+
exports.loadProject = loadProject;
|
|
10
|
+
exports.newProject = newProject;
|
|
11
|
+
exports.openCatalog = openCatalog;
|
|
12
|
+
exports.openProjectConfigurator = openProjectConfigurator;
|
|
13
|
+
exports.pasteProperties = pasteProperties;
|
|
14
|
+
exports.pushLastSelectedCatalogElementToHistory = pushLastSelectedCatalogElementToHistory;
|
|
15
|
+
exports.recreate = recreate;
|
|
16
|
+
exports.redo = redo;
|
|
17
|
+
exports.remove = remove;
|
|
18
|
+
exports.removeCircularGuide = removeCircularGuide;
|
|
19
|
+
exports.removeDrawingSupport = removeDrawingSupport;
|
|
20
|
+
exports.removeHorizontalGuide = removeHorizontalGuide;
|
|
21
|
+
exports.removeVerticalGuide = removeVerticalGuide;
|
|
22
|
+
exports.rename = rename;
|
|
23
|
+
exports.rollback = rollback;
|
|
24
|
+
exports.saveProject = saveProject;
|
|
25
|
+
exports.selectAll = selectAll;
|
|
26
|
+
exports.selectToolEdit = selectToolEdit;
|
|
27
|
+
exports.setAlterateState = setAlterateState;
|
|
28
|
+
exports.setHolesAttributes = setHolesAttributes;
|
|
29
|
+
exports.setIsCabinetDrawing = setIsCabinetDrawing;
|
|
30
|
+
exports.setIsHelp = setIsHelp;
|
|
31
|
+
exports.setItemsAttributes = setItemsAttributes;
|
|
32
|
+
exports.setLinesAttributes = setLinesAttributes;
|
|
33
|
+
exports.setMode = setMode;
|
|
34
|
+
exports.setProjectID = setProjectID;
|
|
35
|
+
exports.setProjectProperties = setProjectProperties;
|
|
36
|
+
exports.setProperties = setProperties;
|
|
37
|
+
exports.setStateProperties = setStateProperties;
|
|
38
|
+
exports.shift2doff = shift2doff;
|
|
39
|
+
exports.shift2don = shift2don;
|
|
40
|
+
exports.throwError = throwError;
|
|
41
|
+
exports.throwWarning = throwWarning;
|
|
42
|
+
exports.toggleSnap = toggleSnap;
|
|
43
|
+
exports.uncreate = uncreate;
|
|
44
|
+
exports.undo = undo;
|
|
45
|
+
exports.unselectAll = unselectAll;
|
|
46
|
+
exports.updateMouseCoord = updateMouseCoord;
|
|
47
|
+
exports.updateZoomScale = updateZoomScale;
|
|
48
|
+
var _constants = require("../constants");
|
|
49
|
+
function setIsHelp(isHelp) {
|
|
50
|
+
return {
|
|
51
|
+
type: _constants.SET_IS_HELP,
|
|
5
52
|
isHelp: isHelp
|
|
6
53
|
};
|
|
7
54
|
}
|
|
8
|
-
|
|
55
|
+
function setIsCabinetDrawing(isCabinetDrawing) {
|
|
9
56
|
return {
|
|
10
|
-
type: SET_IS_CABINET_DRAWING,
|
|
57
|
+
type: _constants.SET_IS_CABINET_DRAWING,
|
|
11
58
|
isCabinetDrawing: isCabinetDrawing
|
|
12
59
|
};
|
|
13
60
|
}
|
|
14
|
-
|
|
61
|
+
function setStateProperties(properties) {
|
|
15
62
|
return {
|
|
16
|
-
type: SET_STATE_PROPERTIES,
|
|
63
|
+
type: _constants.SET_STATE_PROPERTIES,
|
|
17
64
|
properties: properties
|
|
18
65
|
};
|
|
19
66
|
}
|
|
20
|
-
|
|
67
|
+
function loadProject(sceneJSON, categoryData) {
|
|
21
68
|
return {
|
|
22
|
-
type: LOAD_PROJECT,
|
|
69
|
+
type: _constants.LOAD_PROJECT,
|
|
23
70
|
sceneJSON: sceneJSON,
|
|
24
71
|
categoryData: categoryData
|
|
25
72
|
};
|
|
26
73
|
}
|
|
27
|
-
|
|
74
|
+
function newProject() {
|
|
28
75
|
return {
|
|
29
|
-
type: NEW_PROJECT
|
|
76
|
+
type: _constants.NEW_PROJECT
|
|
30
77
|
};
|
|
31
78
|
}
|
|
32
|
-
|
|
79
|
+
function saveProject() {
|
|
33
80
|
return {
|
|
34
|
-
type: SAVE_PROJECT
|
|
81
|
+
type: _constants.SAVE_PROJECT
|
|
35
82
|
};
|
|
36
83
|
}
|
|
37
|
-
|
|
84
|
+
function openCatalog() {
|
|
38
85
|
return {
|
|
39
|
-
type: OPEN_CATALOG
|
|
86
|
+
type: _constants.OPEN_CATALOG
|
|
40
87
|
};
|
|
41
88
|
}
|
|
42
|
-
|
|
89
|
+
function changeCatalogPage(newPage, oldPage) {
|
|
43
90
|
return {
|
|
44
|
-
type: CHANGE_CATALOG_PAGE,
|
|
91
|
+
type: _constants.CHANGE_CATALOG_PAGE,
|
|
45
92
|
newPage: newPage,
|
|
46
93
|
oldPage: oldPage
|
|
47
94
|
};
|
|
48
95
|
}
|
|
49
|
-
|
|
96
|
+
function goBackToCatalogPage(newPage) {
|
|
50
97
|
return {
|
|
51
|
-
type: GO_BACK_TO_CATALOG_PAGE,
|
|
98
|
+
type: _constants.GO_BACK_TO_CATALOG_PAGE,
|
|
52
99
|
newPage: newPage
|
|
53
100
|
};
|
|
54
101
|
}
|
|
55
|
-
|
|
102
|
+
function selectToolEdit() {
|
|
56
103
|
return {
|
|
57
|
-
type: SELECT_TOOL_EDIT
|
|
104
|
+
type: _constants.SELECT_TOOL_EDIT
|
|
58
105
|
};
|
|
59
106
|
}
|
|
60
|
-
|
|
107
|
+
function unselectAll() {
|
|
61
108
|
return {
|
|
62
|
-
type: UNSELECT_ALL
|
|
109
|
+
type: _constants.UNSELECT_ALL
|
|
63
110
|
};
|
|
64
111
|
}
|
|
65
|
-
|
|
112
|
+
function setProperties(properties) {
|
|
66
113
|
return {
|
|
67
|
-
type: SET_PROPERTIES,
|
|
114
|
+
type: _constants.SET_PROPERTIES,
|
|
68
115
|
properties: properties
|
|
69
116
|
};
|
|
70
117
|
}
|
|
71
|
-
|
|
118
|
+
function setItemsAttributes(itemsAttributes) {
|
|
72
119
|
itemsAttributes = itemsAttributes.set('rotation', parseFloat(itemsAttributes.get('rotation')));
|
|
73
120
|
return {
|
|
74
|
-
type: SET_ITEMS_ATTRIBUTES,
|
|
121
|
+
type: _constants.SET_ITEMS_ATTRIBUTES,
|
|
75
122
|
itemsAttributes: itemsAttributes
|
|
76
123
|
};
|
|
77
124
|
}
|
|
78
|
-
|
|
125
|
+
function setLinesAttributes(linesAttributes) {
|
|
79
126
|
var isDirect = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
80
127
|
var directData = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : null;
|
|
81
128
|
linesAttributes = linesAttributes.withMutations(function (attributes) {
|
|
@@ -85,197 +132,197 @@ export function setLinesAttributes(linesAttributes) {
|
|
|
85
132
|
attributes.setIn(['vertexTwo', 'y'], parseFloat(linesAttributes.getIn(['vertexTwo', 'y'])));
|
|
86
133
|
});
|
|
87
134
|
return {
|
|
88
|
-
type: SET_LINES_ATTRIBUTES,
|
|
135
|
+
type: _constants.SET_LINES_ATTRIBUTES,
|
|
89
136
|
linesAttributes: linesAttributes,
|
|
90
137
|
isDirect: isDirect,
|
|
91
138
|
directData: directData
|
|
92
139
|
};
|
|
93
140
|
}
|
|
94
|
-
|
|
141
|
+
function setHolesAttributes(holesAttributes) {
|
|
95
142
|
holesAttributes = holesAttributes.set('offset', parseFloat(holesAttributes.get('offset')));
|
|
96
143
|
return {
|
|
97
|
-
type: SET_HOLES_ATTRIBUTES,
|
|
144
|
+
type: _constants.SET_HOLES_ATTRIBUTES,
|
|
98
145
|
holesAttributes: holesAttributes
|
|
99
146
|
};
|
|
100
147
|
}
|
|
101
|
-
|
|
148
|
+
function remove() {
|
|
102
149
|
return {
|
|
103
|
-
type: REMOVE
|
|
150
|
+
type: _constants.REMOVE
|
|
104
151
|
};
|
|
105
152
|
}
|
|
106
|
-
|
|
153
|
+
function undo() {
|
|
107
154
|
return {
|
|
108
|
-
type: UNDO
|
|
155
|
+
type: _constants.UNDO
|
|
109
156
|
};
|
|
110
157
|
}
|
|
111
|
-
|
|
158
|
+
function redo() {
|
|
112
159
|
return {
|
|
113
|
-
type: REDO
|
|
160
|
+
type: _constants.REDO
|
|
114
161
|
};
|
|
115
162
|
}
|
|
116
|
-
|
|
163
|
+
function uncreate() {
|
|
117
164
|
return {
|
|
118
|
-
type: UNCREATE
|
|
165
|
+
type: _constants.UNCREATE
|
|
119
166
|
};
|
|
120
167
|
}
|
|
121
|
-
|
|
168
|
+
function rename(name) {
|
|
122
169
|
return {
|
|
123
|
-
type: PROJECT_RE_NAME,
|
|
170
|
+
type: _constants.PROJECT_RE_NAME,
|
|
124
171
|
name: name
|
|
125
172
|
};
|
|
126
173
|
}
|
|
127
|
-
|
|
174
|
+
function recreate() {
|
|
128
175
|
return {
|
|
129
|
-
type: RECREATE
|
|
176
|
+
type: _constants.RECREATE
|
|
130
177
|
};
|
|
131
178
|
}
|
|
132
|
-
|
|
179
|
+
function shift2doff() {
|
|
133
180
|
return {
|
|
134
|
-
type: SHIFT2DOFF
|
|
181
|
+
type: _constants.SHIFT2DOFF
|
|
135
182
|
};
|
|
136
183
|
}
|
|
137
|
-
|
|
184
|
+
function shift2don() {
|
|
138
185
|
return {
|
|
139
|
-
type: SHIFT2DON
|
|
186
|
+
type: _constants.SHIFT2DON
|
|
140
187
|
};
|
|
141
188
|
}
|
|
142
|
-
|
|
189
|
+
function rollback() {
|
|
143
190
|
return {
|
|
144
|
-
type: ROLLBACK
|
|
191
|
+
type: _constants.ROLLBACK
|
|
145
192
|
};
|
|
146
193
|
}
|
|
147
|
-
|
|
194
|
+
function openProjectConfigurator() {
|
|
148
195
|
return {
|
|
149
|
-
type: OPEN_PROJECT_CONFIGURATOR
|
|
196
|
+
type: _constants.OPEN_PROJECT_CONFIGURATOR
|
|
150
197
|
};
|
|
151
198
|
}
|
|
152
|
-
|
|
199
|
+
function setProjectProperties(properties) {
|
|
153
200
|
return {
|
|
154
|
-
type: SET_PROJECT_PROPERTIES,
|
|
201
|
+
type: _constants.SET_PROJECT_PROPERTIES,
|
|
155
202
|
properties: properties
|
|
156
203
|
};
|
|
157
204
|
}
|
|
158
|
-
|
|
205
|
+
function setProjectID(id) {
|
|
159
206
|
return {
|
|
160
|
-
type: SET_PROJECT_ID,
|
|
207
|
+
type: _constants.SET_PROJECT_ID,
|
|
161
208
|
id: id
|
|
162
209
|
};
|
|
163
210
|
}
|
|
164
|
-
|
|
211
|
+
function initCatalog(catalog) {
|
|
165
212
|
return {
|
|
166
|
-
type: INIT_CATALOG,
|
|
213
|
+
type: _constants.INIT_CATALOG,
|
|
167
214
|
catalog: catalog
|
|
168
215
|
};
|
|
169
216
|
}
|
|
170
|
-
|
|
217
|
+
function updateMouseCoord() {
|
|
171
218
|
var coords = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
|
|
172
219
|
x: x,
|
|
173
220
|
y: y
|
|
174
221
|
};
|
|
175
222
|
return {
|
|
176
|
-
type: UPDATE_MOUSE_COORDS,
|
|
223
|
+
type: _constants.UPDATE_MOUSE_COORDS,
|
|
177
224
|
coords: coords
|
|
178
225
|
};
|
|
179
226
|
}
|
|
180
|
-
|
|
227
|
+
function updateZoomScale(scale) {
|
|
181
228
|
return {
|
|
182
|
-
type: UPDATE_ZOOM_SCALE,
|
|
229
|
+
type: _constants.UPDATE_ZOOM_SCALE,
|
|
183
230
|
scale: scale
|
|
184
231
|
};
|
|
185
232
|
}
|
|
186
|
-
|
|
233
|
+
function toggleSnap(mask) {
|
|
187
234
|
return {
|
|
188
|
-
type: TOGGLE_SNAP,
|
|
235
|
+
type: _constants.TOGGLE_SNAP,
|
|
189
236
|
mask: mask
|
|
190
237
|
};
|
|
191
238
|
}
|
|
192
|
-
|
|
239
|
+
function throwError(error) {
|
|
193
240
|
return {
|
|
194
|
-
type: THROW_ERROR,
|
|
241
|
+
type: _constants.THROW_ERROR,
|
|
195
242
|
error: error
|
|
196
243
|
};
|
|
197
244
|
}
|
|
198
|
-
|
|
245
|
+
function throwWarning(warning) {
|
|
199
246
|
return {
|
|
200
|
-
type: THROW_WARNING,
|
|
247
|
+
type: _constants.THROW_WARNING,
|
|
201
248
|
warning: warning
|
|
202
249
|
};
|
|
203
250
|
}
|
|
204
|
-
|
|
251
|
+
function copyProperties(properties) {
|
|
205
252
|
return {
|
|
206
|
-
type: COPY_PROPERTIES,
|
|
253
|
+
type: _constants.COPY_PROPERTIES,
|
|
207
254
|
properties: properties
|
|
208
255
|
};
|
|
209
256
|
}
|
|
210
|
-
|
|
257
|
+
function pasteProperties() {
|
|
211
258
|
return {
|
|
212
|
-
type: PASTE_PROPERTIES
|
|
259
|
+
type: _constants.PASTE_PROPERTIES
|
|
213
260
|
};
|
|
214
261
|
}
|
|
215
|
-
|
|
262
|
+
function pushLastSelectedCatalogElementToHistory(element) {
|
|
216
263
|
return {
|
|
217
|
-
type: PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY,
|
|
264
|
+
type: _constants.PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY,
|
|
218
265
|
element: element
|
|
219
266
|
};
|
|
220
267
|
}
|
|
221
|
-
|
|
268
|
+
function setAlterateState() {
|
|
222
269
|
return {
|
|
223
|
-
type: ALTERATE_STATE
|
|
270
|
+
type: _constants.ALTERATE_STATE
|
|
224
271
|
};
|
|
225
272
|
}
|
|
226
|
-
|
|
273
|
+
function setMode(mode) {
|
|
227
274
|
return {
|
|
228
|
-
type: SET_MODE,
|
|
275
|
+
type: _constants.SET_MODE,
|
|
229
276
|
mode: mode
|
|
230
277
|
};
|
|
231
278
|
}
|
|
232
|
-
|
|
279
|
+
function addHorizontalGuide(coordinate) {
|
|
233
280
|
return {
|
|
234
|
-
type: ADD_HORIZONTAL_GUIDE,
|
|
281
|
+
type: _constants.ADD_HORIZONTAL_GUIDE,
|
|
235
282
|
coordinate: coordinate
|
|
236
283
|
};
|
|
237
284
|
}
|
|
238
|
-
|
|
285
|
+
function addVerticalGuide(coordinate) {
|
|
239
286
|
return {
|
|
240
|
-
type: ADD_VERTICAL_GUIDE,
|
|
287
|
+
type: _constants.ADD_VERTICAL_GUIDE,
|
|
241
288
|
coordinate: coordinate
|
|
242
289
|
};
|
|
243
290
|
}
|
|
244
|
-
|
|
291
|
+
function addCircularGuide(x, y, radius) {
|
|
245
292
|
return {
|
|
246
|
-
type: ADD_CIRCULAR_GUIDE,
|
|
293
|
+
type: _constants.ADD_CIRCULAR_GUIDE,
|
|
247
294
|
x: x,
|
|
248
295
|
y: y,
|
|
249
296
|
radius: radius
|
|
250
297
|
};
|
|
251
298
|
}
|
|
252
|
-
|
|
299
|
+
function removeHorizontalGuide(guideID) {
|
|
253
300
|
return {
|
|
254
|
-
type: REMOVE_HORIZONTAL_GUIDE,
|
|
301
|
+
type: _constants.REMOVE_HORIZONTAL_GUIDE,
|
|
255
302
|
guideID: guideID
|
|
256
303
|
};
|
|
257
304
|
}
|
|
258
|
-
|
|
305
|
+
function removeVerticalGuide(guideID) {
|
|
259
306
|
return {
|
|
260
|
-
type: REMOVE_VERTICAL_GUIDE,
|
|
307
|
+
type: _constants.REMOVE_VERTICAL_GUIDE,
|
|
261
308
|
guideID: guideID
|
|
262
309
|
};
|
|
263
310
|
}
|
|
264
|
-
|
|
311
|
+
function removeCircularGuide(guideID) {
|
|
265
312
|
return {
|
|
266
|
-
type: REMOVE_CIRCULAR_GUIDE,
|
|
313
|
+
type: _constants.REMOVE_CIRCULAR_GUIDE,
|
|
267
314
|
guideID: guideID
|
|
268
315
|
};
|
|
269
316
|
}
|
|
270
|
-
|
|
317
|
+
function removeDrawingSupport() {
|
|
271
318
|
return {
|
|
272
|
-
type: REMOVE_DRAWING_SUPPORT
|
|
319
|
+
type: _constants.REMOVE_DRAWING_SUPPORT
|
|
273
320
|
};
|
|
274
321
|
}
|
|
275
|
-
|
|
322
|
+
function selectAll() {
|
|
276
323
|
var value = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : null;
|
|
277
324
|
return {
|
|
278
|
-
type: SELECT_ALL,
|
|
325
|
+
type: _constants.SELECT_ALL,
|
|
279
326
|
value: value
|
|
280
327
|
};
|
|
281
328
|
}
|
|
@@ -1,33 +1,39 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
exports.__esModule = true;
|
|
2
|
+
exports.addLayer = addLayer;
|
|
3
|
+
exports.removeLayer = removeLayer;
|
|
4
|
+
exports.selectLayer = selectLayer;
|
|
5
|
+
exports.setLayerProperties = setLayerProperties;
|
|
6
|
+
exports.updateMovingState = updateMovingState;
|
|
7
|
+
var _constants = require("../constants");
|
|
8
|
+
function selectLayer(layerID) {
|
|
3
9
|
return {
|
|
4
|
-
type: SELECT_LAYER,
|
|
10
|
+
type: _constants.SELECT_LAYER,
|
|
5
11
|
layerID: layerID
|
|
6
12
|
};
|
|
7
13
|
}
|
|
8
|
-
|
|
14
|
+
function addLayer(name, altitude) {
|
|
9
15
|
return {
|
|
10
|
-
type: ADD_LAYER,
|
|
16
|
+
type: _constants.ADD_LAYER,
|
|
11
17
|
name: name,
|
|
12
18
|
altitude: altitude
|
|
13
19
|
};
|
|
14
20
|
}
|
|
15
|
-
|
|
21
|
+
function setLayerProperties(layerID, properties) {
|
|
16
22
|
return {
|
|
17
|
-
type: SET_LAYER_PROPERTIES,
|
|
23
|
+
type: _constants.SET_LAYER_PROPERTIES,
|
|
18
24
|
layerID: layerID,
|
|
19
25
|
properties: properties
|
|
20
26
|
};
|
|
21
27
|
}
|
|
22
|
-
|
|
28
|
+
function removeLayer(layerID) {
|
|
23
29
|
return {
|
|
24
|
-
type: REMOVE_LAYER,
|
|
30
|
+
type: _constants.REMOVE_LAYER,
|
|
25
31
|
layerID: layerID
|
|
26
32
|
};
|
|
27
33
|
}
|
|
28
|
-
|
|
34
|
+
function updateMovingState(showflag) {
|
|
29
35
|
return {
|
|
30
|
-
type: UPDATE_MOVING_STATE,
|
|
36
|
+
type: _constants.UPDATE_MOVING_STATE,
|
|
31
37
|
showflag: showflag
|
|
32
38
|
};
|
|
33
39
|
}
|
|
@@ -1,7 +1,11 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
exports.__esModule = true;
|
|
2
|
+
exports.beginDraggingVertex = beginDraggingVertex;
|
|
3
|
+
exports.endDraggingVertex = endDraggingVertex;
|
|
4
|
+
exports.updateDraggingVertex = updateDraggingVertex;
|
|
5
|
+
var _constants = require("../constants");
|
|
6
|
+
function beginDraggingVertex(layerID, vertexID, x, y, snapMask) {
|
|
3
7
|
return {
|
|
4
|
-
type: BEGIN_DRAGGING_VERTEX,
|
|
8
|
+
type: _constants.BEGIN_DRAGGING_VERTEX,
|
|
5
9
|
layerID: layerID,
|
|
6
10
|
vertexID: vertexID,
|
|
7
11
|
x: x,
|
|
@@ -9,17 +13,17 @@ export function beginDraggingVertex(layerID, vertexID, x, y, snapMask) {
|
|
|
9
13
|
snapMask: snapMask
|
|
10
14
|
};
|
|
11
15
|
}
|
|
12
|
-
|
|
16
|
+
function updateDraggingVertex(x, y, snapMask) {
|
|
13
17
|
return {
|
|
14
|
-
type: UPDATE_DRAGGING_VERTEX,
|
|
18
|
+
type: _constants.UPDATE_DRAGGING_VERTEX,
|
|
15
19
|
x: x,
|
|
16
20
|
y: y,
|
|
17
21
|
snapMask: snapMask
|
|
18
22
|
};
|
|
19
23
|
}
|
|
20
|
-
|
|
24
|
+
function endDraggingVertex(x, y, snapMask) {
|
|
21
25
|
return {
|
|
22
|
-
type: END_DRAGGING_VERTEX,
|
|
26
|
+
type: _constants.END_DRAGGING_VERTEX,
|
|
23
27
|
x: x,
|
|
24
28
|
y: y,
|
|
25
29
|
snapMask: snapMask
|
|
@@ -1,58 +1,69 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
exports.__esModule = true;
|
|
2
|
+
exports.changeBaseCabinetMeasure = changeBaseCabinetMeasure;
|
|
3
|
+
exports.changeWallCabinetMeasure = changeWallCabinetMeasure;
|
|
4
|
+
exports.changeWallLengthMeasure = changeWallLengthMeasure;
|
|
5
|
+
exports.changeWindowDoorMeasure = changeWindowDoorMeasure;
|
|
6
|
+
exports.selectToolPan = selectToolPan;
|
|
7
|
+
exports.selectToolZoomIn = selectToolZoomIn;
|
|
8
|
+
exports.selectToolZoomOut = selectToolZoomOut;
|
|
9
|
+
exports.updateCameraView = updateCameraView;
|
|
10
|
+
exports.updateCeilHeight = updateCeilHeight;
|
|
11
|
+
exports.updateCeilHeightUnit = updateCeilHeightUnit;
|
|
12
|
+
var _constants = require("../constants");
|
|
13
|
+
function updateCeilHeight(value) {
|
|
3
14
|
return {
|
|
4
|
-
type: UPDATE_CEIL_HEIGHT,
|
|
15
|
+
type: _constants.UPDATE_CEIL_HEIGHT,
|
|
5
16
|
value: value
|
|
6
17
|
};
|
|
7
18
|
}
|
|
8
|
-
|
|
19
|
+
function updateCeilHeightUnit(value) {
|
|
9
20
|
return {
|
|
10
|
-
type: UPDATE_CEIL_HEIGHT_UNIT,
|
|
21
|
+
type: _constants.UPDATE_CEIL_HEIGHT_UNIT,
|
|
11
22
|
value: value
|
|
12
23
|
};
|
|
13
24
|
}
|
|
14
|
-
|
|
25
|
+
function updateCameraView(value) {
|
|
15
26
|
return {
|
|
16
|
-
type: UPDATE_2D_CAMERA,
|
|
27
|
+
type: _constants.UPDATE_2D_CAMERA,
|
|
17
28
|
value: value
|
|
18
29
|
};
|
|
19
30
|
}
|
|
20
|
-
|
|
31
|
+
function changeWallLengthMeasure(value) {
|
|
21
32
|
return {
|
|
22
|
-
type: CHANGE_WALL_LENGTH_MEASURE,
|
|
33
|
+
type: _constants.CHANGE_WALL_LENGTH_MEASURE,
|
|
23
34
|
value: value
|
|
24
35
|
};
|
|
25
36
|
}
|
|
26
|
-
|
|
37
|
+
function changeBaseCabinetMeasure(value) {
|
|
27
38
|
return {
|
|
28
|
-
type: CHANGE_BASE_CABINET_MEASURE,
|
|
39
|
+
type: _constants.CHANGE_BASE_CABINET_MEASURE,
|
|
29
40
|
value: value
|
|
30
41
|
};
|
|
31
42
|
}
|
|
32
|
-
|
|
43
|
+
function changeWallCabinetMeasure(value) {
|
|
33
44
|
return {
|
|
34
|
-
type: CHANGE_WALL_CABINET_MEASURE,
|
|
45
|
+
type: _constants.CHANGE_WALL_CABINET_MEASURE,
|
|
35
46
|
value: value
|
|
36
47
|
};
|
|
37
48
|
}
|
|
38
|
-
|
|
49
|
+
function changeWindowDoorMeasure(value) {
|
|
39
50
|
return {
|
|
40
|
-
type: CHANGE_WINDOW_DOOR_MEASURE,
|
|
51
|
+
type: _constants.CHANGE_WINDOW_DOOR_MEASURE,
|
|
41
52
|
value: value
|
|
42
53
|
};
|
|
43
54
|
}
|
|
44
|
-
|
|
55
|
+
function selectToolPan() {
|
|
45
56
|
return {
|
|
46
|
-
type: SELECT_TOOL_PAN
|
|
57
|
+
type: _constants.SELECT_TOOL_PAN
|
|
47
58
|
};
|
|
48
59
|
}
|
|
49
|
-
|
|
60
|
+
function selectToolZoomOut() {
|
|
50
61
|
return {
|
|
51
|
-
type: SELECT_TOOL_ZOOM_OUT
|
|
62
|
+
type: _constants.SELECT_TOOL_ZOOM_OUT
|
|
52
63
|
};
|
|
53
64
|
}
|
|
54
|
-
|
|
65
|
+
function selectToolZoomIn() {
|
|
55
66
|
return {
|
|
56
|
-
type: SELECT_TOOL_ZOOM_IN
|
|
67
|
+
type: _constants.SELECT_TOOL_ZOOM_IN
|
|
57
68
|
};
|
|
58
69
|
}
|
|
@@ -1,23 +1,28 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
exports.__esModule = true;
|
|
2
|
+
exports.selectTool3DFirstPerson = selectTool3DFirstPerson;
|
|
3
|
+
exports.selectTool3DView = selectTool3DView;
|
|
4
|
+
exports.update3DCeilHeight = update3DCeilHeight;
|
|
5
|
+
exports.update3DCeilHeightUnit = update3DCeilHeightUnit;
|
|
6
|
+
var _constants = require("../constants");
|
|
7
|
+
function selectTool3DView() {
|
|
3
8
|
return {
|
|
4
|
-
type: SELECT_TOOL_3D_VIEW
|
|
9
|
+
type: _constants.SELECT_TOOL_3D_VIEW
|
|
5
10
|
};
|
|
6
11
|
}
|
|
7
|
-
|
|
12
|
+
function selectTool3DFirstPerson() {
|
|
8
13
|
return {
|
|
9
|
-
type: SELECT_TOOL_3D_FIRST_PERSON
|
|
14
|
+
type: _constants.SELECT_TOOL_3D_FIRST_PERSON
|
|
10
15
|
};
|
|
11
16
|
}
|
|
12
|
-
|
|
17
|
+
function update3DCeilHeight(value) {
|
|
13
18
|
return {
|
|
14
|
-
type: UPDATE_3D_CEIL_HEIGHT,
|
|
19
|
+
type: _constants.UPDATE_3D_CEIL_HEIGHT,
|
|
15
20
|
value: value
|
|
16
21
|
};
|
|
17
22
|
}
|
|
18
|
-
|
|
23
|
+
function update3DCeilHeightUnit(value) {
|
|
19
24
|
return {
|
|
20
|
-
type: UPDATE_3D_CEIL_HEIGHT_UNIT,
|
|
25
|
+
type: _constants.UPDATE_3D_CEIL_HEIGHT_UNIT,
|
|
21
26
|
value: value
|
|
22
27
|
};
|
|
23
28
|
}
|
|
@@ -1,4 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault")["default"];
|
|
2
|
+
exports.__esModule = true;
|
|
3
|
+
exports["default"] = void 0;
|
|
4
|
+
var _export = _interopRequireDefault(require("../../factories/export"));
|
|
2
5
|
var textureUrl = function textureUrl(file) {
|
|
3
6
|
return new URL("./textures/".concat(file), import.meta.url).href;
|
|
4
7
|
};
|
|
@@ -40,4 +43,4 @@ var textures = {
|
|
|
40
43
|
heightRepeatScale: 0.01
|
|
41
44
|
}
|
|
42
45
|
};
|
|
43
|
-
|
|
46
|
+
var _default = exports["default"] = _export["default"].AreaFactory('area', info, textures);
|