kitchen-simulator 1.1.1-test.29 → 1.1.1-test.30

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (132) hide show
  1. package/es/KitchenConfigurator.js +27 -28
  2. package/es/KitchenConfiguratorApp.js +35 -33
  3. package/es/actions/holes-actions.js +1 -1
  4. package/es/actions/items-actions.js +1 -1
  5. package/es/actions/lines-actions.js +1 -1
  6. package/es/actions/project-actions.js +1 -1
  7. package/es/actions/scene-actions.js +1 -1
  8. package/es/actions/vertices-actions.js +1 -1
  9. package/es/actions/viewer2d-actions.js +1 -1
  10. package/es/actions/viewer3d-actions.js +1 -1
  11. package/es/catalog/catalog.js +2 -2
  12. package/es/catalog/molding/molding-dcm/planner-element.js +0 -2
  13. package/es/catalog/molding/molding-fbm/planner-element.js +0 -2
  14. package/es/catalog/molding/molding-lrm/planner-element.js +0 -2
  15. package/es/catalog/properties/property-checkbox.js +10 -9
  16. package/es/catalog/properties/property-color.js +12 -10
  17. package/es/catalog/properties/property-enum.js +12 -12
  18. package/es/catalog/properties/property-hidden.js +11 -10
  19. package/es/catalog/properties/property-lenght-measure.js +16 -15
  20. package/es/catalog/properties/property-length-measure.js +17 -16
  21. package/es/catalog/properties/property-length-measure_hole.js +16 -15
  22. package/es/catalog/properties/property-number.js +11 -10
  23. package/es/catalog/properties/property-read-only.js +10 -9
  24. package/es/catalog/properties/property-string.js +10 -9
  25. package/es/catalog/properties/property-toggle.js +11 -10
  26. package/es/class/area.js +1 -1
  27. package/es/class/group.js +3 -3
  28. package/es/class/hole.js +5 -6
  29. package/es/class/layer.js +2 -2
  30. package/es/class/project.js +4 -4
  31. package/es/components/content.js +11 -10
  32. package/es/components/style/button.js +8 -7
  33. package/es/components/style/content-container.js +2 -1
  34. package/es/components/style/content-title.js +1 -1
  35. package/es/components/style/form-number-input.js +20 -21
  36. package/es/components/style/form-number-input_2.js +16 -17
  37. package/es/components/style/form-select.js +1 -2
  38. package/es/components/style/form-text-input.js +1 -2
  39. package/es/components/viewer2d/area.js +7 -6
  40. package/es/components/viewer2d/grids/grid-horizontal-streak.js +7 -7
  41. package/es/components/viewer2d/grids/grid-streak.js +7 -7
  42. package/es/components/viewer2d/grids/grid-vertical-streak.js +7 -7
  43. package/es/components/viewer2d/grids/grids.js +6 -4
  44. package/es/components/viewer2d/group.js +12 -10
  45. package/es/components/viewer2d/item.js +14 -14
  46. package/es/components/viewer2d/layer.js +8 -7
  47. package/es/components/viewer2d/line.js +8 -7
  48. package/es/components/viewer2d/ruler.js +8 -8
  49. package/es/components/viewer2d/rulerDist.js +7 -6
  50. package/es/components/viewer2d/rulerX.js +17 -17
  51. package/es/components/viewer2d/rulerY.js +15 -15
  52. package/es/components/viewer2d/scene.js +11 -13
  53. package/es/components/viewer2d/snap.js +7 -6
  54. package/es/components/viewer2d/state.js +7 -6
  55. package/es/components/viewer2d/utils.js +1 -1
  56. package/es/components/viewer2d/vertex.js +6 -5
  57. package/es/components/viewer2d/viewer2d.js +18 -16
  58. package/es/components/viewer3d/front3D.js +1 -1
  59. package/es/components/viewer3d/grids/grid-streak.js +0 -1
  60. package/es/components/viewer3d/ruler-utils/layer3D.js +1 -1
  61. package/es/components/viewer3d/ruler-utils/ruler3D.js +1 -1
  62. package/es/components/viewer3d/ruler-utils/scene3D.js +0 -2
  63. package/es/components/viewer3d/viewer3d-first-person.js +15 -16
  64. package/es/components/viewer3d/viewer3d.js +17 -18
  65. package/es/models.js +1 -1
  66. package/es/plugins/keyboard.js +2 -2
  67. package/es/reducers/holes-reducer.js +1 -1
  68. package/es/reducers/items-reducer.js +2 -5
  69. package/es/reducers/lines-reducer.js +1 -1
  70. package/es/reducers/project-reducer.js +1 -1
  71. package/es/reducers/reducer.js +2 -2
  72. package/es/reducers/scene-reducer.js +1 -1
  73. package/es/reducers/user-reducer.js +1 -2
  74. package/es/reducers/vertices-reducer.js +1 -1
  75. package/es/reducers/viewer2d-reducer.js +1 -1
  76. package/es/reducers/viewer3d-reducer.js +1 -1
  77. package/es/utils/geometry.js +3 -3
  78. package/es/utils/react-if.js +6 -5
  79. package/es/utils/snap-scene.js +2 -2
  80. package/es/utils/snap.js +1 -1
  81. package/lib/KitchenConfigurator.js +27 -29
  82. package/lib/KitchenConfiguratorApp.js +35 -34
  83. package/lib/catalog/molding/molding-dcm/planner-element.js +0 -5
  84. package/lib/catalog/molding/molding-fbm/planner-element.js +0 -5
  85. package/lib/catalog/molding/molding-lrm/planner-element.js +0 -5
  86. package/lib/catalog/properties/property-checkbox.js +10 -10
  87. package/lib/catalog/properties/property-color.js +11 -9
  88. package/lib/catalog/properties/property-enum.js +10 -11
  89. package/lib/catalog/properties/property-hidden.js +11 -11
  90. package/lib/catalog/properties/property-lenght-measure.js +15 -15
  91. package/lib/catalog/properties/property-length-measure.js +15 -15
  92. package/lib/catalog/properties/property-length-measure_hole.js +15 -15
  93. package/lib/catalog/properties/property-number.js +12 -10
  94. package/lib/catalog/properties/property-read-only.js +11 -9
  95. package/lib/catalog/properties/property-string.js +11 -9
  96. package/lib/catalog/properties/property-toggle.js +11 -9
  97. package/lib/components/content.js +12 -10
  98. package/lib/components/style/button.js +8 -9
  99. package/lib/components/style/content-container.js +5 -4
  100. package/lib/components/style/content-title.js +2 -3
  101. package/lib/components/style/form-number-input.js +19 -21
  102. package/lib/components/style/form-number-input_2.js +16 -19
  103. package/lib/components/style/form-select.js +0 -3
  104. package/lib/components/style/form-text-input.js +0 -1
  105. package/lib/components/viewer2d/area.js +8 -6
  106. package/lib/components/viewer2d/grids/grid-horizontal-streak.js +8 -7
  107. package/lib/components/viewer2d/grids/grid-streak.js +8 -7
  108. package/lib/components/viewer2d/grids/grid-vertical-streak.js +8 -7
  109. package/lib/components/viewer2d/grids/grids.js +5 -5
  110. package/lib/components/viewer2d/group.js +13 -10
  111. package/lib/components/viewer2d/item.js +12 -12
  112. package/lib/components/viewer2d/layer.js +8 -6
  113. package/lib/components/viewer2d/line.js +9 -7
  114. package/lib/components/viewer2d/ruler.js +8 -7
  115. package/lib/components/viewer2d/rulerDist.js +8 -6
  116. package/lib/components/viewer2d/rulerX.js +17 -19
  117. package/lib/components/viewer2d/rulerY.js +15 -17
  118. package/lib/components/viewer2d/scene.js +9 -13
  119. package/lib/components/viewer2d/snap.js +8 -6
  120. package/lib/components/viewer2d/state.js +7 -7
  121. package/lib/components/viewer2d/vertex.js +7 -5
  122. package/lib/components/viewer2d/viewer2d.js +18 -17
  123. package/lib/components/viewer3d/grids/grid-streak.js +0 -1
  124. package/lib/components/viewer3d/ruler-utils/scene3D.js +0 -2
  125. package/lib/components/viewer3d/viewer3d-first-person.js +14 -16
  126. package/lib/components/viewer3d/viewer3d.js +16 -18
  127. package/lib/reducers/user-reducer.js +0 -1
  128. package/lib/utils/geometry.js +1 -1
  129. package/lib/utils/react-if.js +7 -5
  130. package/package.json +1 -3
  131. package/es/compat/propTypesCompat.js +0 -8
  132. package/lib/compat/propTypesCompat.js +0 -26
