kitchen-simulator 1.1.1-test.7 → 1.1.1-test.71
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 +34 -54
- package/es/KitchenConfiguratorApp.js +63 -81
- 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 +10 -7
- package/es/catalog/catalog.js +3 -12
- package/es/catalog/factories/area-factory.js +1 -4
- package/es/catalog/factories/wall-factory-3d.js +1 -1
- package/es/catalog/holes/export.js +13 -13
- package/es/catalog/lines/wall/planner-element.js +13 -10
- package/es/catalog/properties/property-checkbox.js +64 -22
- package/es/catalog/properties/property-enum.js +52 -15
- package/es/catalog/properties/property-lenght-measure.js +4 -5
- package/es/catalog/properties/property-length-measure.js +55 -12
- package/es/catalog/properties/property-length-measure_hole.js +4 -5
- package/es/catalog/utils/FuseUtils.js +3 -6
- package/es/catalog/utils/exporter.js +2 -5
- package/es/catalog/utils/item-loader.js +4 -11
- package/es/catalog/utils/mtl-loader.js +3 -2
- package/es/catalog/utils/obj-loader.js +3 -2
- package/es/class/FuseUtils.js +3 -6
- package/es/class/area.js +4 -8
- package/es/class/group.js +6 -15
- package/es/class/guide.js +2 -6
- package/es/class/hole.js +7 -12
- package/es/class/item.js +12 -23
- package/es/class/layer.js +4 -8
- package/es/class/line.js +3 -12
- package/es/class/project.js +7 -11
- package/es/class/vertex.js +3 -7
- package/es/components/content.js +1 -0
- package/es/components/disclaimer/disclaimer.js +66 -86
- package/es/components/style/button.js +7 -14
- package/es/components/style/cancel-button.js +2 -3
- package/es/components/style/content-container.js +1 -4
- package/es/components/style/content-title.js +3 -7
- package/es/components/style/delete-button.js +2 -3
- package/es/components/style/form-block.js +3 -7
- package/es/components/style/form-color-input.js +2 -3
- package/es/components/style/form-label.js +3 -7
- package/es/components/style/form-number-input.js +36 -18
- package/es/components/style/form-number-input_2.js +6 -12
- package/es/components/style/form-select.js +50 -11
- package/es/components/style/form-slider.js +24 -9
- package/es/components/style/form-submit-button.js +2 -3
- package/es/components/style/form-text-input.js +38 -26
- package/es/components/viewer2d/area.js +4 -4
- package/es/components/viewer2d/grids/grid-horizontal-streak.js +0 -1
- package/es/components/viewer2d/grids/grid-streak.js +0 -1
- package/es/components/viewer2d/grids/grid-vertical-streak.js +0 -1
- package/es/components/viewer2d/grids/grids.js +1 -6
- package/es/components/viewer2d/item.js +4 -11
- package/es/components/viewer2d/line.js +2 -5
- package/es/components/viewer2d/ruler.js +2 -3
- package/es/components/viewer2d/rulerDist.js +1 -1
- package/es/components/viewer2d/rulerX.js +6 -12
- package/es/components/viewer2d/rulerY.js +6 -12
- package/es/components/viewer2d/scene.js +15 -27
- package/es/components/viewer2d/state.js +1 -6
- package/es/components/viewer2d/utils.js +33 -2
- package/es/components/viewer2d/viewer2d.js +13 -18
- package/es/components/viewer3d/camera-controls-module/camera-controls.module.js +6 -13
- package/es/components/viewer3d/front3D.js +1 -6
- package/es/components/viewer3d/libs/mtl-loader.js +2 -2
- package/es/components/viewer3d/libs/obj-loader.js +2 -2
- package/es/components/viewer3d/libs/orbit-controls.js +6 -5
- package/es/components/viewer3d/libs/pointer-lock-controls.js +5 -4
- package/es/components/viewer3d/ruler-utils/itemRect.js +1 -1
- package/es/components/viewer3d/ruler-utils/layer3D.js +2 -2
- package/es/components/viewer3d/ruler-utils/ruler3D.js +1 -4
- package/es/components/viewer3d/ruler-utils/scene3D.js +2 -3
- package/es/components/viewer3d/scene-creator.js +5 -11
- package/es/components/viewer3d/viewer3d-first-person.js +5 -11
- package/es/components/viewer3d/viewer3d.js +19 -26
- package/es/index.js +13 -14
- package/es/models.js +10 -15
- package/es/plugins/console-debugger.js +1 -4
- package/es/plugins/keyboard.js +2 -2
- package/es/reducers/holes-reducer.js +1 -1
- package/es/reducers/items-reducer.js +2 -5
- package/es/reducers/lines-reducer.js +1 -1
- package/es/reducers/project-reducer.js +1 -1
- package/es/reducers/reducer.js +2 -2
- package/es/reducers/scene-reducer.js +1 -1
- package/es/reducers/user-reducer.js +1 -2
- package/es/reducers/vertices-reducer.js +1 -1
- package/es/reducers/viewer2d-reducer.js +2 -2
- package/es/reducers/viewer3d-reducer.js +2 -2
- package/es/translator/translator.js +2 -6
- package/es/utils/convert-units-lite.js +29 -0
- package/es/utils/geometry.js +7 -16
- package/es/utils/get-edges-of-subgraphs.js +2 -1
- package/es/utils/graph-cycles.js +2 -3
- package/es/utils/graph.js +4 -7
- package/es/utils/helper.js +3 -73
- package/es/utils/id-broker.js +4 -8
- package/es/utils/molding.js +36 -42
- package/es/utils/name-generator.js +2 -6
- package/es/utils/objects-utils.js +1 -1
- package/es/utils/process-black-list.js +1 -4
- package/es/utils/snap-scene.js +1 -6
- package/es/utils/snap.js +6 -12
- package/es/utils/threeCSG.es6.js +2 -6
- package/lib/@history.js +3 -2
- package/lib/AppContext.js +3 -2
- package/lib/KitchenConfigurator.js +70 -88
- package/lib/KitchenConfiguratorApp.js +98 -113
- package/lib/actions/export.js +1 -1
- package/lib/catalog/areas/area/planner-element.js +13 -8
- package/lib/catalog/catalog.js +9 -16
- package/lib/catalog/factories/area-factory-3d.js +1 -1
- package/lib/catalog/factories/area-factory.js +6 -7
- package/lib/catalog/factories/export.js +1 -1
- package/lib/catalog/factories/wall-factory-3d.js +4 -4
- package/lib/catalog/factories/wall-factory.js +4 -3
- package/lib/catalog/holes/door-closet/planner-element.js +4 -3
- package/lib/catalog/holes/door-double/planner-element.js +4 -3
- package/lib/catalog/holes/door-exterior/planner-element.js +4 -3
- package/lib/catalog/holes/door-interior/planner-element.js +4 -3
- package/lib/catalog/holes/door-panic/planner-element.js +4 -3
- package/lib/catalog/holes/door-panic-double/planner-element.js +4 -3
- package/lib/catalog/holes/door-sliding/planner-element.js +4 -3
- package/lib/catalog/holes/doorway-framed/planner-element.js +4 -3
- package/lib/catalog/holes/doorway-frameless/planner-element.js +4 -3
- package/lib/catalog/holes/export.js +14 -14
- package/lib/catalog/holes/window-clear/planner-element.js +4 -3
- package/lib/catalog/holes/window-cross/planner-element.js +4 -3
- package/lib/catalog/holes/window-double-hung/planner-element.js +4 -3
- package/lib/catalog/holes/window-vertical/planner-element.js +4 -3
- package/lib/catalog/lines/wall/planner-element.js +16 -11
- package/lib/catalog/molding/molding-dcm/planner-element.js +4 -3
- package/lib/catalog/molding/molding-fbm/planner-element.js +4 -3
- package/lib/catalog/molding/molding-lrm/planner-element.js +4 -3
- package/lib/catalog/properties/export.js +1 -1
- package/lib/catalog/properties/property-checkbox.js +68 -25
- package/lib/catalog/properties/property-color.js +3 -2
- package/lib/catalog/properties/property-enum.js +54 -16
- package/lib/catalog/properties/property-hidden.js +3 -2
- package/lib/catalog/properties/property-lenght-measure.js +10 -10
- package/lib/catalog/properties/property-length-measure.js +61 -17
- package/lib/catalog/properties/property-length-measure_hole.js +10 -10
- package/lib/catalog/properties/property-number.js +3 -2
- package/lib/catalog/properties/property-read-only.js +3 -2
- package/lib/catalog/properties/property-string.js +3 -2
- package/lib/catalog/properties/property-toggle.js +3 -2
- package/lib/catalog/properties/shared-property-style.js +2 -1
- package/lib/catalog/utils/FuseUtils.js +10 -11
- package/lib/catalog/utils/exporter.js +10 -12
- package/lib/catalog/utils/geom-utils.js +1 -1
- package/lib/catalog/utils/item-loader.js +29 -35
- package/lib/catalog/utils/mtl-loader.js +7 -3
- package/lib/catalog/utils/obj-loader.js +7 -3
- package/lib/class/FuseUtils.js +10 -11
- package/lib/class/area.js +9 -11
- package/lib/class/export.js +1 -1
- package/lib/class/group.js +13 -20
- package/lib/class/guide.js +9 -12
- package/lib/class/hole.js +7 -9
- package/lib/class/item.js +25 -35
- package/lib/class/layer.js +7 -9
- package/lib/class/line.js +14 -20
- package/lib/class/project.js +10 -11
- package/lib/class/vertex.js +9 -11
- package/lib/components/content.js +5 -3
- package/lib/components/disclaimer/disclaimer.js +69 -88
- package/lib/components/export.js +1 -1
- package/lib/components/style/button.js +17 -22
- package/lib/components/style/cancel-button.js +7 -7
- package/lib/components/style/content-container.js +5 -7
- package/lib/components/style/content-title.js +10 -12
- package/lib/components/style/delete-button.js +8 -8
- package/lib/components/style/export.js +1 -1
- package/lib/components/style/form-block.js +9 -12
- package/lib/components/style/form-color-input.js +7 -7
- package/lib/components/style/form-label.js +9 -12
- package/lib/components/style/form-number-input.js +43 -23
- package/lib/components/style/form-number-input_2.js +15 -19
- package/lib/components/style/form-select.js +53 -15
- package/lib/components/style/form-slider.js +28 -12
- package/lib/components/style/form-submit-button.js +8 -8
- package/lib/components/style/form-text-input.js +46 -32
- package/lib/components/viewer2d/area.js +8 -7
- package/lib/components/viewer2d/export.js +1 -1
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js +3 -3
- package/lib/components/viewer2d/grids/grid-streak.js +3 -3
- package/lib/components/viewer2d/grids/grid-vertical-streak.js +3 -3
- package/lib/components/viewer2d/grids/grids.js +6 -10
- package/lib/components/viewer2d/group.js +4 -3
- package/lib/components/viewer2d/item.js +14 -19
- package/lib/components/viewer2d/layer.js +3 -2
- package/lib/components/viewer2d/line.js +4 -7
- package/lib/components/viewer2d/ruler.js +9 -9
- package/lib/components/viewer2d/rulerDist.js +7 -6
- package/lib/components/viewer2d/rulerX.js +15 -19
- package/lib/components/viewer2d/rulerY.js +15 -19
- package/lib/components/viewer2d/scene.js +24 -34
- package/lib/components/viewer2d/snap.js +4 -3
- package/lib/components/viewer2d/state.js +7 -11
- package/lib/components/viewer2d/utils.js +35 -2
- package/lib/components/viewer2d/vertex.js +4 -3
- package/lib/components/viewer2d/viewer2d.js +40 -41
- package/lib/components/viewer3d/camera-controls-module/camera-controls.module.js +14 -20
- package/lib/components/viewer3d/dcm.js +2 -1
- package/lib/components/viewer3d/fbm.js +2 -1
- package/lib/components/viewer3d/front3D.js +6 -10
- package/lib/components/viewer3d/grid-creator.js +4 -3
- package/lib/components/viewer3d/grids/grid-horizontal-streak.js +3 -2
- package/lib/components/viewer3d/grids/grid-streak.js +3 -2
- package/lib/components/viewer3d/grids/grid-vertical-streak.js +3 -2
- package/lib/components/viewer3d/libs/mtl-loader.js +7 -2
- package/lib/components/viewer3d/libs/obj-loader.js +7 -2
- package/lib/components/viewer3d/libs/orbit-controls.js +10 -5
- package/lib/components/viewer3d/libs/pointer-lock-controls.js +9 -4
- package/lib/components/viewer3d/lrm.js +2 -1
- package/lib/components/viewer3d/pointer-lock-navigation.js +1 -1
- package/lib/components/viewer3d/ruler-utils/itemRect.js +10 -9
- package/lib/components/viewer3d/ruler-utils/layer3D.js +35 -34
- package/lib/components/viewer3d/ruler-utils/ruler3D.js +5 -7
- package/lib/components/viewer3d/ruler-utils/scene3D.js +4 -5
- package/lib/components/viewer3d/ruler-utils/state3D.js +3 -2
- package/lib/components/viewer3d/scene-creator.js +40 -45
- package/lib/components/viewer3d/three-memory-cleaner.js +1 -1
- package/lib/components/viewer3d/viewer3d-first-person.js +13 -17
- package/lib/components/viewer3d/viewer3d.js +34 -38
- package/lib/index.js +16 -88
- package/lib/models.js +58 -63
- package/lib/plugins/autosave.js +2 -1
- package/lib/plugins/console-debugger.js +5 -7
- package/lib/plugins/export.js +1 -1
- package/lib/plugins/keyboard.js +2 -1
- package/lib/reducers/areas-reducer.js +2 -1
- package/lib/reducers/export.js +1 -1
- package/lib/reducers/groups-reducer.js +2 -1
- package/lib/reducers/holes-reducer.js +2 -1
- package/lib/reducers/items-reducer.js +2 -1
- package/lib/reducers/lines-reducer.js +2 -1
- package/lib/reducers/project-reducer.js +2 -1
- package/lib/reducers/scene-reducer.js +2 -1
- package/lib/reducers/user-reducer.js +2 -2
- package/lib/reducers/vertices-reducer.js +2 -1
- package/lib/reducers/viewer2d-reducer.js +5 -5
- package/lib/reducers/viewer3d-reducer.js +5 -5
- package/lib/styles/export.js +1 -1
- package/lib/translator/en.js +2 -1
- package/lib/translator/it.js +2 -1
- package/lib/translator/ru.js +2 -1
- package/lib/translator/translator.js +7 -10
- package/lib/utils/convert-units-lite.js +35 -0
- package/lib/utils/export.js +2 -2
- package/lib/utils/geometry.js +20 -28
- package/lib/utils/get-edges-of-subgraphs.js +7 -1
- package/lib/utils/graph-cycles.js +9 -9
- package/lib/utils/graph-inner-cycles.js +1 -1
- package/lib/utils/graph.js +15 -12
- package/lib/utils/helper.js +14 -83
- package/lib/utils/history.js +1 -1
- package/lib/utils/id-broker.js +7 -10
- package/lib/utils/molding.js +66 -71
- package/lib/utils/name-generator.js +7 -9
- package/lib/utils/objects-utils.js +5 -3
- package/lib/utils/process-black-list.js +3 -5
- package/lib/utils/react-if.js +3 -2
- package/lib/utils/snap-scene.js +3 -7
- package/lib/utils/snap.js +22 -26
- package/lib/utils/threeCSG.es6.js +16 -15
- package/package.json +26 -54
- package/es/analytics/ga4.js +0 -191
- package/es/analytics/posthog.js +0 -60
- package/lib/analytics/ga4.js +0 -197
- package/lib/analytics/posthog.js +0 -68
package/es/catalog/catalog.js
CHANGED
|
@@ -1,15 +1,6 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
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; } }
|
|
5
|
-
function _iterableToArray(r) { if ("undefined" != typeof Symbol && null != r[Symbol.iterator] || null != r["@@iterator"]) return Array.from(r); }
|
|
6
|
-
function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(r); }
|
|
7
|
-
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; }
|
|
8
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
9
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
10
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
11
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
12
|
-
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); }
|
|
1
|
+
import _toConsumableArray from "@babel/runtime/helpers/esm/toConsumableArray";
|
|
2
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
13
4
|
import { PropertyColor, PropertyEnum, PropertyString, PropertyNumber, PropertyLengthMeasure, PropertyToggle, PropertyCheckbox, PropertyHidden, PropertyReadOnly } from "./properties/export";
|
|
14
5
|
import { UNIT_CENTIMETER, UNIT_INCH } from "../constants";
|
|
15
6
|
import { returnReplaceableDeepSearchType } from "../components/viewer2d/utils";
|
|
@@ -1,9 +1,6 @@
|
|
|
1
|
-
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
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
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
4
|
import React from 'react';
|
|
8
5
|
import { createArea, updatedArea } from "./area-factory-3d";
|
|
9
6
|
import * as SharedStyle from "../../shared-style";
|
|
@@ -4,7 +4,7 @@ import { verticesDistance } from "../../utils/geometry";
|
|
|
4
4
|
import { isElevationView } from "../../utils/helper";
|
|
5
5
|
import * as SharedStyle from "../../shared-style";
|
|
6
6
|
import { LINE_THICKNESS, UNIT_CENTIMETER } from "../../constants";
|
|
7
|
-
import convert from
|
|
7
|
+
import { convert } from "../../utils/convert-units-lite";
|
|
8
8
|
import ThreeBSP from "../../utils/threeCSG.es6";
|
|
9
9
|
var params = {
|
|
10
10
|
envMap: 'HDR',
|
|
@@ -1,13 +1,13 @@
|
|
|
1
|
-
export { default as doorCloset } from "./door-closet/planner-element.
|
|
2
|
-
export { default as doorDouble } from "./door-double/planner-element.
|
|
3
|
-
export { default as doorExterior } from "./door-exterior/planner-element.
|
|
4
|
-
export { default as doorInterior } from "./door-interior/planner-element.
|
|
5
|
-
export { default as doorPanic } from "./door-panic/planner-element.
|
|
6
|
-
export { default as doorPanicDouble } from "./door-panic-double/planner-element.
|
|
7
|
-
export { default as doorSliding } from "./door-sliding/planner-element.
|
|
8
|
-
export { default as doorwayFramed } from "./doorway-framed/planner-element.
|
|
9
|
-
export { default as doorwayFrameless } from "./doorway-frameless/planner-element.
|
|
10
|
-
export { default as windowClear } from "./window-clear/planner-element.
|
|
11
|
-
export { default as windowCross } from "./window-cross/planner-element.
|
|
12
|
-
export { default as windowDoubleHung } from "./window-double-hung/planner-element.
|
|
13
|
-
export { default as windowVertical } from "./window-vertical/planner-element.
|
|
1
|
+
export { default as doorCloset } from "./door-closet/planner-element.js";
|
|
2
|
+
export { default as doorDouble } from "./door-double/planner-element.js";
|
|
3
|
+
export { default as doorExterior } from "./door-exterior/planner-element.js";
|
|
4
|
+
export { default as doorInterior } from "./door-interior/planner-element.js";
|
|
5
|
+
export { default as doorPanic } from "./door-panic/planner-element.js";
|
|
6
|
+
export { default as doorPanicDouble } from "./door-panic-double/planner-element.js";
|
|
7
|
+
export { default as doorSliding } from "./door-sliding/planner-element.js";
|
|
8
|
+
export { default as doorwayFramed } from "./doorway-framed/planner-element.js";
|
|
9
|
+
export { default as doorwayFrameless } from "./doorway-frameless/planner-element.js";
|
|
10
|
+
export { default as windowClear } from "./window-clear/planner-element.js";
|
|
11
|
+
export { default as windowCross } from "./window-cross/planner-element.js";
|
|
12
|
+
export { default as windowDoubleHung } from "./window-double-hung/planner-element.js";
|
|
13
|
+
export { default as windowVertical } from "./window-vertical/planner-element.js";
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
import
|
|
1
|
+
import ElementsFactories from "../../factories/export";
|
|
2
|
+
var textureUrl = function textureUrl(file) {
|
|
3
|
+
return new URL("./textures/".concat(file), import.meta.url).href;
|
|
4
|
+
};
|
|
2
5
|
var info = {
|
|
3
6
|
title: 'wall',
|
|
4
7
|
tag: ['wall'],
|
|
5
8
|
description: 'Wall with bricks or painted',
|
|
6
|
-
image:
|
|
9
|
+
image: new URL('./wall.png', import.meta.url).href,
|
|
7
10
|
visibility: {
|
|
8
11
|
catalog: true,
|
|
9
12
|
layerElementsVisible: true
|
|
@@ -12,11 +15,11 @@ var info = {
|
|
|
12
15
|
var textures = {
|
|
13
16
|
plaster: {
|
|
14
17
|
name: 'Plaster',
|
|
15
|
-
uri:
|
|
18
|
+
uri: textureUrl('plaster.jpg'),
|
|
16
19
|
lengthRepeatScale: 0.005,
|
|
17
20
|
heightRepeatScale: 0.005,
|
|
18
21
|
normal: {
|
|
19
|
-
uri:
|
|
22
|
+
uri: textureUrl('plaster-normal.jpg'),
|
|
20
23
|
lengthRepeatScale: 0.005,
|
|
21
24
|
heightRepeatScale: 0.005,
|
|
22
25
|
normalScaleX: 0.4,
|
|
@@ -26,11 +29,11 @@ var textures = {
|
|
|
26
29
|
},
|
|
27
30
|
bricks: {
|
|
28
31
|
name: 'Bricks',
|
|
29
|
-
uri:
|
|
32
|
+
uri: textureUrl('bricks.jpg'),
|
|
30
33
|
lengthRepeatScale: 0.009,
|
|
31
34
|
heightRepeatScale: 0.009,
|
|
32
35
|
normal: {
|
|
33
|
-
uri:
|
|
36
|
+
uri: textureUrl('bricks-normal.jpg'),
|
|
34
37
|
lengthRepeatScale: 0.009,
|
|
35
38
|
heightRepeatScale: 0.009,
|
|
36
39
|
normalScaleX: 0.4,
|
|
@@ -40,11 +43,11 @@ var textures = {
|
|
|
40
43
|
},
|
|
41
44
|
painted: {
|
|
42
45
|
name: 'Painted',
|
|
43
|
-
uri:
|
|
46
|
+
uri: textureUrl('painted.jpg'),
|
|
44
47
|
lengthRepeatScale: 0.005,
|
|
45
48
|
heightRepeatScale: 0.005,
|
|
46
49
|
normal: {
|
|
47
|
-
uri:
|
|
50
|
+
uri: textureUrl('painted-normal.jpg'),
|
|
48
51
|
lengthRepeatScale: 0.005,
|
|
49
52
|
heightRepeatScale: 0.005,
|
|
50
53
|
normalScaleX: 0.4,
|
|
@@ -54,11 +57,11 @@ var textures = {
|
|
|
54
57
|
},
|
|
55
58
|
morden: {
|
|
56
59
|
name: 'Morden',
|
|
57
|
-
uri:
|
|
60
|
+
uri: textureUrl('morden.jpg'),
|
|
58
61
|
lengthRepeatScale: 0.005,
|
|
59
62
|
heightRepeatScale: 0.005,
|
|
60
63
|
normal: {
|
|
61
|
-
uri:
|
|
64
|
+
uri: textureUrl('morden-normal.jpg'),
|
|
62
65
|
lengthRepeatScale: 0.005,
|
|
63
66
|
heightRepeatScale: 0.005,
|
|
64
67
|
normalScaleX: 0.4,
|
|
@@ -1,23 +1,57 @@
|
|
|
1
|
-
|
|
2
|
-
var _templateObject, _templateObject2, _templateObject3, _templateObject4, _templateObject5, _templateObject6;
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
4
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
5
|
-
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; }
|
|
6
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
7
|
-
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); }
|
|
8
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
9
4
|
import React from 'react';
|
|
10
5
|
import PropTypes from 'prop-types';
|
|
11
|
-
import { FormLabel } from "../../components/style/export";
|
|
12
|
-
import PropertyStyle from "./shared-property-style";
|
|
13
|
-
import styled from 'styled-components';
|
|
14
6
|
import { DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR, TEXT_COLOR_NEUTRAL_0 } from "../../constants";
|
|
15
|
-
var
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
7
|
+
var styles = {
|
|
8
|
+
flipWrapper: {
|
|
9
|
+
display: 'flex',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
margin: '15px 0',
|
|
12
|
+
justifyContent: 'space-between'
|
|
13
|
+
},
|
|
14
|
+
flipTitle: {
|
|
15
|
+
marginRight: 'auto',
|
|
16
|
+
color: SECONDARY_PURPLE_COLOR,
|
|
17
|
+
fontFamily: DEFAULT_FONT_FAMILY,
|
|
18
|
+
fontSize: 16,
|
|
19
|
+
fontWeight: 600,
|
|
20
|
+
lineHeight: '18px',
|
|
21
|
+
textAlign: 'left'
|
|
22
|
+
},
|
|
23
|
+
flipDescription: {
|
|
24
|
+
marginRight: 'auto',
|
|
25
|
+
color: TEXT_COLOR_NEUTRAL_0,
|
|
26
|
+
fontFamily: DEFAULT_FONT_FAMILY,
|
|
27
|
+
fontSize: 13,
|
|
28
|
+
fontWeight: 400,
|
|
29
|
+
lineHeight: '18px',
|
|
30
|
+
textAlign: 'left'
|
|
31
|
+
},
|
|
32
|
+
flipInfoWrapper: {
|
|
33
|
+
display: 'flex',
|
|
34
|
+
flexDirection: 'column'
|
|
35
|
+
},
|
|
36
|
+
flipToggle: {
|
|
37
|
+
display: 'flex',
|
|
38
|
+
position: 'relative',
|
|
39
|
+
alignItems: 'center',
|
|
40
|
+
justifyContent: 'center',
|
|
41
|
+
fontSize: 14,
|
|
42
|
+
cursor: 'pointer',
|
|
43
|
+
userSelect: 'none'
|
|
44
|
+
},
|
|
45
|
+
flipToggleIcon: {
|
|
46
|
+
top: 0,
|
|
47
|
+
position: 'absolute'
|
|
48
|
+
},
|
|
49
|
+
flipToggleIconImg: {
|
|
50
|
+
fontSize: '1.4rem',
|
|
51
|
+
boxSizing: 'border-box',
|
|
52
|
+
borderRadius: '50%'
|
|
53
|
+
}
|
|
54
|
+
};
|
|
21
55
|
export default function PropertyCheckbox(_ref) {
|
|
22
56
|
var value = _ref.value,
|
|
23
57
|
onUpdate = _ref.onUpdate,
|
|
@@ -38,10 +72,18 @@ export default function PropertyCheckbox(_ref) {
|
|
|
38
72
|
} : {
|
|
39
73
|
right: 0
|
|
40
74
|
};
|
|
41
|
-
return /*#__PURE__*/React.createElement(
|
|
42
|
-
style:
|
|
75
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
76
|
+
style: styles.flipWrapper
|
|
77
|
+
}, /*#__PURE__*/React.createElement("div", {
|
|
78
|
+
style: styles.flipInfoWrapper
|
|
79
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
80
|
+
style: styles.flipTitle
|
|
81
|
+
}, configs.label), configs.description && /*#__PURE__*/React.createElement("span", {
|
|
82
|
+
style: styles.flipDescription
|
|
83
|
+
}, configs.description)), /*#__PURE__*/React.createElement("div", {
|
|
84
|
+
style: _objectSpread(_objectSpread({}, styles.flipToggle), {}, {
|
|
43
85
|
color: 'black'
|
|
44
|
-
},
|
|
86
|
+
}),
|
|
45
87
|
onClick: function onClick(e) {
|
|
46
88
|
return update(!value);
|
|
47
89
|
}
|
|
@@ -51,14 +93,14 @@ export default function PropertyCheckbox(_ref) {
|
|
|
51
93
|
width: '55px',
|
|
52
94
|
height: '30px'
|
|
53
95
|
}
|
|
54
|
-
}), /*#__PURE__*/React.createElement(
|
|
55
|
-
style: _objectSpread({}, activeStyle)
|
|
96
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
97
|
+
style: _objectSpread(_objectSpread({}, styles.flipToggleIcon), activeStyle)
|
|
56
98
|
}, /*#__PURE__*/React.createElement("img", {
|
|
57
99
|
src: "/assets/img/svg/bottombar/".concat(value != 0 ? '2d3d_button_active.svg' : '2d3d_button.svg'),
|
|
58
|
-
style: {
|
|
100
|
+
style: _objectSpread({
|
|
59
101
|
width: '30px',
|
|
60
102
|
height: '30px'
|
|
61
|
-
}
|
|
103
|
+
}, styles.flipToggleIconImg)
|
|
62
104
|
}))));
|
|
63
105
|
}
|
|
64
106
|
PropertyCheckbox.propTypes = {
|
|
@@ -1,20 +1,40 @@
|
|
|
1
|
-
|
|
2
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
3
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
4
|
-
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; } }
|
|
5
|
-
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; }
|
|
6
|
-
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; } }
|
|
7
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
8
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
1
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
9
2
|
import React from 'react';
|
|
10
3
|
import PropTypes from 'prop-types';
|
|
11
4
|
import { Seq } from 'immutable';
|
|
12
|
-
import {
|
|
13
|
-
import
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
5
|
+
import { FormSelect } from "../../components/style/export";
|
|
6
|
+
import { DEFAULT_FONT_FAMILY, TEXT_COLOR_NEUTRAL_0 } from "../../constants";
|
|
7
|
+
var styles = {
|
|
8
|
+
enumWrapper: {
|
|
9
|
+
display: 'flex',
|
|
10
|
+
alignItems: 'center',
|
|
11
|
+
marginTop: 3
|
|
12
|
+
},
|
|
13
|
+
enumTitle: function enumTitle(fontSize) {
|
|
14
|
+
return {
|
|
15
|
+
marginRight: 'auto',
|
|
16
|
+
width: 110,
|
|
17
|
+
color: TEXT_COLOR_NEUTRAL_0,
|
|
18
|
+
fontFamily: DEFAULT_FONT_FAMILY,
|
|
19
|
+
fontSize: fontSize,
|
|
20
|
+
fontWeight: 400,
|
|
21
|
+
lineHeight: '15px',
|
|
22
|
+
textAlign: 'left'
|
|
23
|
+
};
|
|
24
|
+
}
|
|
25
|
+
};
|
|
26
|
+
|
|
27
|
+
// Responsive font size logic
|
|
28
|
+
function getFontSize() {
|
|
29
|
+
if (typeof window !== 'undefined') {
|
|
30
|
+
var w = window.innerWidth;
|
|
31
|
+
if (w <= 1024) return 11;
|
|
32
|
+
if (w <= 1366) return 13;
|
|
33
|
+
if (w <= 1440) return 16;
|
|
34
|
+
return 16;
|
|
35
|
+
}
|
|
36
|
+
return 13;
|
|
37
|
+
}
|
|
18
38
|
export default function PropertyEnum(_ref) {
|
|
19
39
|
var value = _ref.value,
|
|
20
40
|
onUpdate = _ref.onUpdate,
|
|
@@ -30,7 +50,24 @@ export default function PropertyEnum(_ref) {
|
|
|
30
50
|
}
|
|
31
51
|
return onUpdate(val);
|
|
32
52
|
};
|
|
33
|
-
|
|
53
|
+
var _React$useState = React.useState(getFontSize()),
|
|
54
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
55
|
+
fontSize = _React$useState2[0],
|
|
56
|
+
setFontSize = _React$useState2[1];
|
|
57
|
+
React.useEffect(function () {
|
|
58
|
+
function handleResize() {
|
|
59
|
+
setFontSize(getFontSize());
|
|
60
|
+
}
|
|
61
|
+
window.addEventListener('resize', handleResize);
|
|
62
|
+
return function () {
|
|
63
|
+
return window.removeEventListener('resize', handleResize);
|
|
64
|
+
};
|
|
65
|
+
}, []);
|
|
66
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
67
|
+
style: styles.enumWrapper
|
|
68
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
69
|
+
style: styles.enumTitle(fontSize)
|
|
70
|
+
}, configs.label), /*#__PURE__*/React.createElement(FormSelect, {
|
|
34
71
|
value: value,
|
|
35
72
|
onChange: function onChange(event) {
|
|
36
73
|
return update(event.target.value);
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
1
3
|
var _excluded = ["hook", "label"];
|
|
2
|
-
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); }
|
|
3
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
4
|
import React from 'react';
|
|
6
5
|
import PropTypes from 'prop-types';
|
|
7
|
-
import { BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS,
|
|
8
|
-
import convert from
|
|
6
|
+
import { BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS, UNIT_INCH, UNITS_LENGTH } from "./../../constants";
|
|
7
|
+
import { convert } from "../../utils/convert-units-lite";
|
|
9
8
|
import { FormLabel, FormNumberInput, FormSelect } from "../../components/style/export";
|
|
10
9
|
import { Map } from 'immutable';
|
|
11
10
|
import { toFixedFloat } from "../../utils/math";
|
|
@@ -1,19 +1,45 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
3
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
1
4
|
var _excluded = ["hook", "label"];
|
|
2
|
-
var _templateObject, _templateObject2;
|
|
3
|
-
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); }
|
|
4
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
5
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
6
|
-
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
7
5
|
import React from 'react';
|
|
8
6
|
import PropTypes from 'prop-types';
|
|
9
|
-
import {
|
|
10
|
-
import convert from
|
|
11
|
-
import {
|
|
7
|
+
import { BASE_CABINET_LAYOUTPOS, DEFAULT_FONT_FAMILY, TALL_CABINET_LAYOUTPOS, TEXT_COLOR_NEUTRAL_0, UNIT_CENTIMETER, UNIT_INCH } from "../../constants";
|
|
8
|
+
import { convert } from "../../utils/convert-units-lite";
|
|
9
|
+
import { FormNumberInput } from "../../components/style/export";
|
|
12
10
|
import { Map } from 'immutable';
|
|
13
11
|
import { toFixedFloat } from "../../utils/math";
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
12
|
+
var styles = {
|
|
13
|
+
distanceFloorWrapper: {
|
|
14
|
+
display: 'flex',
|
|
15
|
+
alignItems: 'center',
|
|
16
|
+
marginTop: 3
|
|
17
|
+
},
|
|
18
|
+
distanceFloorTitle: function distanceFloorTitle(fontSize) {
|
|
19
|
+
return {
|
|
20
|
+
marginRight: 'auto',
|
|
21
|
+
width: 110,
|
|
22
|
+
color: TEXT_COLOR_NEUTRAL_0,
|
|
23
|
+
fontFamily: DEFAULT_FONT_FAMILY,
|
|
24
|
+
fontSize: fontSize,
|
|
25
|
+
fontWeight: 400,
|
|
26
|
+
lineHeight: '15px',
|
|
27
|
+
textAlign: 'left'
|
|
28
|
+
};
|
|
29
|
+
}
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
// Responsive font size logic
|
|
33
|
+
function getFontSize() {
|
|
34
|
+
if (typeof window !== 'undefined') {
|
|
35
|
+
var w = window.innerWidth;
|
|
36
|
+
if (w <= 1024) return 11;
|
|
37
|
+
if (w <= 1366) return 13;
|
|
38
|
+
if (w <= 1440) return 16;
|
|
39
|
+
return 16;
|
|
40
|
+
}
|
|
41
|
+
return 13;
|
|
42
|
+
}
|
|
17
43
|
export default function PropertyLengthMeasure(_ref, _ref2) {
|
|
18
44
|
var value = _ref.value,
|
|
19
45
|
onUpdate = _ref.onUpdate,
|
|
@@ -58,7 +84,24 @@ export default function PropertyLengthMeasure(_ref, _ref2) {
|
|
|
58
84
|
}
|
|
59
85
|
return onUpdate(merged);
|
|
60
86
|
};
|
|
61
|
-
|
|
87
|
+
var _React$useState = React.useState(getFontSize()),
|
|
88
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
89
|
+
fontSize = _React$useState2[0],
|
|
90
|
+
setFontSize = _React$useState2[1];
|
|
91
|
+
React.useEffect(function () {
|
|
92
|
+
function handleResize() {
|
|
93
|
+
setFontSize(getFontSize());
|
|
94
|
+
}
|
|
95
|
+
window.addEventListener('resize', handleResize);
|
|
96
|
+
return function () {
|
|
97
|
+
return window.removeEventListener('resize', handleResize);
|
|
98
|
+
};
|
|
99
|
+
}, []);
|
|
100
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
101
|
+
style: styles.distanceFloorWrapper
|
|
102
|
+
}, /*#__PURE__*/React.createElement("span", {
|
|
103
|
+
style: styles.distanceFloorTitle(fontSize)
|
|
104
|
+
}, label), /*#__PURE__*/React.createElement(FormNumberInput, _extends({
|
|
62
105
|
disabled: type === TALL_CABINET_LAYOUTPOS,
|
|
63
106
|
value: convert(_length).from('in').to(unit),
|
|
64
107
|
onChange: function onChange(event) {
|
|
@@ -1,11 +1,10 @@
|
|
|
1
|
+
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
|
+
import _objectWithoutProperties from "@babel/runtime/helpers/esm/objectWithoutProperties";
|
|
1
3
|
var _excluded = ["hook", "label"];
|
|
2
|
-
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); }
|
|
3
|
-
function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var n = Object.getOwnPropertySymbols(e); for (r = 0; r < n.length; r++) o = n[r], -1 === t.indexOf(o) && {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
|
|
4
|
-
function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (-1 !== e.indexOf(n)) continue; t[n] = r[n]; } return t; }
|
|
5
4
|
import React from 'react';
|
|
6
5
|
import PropTypes from 'prop-types';
|
|
7
|
-
import {
|
|
8
|
-
import convert from
|
|
6
|
+
import { BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS, UNIT_INCH, UNITS_LENGTH } from "../../constants";
|
|
7
|
+
import { convert } from "../../utils/convert-units-lite";
|
|
9
8
|
import { FormLabel, FormNumberInput1, FormSelect } from "../../components/style/export";
|
|
10
9
|
import { Map } from 'immutable';
|
|
11
10
|
import { toFixedFloat } from "../../utils/math";
|
|
@@ -1,12 +1,9 @@
|
|
|
1
|
+
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
2
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
1
4
|
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; } } }; }
|
|
2
5
|
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; } }
|
|
3
6
|
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; }
|
|
4
|
-
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); }
|
|
5
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
6
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
7
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
9
|
-
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); }
|
|
10
7
|
var FuseUtils = /*#__PURE__*/function () {
|
|
11
8
|
function FuseUtils() {
|
|
12
9
|
_classCallCheck(this, FuseUtils);
|
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
2
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
3
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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 convert from 'convert-units';
|
|
4
|
+
import { convert } from "../../utils/convert-units-lite";
|
|
8
5
|
export default function (_ref) {
|
|
9
6
|
var itemID = _ref.itemID,
|
|
10
7
|
type = _ref.type,
|
|
@@ -1,16 +1,9 @@
|
|
|
1
|
-
|
|
1
|
+
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
2
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
3
|
+
import _slicedToArray from "@babel/runtime/helpers/esm/slicedToArray";
|
|
2
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
4
|
-
|
|
5
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
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
|
-
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
8
|
-
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
9
|
-
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; } }
|
|
10
|
-
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; }
|
|
11
|
-
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; } }
|
|
12
|
-
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
13
|
-
import convert from 'convert-units';
|
|
6
|
+
import { convert } from "../../utils/convert-units-lite";
|
|
14
7
|
import { fromJS, Map } from 'immutable';
|
|
15
8
|
import React, { useState } from 'react';
|
|
16
9
|
import * as Three from 'three';
|
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
* @author angelxuanchang
|
|
5
5
|
*/
|
|
6
6
|
|
|
7
|
-
var THREE = window.THREE
|
|
7
|
+
var THREE = window.THREE;
|
|
8
8
|
var MTLLoader;
|
|
9
9
|
MTLLoader = function MTLLoader(manager) {
|
|
10
10
|
this.manager = manager !== undefined ? manager : THREE.DefaultLoadingManager;
|
|
@@ -354,4 +354,5 @@ MTLLoader.MaterialCreator.prototype = {
|
|
|
354
354
|
return texture;
|
|
355
355
|
}
|
|
356
356
|
};
|
|
357
|
-
|
|
357
|
+
export default MTLLoader;
|
|
358
|
+
export { MTLLoader };
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* @author mrdoob / http://mrdoob.com/
|
|
3
3
|
*/
|
|
4
|
-
var THREE = window.THREE
|
|
4
|
+
var THREE = window.THREE;
|
|
5
5
|
var OBJLoader;
|
|
6
6
|
OBJLoader = function () {
|
|
7
7
|
// o object_name | g group_name
|
|
@@ -473,4 +473,5 @@ OBJLoader = function () {
|
|
|
473
473
|
};
|
|
474
474
|
return OBJLoader;
|
|
475
475
|
}();
|
|
476
|
-
|
|
476
|
+
export default OBJLoader;
|
|
477
|
+
export { OBJLoader };
|
package/es/class/FuseUtils.js
CHANGED
|
@@ -1,12 +1,9 @@
|
|
|
1
|
+
import _typeof from "@babel/runtime/helpers/esm/typeof";
|
|
2
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
1
4
|
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; } } }; }
|
|
2
5
|
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; } }
|
|
3
6
|
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; }
|
|
4
|
-
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); }
|
|
5
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
6
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
7
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
9
|
-
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); }
|
|
10
7
|
var FuseUtils = /*#__PURE__*/function () {
|
|
11
8
|
function FuseUtils() {
|
|
12
9
|
_classCallCheck(this, FuseUtils);
|
package/es/class/area.js
CHANGED
|
@@ -1,14 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
import _defineProperty from "@babel/runtime/helpers/esm/defineProperty";
|
|
2
|
+
import _classCallCheck from "@babel/runtime/helpers/esm/classCallCheck";
|
|
3
|
+
import _createClass from "@babel/runtime/helpers/esm/createClass";
|
|
2
4
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
3
5
|
function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
|
|
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
|
-
function _classCallCheck(a, n) { if (!(a instanceof n)) throw new TypeError("Cannot call a class as a function"); }
|
|
6
|
-
function _defineProperties(e, r) { for (var t = 0; t < r.length; t++) { var o = r[t]; o.enumerable = o.enumerable || !1, o.configurable = !0, "value" in o && (o.writable = !0), Object.defineProperty(e, _toPropertyKey(o.key), o); } }
|
|
7
|
-
function _createClass(e, r, t) { return r && _defineProperties(e.prototype, r), t && _defineProperties(e, t), Object.defineProperty(e, "prototype", { writable: !1 }), e; }
|
|
8
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
9
|
-
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); }
|
|
10
6
|
import { fromJS } from 'immutable';
|
|
11
|
-
import { Layer, Vertex
|
|
7
|
+
import { Group, Layer, Vertex } from "./export";
|
|
12
8
|
import { IDBroker, NameGenerator } from "../utils/export";
|
|
13
9
|
var Area = /*#__PURE__*/function () {
|
|
14
10
|
function Area() {
|