kitchen-simulator 1.1.1-test.30 → 1.1.1-test.32
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 +28 -27
- package/es/KitchenConfiguratorApp.js +33 -35
- package/es/catalog/catalog.js +2 -2
- package/es/catalog/molding/molding-dcm/planner-element.js +2 -0
- package/es/catalog/molding/molding-fbm/planner-element.js +2 -0
- package/es/catalog/molding/molding-lrm/planner-element.js +2 -0
- package/es/catalog/properties/property-checkbox.js +72 -26
- package/es/catalog/properties/property-color.js +10 -12
- package/es/catalog/properties/property-enum.js +58 -16
- package/es/catalog/properties/property-hidden.js +10 -11
- package/es/catalog/properties/property-lenght-measure.js +15 -16
- package/es/catalog/properties/property-length-measure.js +69 -21
- package/es/catalog/properties/property-length-measure_hole.js +15 -16
- package/es/catalog/properties/property-number.js +10 -11
- package/es/catalog/properties/property-read-only.js +9 -10
- package/es/catalog/properties/property-string.js +9 -10
- package/es/catalog/properties/property-toggle.js +10 -11
- package/es/components/content.js +11 -11
- package/es/components/disclaimer/disclaimer.js +86 -66
- package/es/components/style/button.js +7 -8
- package/es/components/style/content-container.js +1 -2
- package/es/components/style/content-title.js +1 -1
- package/es/components/style/form-number-input.js +50 -25
- package/es/components/style/form-number-input_2.js +17 -16
- package/es/components/style/form-select.js +55 -6
- package/es/components/style/form-text-input.js +30 -10
- package/es/components/viewer2d/area.js +6 -7
- 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 +4 -6
- package/es/components/viewer2d/group.js +10 -12
- package/es/components/viewer2d/item.js +14 -14
- package/es/components/viewer2d/layer.js +7 -8
- package/es/components/viewer2d/line.js +7 -8
- package/es/components/viewer2d/ruler.js +8 -8
- package/es/components/viewer2d/rulerDist.js +6 -7
- package/es/components/viewer2d/rulerX.js +17 -17
- package/es/components/viewer2d/rulerY.js +15 -15
- package/es/components/viewer2d/scene.js +12 -10
- package/es/components/viewer2d/snap.js +6 -7
- package/es/components/viewer2d/state.js +6 -7
- package/es/components/viewer2d/utils.js +1 -1
- package/es/components/viewer2d/vertex.js +5 -6
- package/es/components/viewer2d/viewer2d.js +16 -18
- package/es/components/viewer3d/front3D.js +1 -1
- package/es/components/viewer3d/grids/grid-streak.js +1 -0
- 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 +1 -0
- package/es/components/viewer3d/viewer3d-first-person.js +16 -15
- package/es/components/viewer3d/viewer3d.js +18 -17
- package/es/utils/geometry.js +3 -3
- package/es/utils/react-if.js +5 -6
- package/es/utils/snap-scene.js +2 -2
- package/es/utils/snap.js +1 -1
- package/lib/KitchenConfigurator.js +29 -27
- package/lib/KitchenConfiguratorApp.js +34 -35
- package/lib/catalog/molding/molding-dcm/planner-element.js +5 -0
- package/lib/catalog/molding/molding-fbm/planner-element.js +5 -0
- package/lib/catalog/molding/molding-lrm/planner-element.js +5 -0
- package/lib/catalog/properties/property-checkbox.js +74 -26
- package/lib/catalog/properties/property-color.js +11 -11
- package/lib/catalog/properties/property-enum.js +60 -15
- package/lib/catalog/properties/property-hidden.js +13 -11
- package/lib/catalog/properties/property-lenght-measure.js +17 -15
- package/lib/catalog/properties/property-length-measure.js +71 -20
- package/lib/catalog/properties/property-length-measure_hole.js +17 -15
- package/lib/catalog/properties/property-number.js +12 -12
- package/lib/catalog/properties/property-read-only.js +11 -11
- package/lib/catalog/properties/property-string.js +11 -11
- package/lib/catalog/properties/property-toggle.js +11 -11
- package/lib/components/content.js +11 -12
- package/lib/components/disclaimer/disclaimer.js +86 -66
- package/lib/components/style/button.js +8 -8
- package/lib/components/style/content-container.js +2 -2
- package/lib/components/style/content-title.js +2 -1
- package/lib/components/style/form-number-input.js +50 -25
- package/lib/components/style/form-number-input_2.js +18 -16
- package/lib/components/style/form-select.js +55 -6
- package/lib/components/style/form-text-input.js +30 -11
- package/lib/components/viewer2d/area.js +8 -8
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js +9 -8
- package/lib/components/viewer2d/grids/grid-streak.js +9 -8
- package/lib/components/viewer2d/grids/grid-vertical-streak.js +9 -8
- package/lib/components/viewer2d/grids/grids.js +5 -5
- package/lib/components/viewer2d/group.js +10 -13
- package/lib/components/viewer2d/item.js +12 -12
- package/lib/components/viewer2d/layer.js +8 -8
- package/lib/components/viewer2d/line.js +7 -9
- package/lib/components/viewer2d/ruler.js +9 -8
- package/lib/components/viewer2d/rulerDist.js +8 -8
- package/lib/components/viewer2d/rulerX.js +18 -17
- package/lib/components/viewer2d/rulerY.js +16 -15
- package/lib/components/viewer2d/scene.js +12 -9
- package/lib/components/viewer2d/snap.js +6 -8
- package/lib/components/viewer2d/state.js +7 -7
- package/lib/components/viewer2d/vertex.js +5 -7
- package/lib/components/viewer2d/viewer2d.js +17 -18
- package/lib/components/viewer3d/grids/grid-streak.js +1 -0
- package/lib/components/viewer3d/ruler-utils/scene3D.js +1 -0
- package/lib/components/viewer3d/viewer3d-first-person.js +16 -14
- package/lib/components/viewer3d/viewer3d.js +18 -16
- package/lib/utils/geometry.js +1 -1
- package/lib/utils/react-if.js +7 -7
- package/package.json +5 -24
|
@@ -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 { toPlainObject } from "../../utils/helper";
|
|
2
|
+
import { isImmutable, 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
|
-
|
|
2
|
+
import * as 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,8 +59,7 @@ export default function Vertex(_ref) {
|
|
|
59
59
|
style: STYLE
|
|
60
60
|
}));
|
|
61
61
|
}
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
// };
|
|
62
|
+
Vertex.propTypes = {
|
|
63
|
+
vertex: PropTypes.object.isRequired,
|
|
64
|
+
layer: PropTypes.object.isRequired
|
|
65
|
+
};
|
|
@@ -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
|
-
|
|
18
|
+
import * as 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,20 +1381,18 @@ 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
|
-
|
|
1399
|
-
// catalog: PropTypes.object.isRequired
|
|
1400
|
-
// };
|
|
1384
|
+
Viewer2D.propTypes = {
|
|
1385
|
+
state: PropTypes.object.isRequired,
|
|
1386
|
+
width: PropTypes.number.isRequired,
|
|
1387
|
+
height: PropTypes.number.isRequired
|
|
1388
|
+
};
|
|
1389
|
+
Viewer2D.contextTypes = {
|
|
1390
|
+
viewer2DActions: PropTypes.object.isRequired,
|
|
1391
|
+
linesActions: PropTypes.object.isRequired,
|
|
1392
|
+
holesActions: PropTypes.object.isRequired,
|
|
1393
|
+
verticesActions: PropTypes.object.isRequired,
|
|
1394
|
+
itemsActions: PropTypes.object.isRequired,
|
|
1395
|
+
areaActions: PropTypes.object.isRequired,
|
|
1396
|
+
projectActions: PropTypes.object.isRequired,
|
|
1397
|
+
catalog: PropTypes.object.isRequired
|
|
1398
|
+
};
|
|
@@ -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, { useState, useEffect } from 'react';
|
|
8
8
|
import Viewer3D from "./viewer3d";
|
|
9
9
|
import State3D from "./ruler-utils/state3D";
|
|
10
10
|
var k = 0;
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as Three from 'three';
|
|
2
2
|
import { List } from 'immutable';
|
|
3
|
+
import { COLORS } from "../../../shared-style";
|
|
3
4
|
export default function (width, height, grid, font) {
|
|
4
5
|
var step = grid.properties.get('step');
|
|
5
6
|
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 {
|
|
6
|
+
import { DELTA, DISTANCE_EPSILON, DECIMAL_PLACES_2 } 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 { TEXT_COLOR_NEUTRAL_6 } from "../../../constants";
|
|
8
|
+
import { TEXT_COLOR_NEUTRAL_0, TEXT_COLOR_NEUTRAL_6 } from "../../../constants";
|
|
9
9
|
export default function Ruler3D(_ref) {
|
|
10
10
|
var layer = _ref.layer,
|
|
11
11
|
line = _ref.line,
|
|
@@ -13,6 +13,7 @@ export default function Scene3D(_ref) {
|
|
|
13
13
|
mode = _ref.mode,
|
|
14
14
|
downloadFlag = _ref.downloadFlag;
|
|
15
15
|
var layers = scene.layers;
|
|
16
|
+
console.log(layers.toJS());
|
|
16
17
|
var selectedLayer = layers.get(scene.selectedLayer);
|
|
17
18
|
var ceilHeight = selectedLayer.ceilHeight;
|
|
18
19
|
var selectedLine = selectedLayer.lines.get(selectedLayer.selected.lines.toJS()[0]);
|
|
@@ -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
|
-
|
|
17
|
+
import * as 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,17 +298,18 @@ 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
|
-
|
|
301
|
+
}(React.Component);
|
|
302
|
+
export { Viewer3DFirstPerson as default };
|
|
303
|
+
Viewer3DFirstPerson.propTypes = {
|
|
304
|
+
state: PropTypes.object.isRequired,
|
|
305
|
+
width: PropTypes.number.isRequired,
|
|
306
|
+
height: PropTypes.number.isRequired
|
|
307
|
+
};
|
|
308
|
+
Viewer3DFirstPerson.contextTypes = {
|
|
309
|
+
areaActions: PropTypes.object.isRequired,
|
|
310
|
+
holesActions: PropTypes.object.isRequired,
|
|
311
|
+
itemsActions: PropTypes.object.isRequired,
|
|
312
|
+
linesActions: PropTypes.object.isRequired,
|
|
313
|
+
projectActions: PropTypes.object.isRequired,
|
|
314
|
+
catalog: PropTypes.object
|
|
315
|
+
};
|
|
@@ -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
|
-
|
|
21
|
+
import * as 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,19 +2508,20 @@ 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
|
-
|
|
2511
|
+
}(React.Component);
|
|
2512
|
+
export { Scene3DViewer as default };
|
|
2513
|
+
Scene3DViewer.propTypes = {
|
|
2514
|
+
state: PropTypes.object.isRequired,
|
|
2515
|
+
width: PropTypes.number.isRequired,
|
|
2516
|
+
height: PropTypes.number.isRequired,
|
|
2517
|
+
replaceCabinet: PropTypes.func.isRequired
|
|
2518
|
+
};
|
|
2519
|
+
Scene3DViewer.contextTypes = {
|
|
2520
|
+
areaActions: PropTypes.object.isRequired,
|
|
2521
|
+
holesActions: PropTypes.object.isRequired,
|
|
2522
|
+
itemsActions: PropTypes.object.isRequired,
|
|
2523
|
+
linesActions: PropTypes.object.isRequired,
|
|
2524
|
+
sceneActions: PropTypes.object.isRequired,
|
|
2525
|
+
projectActions: PropTypes.object.isRequired,
|
|
2526
|
+
catalog: PropTypes.object
|
|
2527
|
+
};
|
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, UNIT_ANGLE,
|
|
25
|
+
import { toFixedFloat, fAbs } from "./math.js";
|
|
26
|
+
import { BASE_CABINET_LAYOUTPOS, EPSILON, LINE_THICKNESS, MEPSILON, OVERLAP_INCLUDED, OVERLAP_LINK, OVERLAP_NONE, OVERLAP_SAME, OVERLAP_SOME, WALL_CABINET_LAYOUTPOS, UNIT_ANGLE, MIN_ANGLE_DISALLOW_DRAW_WALL } 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
|
-
|
|
2
|
+
import * as PropTypes from 'prop-types';
|
|
3
3
|
|
|
4
4
|
/**
|
|
5
5
|
* @return {null}
|
|
@@ -12,8 +12,7 @@ export default function If(_ref) {
|
|
|
12
12
|
style: style
|
|
13
13
|
}, children) : children : null;
|
|
14
14
|
}
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
// };
|
|
15
|
+
If.propTypes = {
|
|
16
|
+
condition: PropTypes.bool.isRequired,
|
|
17
|
+
style: PropTypes.object
|
|
18
|
+
};
|
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 { SNAP_POINT, SNAP_LINE, SNAP_SEGMENT, SNAP_GRID, SNAP_GUIDE, addPointSnap, addLineSnap, addLineSegmentSnap, addGridSnap } from "./snap";
|
|
8
8
|
import { GeometryUtils } from "./export";
|
|
9
|
-
import {
|
|
9
|
+
import { Map, List } 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 { Map, List, 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';
|
|
@@ -7,6 +7,7 @@ exports["default"] = void 0;
|
|
|
7
7
|
var _axios = _interopRequireDefault(require("axios"));
|
|
8
8
|
var convert = _interopRequireWildcard(require("convert-units"));
|
|
9
9
|
var _index = require("./index");
|
|
10
|
+
var PropTypes = _interopRequireWildcard(require("prop-types"));
|
|
10
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
12
|
var _reactGa = _interopRequireDefault(require("react-ga4"));
|
|
12
13
|
var _reactHotjar = require("react-hotjar");
|
|
@@ -51,7 +52,7 @@ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new T
|
|
|
51
52
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
52
53
|
function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
|
|
53
54
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
54
|
-
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); }
|
|
55
|
+
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); }
|
|
55
56
|
var toolbarW = 0;
|
|
56
57
|
var wrapperStyle = {
|
|
57
58
|
display: 'flex',
|
|
@@ -605,32 +606,33 @@ var KitchenConfigurator = /*#__PURE__*/function (_Component) {
|
|
|
605
606
|
}))));
|
|
606
607
|
}
|
|
607
608
|
}]);
|
|
608
|
-
}(_react.Component);
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
625
|
-
|
|
626
|
-
|
|
627
|
-
|
|
628
|
-
|
|
629
|
-
|
|
630
|
-
|
|
631
|
-
|
|
632
|
-
|
|
633
|
-
|
|
609
|
+
}(_react.Component);
|
|
610
|
+
KitchenConfigurator.propTypes = {
|
|
611
|
+
translator: PropTypes.instanceOf(_translator["default"]),
|
|
612
|
+
catalog: PropTypes.instanceOf(_catalog["default"]),
|
|
613
|
+
allowProjectFileSupport: PropTypes.bool,
|
|
614
|
+
plugins: PropTypes.arrayOf(PropTypes.func),
|
|
615
|
+
autosaveKey: PropTypes.string,
|
|
616
|
+
autosaveDelay: PropTypes.number,
|
|
617
|
+
width: PropTypes.number.isRequired,
|
|
618
|
+
height: PropTypes.number.isRequired,
|
|
619
|
+
stateExtractor: PropTypes.func.isRequired,
|
|
620
|
+
toolbarButtons: PropTypes.array,
|
|
621
|
+
sidebarComponents: PropTypes.array,
|
|
622
|
+
footerbarComponents: PropTypes.array,
|
|
623
|
+
customContents: PropTypes.object,
|
|
624
|
+
softwareSignature: PropTypes.string,
|
|
625
|
+
configData: PropTypes.object
|
|
626
|
+
};
|
|
627
|
+
KitchenConfigurator.contextTypes = {
|
|
628
|
+
store: PropTypes.object.isRequired
|
|
629
|
+
};
|
|
630
|
+
KitchenConfigurator.childContextTypes = _objectSpread(_objectSpread({}, (0, _objectsUtils.objectsMap)(_export["default"], function () {
|
|
631
|
+
return PropTypes.object;
|
|
632
|
+
})), {}, {
|
|
633
|
+
translator: PropTypes.object,
|
|
634
|
+
catalog: PropTypes.object
|
|
635
|
+
});
|
|
634
636
|
KitchenConfigurator.defaultProps = {
|
|
635
637
|
translator: new _translator["default"](),
|
|
636
638
|
catalog: new _catalog["default"](),
|
|
@@ -6,8 +6,10 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = KitchenConfiguratorApp;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
+
var PropTypes = _interopRequireWildcard(require("prop-types"));
|
|
9
10
|
var _reactRedux = require("react-redux");
|
|
10
11
|
var _redux = require("redux");
|
|
12
|
+
var Models = _interopRequireWildcard(require("./models"));
|
|
11
13
|
var _KitchenConfigurator = _interopRequireDefault(require("./KitchenConfigurator"));
|
|
12
14
|
var _AppContext = _interopRequireDefault(require("./AppContext"));
|
|
13
15
|
var _catalog = _interopRequireDefault(require("./catalog/catalog"));
|
|
@@ -25,7 +27,7 @@ var _reactHotjar = require("react-hotjar");
|
|
|
25
27
|
var Sentry = _interopRequireWildcard(require("@sentry/react"));
|
|
26
28
|
var _projectActions = require("./actions/project-actions");
|
|
27
29
|
var _exporter = _interopRequireDefault(require("./catalog/utils/exporter"));
|
|
28
|
-
var _excluded = ["width", "height", "projectElement", "categoryData", "dataBundle", "configData", "toolbarButtons", "options", "user", "auth", "featureFlags", "sentry", "analytics", "onEvent", "onSave", "onError"];
|
|
30
|
+
var _excluded = ["width", "height", "projectElement", "categoryData", "dataBundle", "configData", "toolbarButtons", "options", "user", "auth", "featureFlags", "sentry", "analytics", "onEvent", "onSave", "onError"];
|
|
29
31
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
30
32
|
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t2 in e) "default" !== _t2 && {}.hasOwnProperty.call(e, _t2) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t2)) && (i.get || i.set) ? o(f, _t2, i) : f[_t2] = e[_t2]); return f; })(e, t); }
|
|
31
33
|
function _extends() { return _extends = Object.assign ? Object.assign.bind() : function (n) { for (var e = 1; e < arguments.length; e++) { var t = arguments[e]; for (var r in t) ({}).hasOwnProperty.call(t, r) && (n[r] = t[r]); } return n; }, _extends.apply(null, arguments); }
|
|
@@ -467,37 +469,34 @@ function KitchenConfiguratorApp(props) {
|
|
|
467
469
|
|
|
468
470
|
/* ============================== prop types ============================== */
|
|
469
471
|
|
|
470
|
-
|
|
471
|
-
|
|
472
|
-
|
|
473
|
-
|
|
474
|
-
|
|
475
|
-
|
|
476
|
-
|
|
477
|
-
|
|
478
|
-
|
|
479
|
-
|
|
480
|
-
|
|
481
|
-
|
|
482
|
-
|
|
483
|
-
|
|
484
|
-
|
|
485
|
-
|
|
486
|
-
|
|
487
|
-
|
|
488
|
-
|
|
489
|
-
|
|
490
|
-
|
|
491
|
-
|
|
492
|
-
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
|
|
496
|
-
|
|
497
|
-
|
|
498
|
-
|
|
499
|
-
|
|
500
|
-
|
|
501
|
-
// onError: PropTypes.func,
|
|
502
|
-
// store: PropTypes.object
|
|
503
|
-
// };
|
|
472
|
+
KitchenConfiguratorApp.propTypes = {
|
|
473
|
+
width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
474
|
+
height: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
475
|
+
projectElement: PropTypes.arrayOf(PropTypes.object),
|
|
476
|
+
categoryData: PropTypes.any,
|
|
477
|
+
dataBundle: PropTypes.any,
|
|
478
|
+
configData: PropTypes.any,
|
|
479
|
+
catalog: PropTypes.oneOfType([PropTypes.object, PropTypes.instanceOf(Models.Catalog)]),
|
|
480
|
+
logoImg: PropTypes.any,
|
|
481
|
+
companyUrl: PropTypes.string,
|
|
482
|
+
toolbarButtons: PropTypes.any,
|
|
483
|
+
options: PropTypes.object,
|
|
484
|
+
user: PropTypes.object,
|
|
485
|
+
auth: PropTypes.object,
|
|
486
|
+
featureFlags: PropTypes.object,
|
|
487
|
+
sentry: PropTypes.shape({
|
|
488
|
+
dsn: PropTypes.string,
|
|
489
|
+
environment: PropTypes.string
|
|
490
|
+
}),
|
|
491
|
+
analytics: PropTypes.shape({
|
|
492
|
+
ga4Id: PropTypes.string,
|
|
493
|
+
hotjar: PropTypes.shape({
|
|
494
|
+
id: PropTypes.oneOfType([PropTypes.string, PropTypes.number]),
|
|
495
|
+
sv: PropTypes.oneOfType([PropTypes.string, PropTypes.number])
|
|
496
|
+
})
|
|
497
|
+
}),
|
|
498
|
+
onEvent: PropTypes.func,
|
|
499
|
+
onSave: PropTypes.func,
|
|
500
|
+
onError: PropTypes.func,
|
|
501
|
+
store: PropTypes.object
|
|
502
|
+
};
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports["default"] = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var Three = _interopRequireWildcard(require("three"));
|
|
7
10
|
var _loadObj = require("../../utils/load-obj");
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
13
|
var cached3DMolding = null;
|
|
9
14
|
var _default = exports["default"] = {
|
|
10
15
|
name: 'Dcm',
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports["default"] = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var Three = _interopRequireWildcard(require("three"));
|
|
7
10
|
var _loadObj = require("../../utils/load-obj");
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
13
|
var cached3DMolding = null;
|
|
9
14
|
var _default = exports["default"] = {
|
|
10
15
|
name: 'Fbm',
|
|
@@ -1,10 +1,15 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
+
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); }
|
|
3
4
|
Object.defineProperty(exports, "__esModule", {
|
|
4
5
|
value: true
|
|
5
6
|
});
|
|
6
7
|
exports["default"] = void 0;
|
|
8
|
+
var _react = _interopRequireDefault(require("react"));
|
|
9
|
+
var Three = _interopRequireWildcard(require("three"));
|
|
7
10
|
var _loadObj = require("../../utils/load-obj");
|
|
11
|
+
function _interopRequireWildcard(e, t) { if ("function" == typeof WeakMap) var r = new WeakMap(), n = new WeakMap(); return (_interopRequireWildcard = function _interopRequireWildcard(e, t) { if (!t && e && e.__esModule) return e; var o, i, f = { __proto__: null, "default": e }; if (null === e || "object" != _typeof(e) && "function" != typeof e) return f; if (o = t ? n : r) { if (o.has(e)) return o.get(e); o.set(e, f); } for (var _t in e) "default" !== _t && {}.hasOwnProperty.call(e, _t) && ((i = (o = Object.defineProperty) && Object.getOwnPropertyDescriptor(e, _t)) && (i.get || i.set) ? o(f, _t, i) : f[_t] = e[_t]); return f; })(e, t); }
|
|
12
|
+
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
8
13
|
var cached3DMolding = null;
|
|
9
14
|
var _default = exports["default"] = {
|
|
10
15
|
name: 'Lrm',
|