@@ -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 PropTypes from "../compat/propTypesCompat";
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) {
@@ -125,20 +125,19 @@ var RulerX = /*#__PURE__*/function (_Component) {
125
125
  }, positiveDomElements));
126
126
  }
127
127
  }]);
128
- }(Component);
128
+ }(Component); // RulerX.propTypes = {
129
+ // unitPixelSize: PropTypes.number.isRequired,
130
+ // positiveUnitsNumber: PropTypes.number,
131
+ // negativeUnitsNumber: PropTypes.number,
132
+ // zoom: PropTypes.number.isRequired,
133
+ // mouseX: PropTypes.number.isRequired,
134
+ // width: PropTypes.number.isRequired,
135
+ // zeroLeftPosition: PropTypes.number.isRequired,
136
+ // backgroundColor: PropTypes.string,
137
+ // fontColor: PropTypes.string,
138
+ // markerColor: PropTypes.string
139
+ // };
129
140
  export { RulerX as default };
130
- RulerX.propTypes = {
131
- unitPixelSize: PropTypes.number.isRequired,
132
- positiveUnitsNumber: PropTypes.number,
133
- negativeUnitsNumber: PropTypes.number,
134
- zoom: PropTypes.number.isRequired,
135
- mouseX: PropTypes.number.isRequired,
136
- width: PropTypes.number.isRequired,
137
- zeroLeftPosition: PropTypes.number.isRequired,
138
- backgroundColor: PropTypes.string,
139
- fontColor: PropTypes.string,
140
- markerColor: PropTypes.string
141
- };
142
141
  RulerX.defaultProps = {
143
142
  positiveUnitsNumber: 50,
144
143
  negativeUnitsNumber: 50,
@@ -146,6 +145,7 @@ RulerX.defaultProps = {
146
145
  fontColor: SharedStyle.COLORS.white,
147
146
  markerColor: SharedStyle.SECONDARY_COLOR.main
148
147
  };
149
- RulerX.contextTypes = {
150
- translator: PropTypes.object.isRequired
151
- };
148
+
149
+ // RulerX.contextTypes = {
150
+ // translator: PropTypes.object.isRequired
151
+ // };
@@ -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 PropTypes from "../compat/propTypesCompat";
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) {
@@ -129,18 +129,17 @@ var RulerY = /*#__PURE__*/function (_Component) {
129
129
  }, positiveDomElements));
130
130
  }
131
131
  }]);
132
- }(Component);
132
+ }(Component); // RulerY.propTypes = {
133
+ // unitPixelSize: PropTypes.number.isRequired,
134
+ // zoom: PropTypes.number.isRequired,
135
+ // mouseY: PropTypes.number.isRequired,
136
+ // height: PropTypes.number.isRequired,
137
+ // zeroTopPosition: PropTypes.number.isRequired,
138
+ // backgroundColor: PropTypes.string,
139
+ // fontColor: PropTypes.string,
140
+ // markerColor: PropTypes.string
141
+ // };
133
142
  export { RulerY as default };
