kitchen-simulator 1.1.1-test.3 → 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 +36 -37
- package/es/KitchenConfiguratorApp.js +47 -45
- package/es/actions/area-actions.js +1 -1
- package/es/actions/export.js +10 -10
- package/es/actions/groups-actions.js +1 -1
- 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/areas/area/planner-element.js +6 -6
- package/es/catalog/catalog.js +3 -3
- package/es/catalog/factories/area-factory-3d.js +1 -1
- package/es/catalog/factories/area-factory.js +3 -3
- package/es/catalog/factories/export.js +2 -2
- package/es/catalog/factories/wall-factory-3d.js +5 -5
- package/es/catalog/factories/wall-factory.js +7 -6
- package/es/catalog/holes/door-closet/planner-element.js +2 -2
- package/es/catalog/holes/door-exterior/planner-element.js +2 -2
- package/es/catalog/holes/door-interior/planner-element.js +2 -2
- package/es/catalog/holes/door-sliding/planner-element.js +2 -2
- package/es/catalog/holes/doorway-framed/planner-element.js +2 -2
- package/es/catalog/holes/export.js +13 -13
- package/es/catalog/holes/window-clear/planner-element.js +2 -2
- package/es/catalog/holes/window-cross/planner-element.js +2 -2
- package/es/catalog/holes/window-double-hung/planner-element.js +2 -2
- package/es/catalog/holes/window-vertical/planner-element.js +2 -2
- package/es/catalog/lines/wall/planner-element.js +10 -10
- package/es/catalog/molding/molding-dcm/planner-element.js +1 -3
- package/es/catalog/molding/molding-fbm/planner-element.js +1 -3
- package/es/catalog/molding/molding-lrm/planner-element.js +1 -3
- package/es/catalog/properties/export.js +9 -9
- package/es/catalog/properties/property-checkbox.js +11 -12
- package/es/catalog/properties/property-color.js +13 -11
- 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 +19 -18
- package/es/catalog/properties/property-length-measure.js +18 -17
- package/es/catalog/properties/property-length-measure_hole.js +19 -18
- package/es/catalog/properties/property-number.js +13 -12
- package/es/catalog/properties/property-read-only.js +12 -11
- package/es/catalog/properties/property-string.js +12 -11
- package/es/catalog/properties/property-toggle.js +12 -11
- package/es/catalog/utils/geom-utils.js +1 -1
- package/es/catalog/utils/item-loader.js +6 -6
- package/es/catalog/utils/load-obj.js +1 -1
- package/es/catalog/utils/mtl-loader.js +2 -1
- package/es/catalog/utils/obj-loader.js +2 -1
- package/es/class/area.js +2 -2
- package/es/class/export.js +10 -10
- package/es/class/group.js +4 -4
- package/es/class/guide.js +1 -1
- package/es/class/hole.js +5 -6
- package/es/class/item.js +10 -12
- package/es/class/layer.js +4 -4
- package/es/class/line.js +4 -4
- package/es/class/project.js +8 -8
- package/es/class/vertex.js +5 -5
- package/es/components/content.js +16 -15
- package/es/components/disclaimer/disclaimer.js +66 -86
- package/es/components/export.js +3 -3
- package/es/components/style/button.js +9 -8
- package/es/components/style/cancel-button.js +1 -1
- package/es/components/style/content-container.js +2 -1
- package/es/components/style/content-title.js +2 -2
- package/es/components/style/delete-button.js +2 -2
- package/es/components/style/export.js +14 -14
- package/es/components/style/form-color-input.js +1 -1
- package/es/components/style/form-number-input.js +21 -22
- package/es/components/style/form-number-input_2.js +18 -19
- package/es/components/style/form-select.js +1 -2
- package/es/components/style/form-slider.js +1 -1
- package/es/components/style/form-submit-button.js +2 -2
- package/es/components/style/form-text-input.js +1 -2
- package/es/components/viewer2d/area.js +9 -8
- package/es/components/viewer2d/export.js +14 -14
- 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 +7 -5
- package/es/components/viewer2d/group.js +14 -12
- package/es/components/viewer2d/item.js +17 -17
- package/es/components/viewer2d/layer.js +11 -10
- package/es/components/viewer2d/line.js +14 -16
- package/es/components/viewer2d/ruler.js +9 -9
- package/es/components/viewer2d/rulerDist.js +7 -6
- package/es/components/viewer2d/rulerX.js +18 -18
- package/es/components/viewer2d/rulerY.js +16 -16
- package/es/components/viewer2d/scene.js +11 -13
- package/es/components/viewer2d/snap.js +8 -7
- package/es/components/viewer2d/state.js +10 -9
- package/es/components/viewer2d/utils.js +2 -2
- package/es/components/viewer2d/vertex.js +7 -6
- package/es/components/viewer2d/viewer2d.js +27 -25
- package/es/components/viewer3d/front3D.js +3 -3
- package/es/components/viewer3d/grid-creator.js +2 -2
- package/es/components/viewer3d/grids/grid-horizontal-streak.js +1 -1
- package/es/components/viewer3d/grids/grid-streak.js +0 -1
- package/es/components/viewer3d/grids/grid-vertical-streak.js +1 -1
- package/es/components/viewer3d/libs/mtl-loader.js +1 -1
- package/es/components/viewer3d/libs/obj-loader.js +1 -1
- package/es/components/viewer3d/libs/orbit-controls.js +5 -4
- package/es/components/viewer3d/libs/pointer-lock-controls.js +4 -3
- package/es/components/viewer3d/pointer-lock-navigation.js +1 -1
- package/es/components/viewer3d/ruler-utils/itemRect.js +1 -1
- package/es/components/viewer3d/ruler-utils/layer3D.js +5 -5
- package/es/components/viewer3d/ruler-utils/ruler3D.js +1 -1
- package/es/components/viewer3d/ruler-utils/scene3D.js +2 -4
- package/es/components/viewer3d/ruler-utils/state3D.js +1 -1
- package/es/components/viewer3d/scene-creator.js +10 -10
- package/es/components/viewer3d/viewer3d-first-person.js +20 -21
- package/es/components/viewer3d/viewer3d.js +31 -34
- package/es/index.js +14 -14
- package/es/models.js +4 -4
- package/es/plugins/autosave.js +1 -1
- package/es/plugins/console-debugger.js +1 -1
- package/es/plugins/export.js +3 -3
- package/es/plugins/keyboard.js +2 -2
- package/es/reducers/areas-reducer.js +2 -2
- package/es/reducers/export.js +11 -11
- package/es/reducers/groups-reducer.js +3 -3
- package/es/reducers/holes-reducer.js +3 -3
- package/es/reducers/items-reducer.js +3 -6
- package/es/reducers/lines-reducer.js +3 -3
- package/es/reducers/project-reducer.js +3 -3
- package/es/reducers/reducer.js +3 -3
- package/es/reducers/scene-reducer.js +3 -3
- package/es/reducers/user-reducer.js +1 -2
- package/es/reducers/vertices-reducer.js +3 -3
- package/es/reducers/viewer2d-reducer.js +1 -1
- package/es/reducers/viewer3d-reducer.js +3 -3
- package/es/styles/export.js +1 -1
- package/es/translator/translator.js +3 -3
- package/es/utils/export.js +11 -11
- package/es/utils/geometry.js +6 -6
- package/es/utils/get-edges-of-subgraphs.js +2 -1
- package/es/utils/graph-cycles.js +2 -3
- package/es/utils/graph-inner-cycles.js +3 -3
- package/es/utils/graph.js +2 -1
- package/es/utils/helper.js +3 -71
- package/es/utils/molding.js +5 -5
- package/es/utils/react-if.js +6 -5
- package/es/utils/snap-scene.js +3 -3
- package/es/utils/snap.js +2 -2
- package/lib/KitchenConfigurator.js +27 -29
- package/lib/KitchenConfiguratorApp.js +42 -41
- package/lib/catalog/areas/area/planner-element.js +7 -7
- package/lib/catalog/factories/wall-factory-3d.js +1 -1
- package/lib/catalog/factories/wall-factory.js +1 -1
- package/lib/catalog/holes/door-closet/planner-element.js +1 -1
- package/lib/catalog/holes/door-exterior/planner-element.js +1 -1
- package/lib/catalog/holes/door-interior/planner-element.js +1 -1
- package/lib/catalog/holes/door-sliding/planner-element.js +1 -1
- package/lib/catalog/holes/doorway-framed/planner-element.js +1 -1
- package/lib/catalog/holes/export.js +13 -13
- package/lib/catalog/holes/window-clear/planner-element.js +1 -1
- package/lib/catalog/holes/window-cross/planner-element.js +1 -1
- package/lib/catalog/holes/window-double-hung/planner-element.js +1 -1
- package/lib/catalog/holes/window-vertical/planner-element.js +1 -1
- package/lib/catalog/lines/wall/planner-element.js +11 -11
- 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 -12
- 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/catalog/utils/geom-utils.js +1 -1
- package/lib/catalog/utils/item-loader.js +4 -6
- package/lib/catalog/utils/load-obj.js +1 -1
- package/lib/catalog/utils/mtl-loader.js +6 -2
- package/lib/catalog/utils/obj-loader.js +6 -2
- package/lib/class/item.js +3 -5
- package/lib/class/line.js +1 -1
- package/lib/class/vertex.js +1 -1
- package/lib/components/content.js +12 -10
- package/lib/components/disclaimer/disclaimer.js +66 -86
- 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 +12 -13
- 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 +19 -20
- package/lib/components/viewer3d/grids/grid-streak.js +0 -1
- package/lib/components/viewer3d/libs/mtl-loader.js +5 -1
- package/lib/components/viewer3d/libs/obj-loader.js +5 -1
- package/lib/components/viewer3d/libs/orbit-controls.js +9 -4
- package/lib/components/viewer3d/libs/pointer-lock-controls.js +8 -3
- package/lib/components/viewer3d/ruler-utils/scene3D.js +0 -2
- package/lib/components/viewer3d/scene-creator.js +1 -1
- package/lib/components/viewer3d/viewer3d-first-person.js +14 -16
- package/lib/components/viewer3d/viewer3d.js +21 -24
- package/lib/reducers/user-reducer.js +0 -1
- package/lib/utils/geometry.js +1 -1
- package/lib/utils/get-edges-of-subgraphs.js +7 -1
- package/lib/utils/graph-cycles.js +9 -9
- package/lib/utils/graph.js +9 -3
- package/lib/utils/helper.js +2 -70
- package/lib/utils/react-if.js +7 -5
- package/package.json +12 -28
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import * as Geometry from
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
3
|
+
import * as Geometry from "../../utils/geometry";
|
|
4
4
|
var STYLE = {
|
|
5
5
|
stroke: '#D32F2F',
|
|
6
6
|
strokeWidth: '1px'
|
|
@@ -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,10 +5,10 @@ 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 'prop-types';
|
|
9
|
-
import Scene from
|
|
10
|
-
import Snap from
|
|
11
|
-
import * as SharedStyle from
|
|
8
|
+
//import PropTypes from 'prop-types';
|
|
9
|
+
import Scene from "./scene";
|
|
10
|
+
import Snap from "./snap";
|
|
11
|
+
import * as SharedStyle from "../../shared-style";
|
|
12
12
|
var guideStyle = {
|
|
13
13
|
stroke: SharedStyle.SECONDARY_COLOR.main,
|
|
14
14
|
strokewidth: '2.5px'
|
|
@@ -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,6 +1,6 @@
|
|
|
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 {
|
|
3
|
-
import { INSTALLATION_SUFFIX_TYPE, INSTALLATION_TYPE_NAME, INSTALLATION_TYPE_SKU_SUFFIX, TOE_KICK_MOLDING } from
|
|
2
|
+
import { toPlainObject } from "../../utils/helper";
|
|
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) {
|
|
6
6
|
if (elementType) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import PropTypes from 'prop-types';
|
|
3
|
-
import * as SharedStyle from
|
|
2
|
+
//import PropTypes from 'prop-types';
|
|
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;
|
|
6
6
|
var STYLE = {
|
|
@@ -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,19 +15,19 @@ 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 'prop-types';
|
|
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
|
-
import * as constants from
|
|
21
|
-
import
|
|
22
|
-
import
|
|
23
|
-
import
|
|
24
|
-
import {
|
|
25
|
-
import { GeometryUtils } from
|
|
26
|
-
import FormNumberInput from
|
|
20
|
+
import * as constants from "../../constants";
|
|
21
|
+
import State from "./state";
|
|
22
|
+
import * as SharedStyle from "../../shared-style";
|
|
23
|
+
import { RulerX, RulerY } from "./export";
|
|
24
|
+
import { DECIMAL_PLACES_2, LINE_THICKNESS, MIN_ANGLE_DISALLOW_DRAW_WALL, MODE_ELEVATION_VIEW, MODE_IDLE, UNIT_ANGLE } from "../../constants";
|
|
25
|
+
import { GeometryUtils } from "../../utils/export";
|
|
26
|
+
import FormNumberInput from "../style/form-number-input";
|
|
27
27
|
import convert from 'convert-units';
|
|
28
28
|
import { Map } from 'immutable';
|
|
29
|
-
import { formatNumber } from
|
|
30
|
-
import { isEmpty } from
|
|
29
|
+
import { formatNumber } from "../../utils/math";
|
|
30
|
+
import { isEmpty } from "../../utils/helper";
|
|
31
31
|
|
|
32
32
|
// variables
|
|
33
33
|
var pinFlag = false;
|
|
@@ -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,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 React, {
|
|
8
|
-
import Viewer3D from
|
|
9
|
-
import State3D from
|
|
7
|
+
import React, { useEffect, useState } from 'react';
|
|
8
|
+
import Viewer3D from "./viewer3d";
|
|
9
|
+
import State3D from "./ruler-utils/state3D";
|
|
10
10
|
var k = 0;
|
|
11
11
|
export default function Front3D(_ref, _ref2) {
|
|
12
12
|
var width = _ref.width,
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Three from 'three';
|
|
2
|
-
import { HELVETIKER } from
|
|
3
|
-
import gridStreak from
|
|
2
|
+
import { HELVETIKER } from "./libs/helvetiker_regular.typeface.js";
|
|
3
|
+
import gridStreak from "./grids/grid-streak";
|
|
4
4
|
import { FontLoader } from 'three/examples/jsm/loaders/FontLoader.js';
|
|
5
5
|
export default function createGrid(scene) {
|
|
6
6
|
var gridMesh = new Three.Object3D();
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Three from 'three';
|
|
2
2
|
import { List } from 'immutable';
|
|
3
|
-
import { COLORS } from
|
|
3
|
+
import { COLORS } from "../../../shared-style";
|
|
4
4
|
export default function (width, height, grid, font) {
|
|
5
5
|
var step = grid.properties.get('step');
|
|
6
6
|
var colors = grid.properties.has('color') ? new List([grid.properties.get('color')]) : grid.properties.get('colors');
|
|
@@ -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');
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as Three from 'three';
|
|
2
2
|
import { List } from 'immutable';
|
|
3
|
-
import { COLORS } from
|
|
3
|
+
import { COLORS } from "../../../shared-style";
|
|
4
4
|
export default function (width, height, grid, font) {
|
|
5
5
|
var step = grid.properties.get('step');
|
|
6
6
|
var colors = grid.properties.has('color') ? new List([grid.properties.get('color')]) : grid.properties.get('colors');
|
|
@@ -14,8 +14,7 @@
|
|
|
14
14
|
// Pan - right mouse, or arrow keys / touch: three finter swipe
|
|
15
15
|
|
|
16
16
|
var THREE = window.THREE || require('three');
|
|
17
|
-
|
|
18
|
-
module.exports = OrbitControls = function OrbitControls(object, domElement) {
|
|
17
|
+
function OrbitControls(object, domElement) {
|
|
19
18
|
this.object = object;
|
|
20
19
|
this.domElement = domElement !== undefined ? domElement : document;
|
|
21
20
|
|
|
@@ -623,7 +622,7 @@ module.exports = OrbitControls = function OrbitControls(object, domElement) {
|
|
|
623
622
|
// force an update at start
|
|
624
623
|
|
|
625
624
|
this.update();
|
|
626
|
-
}
|
|
625
|
+
}
|
|
627
626
|
OrbitControls.prototype = Object.create(THREE.EventDispatcher.prototype);
|
|
628
627
|
OrbitControls.prototype.constructor = OrbitControls;
|
|
629
628
|
Object.defineProperties(OrbitControls.prototype, {
|
|
@@ -695,4 +694,6 @@ Object.defineProperties(OrbitControls.prototype, {
|
|
|
695
694
|
this.dampingFactor = value;
|
|
696
695
|
}
|
|
697
696
|
}
|
|
698
|
-
});
|
|
697
|
+
});
|
|
698
|
+
export default OrbitControls;
|
|
699
|
+
export { OrbitControls };
|
|
@@ -3,8 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
|
|
5
5
|
var THREE = window.THREE || require('three');
|
|
6
|
-
|
|
7
|
-
module.exports = PointerLockControls = function PointerLockControls(camera) {
|
|
6
|
+
function PointerLockControls(camera) {
|
|
8
7
|
var scope = this;
|
|
9
8
|
camera.rotation.set(0, 0, 0);
|
|
10
9
|
var pitchObject = new THREE.Object3D();
|
|
@@ -42,4 +41,6 @@ module.exports = PointerLockControls = function PointerLockControls(camera) {
|
|
|
42
41
|
return v;
|
|
43
42
|
};
|
|
44
43
|
}();
|
|
45
|
-
}
|
|
44
|
+
}
|
|
45
|
+
export default PointerLockControls;
|
|
46
|
+
export { PointerLockControls };
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import PointerLockControls from
|
|
1
|
+
import PointerLockControls from "./libs/pointer-lock-controls";
|
|
2
2
|
export function initPointerLock(camera, rendererElement) {
|
|
3
3
|
var havePointerLock = 'pointerLockElement' in document || 'mozPointerLockElement' in document || 'webkitPointerLockElement' in document;
|
|
4
4
|
var pointerlockchange = function pointerlockchange(event) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import { MODE_BACK_ELEVATION_VIEW, MODE_FRONT_ELEVATION_VIEW, MODE_LEFT_ELEVATION_VIEW, MODE_RIGHT_ELEVATION_VIEW } from
|
|
2
|
+
import { MODE_BACK_ELEVATION_VIEW, MODE_FRONT_ELEVATION_VIEW, MODE_LEFT_ELEVATION_VIEW, MODE_RIGHT_ELEVATION_VIEW } from "../../../constants";
|
|
3
3
|
import convert from 'convert-units';
|
|
4
4
|
export default function ItemRect(_ref) {
|
|
5
5
|
var scene = _ref.scene,
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import Ruler3D from
|
|
2
|
+
import Ruler3D from "./ruler3D";
|
|
3
3
|
import convert from 'convert-units';
|
|
4
|
-
import { GeometryUtils } from
|
|
5
|
-
import { returnReplaceableDeepSearchType } from
|
|
6
|
-
import { DELTA, DISTANCE_EPSILON
|
|
7
|
-
import { formatNumber, isNonZeroText } from
|
|
4
|
+
import { GeometryUtils } from "../../../utils/export";
|
|
5
|
+
import { returnReplaceableDeepSearchType } from "../../../components/viewer2d/utils";
|
|
6
|
+
import { DECIMAL_PLACES_2, DELTA, DISTANCE_EPSILON } from "../../../constants";
|
|
7
|
+
import { formatNumber, isNonZeroText } from "../../../utils/math";
|
|
8
8
|
export default function Layer3D(_ref) {
|
|
9
9
|
var layer = _ref.layer,
|
|
10
10
|
frontRect = _ref.frontRect,
|
|
@@ -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,9 +1,7 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import {
|
|
3
|
-
import { isElevationView } from '../../..//utils/helper';
|
|
4
|
-
import { verticesDistance } from '../../../utils/geometry';
|
|
2
|
+
import { verticesDistance } from "../../../utils/geometry";
|
|
5
3
|
import convert from 'convert-units';
|
|
6
|
-
import Layer3D from
|
|
4
|
+
import Layer3D from "./layer3D";
|
|
7
5
|
export function compareVertices(v0, v1) {
|
|
8
6
|
return v0.x === v1.x ? v0.y - v1.y : v0.x - v1.x;
|
|
9
7
|
}
|
|
@@ -13,17 +13,17 @@ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(
|
|
|
13
13
|
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; }
|
|
14
14
|
import * as Three from 'three';
|
|
15
15
|
import { Color, Group } from 'three';
|
|
16
|
-
import createGrid from
|
|
17
|
-
import { disposeObject } from
|
|
18
|
-
import { ANIMATE_STEP_MAX, ANIMATE_STEP_MIN, ARRAY_3D_MODES, ARROW_TEXT_BACKCOLOR, ARROW_TEXT_FONTFACE, ARROW_TEXT_FORECOLOR, BASE_CABINET_LAYOUTPOS, BOTTOM_MOLDING_LOCATION, DECIMAL_PLACES_2, DIFFERENT_VALUES_PATH_LENGTH, DISTANCE_EPSILON, EPSILON, MIDDLE_MOLDING_LOCATION, MODE_DRAGGING_ITEM_3D, MODE_DRAWING_ITEM_3D, MODE_IDLE, MODE_IDLE_3D, MODE_ROTATING_ITEM_3D, OBJTYPE_MESH, SHADE_DARK_PURPLE_COLOR, TOP_MOLDING_LOCATION, UNIT_CENTIMETER, WALL_CABINET_LAYOUTPOS } from
|
|
19
|
-
import { GeometryUtils, IDBroker, MoldingUtils } from
|
|
16
|
+
import createGrid from "./grid-creator";
|
|
17
|
+
import { disposeObject } from "./three-memory-cleaner";
|
|
18
|
+
import { ANIMATE_STEP_MAX, ANIMATE_STEP_MIN, ARRAY_3D_MODES, ARROW_TEXT_BACKCOLOR, ARROW_TEXT_FONTFACE, ARROW_TEXT_FORECOLOR, BASE_CABINET_LAYOUTPOS, BOTTOM_MOLDING_LOCATION, DECIMAL_PLACES_2, DIFFERENT_VALUES_PATH_LENGTH, DISTANCE_EPSILON, EPSILON, MIDDLE_MOLDING_LOCATION, MODE_DRAGGING_ITEM_3D, MODE_DRAWING_ITEM_3D, MODE_IDLE, MODE_IDLE_3D, MODE_ROTATING_ITEM_3D, OBJTYPE_MESH, SHADE_DARK_PURPLE_COLOR, TOP_MOLDING_LOCATION, UNIT_CENTIMETER, WALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
19
|
+
import { GeometryUtils, IDBroker, MoldingUtils } from "../../utils/export";
|
|
20
20
|
import convert from 'convert-units';
|
|
21
|
-
import { verticesDistance } from
|
|
22
|
-
import * as GeomUtils from
|
|
23
|
-
import { loadTexture } from
|
|
24
|
-
import { returnReplaceableDeepSearchType } from
|
|
25
|
-
import { animateDoor, isElevationView, isEmpty, replaceMeshesWithLineSegments, translateDrawer } from
|
|
26
|
-
import { formatNumber } from
|
|
21
|
+
import { verticesDistance } from "../../utils/geometry";
|
|
22
|
+
import * as GeomUtils from "../../catalog/utils/geom-utils";
|
|
23
|
+
import { loadTexture } from "../../catalog/utils/item-loader";
|
|
24
|
+
import { returnReplaceableDeepSearchType } from "../viewer2d/utils";
|
|
25
|
+
import { animateDoor, isElevationView, isEmpty, replaceMeshesWithLineSegments, translateDrawer } from "../../utils/helper";
|
|
26
|
+
import { formatNumber } from "../../utils/math";
|
|
27
27
|
var transformBox;
|
|
28
28
|
export var fVLine = [];
|
|
29
29
|
var scene_mode = null;
|
|
@@ -14,15 +14,15 @@ 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 'prop-types';
|
|
17
|
+
//import PropTypes from 'prop-types';
|
|
18
18
|
import ReactDOM from 'react-dom';
|
|
19
19
|
import * as Three from 'three';
|
|
20
|
-
import { parseData, updateScene } from
|
|
21
|
-
import { disposeScene } from
|
|
20
|
+
import { parseData, updateScene } from "./scene-creator";
|
|
21
|
+
import { disposeScene } from "./three-memory-cleaner";
|
|
22
22
|
import diff from 'immutablediff';
|
|
23
|
-
import { initPointerLock } from
|
|
24
|
-
import { firstPersonOnKeyDown, firstPersonOnKeyUp } from
|
|
25
|
-
import * as SharedStyle from
|
|
23
|
+
import { initPointerLock } from "./pointer-lock-navigation";
|
|
24
|
+
import { firstPersonOnKeyDown, firstPersonOnKeyUp } from "./libs/first-person-controls";
|
|
25
|
+
import * as SharedStyle from "../../shared-style";
|
|
26
26
|
var Viewer3DFirstPerson = /*#__PURE__*/function (_React$Component) {
|
|
27
27
|
function Viewer3DFirstPerson(props) {
|
|
28
28
|
var _this;
|
|
@@ -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,27 +18,25 @@ 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 'prop-types';
|
|
21
|
+
//import PropTypes from 'prop-types';
|
|
22
22
|
import ReactDOM from 'react-dom';
|
|
23
23
|
import * as Three from 'three';
|
|
24
|
-
import {
|
|
25
|
-
import { disposeScene } from
|
|
26
|
-
import { disposeObject } from './three-memory-cleaner';
|
|
24
|
+
import { checkCabinetOverlap, createBacksplash, deleteSpecifiedMeshObjects, fVLine, getDistances, parseData, updateScene, visibleTransformBox } from "./scene-creator";
|
|
25
|
+
import { disposeObject, disposeScene } from "./three-memory-cleaner";
|
|
27
26
|
import diff from 'immutablediff';
|
|
28
|
-
import * as SharedStyle from
|
|
29
|
-
import {
|
|
30
|
-
import {
|
|
31
|
-
import { verticesDistance } from '../../utils/geometry';
|
|
27
|
+
import * as SharedStyle from "../../shared-style";
|
|
28
|
+
import { BASE_CABINET_LAYOUTPOS, MODE_3D_VIEW, MODE_DRAGGING_ITEM_3D, MODE_DRAWING_HOLE_3D, MODE_DRAWING_ITEM_3D, MODE_ELEVATION_VIEW, MODE_IDLE_3D, MODE_ROTATING_ITEM_3D, SECONDARY_PURPLE_COLOR, TALL_CABINET_LAYOUTPOS, UNIT_CENTIMETER, WALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
29
|
+
import { verticesDistance } from "../../utils/geometry";
|
|
32
30
|
import convert from 'convert-units';
|
|
33
|
-
import { GeometryUtils } from
|
|
34
|
-
import { handleCamRect, isElevationView, isEmpty } from
|
|
31
|
+
import { GeometryUtils } from "../../utils/export";
|
|
32
|
+
import { handleCamRect, isElevationView, isEmpty } from "../../utils/helper";
|
|
35
33
|
import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader';
|
|
36
34
|
import CameraControls from 'camera-controls';
|
|
35
|
+
import { returnReplaceableDeepSearchType } from "../viewer2d/utils";
|
|
36
|
+
import { getAllMeshes, vectorIntersectWithMesh } from "../../utils/objects-utils";
|
|
37
37
|
CameraControls.install({
|
|
38
38
|
THREE: Three
|
|
39
39
|
});
|
|
40
|
-
import { returnReplaceableDeepSearchType } from '../viewer2d/utils';
|
|
41
|
-
import { getAllMeshes, vectorIntersectWithMesh } from '../../utils/objects-utils';
|
|
42
40
|
var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
43
41
|
function Scene3DViewer(props) {
|
|
44
42
|
var _this;
|
|
@@ -1293,7 +1291,7 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
1293
1291
|
offsetX: event.offsetX - 50,
|
|
1294
1292
|
offsetY: event.offsetY
|
|
1295
1293
|
}, alti);
|
|
1296
|
-
if (
|
|
1294
|
+
if (!selectedItem) return;
|
|
1297
1295
|
var selItem = _this2.props.state.scene.layers.get(selectedObject.layerID).items.get(selectedObject.itemID);
|
|
1298
1296
|
lastAngle = 0;
|
|
1299
1297
|
angleObj.position.set(planData.plan.position.x + Point.x, selItem.category === 'lighting' ? -planData.plan.position.y - selItem.properties.get('height').get('length') : selItem.properties.get('altitude').get('length') + planData.plan.position.y, planData.plan.position.z - Point.y);
|
|
@@ -1464,7 +1462,7 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
1464
1462
|
setTimeout(function () {
|
|
1465
1463
|
getDistances(layer);
|
|
1466
1464
|
var selectedItem = planData.sceneGraph.layers[selectedObject.layerID].items[selectedObject.itemID];
|
|
1467
|
-
if (
|
|
1465
|
+
if (!selectedItem) return;
|
|
1468
1466
|
var selItem = _this2.props.state.scene.layers.get(selectedObject.layerID).items.get(selectedObject.itemID);
|
|
1469
1467
|
var itemPos = selectedItem.position.clone();
|
|
1470
1468
|
if (intersects[_i10].object.parent && intersects[_i10].object.parent.parent.userData.itemId === selectedItem.userData.itemId) {
|
|
@@ -1546,7 +1544,7 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
1546
1544
|
if (bRotate) {
|
|
1547
1545
|
var _intersects$_i;
|
|
1548
1546
|
var selectedItem = planData.sceneGraph.layers[selectedObject.layerID].items[selectedObject.itemID];
|
|
1549
|
-
if (
|
|
1547
|
+
if (!selectedItem) return;
|
|
1550
1548
|
var selItem = _this2.props.state.scene.layers.get(selectedObject.layerID).items.get(selectedObject.itemID);
|
|
1551
1549
|
var itemPos = selectedItem.position.clone();
|
|
1552
1550
|
if (((_intersects$_i = intersects[_i10]) === null || _intersects$_i === void 0 || (_intersects$_i = _intersects$_i.object) === null || _intersects$_i === void 0 || (_intersects$_i = _intersects$_i.parent) === null || _intersects$_i === void 0 || (_intersects$_i = _intersects$_i.parent) === null || _intersects$_i === void 0 || (_intersects$_i = _intersects$_i.userData) === null || _intersects$_i === void 0 ? void 0 : _intersects$_i.itemId) === selectedItem.userData.itemId) {
|
|
@@ -1564,7 +1562,7 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
1564
1562
|
if (bMove) {
|
|
1565
1563
|
bMove = false;
|
|
1566
1564
|
var _selectedItem = planData.sceneGraph.layers[selectedObject.layerID].items[selectedObject.itemID];
|
|
1567
|
-
if (
|
|
1565
|
+
if (!_selectedItem) return;
|
|
1568
1566
|
var _selItem = _this2.props.state.scene.layers.get(selectedObject.layerID).items.get(selectedObject.itemID);
|
|
1569
1567
|
var _itemPos = _selectedItem.position.clone();
|
|
1570
1568
|
if (intersects[_i10].object.parent.parent.userData.itemId === _selectedItem.userData.itemId) {
|
|
@@ -2044,7 +2042,7 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
2044
2042
|
setTimeout(function () {
|
|
2045
2043
|
try {
|
|
2046
2044
|
currentObject = planData.sceneGraph.layers[selectedObject.layerID].items[selectedObject.itemID];
|
|
2047
|
-
if (
|
|
2045
|
+
if (!currentObject) return;
|
|
2048
2046
|
var selItem = _this2.props.state.scene.layers.get(selectedObject.layerID).items.get(selectedObject.itemID);
|
|
2049
2047
|
var itemPos = currentObject.position.clone();
|
|
2050
2048
|
toolObj.position.set(planData.plan.position.x + itemPos.x, selItem.category === 'lighting' ? -planData.plan.position.y - selItem.properties.get('height').get('length') : planData.plan.position.y + currentObject.children[0].position.y, planData.plan.position.z + itemPos.z);
|
|
@@ -2510,20 +2508,19 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
|
|
|
2510
2508
|
}
|
|
2511
2509
|
}
|
|
2512
2510
|
}]);
|
|
2513
|
-
}(React.Component);
|
|
2514
|
-
|
|
2515
|
-
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2529
|
-
};
|
|
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/index.js
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
import Catalog from
|
|
2
|
-
import Translator from
|
|
3
|
-
import * as Models from
|
|
4
|
-
import reducer from
|
|
5
|
-
import KitchenConfiguratorApp from
|
|
6
|
-
import Plugins from
|
|
7
|
-
import * as KitchenConfiguratorConstants from
|
|
8
|
-
import * as KitchenConfiguratorSharedStyle from
|
|
9
|
-
import KitchenConfiguratorComponents from
|
|
10
|
-
import KitchenConfiguratorActions from
|
|
11
|
-
import KitchenConfiguratorReducers from
|
|
12
|
-
import KitchenConfiguratorClasses from
|
|
13
|
-
import ElementsFactories from
|
|
14
|
-
import KitchenConfiguratorUtils from
|
|
1
|
+
import Catalog from "./catalog/catalog";
|
|
2
|
+
import Translator from "./translator/translator";
|
|
3
|
+
import * as Models from "./models";
|
|
4
|
+
import reducer from "./reducers/reducer";
|
|
5
|
+
import KitchenConfiguratorApp from "./KitchenConfiguratorApp";
|
|
6
|
+
import Plugins from "./plugins/export";
|
|
7
|
+
import * as KitchenConfiguratorConstants from "./constants";
|
|
8
|
+
import * as KitchenConfiguratorSharedStyle from "./shared-style";
|
|
9
|
+
import KitchenConfiguratorComponents from "./components/export";
|
|
10
|
+
import KitchenConfiguratorActions from "./actions/export";
|
|
11
|
+
import KitchenConfiguratorReducers from "./reducers/export";
|
|
12
|
+
import KitchenConfiguratorClasses from "./class/export";
|
|
13
|
+
import ElementsFactories from "./catalog/factories/export";
|
|
14
|
+
import KitchenConfiguratorUtils from "./utils/export";
|
|
15
15
|
export { Catalog, Translator, Models, reducer, KitchenConfiguratorApp, Plugins, KitchenConfiguratorConstants, KitchenConfiguratorSharedStyle, KitchenConfiguratorComponents, KitchenConfiguratorActions, KitchenConfiguratorReducers, KitchenConfiguratorClasses, ElementsFactories, KitchenConfiguratorUtils };
|
package/es/models.js
CHANGED
|
@@ -14,10 +14,10 @@ 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 {
|
|
18
|
-
import { MODE_IDLE, UNIT_INCH } from
|
|
19
|
-
import { SNAP_MASK } from
|
|
20
|
-
import { isEmpty } from
|
|
17
|
+
import { fromJS, List, Map, Record } from 'immutable';
|
|
18
|
+
import { MODE_IDLE, UNIT_INCH } from "./constants";
|
|
19
|
+
import { SNAP_MASK } from "./utils/snap";
|
|
20
|
+
import { isEmpty } from "./utils/helper";
|
|
21
21
|
import convert from 'convert-units';
|
|
22
22
|
var safeLoadMapList = function safeLoadMapList(mapList, Model, defaultMap) {
|
|
23
23
|
return mapList ? new Map(mapList).map(function (m) {
|
package/es/plugins/autosave.js
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
var sessionStorage = window.hasOwnProperty('sessionStorage') ? window.sessionStorage : false;
|
|
2
|
-
import { loadProject } from
|
|
2
|
+
import { loadProject } from "../actions/project-actions";
|
|
3
3
|
var TIMEOUT_DELAY = 500;
|
|
4
4
|
var timeout = null;
|
|
5
5
|
export default function autosave(autosaveKey, revert, delay) {
|
|
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
|
|
|
4
4
|
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; }
|
|
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
|
-
import actions from
|
|
7
|
+
import actions from "../actions/export";
|
|
8
8
|
export default function consoleDebugger() {
|
|
9
9
|
return function (store, stateExtractor) {
|
|
10
10
|
window.KitchenConfigurator = _objectSpread(_objectSpread({}, actions), {}, {
|