kitchen-simulator 1.1.1-test.43 → 1.1.1-test.45
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 +1 -1
- package/es/KitchenConfiguratorApp.js +1 -1
- package/es/catalog/properties/property-checkbox.js +1 -1
- package/es/catalog/properties/property-color.js +1 -1
- package/es/catalog/properties/property-enum.js +1 -1
- package/es/catalog/properties/property-hidden.js +1 -1
- package/es/catalog/properties/property-lenght-measure.js +1 -1
- package/es/catalog/properties/property-length-measure.js +1 -1
- package/es/catalog/properties/property-length-measure_hole.js +1 -1
- package/es/catalog/properties/property-number.js +1 -1
- package/es/catalog/properties/property-read-only.js +1 -1
- package/es/catalog/properties/property-string.js +1 -1
- package/es/catalog/properties/property-toggle.js +1 -1
- package/es/components/content.js +1 -1
- package/es/components/style/button.js +1 -1
- package/es/components/style/content-container.js +1 -1
- package/es/components/style/content-title.js +1 -1
- package/es/components/style/form-number-input.js +1 -1
- package/es/components/style/form-number-input_2.js +1 -1
- package/es/components/viewer2d/area.js +1 -1
- package/es/components/viewer2d/grids/grid-horizontal-streak.js +1 -1
- package/es/components/viewer2d/grids/grid-streak.js +1 -1
- package/es/components/viewer2d/grids/grid-vertical-streak.js +1 -1
- package/es/components/viewer2d/grids/grids.js +1 -1
- package/es/components/viewer2d/group.js +1 -1
- package/es/components/viewer2d/item.js +1 -1
- package/es/components/viewer2d/layer.js +1 -1
- package/es/components/viewer2d/line.js +1 -1
- package/es/components/viewer2d/ruler.js +1 -1
- package/es/components/viewer2d/rulerDist.js +1 -1
- package/es/components/viewer2d/rulerX.js +1 -1
- package/es/components/viewer2d/rulerY.js +1 -1
- package/es/components/viewer2d/scene.js +1 -1
- package/es/components/viewer2d/snap.js +1 -1
- package/es/components/viewer2d/state.js +1 -1
- package/es/components/viewer2d/vertex.js +1 -1
- package/es/components/viewer2d/viewer2d.js +1 -1
- package/es/components/viewer3d/viewer3d-first-person.js +1 -1
- package/es/components/viewer3d/viewer3d.js +1 -1
- package/es/utils/react-if.js +1 -1
- package/lib/KitchenConfigurator.js +20 -20
- package/lib/KitchenConfiguratorApp.js +22 -22
- package/lib/catalog/properties/property-checkbox.js +7 -8
- package/lib/catalog/properties/property-color.js +7 -9
- package/lib/catalog/properties/property-enum.js +7 -9
- package/lib/catalog/properties/property-hidden.js +7 -9
- package/lib/catalog/properties/property-lenght-measure.js +9 -11
- package/lib/catalog/properties/property-length-measure.js +9 -11
- package/lib/catalog/properties/property-length-measure_hole.js +9 -11
- package/lib/catalog/properties/property-number.js +8 -10
- package/lib/catalog/properties/property-read-only.js +7 -9
- package/lib/catalog/properties/property-string.js +7 -9
- package/lib/catalog/properties/property-toggle.js +7 -9
- package/lib/components/content.js +6 -6
- package/lib/components/style/button.js +6 -5
- package/lib/components/style/content-container.js +4 -5
- package/lib/components/style/content-title.js +2 -2
- package/lib/components/style/form-number-input.js +16 -15
- package/lib/components/style/form-number-input_2.js +13 -12
- package/lib/components/viewer2d/area.js +4 -6
- package/lib/components/viewer2d/grids/grid-horizontal-streak.js +4 -6
- package/lib/components/viewer2d/grids/grid-streak.js +4 -6
- package/lib/components/viewer2d/grids/grid-vertical-streak.js +4 -6
- package/lib/components/viewer2d/grids/grids.js +2 -2
- package/lib/components/viewer2d/group.js +6 -6
- package/lib/components/viewer2d/item.js +6 -6
- package/lib/components/viewer2d/layer.js +4 -6
- package/lib/components/viewer2d/line.js +5 -5
- package/lib/components/viewer2d/ruler.js +4 -6
- package/lib/components/viewer2d/rulerDist.js +4 -6
- package/lib/components/viewer2d/rulerX.js +13 -12
- package/lib/components/viewer2d/rulerY.js +11 -10
- package/lib/components/viewer2d/scene.js +6 -5
- package/lib/components/viewer2d/snap.js +4 -4
- package/lib/components/viewer2d/state.js +4 -4
- package/lib/components/viewer2d/vertex.js +3 -3
- package/lib/components/viewer2d/viewer2d.js +12 -12
- package/lib/components/viewer3d/viewer3d-first-person.js +10 -10
- package/lib/components/viewer3d/viewer3d.js +12 -12
- package/lib/utils/react-if.js +3 -5
- package/package.json +1 -2
|
@@ -31,7 +31,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
31
31
|
import axios from 'axios';
|
|
32
32
|
import * as convert from 'convert-units';
|
|
33
33
|
import { Plugins as PlannerPlugins } from "./index";
|
|
34
|
-
import
|
|
34
|
+
import PropTypes from 'prop-types';
|
|
35
35
|
import React, { Component } from 'react';
|
|
36
36
|
import { connect } from 'react-redux';
|
|
37
37
|
import { bindActionCreators } from 'redux';
|
|
@@ -19,7 +19,7 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
|
19
19
|
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; }
|
|
20
20
|
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; }
|
|
21
21
|
import React, { useEffect } from 'react';
|
|
22
|
-
import
|
|
22
|
+
import PropTypes from 'prop-types';
|
|
23
23
|
import { Provider } from 'react-redux';
|
|
24
24
|
import { createStore } from 'redux';
|
|
25
25
|
import * as Models from "./models";
|
|
@@ -5,7 +5,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
9
|
import { DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR, TEXT_COLOR_NEUTRAL_0 } from "../../constants";
|
|
10
10
|
var styles = {
|
|
11
11
|
flipWrapper: {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
3
|
import { FormLabel, FormColorInput } from "../../components/style/export";
|
|
4
4
|
import PropertyStyle from "./shared-property-style";
|
|
5
5
|
export default function PropertyColor(_ref) {
|
|
@@ -5,7 +5,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
9
|
import { Seq } from 'immutable';
|
|
10
10
|
import { FormSelect } from "../../components/style/export";
|
|
11
11
|
import { DEFAULT_FONT_FAMILY, TEXT_COLOR_NEUTRAL_0 } from "../../constants";
|
|
@@ -3,7 +3,7 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
3
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
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
5
|
import React from 'react';
|
|
6
|
-
import
|
|
6
|
+
import PropTypes from 'prop-types';
|
|
7
7
|
import { BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS, UNITS_LENGTH, UNIT_INCH } from "./../../constants";
|
|
8
8
|
import convert from 'convert-units';
|
|
9
9
|
import { FormLabel, FormNumberInput, FormSelect } from "../../components/style/export";
|
|
@@ -9,7 +9,7 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
|
9
9
|
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; }
|
|
10
10
|
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; }
|
|
11
11
|
import React from 'react';
|
|
12
|
-
import
|
|
12
|
+
import PropTypes from 'prop-types';
|
|
13
13
|
import { BASE_CABINET_LAYOUTPOS, DEFAULT_FONT_FAMILY, TALL_CABINET_LAYOUTPOS, TEXT_COLOR_NEUTRAL_0, UNIT_CENTIMETER, UNIT_INCH } from "../../constants";
|
|
14
14
|
import convert from 'convert-units';
|
|
15
15
|
import { FormNumberInput } from "../../components/style/export";
|
|
@@ -3,7 +3,7 @@ function _extends() { return _extends = Object.assign ? Object.assign.bind() : f
|
|
|
3
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
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
5
|
import React from 'react';
|
|
6
|
-
import
|
|
6
|
+
import PropTypes from 'prop-types';
|
|
7
7
|
import { UNITS_LENGTH, UNIT_INCH, UNIT_CENTIMETER, BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
8
8
|
import convert from 'convert-units';
|
|
9
9
|
import { FormLabel, FormNumberInput1, FormSelect } from "../../components/style/export";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
3
|
import { FormLabel, FormNumberInput } from "../../components/style/export";
|
|
4
4
|
import PropertyStyle from "./shared-property-style";
|
|
5
5
|
export default function PropertyNumber(_ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
3
|
import { FormLabel } from "../../components/style/export";
|
|
4
4
|
import PropertyStyle from "./shared-property-style";
|
|
5
5
|
export default function PropertyReadOnly(_ref) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
3
|
import { FormLabel, Button } from "../../components/style/export";
|
|
4
4
|
import PropertyStyle from "./shared-property-style";
|
|
5
5
|
export default function PropertyToggle(_ref) {
|
package/es/components/content.js
CHANGED
|
@@ -16,7 +16,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
16
16
|
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); }
|
|
17
17
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
18
18
|
import React, { Component } from 'react';
|
|
19
|
-
import
|
|
19
|
+
import PropTypes from 'prop-types';
|
|
20
20
|
import * as SharedStyle from "../../shared-style";
|
|
21
21
|
var BASE_STYLE = {
|
|
22
22
|
display: 'inline-block',
|
|
@@ -5,7 +5,7 @@ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object
|
|
|
5
5
|
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
|
|
6
6
|
function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
9
|
var STYLE = {
|
|
10
10
|
padding: '0 20px',
|
|
11
11
|
overflowY: 'auto'
|
|
@@ -9,7 +9,7 @@ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e
|
|
|
9
9
|
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; }
|
|
10
10
|
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; }
|
|
11
11
|
import React from 'react';
|
|
12
|
-
import
|
|
12
|
+
import PropTypes from 'prop-types';
|
|
13
13
|
import * as SharedStyle from "../../shared-style";
|
|
14
14
|
var STYLE = {
|
|
15
15
|
color: SharedStyle.PRIMARY_COLOR.alt,
|
|
@@ -15,7 +15,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
15
15
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
16
16
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
17
17
|
import React, { Component } from 'react';
|
|
18
|
-
import
|
|
18
|
+
import PropTypes from 'prop-types';
|
|
19
19
|
import { DEFAULT_FONT_FAMILY, KEYBOARD_BUTTON_CODE, SECONDARY_PURPLE_COLOR, TEXT_COLOR_NEUTRAL_0 } from "../../constants";
|
|
20
20
|
import { isValidNumber } from "../../utils/helper";
|
|
21
21
|
var styles = {
|
|
@@ -15,7 +15,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
15
15
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
16
16
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
17
17
|
import React, { Component } from 'react';
|
|
18
|
-
import
|
|
18
|
+
import PropTypes from 'prop-types';
|
|
19
19
|
import * as SharedStyle from "../../shared-style";
|
|
20
20
|
import { MdUpdate } from 'react-icons/md';
|
|
21
21
|
import { KEYBOARD_BUTTON_CODE } from "../../constants";
|
|
@@ -5,7 +5,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React, { memo } from 'react';
|
|
8
|
-
import
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
9
|
import GridStreak from "./grid-streak";
|
|
10
10
|
var propsAreEqual = function propsAreEqual(oldScene, newScene) {
|
|
11
11
|
return oldScene.scene.width === newScene.scene.width && oldScene.scene.height === newScene.scene.height && oldScene.scene.grids === newScene.scene.grids;
|
|
@@ -6,7 +6,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
6
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React from 'react';
|
|
8
8
|
import { useState } from 'react';
|
|
9
|
-
import
|
|
9
|
+
import PropTypes from 'prop-types';
|
|
10
10
|
import If from "../../utils/react-if";
|
|
11
11
|
import RulerDist from "./rulerDist";
|
|
12
12
|
import convert from 'convert-units';
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
3
|
import { Line, Area, Vertex, Item, Group } from "./export";
|
|
4
4
|
import { GeometryUtils } from "../../utils/export";
|
|
5
5
|
import { MODE_DRAWING_LINE, WALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
3
|
import { GeometryUtils } from "../../utils/export";
|
|
4
4
|
import Ruler from "./ruler";
|
|
5
5
|
import { BASE_CABINET_LAYOUTPOS, LINE_THICKNESS, WALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
@@ -15,7 +15,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
15
15
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
16
16
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
17
17
|
import React, { Component } from 'react';
|
|
18
|
-
import
|
|
18
|
+
import PropTypes from 'prop-types';
|
|
19
19
|
import * as SharedStyle from "../../shared-style";
|
|
20
20
|
var RulerX = /*#__PURE__*/function (_Component) {
|
|
21
21
|
function RulerX(props, context) {
|
|
@@ -15,7 +15,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
15
15
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
16
16
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
17
17
|
import React, { Component } from 'react';
|
|
18
|
-
import
|
|
18
|
+
import PropTypes from 'prop-types';
|
|
19
19
|
import * as SharedStyle from "../../shared-style";
|
|
20
20
|
var RulerY = /*#__PURE__*/function (_Component) {
|
|
21
21
|
function RulerY(props, context) {
|
|
@@ -22,7 +22,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
22
22
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
23
23
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
24
24
|
import React, { Component } from 'react';
|
|
25
|
-
import
|
|
25
|
+
import PropTypes from 'prop-types';
|
|
26
26
|
import { Grids, Layer } from "./export";
|
|
27
27
|
var Scene = /*#__PURE__*/function (_Component) {
|
|
28
28
|
function Scene() {
|
|
@@ -5,7 +5,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
5
5
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
6
6
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
9
|
import Scene from "./scene";
|
|
10
10
|
import Snap from "./snap";
|
|
11
11
|
import * as SharedStyle from "../../shared-style";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
3
|
import * as SharedStyle from "../../shared-style";
|
|
4
4
|
//Space from the center of the point(Use cases:x - vertexthickness,y + vertexthickness )
|
|
5
5
|
var vertexthickness = 4;
|
|
@@ -15,7 +15,7 @@ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length)
|
|
|
15
15
|
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
16
16
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
17
17
|
import React, { useEffect, useRef, useState } from 'react';
|
|
18
|
-
import
|
|
18
|
+
import PropTypes from 'prop-types';
|
|
19
19
|
import { ReactSVGPanZoom, TOOL_AUTO, TOOL_NONE, TOOL_PAN, TOOL_ZOOM_IN, TOOL_ZOOM_OUT, zoom } from 'react-svg-pan-zoom';
|
|
20
20
|
import * as constants from "../../constants";
|
|
21
21
|
import State from "./state";
|
|
@@ -14,7 +14,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
14
14
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
15
15
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
16
16
|
import React from 'react';
|
|
17
|
-
import
|
|
17
|
+
import PropTypes from 'prop-types';
|
|
18
18
|
import ReactDOM from 'react-dom';
|
|
19
19
|
import * as Three from 'three';
|
|
20
20
|
import { parseData, updateScene } from "./scene-creator";
|
|
@@ -18,7 +18,7 @@ function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? O
|
|
|
18
18
|
function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
|
|
19
19
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
20
20
|
import React from 'react';
|
|
21
|
-
import
|
|
21
|
+
import PropTypes from 'prop-types';
|
|
22
22
|
import ReactDOM from 'react-dom';
|
|
23
23
|
import * as Three from 'three';
|
|
24
24
|
import { checkCabinetOverlap, createBacksplash, deleteSpecifiedMeshObjects, fVLine, getDistances, parseData, updateScene, visibleTransformBox } from "./scene-creator";
|
package/es/utils/react-if.js
CHANGED
|
@@ -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 _reactRedux = require("react-redux");
|
|
13
13
|
var _redux = require("redux");
|
|
@@ -601,30 +601,30 @@ var KitchenConfigurator = /*#__PURE__*/function (_Component) {
|
|
|
601
601
|
}]);
|
|
602
602
|
}(_react.Component);
|
|
603
603
|
KitchenConfigurator.propTypes = {
|
|
604
|
-
translator:
|
|
605
|
-
catalog:
|
|
606
|
-
allowProjectFileSupport:
|
|
607
|
-
plugins:
|
|
608
|
-
autosaveKey:
|
|
609
|
-
autosaveDelay:
|
|
610
|
-
width:
|
|
611
|
-
height:
|
|
612
|
-
stateExtractor:
|
|
613
|
-
toolbarButtons:
|
|
614
|
-
sidebarComponents:
|
|
615
|
-
footerbarComponents:
|
|
616
|
-
customContents:
|
|
617
|
-
softwareSignature:
|
|
618
|
-
configData:
|
|
604
|
+
translator: _propTypes["default"].instanceOf(_translator["default"]),
|
|
605
|
+
catalog: _propTypes["default"].instanceOf(_catalog["default"]),
|
|
606
|
+
allowProjectFileSupport: _propTypes["default"].bool,
|
|
607
|
+
plugins: _propTypes["default"].arrayOf(_propTypes["default"].func),
|
|
608
|
+
autosaveKey: _propTypes["default"].string,
|
|
609
|
+
autosaveDelay: _propTypes["default"].number,
|
|
610
|
+
width: _propTypes["default"].number.isRequired,
|
|
611
|
+
height: _propTypes["default"].number.isRequired,
|
|
612
|
+
stateExtractor: _propTypes["default"].func.isRequired,
|
|
613
|
+
toolbarButtons: _propTypes["default"].array,
|
|
614
|
+
sidebarComponents: _propTypes["default"].array,
|
|
615
|
+
footerbarComponents: _propTypes["default"].array,
|
|
616
|
+
customContents: _propTypes["default"].object,
|
|
617
|
+
softwareSignature: _propTypes["default"].string,
|
|
618
|
+
configData: _propTypes["default"].object
|
|
619
619
|
};
|
|
620
620
|
KitchenConfigurator.contextTypes = {
|
|
621
|
-
store:
|
|
621
|
+
store: _propTypes["default"].object.isRequired
|
|
622
622
|
};
|
|
623
623
|
KitchenConfigurator.childContextTypes = _objectSpread(_objectSpread({}, (0, _objectsUtils.objectsMap)(_export["default"], function () {
|
|
624
|
-
return
|
|
624
|
+
return _propTypes["default"].object;
|
|
625
625
|
})), {}, {
|
|
626
|
-
translator:
|
|
627
|
-
catalog:
|
|
626
|
+
translator: _propTypes["default"].object,
|
|
627
|
+
catalog: _propTypes["default"].object
|
|
628
628
|
});
|
|
629
629
|
KitchenConfigurator.defaultProps = {
|
|
630
630
|
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"));
|
|
@@ -460,26 +460,26 @@ function KitchenConfiguratorApp(props) {
|
|
|
460
460
|
/* ============================== prop types ============================== */
|
|
461
461
|
|
|
462
462
|
KitchenConfiguratorApp.propTypes = {
|
|
463
|
-
width:
|
|
464
|
-
height:
|
|
465
|
-
projectElement:
|
|
466
|
-
categoryData:
|
|
467
|
-
dataBundle:
|
|
468
|
-
configData:
|
|
469
|
-
catalog:
|
|
470
|
-
logoImg:
|
|
471
|
-
companyUrl:
|
|
472
|
-
toolbarButtons:
|
|
473
|
-
options:
|
|
474
|
-
user:
|
|
475
|
-
auth:
|
|
476
|
-
featureFlags:
|
|
477
|
-
sentry:
|
|
478
|
-
dsn:
|
|
479
|
-
environment:
|
|
463
|
+
width: _propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string]),
|
|
464
|
+
height: _propTypes["default"].oneOfType([_propTypes["default"].number, _propTypes["default"].string]),
|
|
465
|
+
projectElement: _propTypes["default"].arrayOf(_propTypes["default"].object),
|
|
466
|
+
categoryData: _propTypes["default"].any,
|
|
467
|
+
dataBundle: _propTypes["default"].any,
|
|
468
|
+
configData: _propTypes["default"].any,
|
|
469
|
+
catalog: _propTypes["default"].oneOfType([_propTypes["default"].object, _propTypes["default"].instanceOf(Models.Catalog)]),
|
|
470
|
+
logoImg: _propTypes["default"].any,
|
|
471
|
+
companyUrl: _propTypes["default"].string,
|
|
472
|
+
toolbarButtons: _propTypes["default"].any,
|
|
473
|
+
options: _propTypes["default"].object,
|
|
474
|
+
user: _propTypes["default"].object,
|
|
475
|
+
auth: _propTypes["default"].object,
|
|
476
|
+
featureFlags: _propTypes["default"].object,
|
|
477
|
+
sentry: _propTypes["default"].shape({
|
|
478
|
+
dsn: _propTypes["default"].string,
|
|
479
|
+
environment: _propTypes["default"].string
|
|
480
480
|
}),
|
|
481
|
-
onEvent:
|
|
482
|
-
onSave:
|
|
483
|
-
onError:
|
|
484
|
-
store:
|
|
481
|
+
onEvent: _propTypes["default"].func,
|
|
482
|
+
onSave: _propTypes["default"].func,
|
|
483
|
+
onError: _propTypes["default"].func,
|
|
484
|
+
store: _propTypes["default"].object
|
|
485
485
|
};
|
|
@@ -5,9 +5,8 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports["default"] = PropertyCheckbox;
|
|
7
7
|
var _react = _interopRequireDefault(require("react"));
|
|
8
|
-
var
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
9
9
|
var _constants = require("../../constants");
|
|
10
|
-
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); }
|
|
11
10
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
12
11
|
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); }
|
|
13
12
|
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; }
|
|
@@ -115,10 +114,10 @@ function PropertyCheckbox(_ref) {
|
|
|
115
114
|
}))));
|
|
116
115
|
}
|
|
117
116
|
PropertyCheckbox.propTypes = {
|
|
118
|
-
value:
|
|
119
|
-
onUpdate:
|
|
120
|
-
configs:
|
|
121
|
-
sourceElement:
|
|
122
|
-
internalState:
|
|
123
|
-
state:
|
|
117
|
+
value: _propTypes["default"].any.isRequired,
|
|
118
|
+
onUpdate: _propTypes["default"].func.isRequired,
|
|
119
|
+
configs: _propTypes["default"].object.isRequired,
|
|
120
|
+
sourceElement: _propTypes["default"].object,
|
|
121
|
+
internalState: _propTypes["default"].object,
|
|
122
|
+
state: _propTypes["default"].object.isRequired
|
|
124
123
|
};
|
|
@@ -1,15 +1,13 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports["default"] = PropertyColor;
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
9
|
var _export = require("../../components/style/export");
|
|
11
10
|
var _sharedPropertyStyle = _interopRequireDefault(require("./shared-property-style"));
|
|
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
11
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
14
12
|
function PropertyColor(_ref) {
|
|
15
13
|
var value = _ref.value,
|
|
@@ -39,10 +37,10 @@ function PropertyColor(_ref) {
|
|
|
39
37
|
})))));
|
|
40
38
|
}
|
|
41
39
|
PropertyColor.propTypes = {
|
|
42
|
-
value:
|
|
43
|
-
onUpdate:
|
|
44
|
-
configs:
|
|
45
|
-
sourceElement:
|
|
46
|
-
internalState:
|
|
47
|
-
state:
|
|
40
|
+
value: _propTypes["default"].any.isRequired,
|
|
41
|
+
onUpdate: _propTypes["default"].func.isRequired,
|
|
42
|
+
configs: _propTypes["default"].object.isRequired,
|
|
43
|
+
sourceElement: _propTypes["default"].object,
|
|
44
|
+
internalState: _propTypes["default"].object,
|
|
45
|
+
state: _propTypes["default"].object.isRequired
|
|
48
46
|
};
|
|
@@ -1,16 +1,14 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
|
|
4
3
|
Object.defineProperty(exports, "__esModule", {
|
|
5
4
|
value: true
|
|
6
5
|
});
|
|
7
6
|
exports["default"] = PropertyEnum;
|
|
8
7
|
var _react = _interopRequireDefault(require("react"));
|
|
9
|
-
var
|
|
8
|
+
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
10
9
|
var _immutable = require("immutable");
|
|
11
10
|
var _export = require("../../components/style/export");
|
|
12
11
|
var _constants = require("../../constants");
|
|
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
12
|
function _interopRequireDefault(e) { return e && e.__esModule ? e : { "default": e }; }
|
|
15
13
|
function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
|
|
16
14
|
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."); }
|
|
@@ -97,10 +95,10 @@ function PropertyEnum(_ref) {
|
|
|
97
95
|
})));
|
|
98
96
|
}
|
|
99
97
|
PropertyEnum.propTypes = {
|
|
100
|
-
value:
|
|
101
|
-
onUpdate:
|
|
102
|
-
configs:
|
|
103
|
-
sourceElement:
|
|
104
|
-
internalState:
|
|
105
|
-
state:
|
|
98
|
+
value: _propTypes["default"].any.isRequired,
|
|
99
|
+
onUpdate: _propTypes["default"].func.isRequired,
|
|
100
|
+
configs: _propTypes["default"].object.isRequired,
|
|
101
|
+
sourceElement: _propTypes["default"].object,
|
|
102
|
+
internalState: _propTypes["default"].object,
|
|
103
|
+
state: _propTypes["default"].object.isRequired
|
|
106
104
|
};
|