134
- RulerY.propTypes = {
135
- unitPixelSize: PropTypes.number.isRequired,
136
- zoom: PropTypes.number.isRequired,
137
- mouseY: PropTypes.number.isRequired,
138
- height: PropTypes.number.isRequired,
139
- zeroTopPosition: PropTypes.number.isRequired,
140
- backgroundColor: PropTypes.string,
141
- fontColor: PropTypes.string,
142
- markerColor: PropTypes.string
143
- };
144
143
  RulerY.defaultProps = {
145
144
  positiveUnitsNumber: 50,
146
145
  negativeUnitsNumber: 50,
@@ -148,6 +147,7 @@ RulerY.defaultProps = {
148
147
  fontColor: SharedStyle.COLORS.white,
149
148
  markerColor: SharedStyle.SECONDARY_COLOR.main
150
149
  };
151
- RulerY.contextTypes = {
152
- translator: PropTypes.object.isRequired
153
- };
150
+
151
+ // RulerY.contextTypes = {
152
+ // translator: PropTypes.object.isRequired
153
+ // };
@@ -22,9 +22,8 @@ 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 PropTypes from "../compat/propTypesCompat";
26
- import { Layer, Grids } from "./export";
27
- import { searchForSkuValue } from "./utils";
25
+ //import PropTypes from 'prop-types';
26
+ import { Grids, Layer } from "./export";
28
27
  var Scene = /*#__PURE__*/function (_Component) {
29
28
  function Scene() {
30
29
  _classCallCheck(this, Scene);
@@ -128,13 +127,12 @@ var Scene = /*#__PURE__*/function (_Component) {
128
127
  }));
129
128
  }
130
129
  }]);
131
- }(Component);
132
- export { Scene as default };
133
- Scene.propTypes = {
134
- scene: PropTypes.object.isRequired,
135
- catalog: PropTypes.object.isRequired,
136
- relatedLines: PropTypes.object.isRequired
137
- };
138
- Scene.contextTypes = {
139
- projectActions: PropTypes.object.isRequired
140
- };
130
+ }(Component); // Scene.propTypes = {
131
+ // scene: PropTypes.object.isRequired,
132
+ // catalog: PropTypes.object.isRequired,
133
+ // relatedLines: PropTypes.object.isRequired
134
+ // };
135
+ // Scene.contextTypes = {
136
+ // projectActions: PropTypes.object.isRequired
137
+ // };
138
+ export { Scene as default };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import PropTypes from "../compat/propTypesCompat";
2
+ //import PropTypes from 'prop-types';
3
3
  import * as Geometry from "../../utils/geometry";
4
4
  var STYLE = {
5
5
  stroke: '#D32F2F',
@@ -67,8 +67,9 @@ export default function ActiveDrawingHelper(_ref) {
67
67
  return null;
68
68
  }
69
69
  }
70
- ActiveDrawingHelper.propTypes = {
71
- snap: PropTypes.object.isRequired,
72
- width: PropTypes.number.isRequired,
73
- height: PropTypes.number.isRequired
74
- };
70
+
71
+ // ActiveDrawingHelper.propTypes = {
72
+ // snap: PropTypes.object.isRequired,
73
+ // width: PropTypes.number.isRequired,
74
+ // height: PropTypes.number.isRequired
75
+ // };
@@ -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 PropTypes from "../compat/propTypesCompat";
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";
@@ -71,8 +71,9 @@ export default function State(_ref) {
71
71
  });
72
72
  }), activeSnapElement, snapElements));
73
73
  }
74
- State.propTypes = {
75
- state: PropTypes.object.isRequired,
76
- catalog: PropTypes.object.isRequired,
77
- relatedLines: PropTypes.object.isRequired
78
- };
74
+
75
+ // State.propTypes = {
76
+ // state: PropTypes.object.isRequired,
77
+ // catalog: PropTypes.object.isRequired,
78
+ // relatedLines: PropTypes.object.isRequired
79
+ // };
@@ -1,5 +1,5 @@
1
1
  function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
- import { isImmutable, toPlainObject } from "../../utils/helper";
2
+ import { toPlainObject } from "../../utils/helper";
3
3
  import { INSTALLATION_SUFFIX_TYPE, INSTALLATION_TYPE_NAME, INSTALLATION_TYPE_SKU_SUFFIX, TOE_KICK_MOLDING } from "../../constants";
4
4
  export var searchForSkuValue = function searchForSkuValue(catalog, selectedLayer, elementType) {
5
5
  return new Promise(function (resolve) {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import PropTypes from "../compat/propTypesCompat";
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;
@@ -59,7 +59,8 @@ export default function Vertex(_ref) {
59
59
  style: STYLE
60
60
  }));
61
61
  }
62
- Vertex.propTypes = {
63
- vertex: PropTypes.object.isRequired,
64
- layer: PropTypes.object.isRequired
65
- };
62
+
63
+ // Vertex.propTypes = {
64
+ // vertex: PropTypes.object.isRequired,
65
+ // layer: PropTypes.object.isRequired
66
+ // };
@@ -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 PropTypes from "../compat/propTypesCompat";
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";
@@ -1381,18 +1381,20 @@ export default function Viewer2D(_ref, _ref2) {
1381
1381
  relatedLines: relatedLines
1382
1382
  }))))));
1383
1383
  }
