kitchen-simulator 1.1.1-test.3 → 1.1.1-test.31
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 +10 -10
- package/es/KitchenConfiguratorApp.js +14 -14
- 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 -1
- package/es/catalog/molding/molding-fbm/planner-element.js +1 -1
- package/es/catalog/molding/molding-lrm/planner-element.js +1 -1
- package/es/catalog/properties/export.js +9 -9
- package/es/catalog/properties/property-checkbox.js +64 -19
- package/es/catalog/properties/property-color.js +2 -2
- package/es/catalog/properties/property-enum.js +51 -9
- package/es/catalog/properties/property-lenght-measure.js +4 -4
- package/es/catalog/properties/property-length-measure.js +58 -9
- package/es/catalog/properties/property-length-measure_hole.js +4 -4
- package/es/catalog/properties/property-number.js +2 -2
- package/es/catalog/properties/property-read-only.js +2 -2
- package/es/catalog/properties/property-string.js +2 -2
- package/es/catalog/properties/property-toggle.js +2 -2
- 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 +6 -5
- package/es/components/export.js +3 -3
- package/es/components/style/button.js +1 -1
- package/es/components/style/cancel-button.js +1 -1
- package/es/components/style/content-title.js +1 -1
- 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 +32 -8
- package/es/components/style/form-number-input_2.js +2 -2
- package/es/components/style/form-select.js +56 -8
- 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 +31 -12
- package/es/components/viewer2d/area.js +2 -2
- package/es/components/viewer2d/export.js +14 -14
- package/es/components/viewer2d/grids/grids.js +1 -1
- package/es/components/viewer2d/group.js +2 -2
- package/es/components/viewer2d/item.js +5 -5
- package/es/components/viewer2d/layer.js +4 -4
- package/es/components/viewer2d/line.js +6 -9
- package/es/components/viewer2d/ruler.js +3 -3
- package/es/components/viewer2d/rulerX.js +1 -1
- package/es/components/viewer2d/rulerY.js +1 -1
- package/es/components/viewer2d/scene.js +2 -2
- package/es/components/viewer2d/snap.js +1 -1
- package/es/components/viewer2d/state.js +3 -3
- package/es/components/viewer2d/utils.js +2 -2
- package/es/components/viewer2d/vertex.js +1 -1
- package/es/components/viewer2d/viewer2d.js +9 -9
- package/es/components/viewer3d/front3D.js +2 -2
- 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 +1 -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 +3 -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 +5 -5
- package/es/components/viewer3d/viewer3d.js +14 -16
- 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 +5 -5
- 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/snap-scene.js +2 -2
- package/es/utils/snap.js +1 -1
- package/lib/KitchenConfigurator.js +20 -20
- package/lib/KitchenConfiguratorApp.js +34 -34
- 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/properties/property-checkbox.js +64 -19
- package/lib/catalog/properties/property-enum.js +49 -7
- package/lib/catalog/properties/property-length-measure.js +55 -6
- 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 +1 -0
- package/lib/components/style/form-number-input.js +30 -6
- package/lib/components/style/form-select.js +54 -8
- package/lib/components/style/form-text-input.js +30 -12
- package/lib/components/viewer2d/line.js +3 -6
- package/lib/components/viewer2d/scene.js +1 -1
- package/lib/components/viewer2d/viewer2d.js +1 -3
- 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 +1 -2
- package/lib/components/viewer3d/scene-creator.js +1 -1
- package/lib/components/viewer3d/viewer3d.js +5 -6
- package/lib/reducers/user-reducer.js +0 -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/package.json +15 -50
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { history } from
|
|
2
|
-
import {
|
|
3
|
-
import { Project } from
|
|
1
|
+
import { history } from "../utils/export";
|
|
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
|
+
import { Project } from "../class/export";
|
|
4
4
|
export default function (state, action) {
|
|
5
5
|
switch (action.type) {
|
|
6
6
|
case NEW_PROJECT:
|
package/es/reducers/reducer.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { KitchenConfiguratorAreasReducer, KitchenConfiguratorHolesReducer, KitchenConfiguratorItemsReducer, KitchenConfiguratorLinesReducer,
|
|
3
|
-
import { State } from
|
|
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
|
+
import { State } from "../models";
|
|
4
4
|
export var initialState = new State();
|
|
5
5
|
export default function appReducer(state, action) {
|
|
6
6
|
// /////////
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import { Layer } from
|
|
2
|
-
import { history } from
|
|
3
|
-
import { ADD_LAYER, SELECT_LAYER, SET_LAYER_PROPERTIES,
|
|
1
|
+
import { Layer } from "../class/export";
|
|
2
|
+
import { history } from "../utils/export";
|
|
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,6 +1,6 @@
|
|
|
1
|
-
import { BEGIN_DRAGGING_VERTEX,
|
|
2
|
-
import { history } from
|
|
3
|
-
import { Vertex } from
|
|
1
|
+
import { BEGIN_DRAGGING_VERTEX, END_DRAGGING_VERTEX, UPDATE_DRAGGING_VERTEX } from "../constants";
|
|
2
|
+
import { history } from "../utils/export";
|
|
3
|
+
import { Vertex } from "../class/export";
|
|
4
4
|
export default function (state, action) {
|
|
5
5
|
switch (action.type) {
|
|
6
6
|
case BEGIN_DRAGGING_VERTEX:
|
|
@@ -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,6 +1,6 @@
|
|
|
1
|
-
import { MODE_3D_VIEW,
|
|
2
|
-
import { Project } from
|
|
3
|
-
import { history } from
|
|
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
|
+
import { Project } from "../class/export";
|
|
3
|
+
import { history } from "../utils/export";
|
|
4
4
|
import convert from 'convert-units';
|
|
5
5
|
export default function (state, action) {
|
|
6
6
|
state = state.merge({
|
package/es/styles/export.js
CHANGED
|
@@ -4,9 +4,9 @@ function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o =
|
|
|
4
4
|
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), 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 EN from
|
|
8
|
-
import IT from
|
|
9
|
-
import RU from
|
|
7
|
+
import EN from "./en";
|
|
8
|
+
import IT from "./it";
|
|
9
|
+
import RU from "./ru";
|
|
10
10
|
var DEFAULT_LOCALE = 'en';
|
|
11
11
|
var Translator = /*#__PURE__*/function () {
|
|
12
12
|
function Translator() {
|
package/es/utils/export.js
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
|
-
import * as GeometryUtils from
|
|
2
|
-
import * as GraphInnerCycles from
|
|
3
|
-
import * as MathUtils from
|
|
4
|
-
import * as SnapUtils from
|
|
5
|
-
import * as SnapSceneUtils from
|
|
6
|
-
import * as history from
|
|
7
|
-
import * as ObjectUtils from
|
|
8
|
-
import * as MoldingUtils from
|
|
9
|
-
import IDBroker from
|
|
10
|
-
import NameGenerator from
|
|
11
|
-
import * as Logger from
|
|
1
|
+
import * as GeometryUtils from "./geometry";
|
|
2
|
+
import * as GraphInnerCycles from "./graph-inner-cycles";
|
|
3
|
+
import * as MathUtils from "./math";
|
|
4
|
+
import * as SnapUtils from "./snap";
|
|
5
|
+
import * as SnapSceneUtils from "./snap-scene";
|
|
6
|
+
import * as history from "./history";
|
|
7
|
+
import * as ObjectUtils from "./objects-utils";
|
|
8
|
+
import * as MoldingUtils from "./molding";
|
|
9
|
+
import IDBroker from "./id-broker";
|
|
10
|
+
import NameGenerator from "./name-generator";
|
|
11
|
+
import * as Logger from "./logger";
|
|
12
12
|
export { GeometryUtils, GraphInnerCycles, MathUtils, SnapUtils, SnapSceneUtils, history, IDBroker, NameGenerator, ObjectUtils, Logger, MoldingUtils };
|
|
13
13
|
export default {
|
|
14
14
|
GeometryUtils: GeometryUtils,
|
package/es/utils/geometry.js
CHANGED
|
@@ -22,13 +22,13 @@ 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 { toFixedFloat, fAbs } from
|
|
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
|
|
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
|
-
import { returnReplaceableDeepSearchType } from
|
|
30
|
-
import { isEmpty } from
|
|
31
|
-
import { MathUtils } from
|
|
29
|
+
import { returnReplaceableDeepSearchType } from "../components/viewer2d/utils.js";
|
|
30
|
+
import { isEmpty } from "./helper.js";
|
|
31
|
+
import { MathUtils } from "./export.js";
|
|
32
32
|
export function compareVertices(v0, v1) {
|
|
33
33
|
return v0.x === v1.x ? v0.y - v1.y : v0.x - v1.x;
|
|
34
34
|
}
|
package/es/utils/graph-cycles.js
CHANGED
|
@@ -200,9 +200,8 @@ function find_inner_cycles(V, EV) {
|
|
|
200
200
|
ev_mapping: cycles.ev_mapping
|
|
201
201
|
};
|
|
202
202
|
}
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
module.exports = find_inner_cycles;
|
|
203
|
+
export default find_inner_cycles;
|
|
204
|
+
export { find_inner_cycles, find_cycles, compute_ev_mapping, compute_incidences };
|
|
206
205
|
|
|
207
206
|
/**
|
|
208
207
|
* DATA
|
|
@@ -1,6 +1,6 @@
|
|
|
1
|
-
import Graph from
|
|
2
|
-
import getEdgesOfSubgraphs from
|
|
3
|
-
import graphCycles from
|
|
1
|
+
import Graph from "./graph";
|
|
2
|
+
import getEdgesOfSubgraphs from "./get-edges-of-subgraphs";
|
|
3
|
+
import graphCycles from "./graph-cycles";
|
|
4
4
|
import { List } from 'immutable';
|
|
5
5
|
export function calculateInnerCycles(verticesArray, edgesArray) {
|
|
6
6
|
var innerCycles = new List();
|
package/es/utils/graph.js
CHANGED
package/es/utils/helper.js
CHANGED
|
@@ -5,83 +5,15 @@ 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 { HDRCubeTextureLoader } from 'three/examples/jsm/loaders/HDRCubeTextureLoader.js';
|
|
8
|
-
import {
|
|
8
|
+
import { ANIMATE_OBJECT_OPEN_DOOR_ROTATION_UNIT, ANIMATE_STEP_MAX, DECIMAL_PLACES_2, HDR_URLS, MODE_ELEVATION_VIEW } from "../constants";
|
|
9
9
|
import * as Three from 'three';
|
|
10
|
-
import { returnReplaceableDeepSearchType } from
|
|
10
|
+
import { returnReplaceableDeepSearchType } from "./../components/viewer2d/utils";
|
|
11
11
|
import convert from 'convert-units';
|
|
12
|
-
import { formatNumber } from
|
|
13
|
-
var AWS = require('aws-sdk');
|
|
14
|
-
var s3 = new AWS.S3({
|
|
15
|
-
accessKeyId: process.env.REACT_APP_AWS_ID,
|
|
16
|
-
secretAccessKey: process.env.REACT_APP_AWS_SECRET
|
|
17
|
-
});
|
|
18
|
-
var s3ParseUrl = function s3ParseUrl(url) {
|
|
19
|
-
var _decodedUrl = decodeURIComponent(url);
|
|
20
|
-
var _result = null;
|
|
21
|
-
|
|
22
|
-
// http://s3.amazonaws.com/bucket/key1/key2
|
|
23
|
-
var match = decodedUrl.match(/^https?:\/\/s3.amazonaws.com\/([^\/]+)\/?(.*?)$/);
|
|
24
|
-
if (_match) {
|
|
25
|
-
_result = {
|
|
26
|
-
bucket: _match[1],
|
|
27
|
-
key: _match[2],
|
|
28
|
-
region: ''
|
|
29
|
-
};
|
|
30
|
-
}
|
|
31
|
-
|
|
32
|
-
// http://s3-aws-region.amazonaws.com/bucket/key1/key2
|
|
33
|
-
match = decodedUrl.match(/^https?:\/\/s3-([^.]+).amazonaws.com\/([^\/]+)\/?(.*?)$/);
|
|
34
|
-
if (_match) {
|
|
35
|
-
_result = {
|
|
36
|
-
bucket: _match[2],
|
|
37
|
-
key: _match[3],
|
|
38
|
-
region: _match[1]
|
|
39
|
-
};
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
// http://bucket.s3.amazonaws.com/key1/key2
|
|
43
|
-
match = decodedUrl.match(/^https?:\/\/([^.]+).s3.amazonaws.com\/?(.*?)$/);
|
|
44
|
-
if (_match) {
|
|
45
|
-
_result = {
|
|
46
|
-
bucket: _match[1],
|
|
47
|
-
key: _match[2],
|
|
48
|
-
region: ''
|
|
49
|
-
};
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
// http://bucket.s3-aws-region.amazonaws.com/key1/key2 or,
|
|
53
|
-
// http://bucket.s3.aws-region.amazonaws.com/key1/key2
|
|
54
|
-
match = decodedUrl.match(/^https?:\/\/([^.]+).(?:s3-|s3\.)([^.]+).amazonaws.com\/?(.*?)$/);
|
|
55
|
-
if (_match) {
|
|
56
|
-
_result = {
|
|
57
|
-
bucket: _match[1],
|
|
58
|
-
key: _match[3],
|
|
59
|
-
region: _match[2]
|
|
60
|
-
};
|
|
61
|
-
}
|
|
62
|
-
return _result;
|
|
63
|
-
};
|
|
12
|
+
import { formatNumber } from "./math";
|
|
64
13
|
export var textureCube = new HDRCubeTextureLoader().setPath('/catalog/envMap/').load(HDR_URLS, function () {
|
|
65
14
|
textureCube.magFilter = Three.LinearFilter;
|
|
66
15
|
textureCube.needsUpdate = true;
|
|
67
16
|
});
|
|
68
|
-
export var getSignedUrl = function getSignedUrl(url) {
|
|
69
|
-
if (!url) return url;
|
|
70
|
-
var signedUrl = url;
|
|
71
|
-
try {
|
|
72
|
-
var _s3ParseUrl = s3ParseUrl(url),
|
|
73
|
-
bucket = _s3ParseUrl.bucket,
|
|
74
|
-
key = _s3ParseUrl.key;
|
|
75
|
-
signedUrl = s3.getSignedUrl('getObject', {
|
|
76
|
-
Bucket: bucket,
|
|
77
|
-
Key: key,
|
|
78
|
-
ResponseCacheControl: 'no-cache'
|
|
79
|
-
});
|
|
80
|
-
} catch (e) {
|
|
81
|
-
signedUrl = url;
|
|
82
|
-
}
|
|
83
|
-
return signedUrl;
|
|
84
|
-
};
|
|
85
17
|
export var base64Decode = function base64Decode(targetStr) {
|
|
86
18
|
if (!targetStr) return null;
|
|
87
19
|
try {
|
package/es/utils/molding.js
CHANGED
|
@@ -11,13 +11,13 @@ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(
|
|
|
11
11
|
function _createForOfIteratorHelper(r, e) { var t = "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (!t) { if (Array.isArray(r) || (t = _unsupportedIterableToArray(r)) || e && r && "number" == typeof r.length) { t && (r = t); var _n = 0, F = function F() {}; return { s: F, n: function n() { return _n >= r.length ? { done: !0 } : { done: !1, value: r[_n++] }; }, e: function e(r) { throw r; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var o, a = !0, u = !1; return { s: function s() { t = t.call(r); }, n: function n() { var r = t.next(); return a = r.done, r; }, e: function e(r) { u = !0, o = r; }, f: function f() { try { a || null == t["return"] || t["return"](); } finally { if (u) throw o; } } }; }
|
|
12
12
|
function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
|
|
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
|
-
import { BASE_CABINET_LAYOUTPOS, BOTTOM_MOLDING_LOCATION, EPSILON, MIDDLE_MOLDING_LOCATION, MOLDING_LOCATIONS, OVERLAP_INCLUDED, OVERLAP_LINK, OVERLAP_SAME, OVERLAP_SOME, TALL_CABINET_LAYOUTPOS, TOP_MOLDING_LOCATION, WALL_CABINET_LAYOUTPOS } from
|
|
14
|
+
import { BASE_CABINET_LAYOUTPOS, BOTTOM_MOLDING_LOCATION, EPSILON, MIDDLE_MOLDING_LOCATION, MOLDING_LOCATIONS, OVERLAP_INCLUDED, OVERLAP_LINK, OVERLAP_SAME, OVERLAP_SOME, TALL_CABINET_LAYOUTPOS, TOP_MOLDING_LOCATION, WALL_CABINET_LAYOUTPOS } from "../constants";
|
|
15
15
|
import * as Three from 'three';
|
|
16
16
|
import convert from 'convert-units';
|
|
17
|
-
import IDBroker from
|
|
18
|
-
import { returnReplaceableDeepSearchType } from
|
|
19
|
-
import { GeometryUtils } from
|
|
20
|
-
import { isEmpty } from
|
|
17
|
+
import IDBroker from "./id-broker";
|
|
18
|
+
import { returnReplaceableDeepSearchType } from "../components/viewer2d/utils";
|
|
19
|
+
import { GeometryUtils } from "./export";
|
|
20
|
+
import { isEmpty } from "./helper";
|
|
21
21
|
export function getItemRect(item) {
|
|
22
22
|
var x = item.x;
|
|
23
23
|
var y = item.y;
|
package/es/utils/snap-scene.js
CHANGED
|
@@ -4,8 +4,8 @@ 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 { SNAP_POINT, SNAP_LINE, SNAP_SEGMENT, SNAP_GRID, SNAP_GUIDE, addPointSnap, addLineSnap, addLineSegmentSnap, addGridSnap } from
|
|
8
|
-
import { GeometryUtils } from
|
|
7
|
+
import { SNAP_POINT, SNAP_LINE, SNAP_SEGMENT, SNAP_GRID, SNAP_GUIDE, addPointSnap, addLineSnap, addLineSegmentSnap, addGridSnap } from "./snap";
|
|
8
|
+
import { GeometryUtils } from "./export";
|
|
9
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();
|
package/es/utils/snap.js
CHANGED
|
@@ -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 { Map, List, Record } from 'immutable';
|
|
18
|
-
import * as Geometry from
|
|
18
|
+
import * as Geometry from "./geometry";
|
|
19
19
|
export var SNAP_POINT = 'SNAP_POINT';
|
|
20
20
|
export var SNAP_LINE = 'SNAP_LINE';
|
|
21
21
|
export var SNAP_SEGMENT = 'SNAP_SEGMENT';
|
|
@@ -7,7 +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
|
|
10
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
11
11
|
var _react = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _reactGa = _interopRequireDefault(require("react-ga4"));
|
|
13
13
|
var _reactHotjar = require("react-hotjar");
|
|
@@ -608,30 +608,30 @@ var KitchenConfigurator = /*#__PURE__*/function (_Component) {
|
|
|
608
608
|
}]);
|
|
609
609
|
}(_react.Component);
|
|
610
610
|
KitchenConfigurator.propTypes = {
|
|
611
|
-
translator:
|
|
612
|
-
catalog:
|
|
613
|
-
allowProjectFileSupport:
|
|
614
|
-
plugins:
|
|
615
|
-
autosaveKey:
|
|
616
|
-
autosaveDelay:
|
|
617
|
-
width:
|
|
618
|
-
height:
|
|
619
|
-
stateExtractor:
|
|
620
|
-
toolbarButtons:
|
|
621
|
-
sidebarComponents:
|
|
622
|
-
footerbarComponents:
|
|
623
|
-
customContents:
|
|
624
|
-
softwareSignature:
|
|
625
|
-
configData:
|
|
611
|
+
translator: _propTypes["default"].instanceOf(_translator["default"]),
|
|
612
|
+
catalog: _propTypes["default"].instanceOf(_catalog["default"]),
|
|
613
|
+
allowProjectFileSupport: _propTypes["default"].bool,
|
|
614
|
+
plugins: _propTypes["default"].arrayOf(_propTypes["default"].func),
|
|
615
|
+
autosaveKey: _propTypes["default"].string,
|
|
616
|
+
autosaveDelay: _propTypes["default"].number,
|
|
617
|
+
width: _propTypes["default"].number.isRequired,
|
|
618
|
+
height: _propTypes["default"].number.isRequired,
|
|
619
|
+
stateExtractor: _propTypes["default"].func.isRequired,
|
|
620
|
+
toolbarButtons: _propTypes["default"].array,
|
|
621
|
+
sidebarComponents: _propTypes["default"].array,
|
|
622
|
+
footerbarComponents: _propTypes["default"].array,
|
|
623
|
+
customContents: _propTypes["default"].object,
|
|
624
|
+
softwareSignature: _propTypes["default"].string,
|
|
625
|
+
configData: _propTypes["default"].object
|
|
626
626
|
};
|
|
627
627
|
KitchenConfigurator.contextTypes = {
|
|
628
|
-
store:
|
|
628
|
+
store: _propTypes["default"].object.isRequired
|
|
629
629
|
};
|
|
630
630
|
KitchenConfigurator.childContextTypes = _objectSpread(_objectSpread({}, (0, _objectsUtils.objectsMap)(_export["default"], function () {
|
|
631
|
-
return
|
|
631
|
+
return _propTypes["default"].object;
|
|
632
632
|
})), {}, {
|
|
633
|
-
translator:
|
|
634
|
-
catalog:
|
|
633
|
+
translator: _propTypes["default"].object,
|
|
634
|
+
catalog: _propTypes["default"].object
|
|
635
635
|
});
|
|
636
636
|
KitchenConfigurator.defaultProps = {
|
|
637
637
|
translator: new _translator["default"](),
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
});
|
|
7
7
|
exports["default"] = KitchenConfiguratorApp;
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var
|
|
9
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
10
|
var _reactRedux = require("react-redux");
|
|
11
11
|
var _redux = require("redux");
|
|
12
12
|
var Models = _interopRequireWildcard(require("./models"));
|
|
@@ -14,19 +14,19 @@ var _KitchenConfigurator = _interopRequireDefault(require("./KitchenConfigurator
|
|
|
14
14
|
var _AppContext = _interopRequireDefault(require("./AppContext"));
|
|
15
15
|
var _catalog = _interopRequireDefault(require("./catalog/catalog"));
|
|
16
16
|
var _SVGLoader = require("three/addons/loaders/SVGLoader");
|
|
17
|
-
var _helper = require("
|
|
18
|
-
var _constants = require("
|
|
19
|
-
var Areas = _interopRequireWildcard(require("./catalog/areas/area/planner-element
|
|
20
|
-
var Lines = _interopRequireWildcard(require("./catalog/lines/wall/planner-element
|
|
17
|
+
var _helper = require("./utils/helper");
|
|
18
|
+
var _constants = require("./constants");
|
|
19
|
+
var Areas = _interopRequireWildcard(require("./catalog/areas/area/planner-element"));
|
|
20
|
+
var Lines = _interopRequireWildcard(require("./catalog/lines/wall/planner-element"));
|
|
21
21
|
var Holes = _interopRequireWildcard(require("./catalog/holes/export"));
|
|
22
22
|
var _itemLoader = require("./catalog/utils/item-loader");
|
|
23
|
-
var _index = require("
|
|
23
|
+
var _index = require("./index");
|
|
24
24
|
var _immutable = require("immutable");
|
|
25
25
|
var _reactGa = _interopRequireDefault(require("react-ga4"));
|
|
26
26
|
var _reactHotjar = require("react-hotjar");
|
|
27
27
|
var Sentry = _interopRequireWildcard(require("@sentry/react"));
|
|
28
|
-
var _projectActions = require("
|
|
29
|
-
var _exporter = _interopRequireDefault(require("
|
|
28
|
+
var _projectActions = require("./actions/project-actions");
|
|
29
|
+
var _exporter = _interopRequireDefault(require("./catalog/utils/exporter"));
|
|
30
30
|
var _excluded = ["width", "height", "projectElement", "categoryData", "dataBundle", "configData", "toolbarButtons", "options", "user", "auth", "featureFlags", "sentry", "analytics", "onEvent", "onSave", "onError"];
|
|
31
31
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
32
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); }
|
|
@@ -470,33 +470,33 @@ function KitchenConfiguratorApp(props) {
|
|
|
470
470
|
/* ============================== prop types ============================== */
|
|
471
471
|
|
|
472
472
|
KitchenConfiguratorApp.propTypes = {
|
|
473
|
-
width:
|
|
474
|
-
height:
|
|
475
|
-
projectElement:
|
|
476
|
-
categoryData:
|
|
477
|
-
dataBundle:
|
|
478
|
-
configData:
|
|
479
|
-
catalog:
|
|
480
|
-
logoImg:
|
|
481
|
-
companyUrl:
|
|
482
|
-
toolbarButtons:
|
|
483
|
-
options:
|
|
484
|
-
user:
|
|
485
|
-
auth:
|
|
486
|
-
featureFlags:
|
|
487
|
-
sentry:
|
|
488
|
-
dsn:
|
|
489
|
-
environment:
|
|
473
|
+
width: _propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string]),
|
|
474
|
+
height: _propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string]),
|
|
475
|
+
projectElement: _propTypes["default"].arrayOf(_propTypes["default"].object),
|
|
476
|
+
categoryData: _propTypes["default"].any,
|
|
477
|
+
dataBundle: _propTypes["default"].any,
|
|
478
|
+
configData: _propTypes["default"].any,
|
|
479
|
+
catalog: _propTypes["default"].oneOfType([_propTypes["default"].object, _propTypes["default"].instanceOf(Models.Catalog)]),
|
|
480
|
+
logoImg: _propTypes["default"].any,
|
|
481
|
+
companyUrl: _propTypes["default"].string,
|
|
482
|
+
toolbarButtons: _propTypes["default"].any,
|
|
483
|
+
options: _propTypes["default"].object,
|
|
484
|
+
user: _propTypes["default"].object,
|
|
485
|
+
auth: _propTypes["default"].object,
|
|
486
|
+
featureFlags: _propTypes["default"].object,
|
|
487
|
+
sentry: _propTypes["default"].shape({
|
|
488
|
+
dsn: _propTypes["default"].string,
|
|
489
|
+
environment: _propTypes["default"].string
|
|
490
490
|
}),
|
|
491
|
-
analytics:
|
|
492
|
-
ga4Id:
|
|
493
|
-
hotjar:
|
|
494
|
-
id:
|
|
495
|
-
sv:
|
|
491
|
+
analytics: _propTypes["default"].shape({
|
|
492
|
+
ga4Id: _propTypes["default"].string,
|
|
493
|
+
hotjar: _propTypes["default"].shape({
|
|
494
|
+
id: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number]),
|
|
495
|
+
sv: _propTypes["default"].oneOfType([_propTypes["default"].string, _propTypes["default"].number])
|
|
496
496
|
})
|
|
497
497
|
}),
|
|
498
|
-
onEvent:
|
|
499
|
-
onSave:
|
|
500
|
-
onError:
|
|
501
|
-
store:
|
|
498
|
+
onEvent: _propTypes["default"].func,
|
|
499
|
+
onSave: _propTypes["default"].func,
|
|
500
|
+
onError: _propTypes["default"].func,
|
|
501
|
+
store: _propTypes["default"].object
|
|
502
502
|
};
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = void 0;
|
|
7
|
-
var
|
|
7
|
+
var _ = require("../../..");
|
|
8
8
|
var info = {
|
|
9
9
|
title: 'area',
|
|
10
10
|
tag: ['area'],
|
|
@@ -14,33 +14,33 @@ var info = {
|
|
|
14
14
|
var textures = {
|
|
15
15
|
parquet: {
|
|
16
16
|
name: 'Parquet',
|
|
17
|
-
uri: require(
|
|
17
|
+
uri: require("./textures/parquet.jpg"),
|
|
18
18
|
lengthRepeatScale: 0.004,
|
|
19
19
|
heightRepeatScale: 0.004
|
|
20
20
|
},
|
|
21
21
|
tile1: {
|
|
22
22
|
name: 'Tile1',
|
|
23
|
-
uri: require(
|
|
23
|
+
uri: require("./textures/tile1.jpg"),
|
|
24
24
|
lengthRepeatScale: 0.01,
|
|
25
25
|
heightRepeatScale: 0.01
|
|
26
26
|
},
|
|
27
27
|
ceramic: {
|
|
28
28
|
name: 'Ceramic Tile',
|
|
29
|
-
uri: require(
|
|
29
|
+
uri: require("./textures/ceramic-tile.jpg"),
|
|
30
30
|
lengthRepeatScale: 0.02,
|
|
31
31
|
heightRepeatScale: 0.02
|
|
32
32
|
},
|
|
33
33
|
strand_porcelain: {
|
|
34
34
|
name: 'Strand Porcelain Tile',
|
|
35
|
-
uri: require(
|
|
35
|
+
uri: require("./textures/strand-porcelain.jpg"),
|
|
36
36
|
lengthRepeatScale: 0.02,
|
|
37
37
|
heightRepeatScale: 0.02
|
|
38
38
|
},
|
|
39
39
|
grass: {
|
|
40
40
|
name: 'Grass',
|
|
41
|
-
uri: require(
|
|
41
|
+
uri: require("./textures/grass.jpg"),
|
|
42
42
|
lengthRepeatScale: 0.01,
|
|
43
43
|
heightRepeatScale: 0.01
|
|
44
44
|
}
|
|
45
45
|
};
|
|
46
|
-
var _default = exports["default"] =
|
|
46
|
+
var _default = exports["default"] = _.ElementsFactories.AreaFactory('area', info, textures);
|
|
@@ -9,7 +9,7 @@ exports.updatedWall = updatedWall;
|
|
|
9
9
|
var _three = _interopRequireWildcard(require("three"));
|
|
10
10
|
var Three = _three;
|
|
11
11
|
var _geometry = require("../../utils/geometry");
|
|
12
|
-
var _helper = require("
|
|
12
|
+
var _helper = require("../../utils/helper");
|
|
13
13
|
var SharedStyle = _interopRequireWildcard(require("../../shared-style"));
|
|
14
14
|
var _constants = require("../../constants");
|
|
15
15
|
var _convertUnits = _interopRequireDefault(require("convert-units"));
|
|
@@ -10,7 +10,7 @@ var _wallFactory3d = require("./wall-factory-3d");
|
|
|
10
10
|
var SharedStyle = _interopRequireWildcard(require("../../shared-style"));
|
|
11
11
|
var Geometry = _interopRequireWildcard(require("../../utils/geometry"));
|
|
12
12
|
var _translator = _interopRequireDefault(require("../../translator/translator"));
|
|
13
|
-
var _constants = require("
|
|
13
|
+
var _constants = require("../../constants");
|
|
14
14
|
var _line = _interopRequireDefault(require("../../class/line"));
|
|
15
15
|
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); }
|
|
16
16
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
@@ -8,7 +8,7 @@ exports["default"] = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var Three = _interopRequireWildcard(require("three"));
|
|
10
10
|
var _loadObj = require("../../utils/load-obj");
|
|
11
|
-
var _constants = require("
|
|
11
|
+
var _constants = require("../../../constants");
|
|
12
12
|
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); }
|
|
13
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
14
|
var cached3DDoor = null;
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var Three = _interopRequireWildcard(require("three"));
|
|
10
10
|
var _loadObj = require("../../utils/load-obj");
|
|
11
11
|
var _path = _interopRequireDefault(require("path"));
|
|
12
|
-
var _constants = require("
|
|
12
|
+
var _constants = require("../../../constants");
|
|
13
13
|
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); }
|
|
14
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
15
|
var cached3DDoor = null;
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireDefault(require("react"));
|
|
|
9
9
|
var Three = _interopRequireWildcard(require("three"));
|
|
10
10
|
var _loadObj = require("../../utils/load-obj");
|
|
11
11
|
var _path = _interopRequireDefault(require("path"));
|
|
12
|
-
var _constants = require("
|
|
12
|
+
var _constants = require("../../../constants");
|
|
13
13
|
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); }
|
|
14
14
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
15
|
var cached3DDoor = null;
|
|
@@ -8,7 +8,7 @@ exports["default"] = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var Three = _interopRequireWildcard(require("three"));
|
|
10
10
|
var _loadObj = require("../../utils/load-obj");
|
|
11
|
-
var _constants = require("
|
|
11
|
+
var _constants = require("../../../constants");
|
|
12
12
|
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); }
|
|
13
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
14
|
// const grey = new Three.MeshLambertMaterial({color: 0x3f3f3f});
|
|
@@ -8,7 +8,7 @@ exports["default"] = void 0;
|
|
|
8
8
|
var _react = _interopRequireDefault(require("react"));
|
|
9
9
|
var Three = _interopRequireWildcard(require("three"));
|
|
10
10
|
var _loadObj = require("../../utils/load-obj");
|
|
11
|
-
var _constants = require("
|
|
11
|
+
var _constants = require("../../../constants");
|
|
12
12
|
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); }
|
|
13
13
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
14
|
var cached3DDoor = null;
|