kitchen-simulator 1.1.1-test.71 → 1.1.1-test.72
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/es/@history.js +5 -2
- package/es/AppContext.js +6 -3
- package/es/KitchenConfigurator.js +86 -87
- package/es/KitchenConfiguratorApp.js +128 -135
- package/es/actions/area-actions.js +8 -5
- package/es/actions/export.js +24 -12
- package/es/actions/groups-actions.js +41 -27
- package/es/actions/holes-actions.js +51 -34
- package/es/actions/items-actions.js +141 -94
- package/es/actions/lines-actions.js +32 -21
- package/es/actions/project-actions.js +141 -94
- package/es/actions/scene-actions.js +17 -11
- package/es/actions/vertices-actions.js +11 -7
- package/es/actions/viewer2d-actions.js +32 -21
- package/es/actions/viewer3d-actions.js +14 -9
- package/es/catalog/areas/area/planner-element.js +5 -2
- package/es/catalog/catalog.js +17 -15
- package/es/catalog/factories/area-factory-3d.js +26 -22
- package/es/catalog/factories/area-factory.js +15 -13
- package/es/catalog/factories/export.js +10 -6
- package/es/catalog/factories/wall-factory-3d.js +36 -31
- package/es/catalog/factories/wall-factory.js +26 -21
- package/es/catalog/holes/door-closet/planner-element.js +19 -15
- package/es/catalog/holes/door-double/planner-element.js +19 -15
- package/es/catalog/holes/door-exterior/planner-element.js +20 -16
- package/es/catalog/holes/door-interior/planner-element.js +20 -16
- package/es/catalog/holes/door-panic/planner-element.js +11 -7
- package/es/catalog/holes/door-panic-double/planner-element.js +19 -15
- package/es/catalog/holes/door-sliding/planner-element.js +21 -17
- package/es/catalog/holes/doorway-framed/planner-element.js +15 -11
- package/es/catalog/holes/doorway-frameless/planner-element.js +11 -7
- package/es/catalog/holes/export.js +29 -13
- package/es/catalog/holes/window-clear/planner-element.js +14 -10
- package/es/catalog/holes/window-cross/planner-element.js +14 -10
- package/es/catalog/holes/window-double-hung/planner-element.js +14 -10
- package/es/catalog/holes/window-vertical/planner-element.js +14 -10
- package/es/catalog/lines/wall/planner-element.js +5 -2
- package/es/catalog/molding/molding-dcm/planner-element.js +9 -5
- package/es/catalog/molding/molding-fbm/planner-element.js +9 -5
- package/es/catalog/molding/molding-lrm/planner-element.js +9 -5
- package/es/catalog/properties/export.js +31 -20
- package/es/catalog/properties/property-checkbox.js +29 -28
- package/es/catalog/properties/property-color.js +19 -16
- package/es/catalog/properties/property-enum.js +27 -24
- package/es/catalog/properties/property-hidden.js +12 -9
- package/es/catalog/properties/property-lenght-measure.js +41 -38
- package/es/catalog/properties/property-length-measure.js +39 -36
- package/es/catalog/properties/property-length-measure_hole.js +41 -38
- package/es/catalog/properties/property-number.js +20 -17
- package/es/catalog/properties/property-read-only.js +19 -16
- package/es/catalog/properties/property-string.js +19 -16
- package/es/catalog/properties/property-toggle.js +19 -16
- package/es/catalog/properties/shared-property-style.js +3 -1
- package/es/catalog/utils/FuseUtils.js +13 -12
- package/es/catalog/utils/exporter.js +11 -10
- package/es/catalog/utils/geom-utils.js +24 -13
- package/es/catalog/utils/item-loader.js +92 -86
- package/es/catalog/utils/load-obj.js +24 -20
- package/es/catalog/utils/mtl-loader.js +4 -3
- package/es/catalog/utils/obj-loader.js +4 -3
- package/es/class/FuseUtils.js +13 -12
- package/es/class/area.js +24 -24
- package/es/class/export.js +36 -23
- package/es/class/group.js +55 -53
- package/es/class/guide.js +17 -15
- package/es/class/hole.js +85 -83
- package/es/class/item.js +155 -155
- package/es/class/layer.js +61 -59
- package/es/class/line.js +138 -135
- package/es/class/project.js +94 -93
- package/es/class/vertex.js +31 -29
- package/es/components/content.js +23 -19
- package/es/components/disclaimer/disclaimer.js +13 -10
- package/es/components/export.js +13 -8
- package/es/components/style/button.js +25 -25
- package/es/components/style/cancel-button.js +10 -7
- package/es/components/style/content-container.js +12 -11
- package/es/components/style/content-title.js +15 -13
- package/es/components/style/delete-button.js +12 -8
- package/es/components/style/export.js +46 -30
- package/es/components/style/form-block.js +11 -10
- package/es/components/style/form-color-input.js +10 -7
- package/es/components/style/form-label.js +11 -10
- package/es/components/style/form-number-input.js +43 -45
- package/es/components/style/form-number-input_2.js +39 -41
- package/es/components/style/form-select.js +20 -19
- package/es/components/style/form-slider.js +13 -10
- package/es/components/style/form-submit-button.js +12 -8
- package/es/components/style/form-text-input.js +28 -30
- package/es/components/viewer2d/area.js +20 -17
- package/es/components/viewer2d/export.js +46 -30
- package/es/components/viewer2d/grids/grid-horizontal-streak.js +13 -10
- package/es/components/viewer2d/grids/grid-streak.js +13 -10
- package/es/components/viewer2d/grids/grid-vertical-streak.js +13 -10
- package/es/components/viewer2d/grids/grids.js +14 -10
- package/es/components/viewer2d/group.js +19 -15
- package/es/components/viewer2d/item.js +65 -61
- package/es/components/viewer2d/layer.js +26 -23
- package/es/components/viewer2d/line.js +106 -101
- package/es/components/viewer2d/ruler.js +25 -22
- package/es/components/viewer2d/rulerDist.js +24 -21
- package/es/components/viewer2d/rulerX.js +44 -46
- package/es/components/viewer2d/rulerY.js +42 -44
- package/es/components/viewer2d/scene.js +34 -35
- package/es/components/viewer2d/snap.js +17 -13
- package/es/components/viewer2d/state.js +22 -18
- package/es/components/viewer2d/utils.js +33 -24
- package/es/components/viewer2d/vertex.js +12 -8
- package/es/components/viewer2d/viewer2d.js +159 -156
- package/es/components/viewer3d/camera-controls-module/camera-controls.module.js +19 -21
- package/es/components/viewer3d/dcm.js +3 -1
- package/es/components/viewer3d/fbm.js +3 -1
- package/es/components/viewer3d/front3D.js +16 -12
- package/es/components/viewer3d/grid-creator.js +12 -8
- package/es/components/viewer3d/grids/grid-horizontal-streak.js +9 -6
- package/es/components/viewer3d/grids/grid-streak.js +8 -5
- package/es/components/viewer3d/grids/grid-vertical-streak.js +9 -6
- package/es/components/viewer3d/libs/first-person-controls.js +5 -2
- package/es/components/viewer3d/libs/helvetiker_regular.typeface.js +3 -1
- package/es/components/viewer3d/libs/mtl-loader.js +3 -1
- package/es/components/viewer3d/libs/obj-loader.js +3 -1
- package/es/components/viewer3d/libs/orbit-controls.js +4 -2
- package/es/components/viewer3d/libs/pointer-lock-controls.js +4 -2
- package/es/components/viewer3d/lrm.js +3 -1
- package/es/components/viewer3d/model.js +3 -1
- package/es/components/viewer3d/pointer-lock-navigation.js +6 -3
- package/es/components/viewer3d/ruler-utils/itemRect.js +21 -18
- package/es/components/viewer3d/ruler-utils/layer3D.js +62 -59
- package/es/components/viewer3d/ruler-utils/ruler3D.js +43 -42
- package/es/components/viewer3d/ruler-utils/scene3D.js +13 -9
- package/es/components/viewer3d/ruler-utils/state3D.js +7 -4
- package/es/components/viewer3d/scene-creator.js +223 -197
- package/es/components/viewer3d/three-memory-cleaner.js +7 -3
- package/es/components/viewer3d/viewer3d-first-person.js +42 -42
- package/es/components/viewer3d/viewer3d.js +198 -200
- package/es/constants.js +354 -349
- package/es/index.js +11 -7
- package/es/models.js +191 -193
- package/es/plugins/SVGLoader.js +49 -48
- package/es/plugins/autosave.js +5 -3
- package/es/plugins/console-debugger.js +7 -6
- package/es/plugins/export.js +13 -8
- package/es/plugins/keyboard.js +31 -29
- package/es/reducers/areas-reducer.js +9 -7
- package/es/reducers/export.js +37 -24
- package/es/reducers/groups-reducer.js +33 -31
- package/es/reducers/holes-reducer.js +45 -43
- package/es/reducers/items-reducer.js +108 -106
- package/es/reducers/lines-reducer.js +30 -28
- package/es/reducers/project-reducer.js +107 -105
- package/es/reducers/reducer.js +19 -16
- package/es/reducers/scene-reducer.js +17 -15
- package/es/reducers/user-reducer.js +7 -5
- package/es/reducers/vertices-reducer.js +13 -11
- package/es/reducers/viewer2d-reducer.js +20 -18
- package/es/reducers/viewer3d-reducer.js +18 -16
- package/es/shared-style.js +12 -10
- package/es/styles/export.js +6 -3
- package/es/translator/en.js +3 -1
- package/es/translator/it.js +3 -1
- package/es/translator/ru.js +3 -1
- package/es/translator/translator.js +15 -13
- package/es/utils/browser.js +5 -2
- package/es/utils/convert-units-lite.js +3 -1
- package/es/utils/email-validator.js +3 -1
- package/es/utils/export.js +29 -15
- package/es/utils/geometry.js +280 -190
- package/es/utils/get-edges-of-subgraphs.js +5 -2
- package/es/utils/graph-cycles.js +7 -8
- package/es/utils/graph-inner-cycles.js +14 -10
- package/es/utils/graph.js +13 -9
- package/es/utils/helper.js +58 -41
- package/es/utils/history.js +11 -8
- package/es/utils/id-broker.js +11 -8
- package/es/utils/logger.js +3 -1
- package/es/utils/math.js +8 -5
- package/es/utils/molding.js +146 -130
- package/es/utils/name-generator.js +9 -7
- package/es/utils/objects-utils.js +14 -7
- package/es/utils/phone-validator.js +3 -1
- package/es/utils/process-black-list.js +6 -5
- package/es/utils/react-if.js +9 -7
- package/es/utils/snap-scene.js +30 -27
- package/es/utils/snap.js +57 -53
- package/es/utils/summarizeCart.js +3 -1
- package/es/utils/threeCSG.es6.js +17 -13
- package/es/version.js +3 -1
- package/package.json +1 -1
|
@@ -1,88 +1,102 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
exports.__esModule = true;
|
|
2
|
+
exports.addGroup = addGroup;
|
|
3
|
+
exports.addGroupFromSelected = addGroupFromSelected;
|
|
4
|
+
exports.addToGroup = addToGroup;
|
|
5
|
+
exports.groupRotate = groupRotate;
|
|
6
|
+
exports.groupTranslate = groupTranslate;
|
|
7
|
+
exports.removeFromGroup = removeFromGroup;
|
|
8
|
+
exports.removeGroup = removeGroup;
|
|
9
|
+
exports.removeGroupAndDeleteElements = removeGroupAndDeleteElements;
|
|
10
|
+
exports.selectGroup = selectGroup;
|
|
11
|
+
exports.setGroupAttributes = setGroupAttributes;
|
|
12
|
+
exports.setGroupBarycenter = setGroupBarycenter;
|
|
13
|
+
exports.setGroupProperties = setGroupProperties;
|
|
14
|
+
exports.unselectGroup = unselectGroup;
|
|
15
|
+
var _constants = require("../constants");
|
|
16
|
+
function addGroup() {
|
|
3
17
|
return {
|
|
4
|
-
type: GROUP_ACTIONS.ADD_GROUP
|
|
18
|
+
type: _constants.GROUP_ACTIONS.ADD_GROUP
|
|
5
19
|
};
|
|
6
20
|
}
|
|
7
|
-
|
|
21
|
+
function addGroupFromSelected() {
|
|
8
22
|
return {
|
|
9
|
-
type: GROUP_ACTIONS.ADD_GROUP_FROM_SELECTED
|
|
23
|
+
type: _constants.GROUP_ACTIONS.ADD_GROUP_FROM_SELECTED
|
|
10
24
|
};
|
|
11
25
|
}
|
|
12
|
-
|
|
26
|
+
function selectGroup(groupID) {
|
|
13
27
|
return {
|
|
14
|
-
type: GROUP_ACTIONS.SELECT_GROUP,
|
|
28
|
+
type: _constants.GROUP_ACTIONS.SELECT_GROUP,
|
|
15
29
|
groupID: groupID
|
|
16
30
|
};
|
|
17
31
|
}
|
|
18
|
-
|
|
32
|
+
function unselectGroup(groupID) {
|
|
19
33
|
return {
|
|
20
|
-
type: GROUP_ACTIONS.UNSELECT_GROUP,
|
|
34
|
+
type: _constants.GROUP_ACTIONS.UNSELECT_GROUP,
|
|
21
35
|
groupID: groupID
|
|
22
36
|
};
|
|
23
37
|
}
|
|
24
|
-
|
|
38
|
+
function addToGroup(groupID, layerID, elementPrototype, elementID) {
|
|
25
39
|
return {
|
|
26
|
-
type: GROUP_ACTIONS.ADD_TO_GROUP,
|
|
40
|
+
type: _constants.GROUP_ACTIONS.ADD_TO_GROUP,
|
|
27
41
|
groupID: groupID,
|
|
28
42
|
layerID: layerID,
|
|
29
43
|
elementPrototype: elementPrototype,
|
|
30
44
|
elementID: elementID
|
|
31
45
|
};
|
|
32
46
|
}
|
|
33
|
-
|
|
47
|
+
function removeFromGroup(groupID, layerID, elementPrototype, elementID) {
|
|
34
48
|
return {
|
|
35
|
-
type: GROUP_ACTIONS.REMOVE_FROM_GROUP,
|
|
49
|
+
type: _constants.GROUP_ACTIONS.REMOVE_FROM_GROUP,
|
|
36
50
|
groupID: groupID,
|
|
37
51
|
layerID: layerID,
|
|
38
52
|
elementPrototype: elementPrototype,
|
|
39
53
|
elementID: elementID
|
|
40
54
|
};
|
|
41
55
|
}
|
|
42
|
-
|
|
56
|
+
function setGroupAttributes(groupID, attributes) {
|
|
43
57
|
return {
|
|
44
|
-
type: GROUP_ACTIONS.SET_GROUP_ATTRIBUTES,
|
|
58
|
+
type: _constants.GROUP_ACTIONS.SET_GROUP_ATTRIBUTES,
|
|
45
59
|
groupID: groupID,
|
|
46
60
|
attributes: attributes
|
|
47
61
|
};
|
|
48
62
|
}
|
|
49
|
-
|
|
63
|
+
function setGroupProperties(groupID, properties) {
|
|
50
64
|
return {
|
|
51
|
-
type: GROUP_ACTIONS.SET_GROUP_PROPERTIES,
|
|
65
|
+
type: _constants.GROUP_ACTIONS.SET_GROUP_PROPERTIES,
|
|
52
66
|
groupID: groupID,
|
|
53
67
|
properties: properties
|
|
54
68
|
};
|
|
55
69
|
}
|
|
56
|
-
|
|
70
|
+
function setGroupBarycenter(groupID, barycenter) {
|
|
57
71
|
return {
|
|
58
|
-
type: GROUP_ACTIONS.SET_GROUP_BARYCENTER,
|
|
72
|
+
type: _constants.GROUP_ACTIONS.SET_GROUP_BARYCENTER,
|
|
59
73
|
groupID: groupID,
|
|
60
74
|
barycenter: barycenter
|
|
61
75
|
};
|
|
62
76
|
}
|
|
63
|
-
|
|
77
|
+
function removeGroup(groupID) {
|
|
64
78
|
return {
|
|
65
|
-
type: GROUP_ACTIONS.REMOVE_GROUP,
|
|
79
|
+
type: _constants.GROUP_ACTIONS.REMOVE_GROUP,
|
|
66
80
|
groupID: groupID
|
|
67
81
|
};
|
|
68
82
|
}
|
|
69
|
-
|
|
83
|
+
function removeGroupAndDeleteElements(groupID) {
|
|
70
84
|
return {
|
|
71
|
-
type: GROUP_ACTIONS.REMOVE_GROUP_AND_DELETE_ELEMENTS,
|
|
85
|
+
type: _constants.GROUP_ACTIONS.REMOVE_GROUP_AND_DELETE_ELEMENTS,
|
|
72
86
|
groupID: groupID
|
|
73
87
|
};
|
|
74
88
|
}
|
|
75
|
-
|
|
89
|
+
function groupTranslate(groupID, x, y) {
|
|
76
90
|
return {
|
|
77
|
-
type: GROUP_ACTIONS.GROUP_TRANSLATE,
|
|
91
|
+
type: _constants.GROUP_ACTIONS.GROUP_TRANSLATE,
|
|
78
92
|
groupID: groupID,
|
|
79
93
|
x: x,
|
|
80
94
|
y: y
|
|
81
95
|
};
|
|
82
96
|
}
|
|
83
|
-
|
|
97
|
+
function groupRotate(groupID, rotation) {
|
|
84
98
|
return {
|
|
85
|
-
type: GROUP_ACTIONS.GROUP_ROTATE,
|
|
99
|
+
type: _constants.GROUP_ACTIONS.GROUP_ROTATE,
|
|
86
100
|
groupID: groupID,
|
|
87
101
|
rotation: rotation
|
|
88
102
|
};
|
|
@@ -1,117 +1,134 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
exports.__esModule = true;
|
|
2
|
+
exports.beginDraggingHole = beginDraggingHole;
|
|
3
|
+
exports.beginDraggingHole3D = beginDraggingHole3D;
|
|
4
|
+
exports.endCreatingHole = endCreatingHole;
|
|
5
|
+
exports.endDraggingHole = endDraggingHole;
|
|
6
|
+
exports.endDraggingHole3D = endDraggingHole3D;
|
|
7
|
+
exports.endDrawingHole = endDrawingHole;
|
|
8
|
+
exports.endDrawingHole3D = endDrawingHole3D;
|
|
9
|
+
exports.selectHole = selectHole;
|
|
10
|
+
exports.selectToolDrawingHole = selectToolDrawingHole;
|
|
11
|
+
exports.selectToolDrawingHole3D = selectToolDrawingHole3D;
|
|
12
|
+
exports.updateDraggingHole = updateDraggingHole;
|
|
13
|
+
exports.updateDraggingHoleChanged = updateDraggingHoleChanged;
|
|
14
|
+
exports.updateDraggingHoleRulerChanged = updateDraggingHoleRulerChanged;
|
|
15
|
+
exports.updateDrawingHole = updateDrawingHole;
|
|
16
|
+
exports.updateDrawingHole3D = updateDrawingHole3D;
|
|
17
|
+
exports.updatePopupOpen = updatePopupOpen;
|
|
18
|
+
var _constants = require("../constants");
|
|
19
|
+
function endCreatingHole() {
|
|
20
|
+
return {
|
|
21
|
+
type: _constants.END_CREATING_HOLE
|
|
5
22
|
};
|
|
6
23
|
}
|
|
7
|
-
|
|
24
|
+
function updatePopupOpen(value) {
|
|
8
25
|
return {
|
|
9
|
-
type: UPDATE_POPUP_OPEN,
|
|
26
|
+
type: _constants.UPDATE_POPUP_OPEN,
|
|
10
27
|
value: value
|
|
11
28
|
};
|
|
12
29
|
}
|
|
13
|
-
|
|
30
|
+
function selectHole(layerID, holeID) {
|
|
14
31
|
return {
|
|
15
|
-
type: SELECT_HOLE,
|
|
32
|
+
type: _constants.SELECT_HOLE,
|
|
16
33
|
layerID: layerID,
|
|
17
34
|
holeID: holeID
|
|
18
35
|
};
|
|
19
36
|
}
|
|
20
|
-
|
|
37
|
+
function selectToolDrawingHole(sceneComponentType) {
|
|
21
38
|
return {
|
|
22
|
-
type: SELECT_TOOL_DRAWING_HOLE,
|
|
39
|
+
type: _constants.SELECT_TOOL_DRAWING_HOLE,
|
|
23
40
|
sceneComponentType: sceneComponentType
|
|
24
41
|
};
|
|
25
42
|
}
|
|
26
|
-
|
|
43
|
+
function selectToolDrawingHole3D(sceneComponentType) {
|
|
27
44
|
return {
|
|
28
|
-
type: SELECT_TOOL_DRAWING_HOLE_3D,
|
|
45
|
+
type: _constants.SELECT_TOOL_DRAWING_HOLE_3D,
|
|
29
46
|
sceneComponentType: sceneComponentType
|
|
30
47
|
};
|
|
31
48
|
}
|
|
32
|
-
|
|
49
|
+
function updateDrawingHole(layerID, x, y) {
|
|
33
50
|
return {
|
|
34
|
-
type: UPDATE_DRAWING_HOLE,
|
|
51
|
+
type: _constants.UPDATE_DRAWING_HOLE,
|
|
35
52
|
layerID: layerID,
|
|
36
53
|
x: x,
|
|
37
54
|
y: y
|
|
38
55
|
};
|
|
39
56
|
}
|
|
40
|
-
|
|
57
|
+
function updateDrawingHole3D(layerID, x, y) {
|
|
41
58
|
return {
|
|
42
|
-
type: UPDATE_DRAWING_HOLE_3D,
|
|
59
|
+
type: _constants.UPDATE_DRAWING_HOLE_3D,
|
|
43
60
|
layerID: layerID,
|
|
44
61
|
x: x,
|
|
45
62
|
y: y
|
|
46
63
|
};
|
|
47
64
|
}
|
|
48
|
-
|
|
65
|
+
function endDrawingHole(layerID, x, y) {
|
|
49
66
|
return {
|
|
50
|
-
type: END_DRAWING_HOLE,
|
|
67
|
+
type: _constants.END_DRAWING_HOLE,
|
|
51
68
|
layerID: layerID,
|
|
52
69
|
x: x,
|
|
53
70
|
y: y
|
|
54
71
|
};
|
|
55
72
|
}
|
|
56
|
-
|
|
73
|
+
function endDrawingHole3D(layerID, x, y) {
|
|
57
74
|
return {
|
|
58
|
-
type: END_DRAWING_HOLE_3D,
|
|
75
|
+
type: _constants.END_DRAWING_HOLE_3D,
|
|
59
76
|
layerID: layerID,
|
|
60
77
|
x: x,
|
|
61
78
|
y: y
|
|
62
79
|
};
|
|
63
80
|
}
|
|
64
|
-
|
|
81
|
+
function beginDraggingHole(layerID, holeID, x, y) {
|
|
65
82
|
return {
|
|
66
|
-
type: BEGIN_DRAGGING_HOLE,
|
|
83
|
+
type: _constants.BEGIN_DRAGGING_HOLE,
|
|
67
84
|
layerID: layerID,
|
|
68
85
|
holeID: holeID,
|
|
69
86
|
x: x,
|
|
70
87
|
y: y
|
|
71
88
|
};
|
|
72
89
|
}
|
|
73
|
-
|
|
90
|
+
function beginDraggingHole3D(layerID, holeID, x, y) {
|
|
74
91
|
return {
|
|
75
|
-
type: BEGIN_DRAGGING_HOLE_3D,
|
|
92
|
+
type: _constants.BEGIN_DRAGGING_HOLE_3D,
|
|
76
93
|
layerID: layerID,
|
|
77
94
|
holeID: holeID,
|
|
78
95
|
x: x,
|
|
79
96
|
y: y
|
|
80
97
|
};
|
|
81
98
|
}
|
|
82
|
-
|
|
99
|
+
function updateDraggingHole(x, y) {
|
|
83
100
|
return {
|
|
84
|
-
type: UPDATE_DRAGGING_HOLE,
|
|
101
|
+
type: _constants.UPDATE_DRAGGING_HOLE,
|
|
85
102
|
x: x,
|
|
86
103
|
y: y
|
|
87
104
|
};
|
|
88
105
|
}
|
|
89
|
-
|
|
106
|
+
function endDraggingHole(x, y) {
|
|
90
107
|
return {
|
|
91
|
-
type: END_DRAGGING_HOLE,
|
|
108
|
+
type: _constants.END_DRAGGING_HOLE,
|
|
92
109
|
x: x,
|
|
93
110
|
y: y
|
|
94
111
|
};
|
|
95
112
|
}
|
|
96
|
-
|
|
113
|
+
function endDraggingHole3D(x, y) {
|
|
97
114
|
return {
|
|
98
|
-
type: END_DRAGGING_HOLE_3D,
|
|
115
|
+
type: _constants.END_DRAGGING_HOLE_3D,
|
|
99
116
|
x: x,
|
|
100
117
|
y: y
|
|
101
118
|
};
|
|
102
119
|
}
|
|
103
|
-
|
|
120
|
+
function updateDraggingHoleChanged(x, y, layerID, holeID) {
|
|
104
121
|
return {
|
|
105
|
-
type: UPDATE_DRAGGING_HOLE_CHANGED,
|
|
122
|
+
type: _constants.UPDATE_DRAGGING_HOLE_CHANGED,
|
|
106
123
|
x: x,
|
|
107
124
|
y: y,
|
|
108
125
|
layerID: layerID,
|
|
109
126
|
holeID: holeID
|
|
110
127
|
};
|
|
111
128
|
}
|
|
112
|
-
|
|
129
|
+
function updateDraggingHoleRulerChanged(width, layerID, holeID) {
|
|
113
130
|
return {
|
|
114
|
-
type: UPDATE_DRAGGING_HOLE_RULER_CHANGED,
|
|
131
|
+
type: _constants.UPDATE_DRAGGING_HOLE_RULER_CHANGED,
|
|
115
132
|
width: width,
|
|
116
133
|
layerID: layerID,
|
|
117
134
|
holeID: holeID
|