1384
- Viewer2D.propTypes = {
1385
- state: PropTypes.object.isRequired,
1386
- width: PropTypes.number.isRequired,
1387
- height: PropTypes.number.isRequired
1388
- };
1389
- Viewer2D.contextTypes = {
1390
- viewer2DActions: PropTypes.object.isRequired,
1391
- linesActions: PropTypes.object.isRequired,
1392
- holesActions: PropTypes.object.isRequired,
1393
- verticesActions: PropTypes.object.isRequired,
1394
- itemsActions: PropTypes.object.isRequired,
1395
- areaActions: PropTypes.object.isRequired,
1396
- projectActions: PropTypes.object.isRequired,
1397
- catalog: PropTypes.object.isRequired
1398
- };
1384
+
1385
+ // Viewer2D.propTypes = {
1386
+ // state: PropTypes.object.isRequired,
1387
+ // width: PropTypes.number.isRequired,
1388
+ // height: PropTypes.number.isRequired
1389
+ // };
1390
+
1391
+ // Viewer2D.contextTypes = {
1392
+ // viewer2DActions: PropTypes.object.isRequired,
1393
+ // linesActions: PropTypes.object.isRequired,
1394
+ // holesActions: PropTypes.object.isRequired,
1395
+ // verticesActions: PropTypes.object.isRequired,
1396
+ // itemsActions: PropTypes.object.isRequired,
1397
+ // areaActions: PropTypes.object.isRequired,
1398
+ // projectActions: PropTypes.object.isRequired,
1399
+ // catalog: PropTypes.object.isRequired
1400
+ // };
@@ -4,7 +4,7 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
4
4
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
5
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
6
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
- import React, { useState, useEffect } from 'react';
7
+ import React, { useEffect, useState } from 'react';
8
8
  import Viewer3D from "./viewer3d";
9
9
  import State3D from "./ruler-utils/state3D";
10
10
  var k = 0;
@@ -1,6 +1,5 @@
1
1
  import * as Three from 'three';
2
2
  import { List } from 'immutable';
3
- import { COLORS } from "../../../shared-style";
4
3
  export default function (width, height, grid, font) {
5
4
  var step = grid.properties.get('step');
6
5
  var colors = grid.properties.has('color') ? new List([grid.properties.get('color')]) : grid.properties.get('colors');
@@ -3,7 +3,7 @@ import Ruler3D from "./ruler3D";
3
3
  import convert from 'convert-units';
4
4
  import { GeometryUtils } from "../../../utils/export";
5
5
  import { returnReplaceableDeepSearchType } from "../../../components/viewer2d/utils";
6
- import { DELTA, DISTANCE_EPSILON, DECIMAL_PLACES_2 } from "../../../constants";
6
+ import { DECIMAL_PLACES_2, DELTA, DISTANCE_EPSILON } from "../../../constants";
7
7
  import { formatNumber, isNonZeroText } from "../../../utils/math";
8
8
  export default function Layer3D(_ref) {
9
9
  var layer = _ref.layer,
@@ -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 { TEXT_COLOR_NEUTRAL_0, TEXT_COLOR_NEUTRAL_6 } from "../../../constants";
8
+ import { TEXT_COLOR_NEUTRAL_6 } from "../../../constants";
9
9
  export default function Ruler3D(_ref) {
10
10
  var layer = _ref.layer,
11
11
  line = _ref.line,
@@ -1,6 +1,4 @@
1
1
  import React from 'react';
2
- import { GeometryUtils } from "../../../utils/export";
3
- import { isElevationView } from "../../..//utils/helper";
4
2
  import { verticesDistance } from "../../../utils/geometry";
5
3
  import convert from 'convert-units';
6
4
  import Layer3D from "./layer3D";
@@ -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 PropTypes from "../compat/propTypesCompat";
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";
@@ -298,18 +298,17 @@ var Viewer3DFirstPerson = /*#__PURE__*/function (_React$Component) {
298
298
  });
299
299
  }
300
300
  }]);
301
- }(React.Component);
302
- export { Viewer3DFirstPerson as default };
303
- Viewer3DFirstPerson.propTypes = {
304
- state: PropTypes.object.isRequired,
305
- width: PropTypes.number.isRequired,
306
- height: PropTypes.number.isRequired
307
- };
308
- Viewer3DFirstPerson.contextTypes = {
309
- areaActions: PropTypes.object.isRequired,
310
- holesActions: PropTypes.object.isRequired,
311
- itemsActions: PropTypes.object.isRequired,
312
- linesActions: PropTypes.object.isRequired,
313
- projectActions: PropTypes.object.isRequired,
314
- catalog: PropTypes.object
315
- };
301
+ }(React.Component); // Viewer3DFirstPerson.propTypes = {
302
+ // state: PropTypes.object.isRequired,
303
+ // width: PropTypes.number.isRequired,
304
+ // height: PropTypes.number.isRequired
305
+ // };
306
+ // Viewer3DFirstPerson.contextTypes = {
307
+ // areaActions: PropTypes.object.isRequired,
308
+ // holesActions: PropTypes.object.isRequired,
309
+ // itemsActions: PropTypes.object.isRequired,
310
+ // linesActions: PropTypes.object.isRequired,
311
+ // projectActions: PropTypes.object.isRequired,
312
+ // catalog: PropTypes.object
313
+ // };
314
+ export { Viewer3DFirstPerson as default };
@@ -18,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 PropTypes from "../compat/propTypesCompat";
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";
@@ -2508,20 +2508,19 @@ var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
2508
2508
  }
2509
2509
  }
2510
2510
  }]);
