kitchen-simulator 1.1.1-test.60 → 1.1.1-test.61

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