kitchen-simulator 1.1.1-test.62 → 1.1.1-test.63

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