2511
- }(React.Component);
2512
- export { Scene3DViewer as default };
2513
- Scene3DViewer.propTypes = {
2514
- state: PropTypes.object.isRequired,
2515
- width: PropTypes.number.isRequired,
2516
- height: PropTypes.number.isRequired,
2517
- replaceCabinet: PropTypes.func.isRequired
2518
- };
2519
- Scene3DViewer.contextTypes = {
2520
- areaActions: PropTypes.object.isRequired,
2521
- holesActions: PropTypes.object.isRequired,
2522
- itemsActions: PropTypes.object.isRequired,
2523
- linesActions: PropTypes.object.isRequired,
2524
- sceneActions: PropTypes.object.isRequired,
2525
- projectActions: PropTypes.object.isRequired,
2526
- catalog: PropTypes.object
2527
- };
2511
+ }(React.Component); // Scene3DViewer.propTypes = {
2512
+ // state: PropTypes.object.isRequired,
2513
+ // width: PropTypes.number.isRequired,
2514
+ // height: PropTypes.number.isRequired,
2515
+ // replaceCabinet: PropTypes.func.isRequired
2516
+ // };
2517
+ // Scene3DViewer.contextTypes = {
2518
+ // areaActions: PropTypes.object.isRequired,
2519
+ // holesActions: PropTypes.object.isRequired,
2520
+ // itemsActions: PropTypes.object.isRequired,
2521
+ // linesActions: PropTypes.object.isRequired,
2522
+ // sceneActions: PropTypes.object.isRequired,
2523
+ // projectActions: PropTypes.object.isRequired,
2524
+ // catalog: PropTypes.object
2525
+ // };
2526
+ export { Scene3DViewer as default };
package/es/models.js CHANGED
@@ -14,7 +14,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
14
14
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
15
15
  function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
16
16
  function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
17
- import { Record, List, Map, fromJS } from 'immutable';
17
+ import { fromJS, List, Map, Record } from 'immutable';
18
18
  import { MODE_IDLE, UNIT_INCH } from "./constants";
19
19
  import { SNAP_MASK } from "./utils/snap";
20
20
  import { isEmpty } from "./utils/helper";
