kitchen-simulator 1.1.1-test.21 → 1.1.1-test.24
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 -3
- 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/disclaimer/disclaimer.js +66 -86
- 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 +3 -6
- 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 +27 -27
- package/lib/catalog/properties/property-checkbox.js +7 -10
- 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/disclaimer/disclaimer.js +66 -86
- 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 +15 -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 +7 -10
- 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 -5
|
@@ -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 ReactGA from 'react-ga4';
|
|
37
37
|
import { hotjar } from 'react-hotjar';
|
|
@@ -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";
|
|
@@ -7,9 +7,7 @@ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol"
|
|
|
7
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
8
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import
|
|
11
|
-
import { FormLabel } from "../../components/style/export";
|
|
12
|
-
import PropertyStyle from "./shared-property-style";
|
|
10
|
+
import PropTypes from 'prop-types';
|
|
13
11
|
import styled from 'styled-components';
|
|
14
12
|
import { DEFAULT_FONT_FAMILY, SECONDARY_PURPLE_COLOR, TEXT_COLOR_NEUTRAL_0 } from "../../constants";
|
|
15
13
|
var FlipWrapper = styled.div(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n display: flex;\n align-items: center;\n margin: 15px 0;\n justify-content: space-between;\n"])));
|
|
@@ -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) {
|
|
@@ -7,7 +7,7 @@ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" !=
|
|
|
7
7
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
8
8
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
9
9
|
import React from 'react';
|
|
10
|
-
import
|
|
10
|
+
import PropTypes from 'prop-types';
|
|
11
11
|
import { Seq } from 'immutable';
|
|
12
12
|
import { FormLabel, FormSelect } from "../../components/style/export";
|
|
13
13
|
import PropertyStyle from "./shared-property-style";
|
|
@@ -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";
|
|
@@ -5,7 +5,7 @@ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i
|
|
|
5
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
6
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
7
7
|
import React from 'react';
|
|
8
|
-
import
|
|
8
|
+
import PropTypes from 'prop-types';
|
|
9
9
|
import { UNITS_LENGTH, UNIT_INCH, UNIT_CENTIMETER, DEFAULT_FONT_FAMILY, TEXT_COLOR_NEUTRAL_0, BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS } from "../../constants";
|
|
10
10
|
import convert from 'convert-units';
|
|
11
11
|
import { FormLabel, FormNumberInput, FormSelect } 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, FormTextInput } from "../../components/style/export";
|
|
4
4
|
import PropertyStyle from "./shared-property-style";
|
|
5
5
|
var tableStyle = {
|
|
@@ -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
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
|
-
import
|
|
2
|
+
import PropTypes from 'prop-types';
|
|
3
3
|
import Viewer2D from "./viewer2d/viewer2d";
|
|
4
4
|
import Viewer3D from "./viewer3d/viewer3d";
|
|
5
5
|
import Viewer3DFirstPerson from "./viewer3d/viewer3d-first-person";
|
|
@@ -1,80 +1,62 @@
|
|
|
1
1
|
import React, { useEffect } from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
borderRadius: 100,
|
|
61
|
-
padding: '16px 72px',
|
|
62
|
-
textTransform: 'none',
|
|
63
|
-
fontWeight: 500,
|
|
64
|
-
fontSize: '1rem',
|
|
65
|
-
'&:hover': {
|
|
66
|
-
backgroundColor: '#7c3aed'
|
|
67
|
-
},
|
|
68
|
-
'&:active': {
|
|
69
|
-
backgroundColor: '#5a25c2'
|
|
70
|
-
},
|
|
71
|
-
'&:disabled': {
|
|
72
|
-
backgroundColor: '#F3E5F5',
|
|
73
|
-
color: '#1D1B20'
|
|
74
|
-
}
|
|
75
|
-
}
|
|
76
|
-
};
|
|
77
|
-
});
|
|
2
|
+
var styles = {
|
|
3
|
+
root: {
|
|
4
|
+
display: 'flex',
|
|
5
|
+
justifyContent: 'center',
|
|
6
|
+
alignItems: 'center',
|
|
7
|
+
backgroundColor: '#D1C4E9',
|
|
8
|
+
background: 'url("/assets/img/svg/disclaimer/background.svg") no-repeat center',
|
|
9
|
+
backgroundSize: 'cover',
|
|
10
|
+
padding: '16px',
|
|
11
|
+
height: '100dvh',
|
|
12
|
+
width: '100dvw'
|
|
13
|
+
},
|
|
14
|
+
card: {
|
|
15
|
+
display: 'flex',
|
|
16
|
+
flexDirection: 'column',
|
|
17
|
+
alignItems: 'center',
|
|
18
|
+
backgroundColor: '#fff',
|
|
19
|
+
borderRadius: 24,
|
|
20
|
+
width: '85vw',
|
|
21
|
+
textAlign: 'center',
|
|
22
|
+
boxShadow: '0 8px 20px rgba(0,0,0,0.08)',
|
|
23
|
+
height: 'fit-content',
|
|
24
|
+
opacity: '90%',
|
|
25
|
+
gap: '1rem',
|
|
26
|
+
padding: '1.5rem',
|
|
27
|
+
maxWidth: '364px'
|
|
28
|
+
},
|
|
29
|
+
title: {
|
|
30
|
+
fontWeight: 'bold',
|
|
31
|
+
fontSize: '1.5rem',
|
|
32
|
+
lineHeight: '133%',
|
|
33
|
+
letterSpacing: '0px',
|
|
34
|
+
textAlign: 'center',
|
|
35
|
+
verticalAlign: 'middle',
|
|
36
|
+
maxWidth: '200px'
|
|
37
|
+
},
|
|
38
|
+
body: {
|
|
39
|
+
fontWeight: 400,
|
|
40
|
+
fontStyle: 'normal',
|
|
41
|
+
fontSize: '0.875rem',
|
|
42
|
+
lineHeight: '143%',
|
|
43
|
+
letterSpacing: '0.17px',
|
|
44
|
+
color: '#49454F',
|
|
45
|
+
maxWidth: '90%'
|
|
46
|
+
},
|
|
47
|
+
button: {
|
|
48
|
+
marginTop: '0.5rem',
|
|
49
|
+
backgroundColor: '#6750A4',
|
|
50
|
+
color: '#fff',
|
|
51
|
+
borderRadius: 100,
|
|
52
|
+
padding: '16px 72px',
|
|
53
|
+
textTransform: 'none',
|
|
54
|
+
fontWeight: 500,
|
|
55
|
+
fontSize: '1rem',
|
|
56
|
+
border: 'none',
|
|
57
|
+
cursor: 'pointer'
|
|
58
|
+
}
|
|
59
|
+
};
|
|
78
60
|
export default function DisclaimerScreen(_ref) {
|
|
79
61
|
var _ref$open = _ref.open,
|
|
80
62
|
open = _ref$open === void 0 ? true : _ref$open,
|
|
@@ -85,7 +67,6 @@ export default function DisclaimerScreen(_ref) {
|
|
|
85
67
|
message = _ref$message === void 0 ? /*#__PURE__*/React.createElement(React.Fragment, null, "We\u2019re adding the finishing touches to the mobile version.", /*#__PURE__*/React.createElement("br", null), "In the meantime, try our desktop version to start designing your dream room.") : _ref$message,
|
|
86
68
|
_ref$buttonText = _ref.buttonText,
|
|
87
69
|
buttonText = _ref$buttonText === void 0 ? 'Close' : _ref$buttonText;
|
|
88
|
-
var classes = useStyles();
|
|
89
70
|
useEffect(function () {
|
|
90
71
|
var viewportMeta = document.querySelector('meta[name="viewport"]');
|
|
91
72
|
if (!viewportMeta) {
|
|
@@ -97,21 +78,20 @@ export default function DisclaimerScreen(_ref) {
|
|
|
97
78
|
}, []);
|
|
98
79
|
if (!open) return null;
|
|
99
80
|
return /*#__PURE__*/React.createElement("div", {
|
|
100
|
-
|
|
81
|
+
style: styles.root
|
|
101
82
|
}, /*#__PURE__*/React.createElement("div", {
|
|
102
|
-
|
|
83
|
+
style: styles.card
|
|
103
84
|
}, /*#__PURE__*/React.createElement("img", {
|
|
104
85
|
width: 40,
|
|
105
86
|
height: 40,
|
|
106
87
|
alt: "loog",
|
|
107
88
|
src: '/assets/img/svg/disclaimer/logo-dots.svg'
|
|
108
|
-
}), /*#__PURE__*/React.createElement(
|
|
109
|
-
|
|
110
|
-
}, titleTop), /*#__PURE__*/React.createElement(
|
|
111
|
-
|
|
112
|
-
}, message), /*#__PURE__*/React.createElement(
|
|
113
|
-
|
|
114
|
-
className: classes.button,
|
|
89
|
+
}), /*#__PURE__*/React.createElement("div", {
|
|
90
|
+
style: styles.title
|
|
91
|
+
}, titleTop), /*#__PURE__*/React.createElement("div", {
|
|
92
|
+
style: styles.body
|
|
93
|
+
}, message), /*#__PURE__*/React.createElement("button", {
|
|
94
|
+
style: styles.button,
|
|
115
95
|
onClick: onClose
|
|
116
96
|
}, buttonText)));
|
|
117
97
|
}
|
|
@@ -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,
|
|
@@ -14,7 +14,7 @@ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new T
|
|
|
14
14
|
function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
|
|
15
15
|
function _taggedTemplateLiteral(e, t) { return t || (t = e.slice(0)), Object.freeze(Object.defineProperties(e, { raw: { value: Object.freeze(t) } })); }
|
|
16
16
|
import React, { Component } from 'react';
|
|
17
|
-
import
|
|
17
|
+
import PropTypes from 'prop-types';
|
|
18
18
|
import { KEYBOARD_BUTTON_CODE, TEXT_COLOR_NEUTRAL_0, SECONDARY_PURPLE_COLOR, DEFAULT_FONT_FAMILY } from "../../constants";
|
|
19
19
|
import styled from 'styled-components';
|
|
20
20
|
import { isValidNumber } from "../../utils/helper";
|
|
@@ -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,11 +1,10 @@
|
|
|
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";
|
|
6
6
|
import * as Three from 'three';
|
|
7
7
|
import { isEmpty } from "./utils";
|
|
8
|
-
import Tooltip from '@material-ui/core/Tooltip';
|
|
9
8
|
var STYLE = {
|
|
10
9
|
stroke: 'rgb(77, 77, 77)',
|
|
11
10
|
strokeWidth: '1px'
|
|
@@ -795,9 +794,7 @@ export default function Line(_ref) {
|
|
|
795
794
|
} : {}
|
|
796
795
|
}, renderedLine, /*#__PURE__*/React.createElement("g", {
|
|
797
796
|
transform: "translate(".concat(x1, ", ").concat(y1, ") rotate(").concat(angle, ", 0, 0)")
|
|
798
|
-
}, renderedHoles)), line.selected && /*#__PURE__*/React.createElement(
|
|
799
|
-
title: "Elevation View"
|
|
800
|
-
}, /*#__PURE__*/React.createElement("g", {
|
|
797
|
+
}, renderedHoles)), line.selected && /*#__PURE__*/React.createElement("g", {
|
|
801
798
|
id: 'elevation-button',
|
|
802
799
|
key: 1,
|
|
803
800
|
transform: "translate(".concat(x1 + 35, ", ").concat(y1 - 15, ")"),
|
|
@@ -827,7 +824,7 @@ export default function Line(_ref) {
|
|
|
827
824
|
style: {
|
|
828
825
|
transform: 'rotateX(180deg)'
|
|
829
826
|
}
|
|
830
|
-
}))
|
|
827
|
+
})), line.selected && /*#__PURE__*/React.createElement("g", {
|
|
831
828
|
id: 'remove-button',
|
|
832
829
|
key: 2,
|
|
833
830
|
transform: "translate(".concat(x1 + 10, ", ").concat(y1, ")"),
|
|
@@ -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 { Layer, Grids } from "./export";
|
|
27
27
|
import { searchForSkuValue } from "./utils";
|
|
28
28
|
var Scene = /*#__PURE__*/function (_Component) {
|
|
@@ -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