kitchen-simulator 1.1.1-test.72 → 1.1.1-test.74

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