@@ -1,5 +1,5 @@
1
- import { MODE_IDLE, MODE_3D_FIRST_PERSON, MODE_3D_VIEW, MODE_SNAPPING, KEYBOARD_BUTTON_CODE, MODE_IDLE_3D, MODE_ROTATING_ITEM_3D, MODE_DRAGGING_ITEM_3D, MODE_DRAWING_ITEM_3D, MODE_DRAWING_ITEM } from "../constants";
2
- import { rollback, undo, redo, recreate, uncreate, remove, toggleSnap, copyProperties, pasteProperties, shift2doff, shift2don } from "../actions/project-actions";
1
+ import { KEYBOARD_BUTTON_CODE, MODE_3D_FIRST_PERSON, MODE_3D_VIEW, MODE_DRAGGING_ITEM_3D, MODE_DRAWING_ITEM, MODE_DRAWING_ITEM_3D, MODE_IDLE, MODE_IDLE_3D, MODE_ROTATING_ITEM_3D, MODE_SNAPPING } from "../constants";
2
+ import { copyProperties, pasteProperties, recreate, redo, remove, rollback, shift2doff, shift2don, toggleSnap, uncreate, undo } from "../actions/project-actions";
3
3
  export default function keyboard() {
4
4
  return function (store, stateExtractor) {
5
5
  window.addEventListener('keydown', function (event) {
@@ -1,6 +1,6 @@
1
1
  import { Hole } from "../class/export";
2
2
  import { history } from "../utils/export";
3
- import { SELECT_TOOL_DRAWING_HOLE, SELECT_TOOL_DRAWING_HOLE_3D, UPDATE_DRAWING_HOLE, UPDATE_DRAWING_HOLE_3D, END_DRAWING_HOLE, END_DRAWING_HOLE_3D, BEGIN_DRAGGING_HOLE, BEGIN_DRAGGING_HOLE_3D, UPDATE_DRAGGING_HOLE, END_DRAGGING_HOLE, END_DRAGGING_HOLE_3D, SELECT_HOLE, END_CREATING_HOLE, UPDATE_POPUP_OPEN, UPDATE_DRAGGING_HOLE_CHANGED, UPDATE_DRAGGING_HOLE_RULER_CHANGED } from "../constants";
3
+ import { BEGIN_DRAGGING_HOLE, BEGIN_DRAGGING_HOLE_3D, END_CREATING_HOLE, END_DRAGGING_HOLE, END_DRAGGING_HOLE_3D, END_DRAWING_HOLE, END_DRAWING_HOLE_3D, SELECT_HOLE, SELECT_TOOL_DRAWING_HOLE, SELECT_TOOL_DRAWING_HOLE_3D, UPDATE_DRAGGING_HOLE, UPDATE_DRAGGING_HOLE_CHANGED, UPDATE_DRAGGING_HOLE_RULER_CHANGED, UPDATE_DRAWING_HOLE, UPDATE_DRAWING_HOLE_3D, UPDATE_POPUP_OPEN } from "../constants";
4
4
  export default function (state, action) {
5
5
  switch (action.type) {
6
6
  case UPDATE_DRAGGING_HOLE_RULER_CHANGED:
@@ -1,9 +1,6 @@
1
- import { Item, Area } from "../class/export";
1
+ import { Item } from "../class/export";
2
2
  import { history } from "../utils/export";
3
- import { TOGGLE_LOADING_CABINET, SELECT_TOOL_DRAWING_ITEM, UPDATE_DRAWING_ITEM, END_DRAWING_ITEM, BEGIN_DRAGGING_ITEM, BEGIN_DRAGGING_ITEM_3D, UPDATE_DRAGGING_ITEM, UPDATE_DRAGGING_ITEM_CHANGED, UPDATE_DRAGGING_ITEM_3DX, UPDATE_DRAGGING_ITEM_3DY, END_DRAGGING_ITEM, END_DRAGGING_ITEM_3D, BEGIN_ROTATING_ITEM, BEGIN_ROTATING_ITEM_3D, UPDATE_ROTATING, UPDATE_ROTATING_ITEM, UPDATE_ROTATING_ITEM_CHANGED, END_ROTATING_ITEM, END_ROTATING_ITEM_3D, REPLACE_SUBMODULE, SELECT_ITEM, ANIMATE_OBJECT, REMOVE_REPLACE_SUBMODULE, ITEM_MOVE_UP, SELECT_TOOL_DRAWING_ITEM_3D, SET_DOOR_STYLE, SET_HANDLE_MATERIAL, SET_INITIAL_DOOR_STYLE, UPDATE_ITEM_POSITION, SET_DOOR_HANDLE, SET_WALL_COLOR, END_CREATING_CABINET, UPDATE_POPUP_OPEN, SET_MODELLING, SET_COUNTER_TOP, SET_BACKSPLASH, SET_BACKSPLASH_VISIBLE, SET_APPLIANCE_MATERIAL, DUPLICATE_SELECTED, EDIT_WIDTH, END_LOADING, SET_MOLDING, UPDATE_MOLDING, STORE_DIST_ARRAY, VALIDATE_ITEM_POSTIONS, REPLACE_ITEM
4
- // SET_MOVE_STATUS,
5
- // SET_ROTATE_STATUS
6
- } from "../constants";
3
+ import { ANIMATE_OBJECT, BEGIN_DRAGGING_ITEM, BEGIN_DRAGGING_ITEM_3D, BEGIN_ROTATING_ITEM, BEGIN_ROTATING_ITEM_3D, DUPLICATE_SELECTED, EDIT_WIDTH, END_CREATING_CABINET, END_DRAGGING_ITEM, END_DRAGGING_ITEM_3D, END_DRAWING_ITEM, END_LOADING, END_ROTATING_ITEM, END_ROTATING_ITEM_3D, ITEM_MOVE_UP, REMOVE_REPLACE_SUBMODULE, REPLACE_ITEM, REPLACE_SUBMODULE, SELECT_ITEM, SELECT_TOOL_DRAWING_ITEM, SELECT_TOOL_DRAWING_ITEM_3D, SET_APPLIANCE_MATERIAL, SET_BACKSPLASH, SET_BACKSPLASH_VISIBLE, SET_COUNTER_TOP, SET_DOOR_HANDLE, SET_DOOR_STYLE, SET_HANDLE_MATERIAL, SET_INITIAL_DOOR_STYLE, SET_MODELLING, SET_MOLDING, SET_WALL_COLOR, STORE_DIST_ARRAY, TOGGLE_LOADING_CABINET, UPDATE_DRAGGING_ITEM, UPDATE_DRAGGING_ITEM_3DX, UPDATE_DRAGGING_ITEM_3DY, UPDATE_DRAGGING_ITEM_CHANGED, UPDATE_DRAWING_ITEM, UPDATE_ITEM_POSITION, UPDATE_MOLDING, UPDATE_POPUP_OPEN, UPDATE_ROTATING_ITEM, UPDATE_ROTATING_ITEM_CHANGED, VALIDATE_ITEM_POSTIONS } from "../constants";
7
4
  export default function (state, action) {
8
5
  switch (action.type) {
9
6
  case STORE_DIST_ARRAY:
@@ -1,6 +1,6 @@
1
1
  import { Line } from "../class/export";
2
2
  import { history } from "../utils/export";
3
- import { SELECT_TOOL_DRAWING_LINE, BEGIN_DRAWING_LINE, UPDATE_DRAWING_LINE, END_DRAWING_LINE, BEGIN_DRAGGING_LINE, UPDATE_DRAGGING_LINE, END_DRAGGING_LINE, SELECT_LINE, STOP_DRAWING_LINE, SET_RELATED_LINE } from "../constants";
3
+ import { BEGIN_DRAGGING_LINE, BEGIN_DRAWING_LINE, END_DRAGGING_LINE, END_DRAWING_LINE, SELECT_LINE, SELECT_TOOL_DRAWING_LINE, SET_RELATED_LINE, STOP_DRAWING_LINE, UPDATE_DRAGGING_LINE, UPDATE_DRAWING_LINE } from "../constants";
4
4
  export default function (state, action) {
5
5
  switch (action.type) {
6
6
  case SELECT_TOOL_DRAWING_LINE:
@@ -1,5 +1,5 @@
1
1
  import { history } from "../utils/export";
2
- import { LOAD_PROJECT, NEW_PROJECT, OPEN_CATALOG, SELECT_TOOL_EDIT, MODE_IDLE, UNSELECT_ALL, SELECT_ALL, SET_PROPERTIES, SET_ITEMS_ATTRIBUTES, SET_LINES_ATTRIBUTES, SET_HOLES_ATTRIBUTES, REMOVE, INVERT, UNDO, REDO, RECREATE, UNCREATE, PROJECT_RE_NAME, ROLLBACK, SET_PROJECT_PROPERTIES, SET_PROJECT_ID, OPEN_PROJECT_CONFIGURATOR, INIT_CATALOG, UPDATE_MOUSE_COORDS, UPDATE_ZOOM_SCALE, TOGGLE_SNAP, CHANGE_CATALOG_PAGE, GO_BACK_TO_CATALOG_PAGE, THROW_ERROR, THROW_WARNING, COPY_PROPERTIES, PASTE_PROPERTIES, PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY, ALTERATE_STATE, SET_MODE, ADD_HORIZONTAL_GUIDE, ADD_VERTICAL_GUIDE, ADD_CIRCULAR_GUIDE, REMOVE_HORIZONTAL_GUIDE, REMOVE_VERTICAL_GUIDE, REMOVE_CIRCULAR_GUIDE, REMOVE_DRAWING_SUPPORT, SET_STATE_PROPERTIES, SHIFT2DON, SHIFT2DOFF, MODE_DRAWING_LINE, SET_IS_HELP, SET_IS_CABINET_DRAWING } from "../constants";
2
+ import { ADD_CIRCULAR_GUIDE, ADD_HORIZONTAL_GUIDE, ADD_VERTICAL_GUIDE, ALTERATE_STATE, CHANGE_CATALOG_PAGE, COPY_PROPERTIES, GO_BACK_TO_CATALOG_PAGE, INIT_CATALOG, LOAD_PROJECT, MODE_DRAWING_LINE, MODE_IDLE, NEW_PROJECT, OPEN_CATALOG, OPEN_PROJECT_CONFIGURATOR, PASTE_PROPERTIES, PROJECT_RE_NAME, PUSH_LAST_SELECTED_CATALOG_ELEMENT_TO_HISTORY, RECREATE, REDO, REMOVE, REMOVE_CIRCULAR_GUIDE, REMOVE_DRAWING_SUPPORT, REMOVE_HORIZONTAL_GUIDE, REMOVE_VERTICAL_GUIDE, ROLLBACK, SELECT_ALL, SELECT_TOOL_EDIT, SET_HOLES_ATTRIBUTES, SET_IS_CABINET_DRAWING, SET_IS_HELP, SET_ITEMS_ATTRIBUTES, SET_LINES_ATTRIBUTES, SET_MODE, SET_PROJECT_ID, SET_PROJECT_PROPERTIES, SET_PROPERTIES, SET_STATE_PROPERTIES, SHIFT2DOFF, SHIFT2DON, THROW_ERROR, THROW_WARNING, TOGGLE_SNAP, UNCREATE, UNDO, UNSELECT_ALL, UPDATE_MOUSE_COORDS, UPDATE_ZOOM_SCALE } from "../constants";
3
3
  import { Project } from "../class/export";
4
4
  export default function (state, action) {
5
5
  switch (action.type) {
@@ -1,5 +1,5 @@
1
- import { PROJECT_ACTIONS, VIEWER2D_ACTIONS, VIEWER3D_ACTIONS, GROUP_ACTIONS, ITEMS_ACTIONS, HOLE_ACTIONS, LINE_ACTIONS, AREA_ACTIONS, SCENE_ACTIONS, VERTEX_ACTIONS, USER_ACTIONS } from "../constants";
2
- import { KitchenConfiguratorAreasReducer, KitchenConfiguratorHolesReducer, KitchenConfiguratorItemsReducer, KitchenConfiguratorLinesReducer, KitchenConfiguratorGroupsReducer, KitchenConfiguratorProjectReducer, KitchenConfiguratorSceneReducer, KitchenConfiguratorVerticesReducer, KitchenConfiguratorViewer2dReducer, KitchenConfiguratorViewer3dReducer, KitchenConfiguratorUserReducer } from "./export";
1
+ import { AREA_ACTIONS, GROUP_ACTIONS, HOLE_ACTIONS, ITEMS_ACTIONS, LINE_ACTIONS, PROJECT_ACTIONS, SCENE_ACTIONS, USER_ACTIONS, VERTEX_ACTIONS, VIEWER2D_ACTIONS, VIEWER3D_ACTIONS } from "../constants";
2
+ import { KitchenConfiguratorAreasReducer, KitchenConfiguratorGroupsReducer, KitchenConfiguratorHolesReducer, KitchenConfiguratorItemsReducer, KitchenConfiguratorLinesReducer, KitchenConfiguratorProjectReducer, KitchenConfiguratorSceneReducer, KitchenConfiguratorUserReducer, KitchenConfiguratorVerticesReducer, KitchenConfiguratorViewer2dReducer, KitchenConfiguratorViewer3dReducer } from "./export";
3
3
  import { State } from "../models";
4
4
  export var initialState = new State();
5
5
  export default function appReducer(state, action) {
@@ -1,6 +1,6 @@
1
1
  import { Layer } from "../class/export";
2
2
  import { history } from "../utils/export";
3
- import { ADD_LAYER, SELECT_LAYER, SET_LAYER_PROPERTIES, REMOVE_LAYER, UPDATE_MOVING_STATE } from "../constants";
3
+ import { ADD_LAYER, REMOVE_LAYER, SELECT_LAYER, SET_LAYER_PROPERTIES, UPDATE_MOVING_STATE } from "../constants";
4
4
  export default function (state, action) {
5
5
  var saveHistory = function saveHistory() {
6
6
  return state = state.merge({
@@ -1,5 +1,4 @@
1
- import { object } from "../compat/propTypesCompat";
2
- import { LOGIN_SUCCESS, LOGIN_ERROR, LOGOUT } from "../constants";
1
+ import { LOGIN_ERROR, LOGIN_SUCCESS, LOGOUT } from "../constants";
3
2
  var initialState = {
4
3
  success: false,
5
4
  error: {
@@ -1,4 +1,4 @@
1
- import { BEGIN_DRAGGING_VERTEX, UPDATE_DRAGGING_VERTEX, END_DRAGGING_VERTEX } from "../constants";
1
+ import { BEGIN_DRAGGING_VERTEX, END_DRAGGING_VERTEX, UPDATE_DRAGGING_VERTEX } from "../constants";
2
2
  import { history } from "../utils/export";
3
3
  import { Vertex } from "../class/export";
4
4
  export default function (state, action) {
@@ -1,4 +1,4 @@
1
- import { UPDATE_2D_CAMERA, SELECT_TOOL_PAN, SELECT_TOOL_ZOOM_IN, SELECT_TOOL_ZOOM_OUT, MODE_2D_PAN, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, CHANGE_WALL_LENGTH_MEASURE, CHANGE_BASE_CABINET_MEASURE, CHANGE_WALL_CABINET_MEASURE, CHANGE_WINDOW_DOOR_MEASURE, UPDATE_CEIL_HEIGHT, UPDATE_CEIL_HEIGHT_UNIT } from "../constants";
1
+ import { CHANGE_BASE_CABINET_MEASURE, CHANGE_WALL_CABINET_MEASURE, CHANGE_WALL_LENGTH_MEASURE, CHANGE_WINDOW_DOOR_MEASURE, MODE_2D_PAN, MODE_2D_ZOOM_IN, MODE_2D_ZOOM_OUT, SELECT_TOOL_PAN, SELECT_TOOL_ZOOM_IN, SELECT_TOOL_ZOOM_OUT, UPDATE_2D_CAMERA, UPDATE_CEIL_HEIGHT, UPDATE_CEIL_HEIGHT_UNIT } from "../constants";
2
2
  import convert from 'convert-units';
3
3
  export default function (state, action) {
4
4
  var _state = state,
@@ -1,4 +1,4 @@
1
- import { MODE_3D_VIEW, MODE_3D_FIRST_PERSON, SELECT_TOOL_3D_VIEW, SELECT_TOOL_3D_FIRST_PERSON, UPDATE_3D_CEIL_HEIGHT, UPDATE_3D_CEIL_HEIGHT_UNIT } from "../constants";
1
+ import { MODE_3D_FIRST_PERSON, MODE_3D_VIEW, SELECT_TOOL_3D_FIRST_PERSON, SELECT_TOOL_3D_VIEW, UPDATE_3D_CEIL_HEIGHT, UPDATE_3D_CEIL_HEIGHT_UNIT } from "../constants";
2
2
  import { Project } from "../class/export";
3
3
  import { history } from "../utils/export";
4
4
  import convert from 'convert-units';
@@ -22,8 +22,8 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
22
22
  * @param {number} y1 Vertex 1 y
23
23
  * @return {number}
24
24
  */
25
- import { toFixedFloat, fAbs } from "./math.js";
26
- import { BASE_CABINET_LAYOUTPOS, EPSILON, LINE_THICKNESS, MEPSILON, OVERLAP_INCLUDED, OVERLAP_LINK, OVERLAP_NONE, OVERLAP_SAME, OVERLAP_SOME, WALL_CABINET_LAYOUTPOS, UNIT_ANGLE, MIN_ANGLE_DISALLOW_DRAW_WALL } from "../constants";
25
+ import { fAbs, toFixedFloat } from "./math.js";
26
+ import { BASE_CABINET_LAYOUTPOS, EPSILON, LINE_THICKNESS, MEPSILON, OVERLAP_INCLUDED, OVERLAP_LINK, OVERLAP_NONE, OVERLAP_SAME, OVERLAP_SOME, UNIT_ANGLE, WALL_CABINET_LAYOUTPOS } from "../constants";
27
27
  import convert from 'convert-units';
28
28
  import * as Three from 'three';
29
29
  import { returnReplaceableDeepSearchType } from "../components/viewer2d/utils.js";
@@ -2042,7 +2042,7 @@ export function isRightWall(v0, v1) {
2042
2042
  * OVERLAP_LINK: two lines are linked at the common point, so they can be merged to one line
2043
2043
  * OVERLAP_INCLUDED: destLine includes srcLine
2044
2044
  * OVERLAP_SOME: two lines are overlapped with some common range, then returns the trimmed segments of srcLine
2045
- *
2045
+ *
2046
2046
  * //////// test - start /////////////
2047
2047
  const p1 = { x1: 1413.1313131313132, y1: 1044.949494949495 };
2048
2048
  const p2 = { x1: 1476.2626262626263, y1: 1108.0808080808079 };
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import PropTypes from "../compat/propTypesCompat";
2
+ //import PropTypes from 'prop-types';
3
3
 
4
4
  /**
5
5
  * @return {null}
@@ -12,7 +12,8 @@ export default function If(_ref) {
12
12
  style: style
13
13
  }, children) : children : null;
14
14
  }
15
- If.propTypes = {
16
- condition: PropTypes.bool.isRequired,
17
- style: PropTypes.object
18
- };
15
+
16
+ // If.propTypes = {
17
+ // condition: PropTypes.bool.isRequired,
18
+ // style: PropTypes.object
19
+ // };
@@ -4,9 +4,9 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
4
4
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
5
5
  function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
6
6
  function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
- import { SNAP_POINT, SNAP_LINE, SNAP_SEGMENT, SNAP_GRID, SNAP_GUIDE, addPointSnap, addLineSnap, addLineSegmentSnap, addGridSnap } from "./snap";
7
+ import { addGridSnap, addLineSegmentSnap, addLineSnap, addPointSnap, SNAP_GRID, SNAP_GUIDE, SNAP_LINE, SNAP_POINT, SNAP_SEGMENT } from "./snap";
8
8
  import { GeometryUtils } from "./export";
9
- import { Map, List } from 'immutable';
9
+ import { List, Map } from 'immutable';
10
10
  export function sceneSnapElements(scene) {
11
11
  var snapElements = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : new List();
12
12
  var snapMask = arguments.length > 2 && arguments[2] !== undefined ? arguments[2] : new Map();
package/es/utils/snap.js CHANGED
@@ -14,7 +14,7 @@ function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.
14
14
  function _getPrototypeOf(t) { return _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function (t) { return t.__proto__ || Object.getPrototypeOf(t); }, _getPrototypeOf(t); }
15
15
  function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new TypeError("Super expression must either be null or a function"); t.prototype = Object.create(e && e.prototype, { constructor: { value: t, writable: !0, configurable: !0 } }), Object.defineProperty(t, "prototype", { writable: !1 }), e && _setPrototypeOf(t, e); }
16
16
  function _setPrototypeOf(t, e) { return _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function (t, e) { return t.__proto__ = e, t; }, _setPrototypeOf(t, e); }
17
- import { Map, List, Record } from 'immutable';
17
+ import { List, Map, Record } from 'immutable';
18
18
  import * as Geometry from "./geometry";
19
19
  export var SNAP_POINT = 'SNAP_POINT';
20
20
  export var SNAP_LINE = 'SNAP_LINE';