kitchen-simulator 1.1.1-test.29 → 1.1.1-test.30
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/KitchenConfigurator.js +27 -28
- package/es/KitchenConfiguratorApp.js +35 -33
- package/es/actions/holes-actions.js +1 -1
- package/es/actions/items-actions.js +1 -1
- package/es/actions/lines-actions.js +1 -1
- package/es/actions/project-actions.js +1 -1
- package/es/actions/scene-actions.js +1 -1
- package/es/actions/vertices-actions.js +1 -1
- package/es/actions/viewer2d-actions.js +1 -1
- package/es/actions/viewer3d-actions.js +1 -1
- package/es/catalog/catalog.js +2 -2
- package/es/catalog/molding/molding-dcm/planner-element.js +0 -2
- package/es/catalog/molding/molding-fbm/planner-element.js +0 -2
- package/es/catalog/molding/molding-lrm/planner-element.js +0 -2
- package/es/catalog/properties/property-checkbox.js +10 -9
- package/es/catalog/properties/property-color.js +12 -10
- package/es/catalog/properties/property-enum.js +12 -12
- package/es/catalog/properties/property-hidden.js +11 -10
- package/es/catalog/properties/property-lenght-measure.js +16 -15
- package/es/catalog/properties/property-length-measure.js +17 -16
- package/es/catalog/properties/property-length-measure_hole.js +16 -15
- package/es/catalog/properties/property-number.js +11 -10
- package/es/catalog/properties/property-read-only.js +10 -9
- package/es/catalog/properties/property-string.js +10 -9
- package/es/catalog/properties/property-toggle.js +11 -10
- package/es/class/area.js +1 -1
- package/es/class/group.js +3 -3
- package/es/class/hole.js +5 -6
- package/es/class/layer.js +2 -2
- package/es/class/project.js +4 -4
- package/es/components/content.js +11 -10
- package/es/components/style/button.js +8 -7
- package/es/components/style/content-container.js +2 -1
- package/es/components/style/content-title.js +1 -1
- package/es/components/style/form-number-input.js +20 -21
- package/es/components/style/form-number-input_2.js +16 -17
- package/es/components/style/form-select.js +1 -2
- package/es/components/style/form-text-input.js +1 -2
- package/es/components/viewer2d/area.js +7 -6
- package/es/components/viewer2d/grids/grid-horizontal-streak.js +7 -7
- package/es/components/viewer2d/grids/grid-streak.js +7 -7
- package/es/components/viewer2d/grids/grid-vertical-streak.js +7 -7
- package/es/components/viewer2d/grids/grids.js +6 -4
- package/es/components/viewer2d/group.js +12 -10
- package/es/components/viewer2d/item.js +14 -14
- package/es/components/viewer2d/layer.js +8 -7
- package/es/components/viewer2d/line.js +8 -7
- package/es/components/viewer2d/ruler.js +8 -8
- package/es/components/viewer2d/rulerDist.js +7 -6
- package/es/components/viewer2d/rulerX.js +17 -17
- package/es/components/viewer2d/rulerY.js +15 -15
- package/es/components/viewer2d/scene.js +11 -13
- package/es/components/viewer2d/snap.js +7 -6
- package/es/components/viewer2d/state.js +7 -6
- package/es/components/viewer2d/utils.js +1 -1
- package/es/components/viewer2d/vertex.js +6 -5
- package/es/components/viewer2d/viewer2d.js +18 -16
- package/es/components/viewer3d/front3D.js +1 -1
- package/es/components/viewer3d/grids/grid-streak.js +0 -1
- package/es/components/viewer3d/ruler-utils/layer3D.js +1 -1
- package/es/components/viewer3d/ruler-utils/ruler3D.js +1 -1
- package/es/components/viewer3d/ruler-utils/scene3D.js +0 -2
- package/es/components/viewer3d/viewer3d-first-person.js +15 -16
- package/es/components/viewer3d/viewer3d.js +17 -18
- package/es/models.js +1 -1
- package/es/plugins/keyboard.js +2 -2
- package/es/reducers/holes-reducer.js +1 -1
- package/es/reducers/items-reducer.js +2 -5
- package/es/reducers/lines-reducer.js +1 -1
- package/es/reducers/project-reducer.js +1 -1
- package/es/reducers/reducer.js +2 -2
- package/es/reducers/scene-reducer.js +1 -1
- package/es/reducers/user-reducer.js +1 -2
- package/es/reducers/vertices-reducer.js +1 -1
- package/es/reducers/viewer2d-reducer.js +1 -1
- package/es/reducers/viewer3d-reducer.js +1 -1
- package/es/utils/geometry.js +3 -3
- package/es/utils/react-if.js +6 -5
- package/es/utils/snap-scene.js +2 -2
- package/es/utils/snap.js +1 -1
- package/lib/KitchenConfigurator.js +27 -29
- package/lib/KitchenConfiguratorApp.js +35 -34
- package/lib/catalog/molding/molding-dcm/planner-element.js +0 -5
- package/lib/catalog/molding/molding-fbm/planner-element.js +0 -5
- package/lib/catalog/molding/molding-lrm/planner-element.js +0 -5
- package/lib/catalog/properties/property-checkbox.js +10 -10
- package/lib/catalog/properties/property-color.js +11 -9
- package/lib/catalog/properties/property-enum.js +10 -11
- package/lib/catalog/properties/property-hidden.js +11 -11
- package/lib/catalog/properties/property-lenght-measure.js +15 -15
- package/lib/catalog/properties/property-length-measure.js +15 -15
- package/lib/catalog/properties/property-length-measure_hole.js +15 -15
- package/lib/catalog/properties/property-number.js +12 -10
- package/lib/catalog/properties/property-read-only.js +11 -9
- package/lib/catalog/properties/property-string.js +11 -9
- package/lib/catalog/properties/property-toggle.js +11 -9
- package/lib/components/content.js +12 -10
- package/lib/components/style/button.js +8 -9
- package/lib/components/style/content-container.js +5 -4
- package/lib/components/style/content-title.js +2 -3
- package/lib/components/style/form-number-input.js +19 -21
- package/lib/components/style/form-number-input_2.js +16 -19
- package/lib/components/style/form-select.js +0 -3
- package/lib/components/style/form-text-input.js +0 -1
- package/lib/components/viewer2d/area.js +8 -6
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js +8 -7
- package/lib/components/viewer2d/grids/grid-streak.js +8 -7
- package/lib/components/viewer2d/grids/grid-vertical-streak.js +8 -7
- package/lib/components/viewer2d/grids/grids.js +5 -5
- package/lib/components/viewer2d/group.js +13 -10
- package/lib/components/viewer2d/item.js +12 -12
- package/lib/components/viewer2d/layer.js +8 -6
- package/lib/components/viewer2d/line.js +9 -7
- package/lib/components/viewer2d/ruler.js +8 -7
- package/lib/components/viewer2d/rulerDist.js +8 -6
- package/lib/components/viewer2d/rulerX.js +17 -19
- package/lib/components/viewer2d/rulerY.js +15 -17
- package/lib/components/viewer2d/scene.js +9 -13
- package/lib/components/viewer2d/snap.js +8 -6
- package/lib/components/viewer2d/state.js +7 -7
- package/lib/components/viewer2d/vertex.js +7 -5
- package/lib/components/viewer2d/viewer2d.js +18 -17
- package/lib/components/viewer3d/grids/grid-streak.js +0 -1
- package/lib/components/viewer3d/ruler-utils/scene3D.js +0 -2
- package/lib/components/viewer3d/viewer3d-first-person.js +14 -16
- package/lib/components/viewer3d/viewer3d.js +16 -18
- package/lib/reducers/user-reducer.js +0 -1
- package/lib/utils/geometry.js +1 -1
- package/lib/utils/react-if.js +7 -5
- package/package.json +1 -3
- package/es/compat/propTypesCompat.js +0 -8
- package/lib/compat/propTypesCompat.js +0 -26
|
@@ -15,7 +15,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
15
15
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
16
16
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
17
17
|
import React, { Component } from 'react';
|
|
18
|
-
import PropTypes from
|
|
18
|
+
//import PropTypes from 'prop-types';
|
|
19
19
|
import * as SharedStyle from "../../shared-style";
|
|
20
20
|
var RulerX = /*#__PURE__*/function (_Component) {
|
|
21
21
|
function RulerX(props, context) {
|
|
@@ -125,20 +125,19 @@ var RulerX = /*#__PURE__*/function (_Component) {
|
|
|
125
125
|
}, positiveDomElements));
|
|
126
126
|
}
|
|
127
127
|
}]);
|
|
128
|
-
}(Component);
|
|
128
|
+
}(Component); // RulerX.propTypes = {
|
|
129
|
+
// unitPixelSize: PropTypes.number.isRequired,
|
|
130
|
+
// positiveUnitsNumber: PropTypes.number,
|
|
131
|
+
// negativeUnitsNumber: PropTypes.number,
|
|
132
|
+
// zoom: PropTypes.number.isRequired,
|
|
133
|
+
// mouseX: PropTypes.number.isRequired,
|
|
134
|
+
// width: PropTypes.number.isRequired,
|
|
135
|
+
// zeroLeftPosition: PropTypes.number.isRequired,
|
|
136
|
+
// backgroundColor: PropTypes.string,
|
|
137
|
+
// fontColor: PropTypes.string,
|
|
138
|
+
// markerColor: PropTypes.string
|
|
139
|
+
// };
|
|
129
140
|
export { RulerX as default };
|
|
130
|
-
RulerX.propTypes = {
|
|
131
|
-
unitPixelSize: PropTypes.number.isRequired,
|
|
132
|
-
positiveUnitsNumber: PropTypes.number,
|
|
133
|
-
negativeUnitsNumber: PropTypes.number,
|
|
134
|
-
zoom: PropTypes.number.isRequired,
|
|
135
|
-
mouseX: PropTypes.number.isRequired,
|
|
136
|
-
width: PropTypes.number.isRequired,
|
|
137
|
-
zeroLeftPosition: PropTypes.number.isRequired,
|
|
138
|
-
backgroundColor: PropTypes.string,
|
|
139
|
-
fontColor: PropTypes.string,
|
|
140
|
-
markerColor: PropTypes.string
|
|
141
|
-
};
|
|
142
141
|
RulerX.defaultProps = {
|
|
143
142
|
positiveUnitsNumber: 50,
|
|
144
143
|
negativeUnitsNumber: 50,
|
|
@@ -146,6 +145,7 @@ RulerX.defaultProps = {
|
|
|
146
145
|
fontColor: SharedStyle.COLORS.white,
|
|
147
146
|
markerColor: SharedStyle.SECONDARY_COLOR.main
|
|
148
147
|
};
|
|
149
|
-
|
|
150
|
-
|
|
151
|
-
|
|
148
|
+
|
|
149
|
+
// RulerX.contextTypes = {
|
|
150
|
+
// translator: PropTypes.object.isRequired
|
|
151
|
+
// };
|
|
@@ -15,7 +15,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
15
15
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
16
16
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
17
17
|
import React, { Component } from 'react';
|
|
18
|
-
import PropTypes from
|
|
18
|
+
//import PropTypes from 'prop-types';
|
|
19
19
|
import * as SharedStyle from "../../shared-style";
|
|
20
20
|
var RulerY = /*#__PURE__*/function (_Component) {
|
|
21
21
|
function RulerY(props, context) {
|
|
@@ -129,18 +129,17 @@ var RulerY = /*#__PURE__*/function (_Component) {
|
|
|
129
129
|
}, positiveDomElements));
|
|
130
130
|
}
|
|
131
131
|
}]);
|
|
132
|
-
}(Component);
|
|
132
|
+
}(Component); // RulerY.propTypes = {
|
|
133
|
+
// unitPixelSize: PropTypes.number.isRequired,
|
|
134
|
+
// zoom: PropTypes.number.isRequired,
|
|
135
|
+
// mouseY: PropTypes.number.isRequired,
|
|
136
|
+
// height: PropTypes.number.isRequired,
|
|
137
|
+
// zeroTopPosition: PropTypes.number.isRequired,
|
|
138
|
+
// backgroundColor: PropTypes.string,
|
|
139
|
+
// fontColor: PropTypes.string,
|
|
140
|
+
// markerColor: PropTypes.string
|
|
141
|
+
// };
|
|
133
142
|
export { RulerY as default };
|
|
134
|
-
RulerY.propTypes = {
|
|
135
|
-
unitPixelSize: PropTypes.number.isRequired,
|
|
136
|
-
zoom: PropTypes.number.isRequired,
|
|
137
|
-
mouseY: PropTypes.number.isRequired,
|
|
138
|
-
height: PropTypes.number.isRequired,
|
|
139
|
-
zeroTopPosition: PropTypes.number.isRequired,
|
|
140
|
-
backgroundColor: PropTypes.string,
|
|
141
|
-
fontColor: PropTypes.string,
|
|
142
|
-
markerColor: PropTypes.string
|
|
143
|
-
};
|
|
144
143
|
RulerY.defaultProps = {
|
|
145
144
|
positiveUnitsNumber: 50,
|
|
146
145
|
negativeUnitsNumber: 50,
|
|
@@ -148,6 +147,7 @@ RulerY.defaultProps = {
|
|
|
148
147
|
fontColor: SharedStyle.COLORS.white,
|
|
149
148
|
markerColor: SharedStyle.SECONDARY_COLOR.main
|
|
150
149
|
};
|
|
151
|
-
|
|
152
|
-
|
|
153
|
-
|
|
150
|
+
|
|
151
|
+
// RulerY.contextTypes = {
|
|
152
|
+
// translator: PropTypes.object.isRequired
|
|
153
|
+
// };
|
|
@@ -22,9 +22,8 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
22
22
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
23
23
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
24
24
|
import React, { Component } from 'react';
|
|
25
|
-
import PropTypes from
|
|
26
|
-
import {
|
|
27
|
-
import { searchForSkuValue } from "./utils";
|
|
25
|
+
//import PropTypes from 'prop-types';
|
|
26
|
+
import { Grids, Layer } from "./export";
|
|
28
27
|
var Scene = /*#__PURE__*/function (_Component) {
|
|
29
28
|
function Scene() {
|
|
30
29
|
_classCallCheck(this, Scene);
|
|
@@ -128,13 +127,12 @@ var Scene = /*#__PURE__*/function (_Component) {
|
|
|
128
127
|
}));
|
|
129
128
|
}
|
|
130
129
|
}]);
|
|
131
|
-
}(Component);
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
|
|
135
|
-
|
|
136
|
-
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
|
|
140
|
-
};
|
|
130
|
+
}(Component); // Scene.propTypes = {
|
|
131
|
+
// scene: PropTypes.object.isRequired,
|
|
132
|
+
// catalog: PropTypes.object.isRequired,
|
|
133
|
+
// relatedLines: PropTypes.object.isRequired
|
|
134
|
+
// };
|
|
135
|
+
// Scene.contextTypes = {
|
|
136
|
+
// projectActions: PropTypes.object.isRequired
|
|
137
|
+
// };
|
|
138
|
+
export { Scene as default };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
3
|
import * as Geometry from "../../utils/geometry";
|
|
4
4
|
var STYLE = {
|
|
5
5
|
stroke: '#D32F2F',
|
|
@@ -67,8 +67,9 @@ export default function ActiveDrawingHelper(_ref) {
|
|
|
67
67
|
return null;
|
|
68
68
|
}
|
|
69
69
|
}
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
70
|
+
|
|
71
|
+
// ActiveDrawingHelper.propTypes = {
|
|
72
|
+
// snap: PropTypes.object.isRequired,
|
|
73
|
+
// width: PropTypes.number.isRequired,
|
|
74
|
+
// height: PropTypes.number.isRequired
|
|
75
|
+
// };
|
|
@@ -5,7 +5,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import PropTypes from
|
|
8
|
+
//import PropTypes from 'prop-types';
|
|
9
9
|
import Scene from "./scene";
|
|
10
10
|
import Snap from "./snap";
|
|
11
11
|
import * as SharedStyle from "../../shared-style";
|
|
@@ -71,8 +71,9 @@ export default function State(_ref) {
|
|
|
71
71
|
});
|
|
72
72
|
}), activeSnapElement, snapElements));
|
|
73
73
|
}
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
74
|
+
|
|
75
|
+
// State.propTypes = {
|
|
76
|
+
// state: PropTypes.object.isRequired,
|
|
77
|
+
// catalog: PropTypes.object.isRequired,
|
|
78
|
+
// relatedLines: PropTypes.object.isRequired
|
|
79
|
+
// };
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
2
|
-
import {
|
|
2
|
+
import { toPlainObject } from "../../utils/helper";
|
|
3
3
|
import { INSTALLATION_SUFFIX_TYPE, INSTALLATION_TYPE_NAME, INSTALLATION_TYPE_SKU_SUFFIX, TOE_KICK_MOLDING } from "../../constants";
|
|
4
4
|
export var searchForSkuValue = function searchForSkuValue(catalog, selectedLayer, elementType) {
|
|
5
5
|
return new Promise(function (resolve) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
3
|
import * as SharedStyle from "../../shared-style";
|
|
4
4
|
//Space from the center of the point(Use cases:x - vertexthickness,y + vertexthickness )
|
|
5
5
|
var vertexthickness = 4;
|
|
@@ -59,7 +59,8 @@ export default function Vertex(_ref) {
|
|
|
59
59
|
style: STYLE
|
|
60
60
|
}));
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
62
|
+
|
|
63
|
+
// Vertex.propTypes = {
|
|
64
|
+
// vertex: PropTypes.object.isRequired,
|
|
65
|
+
// layer: PropTypes.object.isRequired
|
|
66
|
+
// };
|
|
@@ -15,7 +15,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
15
15
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
16
16
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
17
17
|
import React, { useEffect, useRef, useState } from 'react';
|
|
18
|
-
import PropTypes from
|
|
18
|
+
//import PropTypes from 'prop-types';
|
|
19
19
|
import { ReactSVGPanZoom, TOOL_AUTO, TOOL_NONE, TOOL_PAN, TOOL_ZOOM_IN, TOOL_ZOOM_OUT, zoom } from 'react-svg-pan-zoom';
|
|
20
20
|
import * as constants from "../../constants";
|
|
21
21
|
import State from "./state";
|
|
@@ -1381,18 +1381,20 @@ export default function Viewer2D(_ref, _ref2) {
|
|
|
1381
1381
|
relatedLines: relatedLines
|
|
1382
1382
|
}))))));
|
|
1383
1383
|
}
|
|
1384
|
-
|
|
1385
|
-
|
|
1386
|
-
|
|
1387
|
-
|
|
1388
|
-
|
|
1389
|
-
|
|
1390
|
-
|
|
1391
|
-
|
|
1392
|
-
|
|
1393
|
-
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
|
|
1384
|
+
|
|
1385
|
+
// Viewer2D.propTypes = {
|
|
1386
|
+
// state: PropTypes.object.isRequired,
|
|
1387
|
+
// width: PropTypes.number.isRequired,
|
|
1388
|
+
// height: PropTypes.number.isRequired
|
|
1389
|
+
// };
|
|
1390
|
+
|
|
1391
|
+
// Viewer2D.contextTypes = {
|
|
1392
|
+
// viewer2DActions: PropTypes.object.isRequired,
|
|
1393
|
+
// linesActions: PropTypes.object.isRequired,
|
|
1394
|
+
// holesActions: PropTypes.object.isRequired,
|
|
1395
|
+
// verticesActions: PropTypes.object.isRequired,
|
|
1396
|
+
// itemsActions: PropTypes.object.isRequired,
|
|
1397
|
+
// areaActions: PropTypes.object.isRequired,
|
|
1398
|
+
// projectActions: PropTypes.object.isRequired,
|
|
1399
|
+
// catalog: PropTypes.object.isRequired
|
|
1400
|
+
// };
|
|
@@ -4,7 +4,7 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
4
4
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
|
-
import React, {
|
|
7
|
+
import React, { useEffect, useState } from 'react';
|
|
8
8
|
import Viewer3D from "./viewer3d";
|
|
9
9
|
import State3D from "./ruler-utils/state3D";
|
|
10
10
|
var k = 0;
|
|
@@ -1,6 +1,5 @@
|
|
|
1
1
|
import * as Three from 'three';
|
|
2
2
|
import { List } from 'immutable';
|
|
3
|
-
import { COLORS } from "../../../shared-style";
|
|
4
3
|
export default function (width, height, grid, font) {
|
|
5
4
|
var step = grid.properties.get('step');
|
|
6
5
|
var colors = grid.properties.has('color') ? new List([grid.properties.get('color')]) : grid.properties.get('colors');
|
|
@@ -3,7 +3,7 @@ import Ruler3D from "./ruler3D";
|
|
|
3
3
|
import convert from 'convert-units';
|
|
4
4
|
import { GeometryUtils } from "../../../utils/export";
|
|
5
5
|
import { returnReplaceableDeepSearchType } from "../../../components/viewer2d/utils";
|
|
6
|
-
import { DELTA, DISTANCE_EPSILON
|
|
6
|
+
import { DECIMAL_PLACES_2, DELTA, DISTANCE_EPSILON } from "../../../constants";
|
|
7
7
|
import { formatNumber, isNonZeroText } from "../../../utils/math";
|
|
8
8
|
export default function Layer3D(_ref) {
|
|
9
9
|
var layer = _ref.layer,
|
|
@@ -5,7 +5,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import {
|
|
8
|
+
import { TEXT_COLOR_NEUTRAL_6 } from "../../../constants";
|
|
9
9
|
export default function Ruler3D(_ref) {
|
|
10
10
|
var layer = _ref.layer,
|
|
11
11
|
line = _ref.line,
|
|
@@ -1,6 +1,4 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { GeometryUtils } from "../../../utils/export";
|
|
3
|
-
import { isElevationView } from "../../..//utils/helper";
|
|
4
2
|
import { verticesDistance } from "../../../utils/geometry";
|
|
5
3
|
import convert from 'convert-units';
|
|
6
4
|
import Layer3D from "./layer3D";
|
|
@@ -14,7 +14,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
14
14
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
15
15
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
16
16
|
import React from 'react';
|
|
17
|
-
import PropTypes from
|
|
17
|
+
//import PropTypes from 'prop-types';
|
|
18
18
|
import ReactDOM from 'react-dom';
|
|
19
19
|
import * as Three from 'three';
|
|
20
20
|
import { parseData, updateScene } from "./scene-creator";
|
|
@@ -298,18 +298,17 @@ var Viewer3DFirstPerson = /*#__PURE__*/function (_React$Component) {
|
|
|
298
298
|
});
|
|
299
299
|
}
|
|
300
300
|
}]);
|
|
301
|
-
}(React.Component);
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
|
|
307
|
-
|
|
308
|
-
|
|
309
|
-
|
|
310
|
-
|
|
311
|
-
|
|
312
|
-
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
};
|
|
301
|
+
}(React.Component); // Viewer3DFirstPerson.propTypes = {
|
|
302
|
+
// state: PropTypes.object.isRequired,
|
|
303
|
+
// width: PropTypes.number.isRequired,
|
|
304
|
+
// height: PropTypes.number.isRequired
|
|
305
|
+
// };
|
|
306
|
+
// Viewer3DFirstPerson.contextTypes = {
|
|
307
|
+
// areaActions: PropTypes.object.isRequired,
|
|
308
|
+
// holesActions: PropTypes.object.isRequired,
|
|
309
|
+
// itemsActions: PropTypes.object.isRequired,
|
|
310
|
+
// linesActions: PropTypes.object.isRequired,
|
|
311
|
+
// projectActions: PropTypes.object.isRequired,
|
|
312
|
+
// catalog: PropTypes.object
|
|
313
|
+
// };
|
|
314
|
+
export { Viewer3DFirstPerson as default };
|
|
@@ -18,7 +18,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
18
18
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
19
19
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
20
20
|
import React from 'react';
|
|
21
|
-
import PropTypes from
|
|
21
|
+
//import PropTypes from 'prop-types';
|
|
22
22
|
import ReactDOM from 'react-dom';
|
|
23
23
|
import * as Three from 'three';
|
|
24
24
|
import { checkCabinetOverlap, createBacksplash, deleteSpecifiedMeshObjects, fVLine, getDistances, parseData, updateScene, visibleTransformBox } from "./scene-creator";
|
|
@@ -2508,20 +2508,19 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
2508
2508
|
}
|
|
2509
2509
|
}
|
|
2510
2510
|
}]);
|
|
2511
|
-
}(React.Component);
|
|
2512
|
-
|
|
2513
|
-
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
};
|
|
2511
|
+
}(React.Component); // Scene3DViewer.propTypes = {
|
|
2512
|
+
// state: PropTypes.object.isRequired,
|
|
2513
|
+
// width: PropTypes.number.isRequired,
|
|
2514
|
+
// height: PropTypes.number.isRequired,
|
|
2515
|
+
// replaceCabinet: PropTypes.func.isRequired
|
|
2516
|
+
// };
|
|
2517
|
+
// Scene3DViewer.contextTypes = {
|
|
2518
|
+
// areaActions: PropTypes.object.isRequired,
|
|
2519
|
+
// holesActions: PropTypes.object.isRequired,
|
|
2520
|
+
// itemsActions: PropTypes.object.isRequired,
|
|
2521
|
+
// linesActions: PropTypes.object.isRequired,
|
|
2522
|
+
// sceneActions: PropTypes.object.isRequired,
|
|
2523
|
+
// projectActions: PropTypes.object.isRequired,
|
|
2524
|
+
// catalog: PropTypes.object
|
|
2525
|
+
// };
|
|
2526
|
+
export { Scene3DViewer as default };
|
package/es/models.js
CHANGED
|
@@ -14,7 +14,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
14
14
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
15
15
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
16
16
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
17
|
-
import {
|
|
17
|
+
import { fromJS, List, Map, Record } from 'immutable';
|
|
18
18
|
import { MODE_IDLE, UNIT_INCH } from "./constants";
|
|
19
19
|
import { SNAP_MASK } from "./utils/snap";
|
|
20
20
|
import { isEmpty } from "./utils/helper";
|
package/es/plugins/keyboard.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import {
|
|
1
|
+
import { KEYBOARD_BUTTON_CODE, MODE_3D_FIRST_PERSON, MODE_3D_VIEW, MODE_DRAGGING_ITEM_3D, MODE_DRAWING_ITEM, MODE_DRAWING_ITEM_3D, MODE_IDLE, MODE_IDLE_3D, MODE_ROTATING_ITEM_3D, MODE_SNAPPING } from "../constants";
|
|
2
|
+
import { copyProperties, pasteProperties, recreate, redo, remove, rollback, shift2doff, shift2don, toggleSnap, uncreate, undo } from "../actions/project-actions";
|
|
3
3
|
export default function keyboard() {
|
|
4
4
|
return function (store, stateExtractor) {
|
|
5
5
|
window.addEventListener('keydown', function (event) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Hole } from "../class/export";
|
|
2
2
|
import { history } from "../utils/export";
|
|
3
|
-
import {
|
|
3
|
+
import { BEGIN_DRAGGING_HOLE, BEGIN_DRAGGING_HOLE_3D, END_CREATING_HOLE, END_DRAGGING_HOLE, END_DRAGGING_HOLE_3D, END_DRAWING_HOLE, END_DRAWING_HOLE_3D, SELECT_HOLE, SELECT_TOOL_DRAWING_HOLE, SELECT_TOOL_DRAWING_HOLE_3D, UPDATE_DRAGGING_HOLE, UPDATE_DRAGGING_HOLE_CHANGED, UPDATE_DRAGGING_HOLE_RULER_CHANGED, UPDATE_DRAWING_HOLE, UPDATE_DRAWING_HOLE_3D, UPDATE_POPUP_OPEN } from "../constants";
|
|
4
4
|
export default function (state, action) {
|
|
5
5
|
switch (action.type) {
|
|
6
6
|
case UPDATE_DRAGGING_HOLE_RULER_CHANGED:
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
import { Item
|
|
1
|
+
import { Item } from "../class/export";
|
|
2
2
|
import { history } from "../utils/export";
|
|
3
|
-
import {
|
|
4
|
-
// SET_MOVE_STATUS,
|
|
5
|
-
// SET_ROTATE_STATUS
|
|
6
|
-
} from "../constants";
|
|
3
|
+
import { ANIMATE_OBJECT, BEGIN_DRAGGING_ITEM, BEGIN_DRAGGING_ITEM_3D, BEGIN_ROTATING_ITEM, BEGIN_ROTATING_ITEM_3D, DUPLICATE_SELECTED, EDIT_WIDTH, END_CREATING_CABINET, END_DRAGGING_ITEM, END_DRAGGING_ITEM_3D, END_DRAWING_ITEM, END_LOADING, END_ROTATING_ITEM, END_ROTATING_ITEM_3D, ITEM_MOVE_UP, REMOVE_REPLACE_SUBMODULE, REPLACE_ITEM, REPLACE_SUBMODULE, SELECT_ITEM, SELECT_TOOL_DRAWING_ITEM, SELECT_TOOL_DRAWING_ITEM_3D, SET_APPLIANCE_MATERIAL, SET_BACKSPLASH, SET_BACKSPLASH_VISIBLE, SET_COUNTER_TOP, SET_DOOR_HANDLE, SET_DOOR_STYLE, SET_HANDLE_MATERIAL, SET_INITIAL_DOOR_STYLE, SET_MODELLING, SET_MOLDING, SET_WALL_COLOR, STORE_DIST_ARRAY, TOGGLE_LOADING_CABINET, UPDATE_DRAGGING_ITEM, UPDATE_DRAGGING_ITEM_3DX, UPDATE_DRAGGING_ITEM_3DY, UPDATE_DRAGGING_ITEM_CHANGED, UPDATE_DRAWING_ITEM, UPDATE_ITEM_POSITION, UPDATE_MOLDING, UPDATE_POPUP_OPEN, UPDATE_ROTATING_ITEM, UPDATE_ROTATING_ITEM_CHANGED, VALIDATE_ITEM_POSTIONS } from "../constants";
|
|
7
4
|
export default function (state, action) {
|
|
8
5
|
switch (action.type) {
|
|
9
6
|
case STORE_DIST_ARRAY:
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Line } from "../class/export";
|
|
2
2
|
import { history } from "../utils/export";
|
|
3
|
-
import {
|
|
3
|
+
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";
|
|
4
4
|
export default function (state, action) {
|
|
5
5
|
switch (action.type) {
|
|
6
6
|
case SELECT_TOOL_DRAWING_LINE:
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { history } from "../utils/export";
|
|
2
|
-
import {
|
|
2
|
+
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, MODE_DRAWING_LINE, MODE_IDLE, 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, 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";
|
|
3
3
|
import { Project } from "../class/export";
|
|
4
4
|
export default function (state, action) {
|
|
5
5
|
switch (action.type) {
|
package/es/reducers/reducer.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { KitchenConfiguratorAreasReducer, KitchenConfiguratorHolesReducer, KitchenConfiguratorItemsReducer, KitchenConfiguratorLinesReducer,
|
|
1
|
+
import { AREA_ACTIONS, GROUP_ACTIONS, HOLE_ACTIONS, ITEMS_ACTIONS, LINE_ACTIONS, PROJECT_ACTIONS, SCENE_ACTIONS, USER_ACTIONS, VERTEX_ACTIONS, VIEWER2D_ACTIONS, VIEWER3D_ACTIONS } from "../constants";
|
|
2
|
+
import { KitchenConfiguratorAreasReducer, KitchenConfiguratorGroupsReducer, KitchenConfiguratorHolesReducer, KitchenConfiguratorItemsReducer, KitchenConfiguratorLinesReducer, KitchenConfiguratorProjectReducer, KitchenConfiguratorSceneReducer, KitchenConfiguratorUserReducer, KitchenConfiguratorVerticesReducer, KitchenConfiguratorViewer2dReducer, KitchenConfiguratorViewer3dReducer } from "./export";
|
|
3
3
|
import { State } from "../models";
|
|
4
4
|
export var initialState = new State();
|
|
5
5
|
export default function appReducer(state, action) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { Layer } from "../class/export";
|
|
2
2
|
import { history } from "../utils/export";
|
|
3
|
-
import { ADD_LAYER, SELECT_LAYER, SET_LAYER_PROPERTIES,
|
|
3
|
+
import { ADD_LAYER, REMOVE_LAYER, SELECT_LAYER, SET_LAYER_PROPERTIES, UPDATE_MOVING_STATE } from "../constants";
|
|
4
4
|
export default function (state, action) {
|
|
5
5
|
var saveHistory = function saveHistory() {
|
|
6
6
|
return state = state.merge({
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { BEGIN_DRAGGING_VERTEX,
|
|
1
|
+
import { BEGIN_DRAGGING_VERTEX, END_DRAGGING_VERTEX, UPDATE_DRAGGING_VERTEX } from "../constants";
|
|
2
2
|
import { history } from "../utils/export";
|
|
3
3
|
import { Vertex } from "../class/export";
|
|
4
4
|
export default function (state, action) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { CHANGE_BASE_CABINET_MEASURE, CHANGE_WALL_CABINET_MEASURE, CHANGE_WALL_LENGTH_MEASURE, CHANGE_WINDOW_DOOR_MEASURE, MODE_2D_PAN, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, SELECT_TOOL_PAN, SELECT_TOOL_ZOOM_IN, SELECT_TOOL_ZOOM_OUT, UPDATE_2D_CAMERA, UPDATE_CEIL_HEIGHT, UPDATE_CEIL_HEIGHT_UNIT } from "../constants";
|
|
2
2
|
import convert from 'convert-units';
|
|
3
3
|
export default function (state, action) {
|
|
4
4
|
var _state = state,
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { MODE_3D_VIEW,
|
|
1
|
+
import { MODE_3D_FIRST_PERSON, MODE_3D_VIEW, SELECT_TOOL_3D_FIRST_PERSON, SELECT_TOOL_3D_VIEW, UPDATE_3D_CEIL_HEIGHT, UPDATE_3D_CEIL_HEIGHT_UNIT } from "../constants";
|
|
2
2
|
import { Project } from "../class/export";
|
|
3
3
|
import { history } from "../utils/export";
|
|
4
4
|
import convert from 'convert-units';
|
package/es/utils/geometry.js
CHANGED
|
@@ -22,8 +22,8 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
|
22
22
|
* @param {number} y1 Vertex 1 y
|
|
23
23
|
* @return {number}
|
|
24
24
|
*/
|
|
25
|
-
import {
|
|
26
|
-
import { BASE_CABINET_LAYOUTPOS, EPSILON, LINE_THICKNESS, MEPSILON, OVERLAP_INCLUDED, OVERLAP_LINK, OVERLAP_NONE, OVERLAP_SAME, OVERLAP_SOME,
|
|
25
|
+
import { fAbs, toFixedFloat } from "./math.js";
|
|
26
|
+
import { BASE_CABINET_LAYOUTPOS, EPSILON, LINE_THICKNESS, MEPSILON, OVERLAP_INCLUDED, OVERLAP_LINK, OVERLAP_NONE, OVERLAP_SAME, OVERLAP_SOME, UNIT_ANGLE, WALL_CABINET_LAYOUTPOS } from "../constants";
|
|
27
27
|
import convert from 'convert-units';
|
|
28
28
|
import * as Three from 'three';
|
|
29
29
|
import { returnReplaceableDeepSearchType } from "../components/viewer2d/utils.js";
|
|
@@ -2042,7 +2042,7 @@ export function isRightWall(v0, v1) {
|
|
|
2042
2042
|
* OVERLAP_LINK: two lines are linked at the common point, so they can be merged to one line
|
|
2043
2043
|
* OVERLAP_INCLUDED: destLine includes srcLine
|
|
2044
2044
|
* OVERLAP_SOME: two lines are overlapped with some common range, then returns the trimmed segments of srcLine
|
|
2045
|
-
*
|
|
2045
|
+
*
|
|
2046
2046
|
* //////// test - start /////////////
|
|
2047
2047
|
const p1 = { x1: 1413.1313131313132, y1: 1044.949494949495 };
|
|
2048
2048
|
const p2 = { x1: 1476.2626262626263, y1: 1108.0808080808079 };
|
package/es/utils/react-if.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @return {null}
|
|
@@ -12,7 +12,8 @@ export default function If(_ref) {
|
|
|
12
12
|
style: style
|
|
13
13
|
}, children) : children : null;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
15
|
+
|
|
16
|
+
// If.propTypes = {
|
|
17
|
+
// condition: PropTypes.bool.isRequired,
|
|
18
|
+
// style: PropTypes.object
|
|
19
|
+
// };
|
package/es/utils/snap-scene.js
CHANGED
|
@@ -4,9 +4,9 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
4
4
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
|
-
import {
|
|
7
|
+
import { addGridSnap, addLineSegmentSnap, addLineSnap, addPointSnap, SNAP_GRID, SNAP_GUIDE, SNAP_LINE, SNAP_POINT, SNAP_SEGMENT } from "./snap";
|
|
8
8
|
import { GeometryUtils } from "./export";
|
|
9
|
-
import {
|
|
9
|
+
import { List, Map } from 'immutable';
|
|
10
10
|
export function sceneSnapElements(scene) {
|
|
11
11
|
var snapElements = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new List();
|
|
12
12
|
var snapMask = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Map();
|
package/es/utils/snap.js
CHANGED
|
@@ -14,7 +14,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
|
|
|
14
14
|
function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
|
|
15
15
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
16
16
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
17
|
-
import {
|
|
17
|
+
import { List, Map, Record } from 'immutable';
|
|
18
18
|
import * as Geometry from "./geometry";
|
|
19
19
|
export var SNAP_POINT = 'SNAP_POINT';
|
|
20
20
|
export var SNAP_LINE = 'SNAP_LINE';
|