kitchen-simulator 1.1.1-test.5 → 1.1.1-test.7

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 (154) hide show
  1. package/es/KitchenConfigurator.js +9 -9
  2. package/es/KitchenConfiguratorApp.js +13 -13
  3. package/es/actions/area-actions.js +1 -1
  4. package/es/actions/export.js +10 -10
  5. package/es/actions/groups-actions.js +1 -1
  6. package/es/actions/holes-actions.js +1 -1
  7. package/es/actions/items-actions.js +1 -1
  8. package/es/actions/lines-actions.js +1 -1
  9. package/es/actions/project-actions.js +1 -1
  10. package/es/actions/scene-actions.js +1 -1
  11. package/es/actions/vertices-actions.js +1 -1
  12. package/es/actions/viewer2d-actions.js +1 -1
  13. package/es/actions/viewer3d-actions.js +1 -1
  14. package/es/catalog/areas/area/planner-element.js +6 -6
  15. package/es/catalog/catalog.js +3 -3
  16. package/es/catalog/factories/area-factory-3d.js +1 -1
  17. package/es/catalog/factories/area-factory.js +3 -3
  18. package/es/catalog/factories/export.js +2 -2
  19. package/es/catalog/factories/wall-factory-3d.js +5 -5
  20. package/es/catalog/factories/wall-factory.js +6 -6
  21. package/es/catalog/holes/door-closet/planner-element.js +2 -2
  22. package/es/catalog/holes/door-exterior/planner-element.js +2 -2
  23. package/es/catalog/holes/door-interior/planner-element.js +2 -2
  24. package/es/catalog/holes/door-sliding/planner-element.js +2 -2
  25. package/es/catalog/holes/doorway-framed/planner-element.js +2 -2
  26. package/es/catalog/holes/export.js +13 -13
  27. package/es/catalog/holes/window-clear/planner-element.js +2 -2
  28. package/es/catalog/holes/window-cross/planner-element.js +2 -2
  29. package/es/catalog/holes/window-double-hung/planner-element.js +2 -2
  30. package/es/catalog/holes/window-vertical/planner-element.js +2 -2
  31. package/es/catalog/lines/wall/planner-element.js +10 -10
  32. package/es/catalog/molding/molding-dcm/planner-element.js +1 -1
  33. package/es/catalog/molding/molding-fbm/planner-element.js +1 -1
  34. package/es/catalog/molding/molding-lrm/planner-element.js +1 -1
  35. package/es/catalog/properties/export.js +9 -9
  36. package/es/catalog/properties/property-checkbox.js +3 -3
  37. package/es/catalog/properties/property-color.js +2 -2
  38. package/es/catalog/properties/property-enum.js +3 -3
  39. package/es/catalog/properties/property-lenght-measure.js +4 -4
  40. package/es/catalog/properties/property-length-measure.js +3 -3
  41. package/es/catalog/properties/property-length-measure_hole.js +4 -4
  42. package/es/catalog/properties/property-number.js +2 -2
  43. package/es/catalog/properties/property-read-only.js +2 -2
  44. package/es/catalog/properties/property-string.js +2 -2
  45. package/es/catalog/properties/property-toggle.js +2 -2
  46. package/es/catalog/utils/geom-utils.js +1 -1
  47. package/es/catalog/utils/item-loader.js +6 -6
  48. package/es/catalog/utils/load-obj.js +1 -1
  49. package/es/class/area.js +2 -2
  50. package/es/class/export.js +10 -10
  51. package/es/class/group.js +3 -3
  52. package/es/class/guide.js +1 -1
  53. package/es/class/hole.js +5 -5
  54. package/es/class/item.js +6 -6
  55. package/es/class/layer.js +4 -4
  56. package/es/class/line.js +4 -4
  57. package/es/class/project.js +7 -7
  58. package/es/class/vertex.js +5 -5
  59. package/es/components/content.js +5 -5
  60. package/es/components/export.js +3 -3
  61. package/es/components/style/button.js +1 -1
  62. package/es/components/style/cancel-button.js +1 -1
  63. package/es/components/style/content-title.js +1 -1
  64. package/es/components/style/delete-button.js +2 -2
  65. package/es/components/style/export.js +14 -14
  66. package/es/components/style/form-color-input.js +1 -1
  67. package/es/components/style/form-number-input.js +2 -2
  68. package/es/components/style/form-number-input_2.js +2 -2
  69. package/es/components/style/form-select.js +2 -2
  70. package/es/components/style/form-slider.js +1 -1
  71. package/es/components/style/form-submit-button.js +2 -2
  72. package/es/components/style/form-text-input.js +2 -2
  73. package/es/components/viewer2d/area.js +2 -2
  74. package/es/components/viewer2d/export.js +14 -14
  75. package/es/components/viewer2d/grids/grids.js +1 -1
  76. package/es/components/viewer2d/group.js +2 -2
  77. package/es/components/viewer2d/item.js +5 -5
  78. package/es/components/viewer2d/layer.js +4 -4
  79. package/es/components/viewer2d/line.js +4 -4
  80. package/es/components/viewer2d/ruler.js +3 -3
  81. package/es/components/viewer2d/rulerX.js +1 -1
  82. package/es/components/viewer2d/rulerY.js +1 -1
  83. package/es/components/viewer2d/scene.js +2 -2
  84. package/es/components/viewer2d/snap.js +1 -1
  85. package/es/components/viewer2d/state.js +3 -3
  86. package/es/components/viewer2d/utils.js +2 -2
  87. package/es/components/viewer2d/vertex.js +1 -1
  88. package/es/components/viewer2d/viewer2d.js +9 -9
  89. package/es/components/viewer3d/front3D.js +2 -2
  90. package/es/components/viewer3d/grid-creator.js +2 -2
  91. package/es/components/viewer3d/grids/grid-horizontal-streak.js +1 -1
  92. package/es/components/viewer3d/grids/grid-streak.js +1 -1
  93. package/es/components/viewer3d/grids/grid-vertical-streak.js +1 -1
  94. package/es/components/viewer3d/pointer-lock-navigation.js +1 -1
  95. package/es/components/viewer3d/ruler-utils/itemRect.js +1 -1
  96. package/es/components/viewer3d/ruler-utils/layer3D.js +5 -5
  97. package/es/components/viewer3d/ruler-utils/ruler3D.js +1 -1
  98. package/es/components/viewer3d/ruler-utils/scene3D.js +4 -4
  99. package/es/components/viewer3d/ruler-utils/state3D.js +1 -1
  100. package/es/components/viewer3d/scene-creator.js +10 -10
  101. package/es/components/viewer3d/viewer3d-first-person.js +5 -5
  102. package/es/components/viewer3d/viewer3d.js +10 -10
  103. package/es/index.js +14 -14
  104. package/es/models.js +3 -3
  105. package/es/plugins/autosave.js +1 -1
  106. package/es/plugins/console-debugger.js +1 -1
  107. package/es/plugins/export.js +3 -3
  108. package/es/plugins/keyboard.js +2 -2
  109. package/es/reducers/areas-reducer.js +2 -2
  110. package/es/reducers/export.js +11 -11
  111. package/es/reducers/groups-reducer.js +3 -3
  112. package/es/reducers/holes-reducer.js +3 -3
  113. package/es/reducers/items-reducer.js +3 -3
  114. package/es/reducers/lines-reducer.js +3 -3
  115. package/es/reducers/project-reducer.js +3 -3
  116. package/es/reducers/reducer.js +3 -3
  117. package/es/reducers/scene-reducer.js +3 -3
  118. package/es/reducers/user-reducer.js +1 -1
  119. package/es/reducers/vertices-reducer.js +3 -3
  120. package/es/reducers/viewer2d-reducer.js +1 -1
  121. package/es/reducers/viewer3d-reducer.js +3 -3
  122. package/es/styles/export.js +1 -1
  123. package/es/translator/translator.js +3 -3
  124. package/es/utils/export.js +11 -11
  125. package/es/utils/geometry.js +5 -5
  126. package/es/utils/graph-inner-cycles.js +3 -3
  127. package/es/utils/helper.js +3 -3
  128. package/es/utils/molding.js +5 -5
  129. package/es/utils/snap-scene.js +2 -2
  130. package/es/utils/snap.js +1 -1
  131. package/lib/KitchenConfiguratorApp.js +9 -9
  132. package/lib/catalog/areas/area/planner-element.js +7 -7
  133. package/lib/catalog/factories/wall-factory-3d.js +2 -2
  134. package/lib/catalog/factories/wall-factory.js +1 -1
  135. package/lib/catalog/holes/door-closet/planner-element.js +1 -1
  136. package/lib/catalog/holes/door-exterior/planner-element.js +1 -1
  137. package/lib/catalog/holes/door-interior/planner-element.js +1 -1
  138. package/lib/catalog/holes/door-sliding/planner-element.js +1 -1
  139. package/lib/catalog/holes/doorway-framed/planner-element.js +1 -1
  140. package/lib/catalog/holes/window-clear/planner-element.js +1 -1
  141. package/lib/catalog/holes/window-cross/planner-element.js +1 -1
  142. package/lib/catalog/holes/window-double-hung/planner-element.js +1 -1
  143. package/lib/catalog/holes/window-vertical/planner-element.js +1 -1
  144. package/lib/catalog/lines/wall/planner-element.js +11 -11
  145. package/lib/catalog/utils/geom-utils.js +1 -1
  146. package/lib/catalog/utils/item-loader.js +4 -4
  147. package/lib/catalog/utils/load-obj.js +1 -1
  148. package/lib/class/line.js +1 -1
  149. package/lib/class/vertex.js +1 -1
  150. package/lib/components/viewer2d/line.js +1 -1
  151. package/lib/components/viewer2d/viewer2d.js +15 -15
  152. package/lib/components/viewer3d/scene-creator.js +2 -2
  153. package/lib/utils/helper.js +1 -1
  154. package/package.json +3 -13
@@ -7,12 +7,12 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
7
7
  import React from 'react';
8
8
  import { useState } from 'react';
9
9
  import PropTypes from 'prop-types';
10
- import If from '../../utils/react-if';
11
- import RulerDist from './rulerDist';
10
+ import If from "../../utils/react-if";
11
+ import RulerDist from "./rulerDist";
12
12
  import convert from 'convert-units';
13
- import { GeometryUtils } from '../../utils/export';
14
- import { MODE_ROTATING_ITEM, SECONDARY_PURPLE_COLOR, STATUS_NEGATIVE_COLOR, BG_COLOR_1, STATUS_WARNING_COLOR, WALL_CABINET_LAYOUTPOS } from '../../constants';
15
- import { returnReplaceableDeepSearchType } from './utils';
13
+ import { GeometryUtils } from "../../utils/export";
14
+ import { MODE_ROTATING_ITEM, SECONDARY_PURPLE_COLOR, STATUS_NEGATIVE_COLOR, BG_COLOR_1, STATUS_WARNING_COLOR, WALL_CABINET_LAYOUTPOS } from "../../constants";
15
+ import { returnReplaceableDeepSearchType } from "./utils";
16
16
  var STYLE_LINE = {
17
17
  fill: '#0096fd',
18
18
  stroke: '#0096fd'
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { Line, Area, Vertex, Item, Group } from './export';
4
- import { GeometryUtils } from '../../utils/export';
5
- import { MODE_DRAWING_LINE, WALL_CABINET_LAYOUTPOS } from '../../constants';
6
- import { returnReplaceableDeepSearchType } from './utils';
3
+ import { Line, Area, Vertex, Item, Group } from "./export";
4
+ import { GeometryUtils } from "../../utils/export";
5
+ import { MODE_DRAWING_LINE, WALL_CABINET_LAYOUTPOS } from "../../constants";
6
+ import { returnReplaceableDeepSearchType } from "./utils";
7
7
  var STYLE = {
8
8
  stroke: '#494949',
9
9
  strokeWidth: 1,
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import { GeometryUtils } from '../../utils/export';
4
- import Ruler from './ruler';
5
- import { BASE_CABINET_LAYOUTPOS, LINE_THICKNESS, WALL_CABINET_LAYOUTPOS } from 'src/constants';
3
+ import { GeometryUtils } from "../../utils/export";
4
+ import Ruler from "./ruler";
5
+ import { BASE_CABINET_LAYOUTPOS, LINE_THICKNESS, WALL_CABINET_LAYOUTPOS } from "../../constants";
6
6
  import * as Three from 'three';
7
- import { isEmpty } from './utils';
7
+ import { isEmpty } from "./utils";
8
8
  import Tooltip from '@material-ui/core/Tooltip';
9
9
  var STYLE = {
10
10
  stroke: 'rgb(77, 77, 77)',
@@ -1,9 +1,9 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
3
  import convert from 'convert-units';
4
- import IDBroker from '../../utils/id-broker';
5
- import { FormNumberInput2 } from '../style/export';
6
- import { LINE_THICKNESS, SHADE_LIGHT_BLUE_COLOR, TEXT_COLOR_NEUTRAL_7 } from '../../constants';
4
+ import IDBroker from "../../utils/id-broker";
5
+ import { FormNumberInput2 } from "../style/export";
6
+ import { LINE_THICKNESS, SHADE_LIGHT_BLUE_COLOR, TEXT_COLOR_NEUTRAL_7 } from "../../constants";
7
7
  var STYLE = {
8
8
  stroke: TEXT_COLOR_NEUTRAL_7,
9
9
  strokeWidth: '1px'
@@ -16,7 +16,7 @@ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new T
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
18
  import PropTypes from 'prop-types';
19
- import * as SharedStyle from '../../shared-style';
19
+ import * as SharedStyle from "../../shared-style";
20
20
  var RulerX = /*#__PURE__*/function (_Component) {
21
21
  function RulerX(props, context) {
22
22
  _classCallCheck(this, RulerX);
@@ -16,7 +16,7 @@ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new T
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
18
  import PropTypes from 'prop-types';
19
- import * as SharedStyle from '../../shared-style';
19
+ import * as SharedStyle from "../../shared-style";
20
20
  var RulerY = /*#__PURE__*/function (_Component) {
21
21
  function RulerY(props, context) {
22
22
  _classCallCheck(this, RulerY);
@@ -23,8 +23,8 @@ function _inherits(t, e) { if ("function" != typeof e && null !== e) throw new T
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
25
  import PropTypes from 'prop-types';
26
- import { Layer, Grids } from './export';
27
- import { searchForSkuValue } from './utils';
26
+ import { Layer, Grids } from "./export";
27
+ import { searchForSkuValue } from "./utils";
28
28
  var Scene = /*#__PURE__*/function (_Component) {
29
29
  function Scene() {
30
30
  _classCallCheck(this, Scene);
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import * as Geometry from '../../utils/geometry';
3
+ import * as Geometry from "../../utils/geometry";
4
4
  var STYLE = {
5
5
  stroke: '#D32F2F',
6
6
  strokeWidth: '1px'
@@ -6,9 +6,9 @@ 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 PropTypes from 'prop-types';
9
- import Scene from './scene';
10
- import Snap from './snap';
11
- import * as SharedStyle from '../../shared-style';
9
+ import Scene from "./scene";
10
+ import Snap from "./snap";
11
+ import * as SharedStyle from "../../shared-style";
12
12
  var guideStyle = {
13
13
  stroke: SharedStyle.SECONDARY_COLOR.main,
14
14
  strokewidth: '2.5px'
@@ -1,6 +1,6 @@
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';
3
- import { INSTALLATION_SUFFIX_TYPE, INSTALLATION_TYPE_NAME, INSTALLATION_TYPE_SKU_SUFFIX, TOE_KICK_MOLDING } from '../../constants';
2
+ import { isImmutable, toPlainObject } from "../../utils/helper";
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) {
6
6
  if (elementType) {
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import PropTypes from 'prop-types';
3
- import * as SharedStyle from '../../shared-style';
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;
6
6
  var STYLE = {
@@ -17,17 +17,17 @@ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
17
17
  import React, { useEffect, useRef, useState } from 'react';
18
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
- import * as constants from '../../constants';
21
- import State from './state';
22
- import * as SharedStyle from '../../shared-style';
23
- import { RulerX, RulerY } from './export';
24
- import { DECIMAL_PLACES_2, LINE_THICKNESS, MIN_ANGLE_DISALLOW_DRAW_WALL, MODE_ELEVATION_VIEW, MODE_IDLE, UNIT_ANGLE } from 'src/constants';
25
- import { GeometryUtils } from '../../utils/export';
26
- import FormNumberInput from '../style/form-number-input';
20
+ import * as constants from "../../constants";
21
+ import State from "./state";
22
+ import * as SharedStyle from "../../shared-style";
23
+ import { RulerX, RulerY } from "./export";
24
+ import { DECIMAL_PLACES_2, LINE_THICKNESS, MIN_ANGLE_DISALLOW_DRAW_WALL, MODE_ELEVATION_VIEW, MODE_IDLE, UNIT_ANGLE } from "../../constants";
25
+ import { GeometryUtils } from "../../utils/export";
26
+ import FormNumberInput from "../style/form-number-input";
27
27
  import convert from 'convert-units';
28
28
  import { Map } from 'immutable';
29
- import { formatNumber } from 'src/utils/math';
30
- import { isEmpty } from 'src/utils/helper';
29
+ import { formatNumber } from "../../utils/math";
30
+ import { isEmpty } from "../../utils/helper";
31
31
 
32
32
  // variables
33
33
  var pinFlag = false;
@@ -5,8 +5,8 @@ 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, { useState, useEffect } from 'react';
8
- import Viewer3D from './viewer3d';
9
- import State3D from './ruler-utils/state3D';
8
+ import Viewer3D from "./viewer3d";
9
+ import State3D from "./ruler-utils/state3D";
10
10
  var k = 0;
11
11
  export default function Front3D(_ref, _ref2) {
12
12
  var width = _ref.width,
@@ -1,6 +1,6 @@
1
1
  import * as Three from 'three';
2
- import { HELVETIKER } from './libs/helvetiker_regular.typeface.js';
3
- import gridStreak from './grids/grid-streak';
2
+ import { HELVETIKER } from "./libs/helvetiker_regular.typeface.js";
3
+ import gridStreak from "./grids/grid-streak";
4
4
  import { FontLoader } from 'three/examples/jsm/loaders/FontLoader.js';
5
5
  export default function createGrid(scene) {
6
6
  var gridMesh = new Three.Object3D();
@@ -1,6 +1,6 @@
1
1
  import * as Three from 'three';
2
2
  import { List } from 'immutable';
3
- import { COLORS } from '../../../shared-style';
3
+ import { COLORS } from "../../../shared-style";
4
4
  export default function (width, height, grid, font) {
5
5
  var step = grid.properties.get('step');
6
6
  var colors = grid.properties.has('color') ? new List([grid.properties.get('color')]) : grid.properties.get('colors');
@@ -1,6 +1,6 @@
1
1
  import * as Three from 'three';
2
2
  import { List } from 'immutable';
3
- import { COLORS } from '../../../shared-style';
3
+ import { COLORS } from "../../../shared-style";
4
4
  export default function (width, height, grid, font) {
5
5
  var step = grid.properties.get('step');
6
6
  var colors = grid.properties.has('color') ? new List([grid.properties.get('color')]) : grid.properties.get('colors');
@@ -1,6 +1,6 @@
1
1
  import * as Three from 'three';
2
2
  import { List } from 'immutable';
3
- import { COLORS } from '../../../shared-style';
3
+ import { COLORS } from "../../../shared-style";
4
4
  export default function (width, height, grid, font) {
5
5
  var step = grid.properties.get('step');
6
6
  var colors = grid.properties.has('color') ? new List([grid.properties.get('color')]) : grid.properties.get('colors');
@@ -1,4 +1,4 @@
1
- import PointerLockControls from './libs/pointer-lock-controls';
1
+ import PointerLockControls from "./libs/pointer-lock-controls";
2
2
  export function initPointerLock(camera, rendererElement) {
3
3
  var havePointerLock = 'pointerLockElement' in document || 'mozPointerLockElement' in document || 'webkitPointerLockElement' in document;
4
4
  var pointerlockchange = function pointerlockchange(event) {
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import { MODE_BACK_ELEVATION_VIEW, MODE_FRONT_ELEVATION_VIEW, MODE_LEFT_ELEVATION_VIEW, MODE_RIGHT_ELEVATION_VIEW } from '../../../constants';
2
+ import { MODE_BACK_ELEVATION_VIEW, MODE_FRONT_ELEVATION_VIEW, MODE_LEFT_ELEVATION_VIEW, MODE_RIGHT_ELEVATION_VIEW } from "../../../constants";
3
3
  import convert from 'convert-units';
4
4
  export default function ItemRect(_ref) {
5
5
  var scene = _ref.scene,
@@ -1,10 +1,10 @@
1
1
  import React from 'react';
2
- import Ruler3D from './ruler3D';
2
+ import Ruler3D from "./ruler3D";
3
3
  import convert from 'convert-units';
4
- import { GeometryUtils } from '../../../utils/export';
5
- import { returnReplaceableDeepSearchType } from '../../../components/viewer2d/utils';
6
- import { DELTA, DISTANCE_EPSILON, DECIMAL_PLACES_2 } from '../../../constants';
7
- import { formatNumber, isNonZeroText } from '../../../utils/math';
4
+ import { GeometryUtils } from "../../../utils/export";
5
+ import { returnReplaceableDeepSearchType } from "../../../components/viewer2d/utils";
6
+ import { DELTA, DISTANCE_EPSILON, DECIMAL_PLACES_2 } from "../../../constants";
7
+ import { formatNumber, isNonZeroText } from "../../../utils/math";
8
8
  export default function Layer3D(_ref) {
9
9
  var layer = _ref.layer,
10
10
  frontRect = _ref.frontRect,
@@ -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_0, 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,9 +1,9 @@
1
1
  import React from 'react';
2
- import { GeometryUtils } from '../../../utils/export';
3
- import { isElevationView } from '../../..//utils/helper';
4
- import { verticesDistance } from '../../../utils/geometry';
2
+ import { GeometryUtils } from "../../../utils/export";
3
+ import { isElevationView } from "../../..//utils/helper";
4
+ import { verticesDistance } from "../../../utils/geometry";
5
5
  import convert from 'convert-units';
6
- import Layer3D from './layer3D';
6
+ import Layer3D from "./layer3D";
7
7
  export function compareVertices(v0, v1) {
8
8
  return v0.x === v1.x ? v0.y - v1.y : v0.x - v1.x;
9
9
  }
@@ -1,5 +1,5 @@
1
1
  import React from 'react';
2
- import Scene3D from './scene3D';
2
+ import Scene3D from "./scene3D";
3
3
  export default function State3D(_ref) {
4
4
  var state = _ref.state,
5
5
  catalog = _ref.catalog,
@@ -13,17 +13,17 @@ function _arrayWithoutHoles(r) { if (Array.isArray(r)) return _arrayLikeToArray(
13
13
  function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
14
14
  import * as Three from 'three';
15
15
  import { Color, Group } from 'three';
16
- import createGrid from './grid-creator';
17
- import { disposeObject } from './three-memory-cleaner';
18
- import { ANIMATE_STEP_MAX, ANIMATE_STEP_MIN, ARRAY_3D_MODES, ARROW_TEXT_BACKCOLOR, ARROW_TEXT_FONTFACE, ARROW_TEXT_FORECOLOR, BASE_CABINET_LAYOUTPOS, BOTTOM_MOLDING_LOCATION, DECIMAL_PLACES_2, DIFFERENT_VALUES_PATH_LENGTH, DISTANCE_EPSILON, EPSILON, MIDDLE_MOLDING_LOCATION, MODE_DRAGGING_ITEM_3D, MODE_DRAWING_ITEM_3D, MODE_IDLE, MODE_IDLE_3D, MODE_ROTATING_ITEM_3D, OBJTYPE_MESH, SHADE_DARK_PURPLE_COLOR, TOP_MOLDING_LOCATION, UNIT_CENTIMETER, WALL_CABINET_LAYOUTPOS } from '../../constants';
19
- import { GeometryUtils, IDBroker, MoldingUtils } from '../../utils/export';
16
+ import createGrid from "./grid-creator";
17
+ import { disposeObject } from "./three-memory-cleaner";
18
+ import { ANIMATE_STEP_MAX, ANIMATE_STEP_MIN, ARRAY_3D_MODES, ARROW_TEXT_BACKCOLOR, ARROW_TEXT_FONTFACE, ARROW_TEXT_FORECOLOR, BASE_CABINET_LAYOUTPOS, BOTTOM_MOLDING_LOCATION, DECIMAL_PLACES_2, DIFFERENT_VALUES_PATH_LENGTH, DISTANCE_EPSILON, EPSILON, MIDDLE_MOLDING_LOCATION, MODE_DRAGGING_ITEM_3D, MODE_DRAWING_ITEM_3D, MODE_IDLE, MODE_IDLE_3D, MODE_ROTATING_ITEM_3D, OBJTYPE_MESH, SHADE_DARK_PURPLE_COLOR, TOP_MOLDING_LOCATION, UNIT_CENTIMETER, WALL_CABINET_LAYOUTPOS } from "../../constants";
19
+ import { GeometryUtils, IDBroker, MoldingUtils } from "../../utils/export";
20
20
  import convert from 'convert-units';
21
- import { verticesDistance } from '../../utils/geometry';
22
- import * as GeomUtils from '../../catalog/utils/geom-utils';
23
- import { loadTexture } from '../../catalog/utils/item-loader';
24
- import { returnReplaceableDeepSearchType } from '../viewer2d/utils';
25
- import { animateDoor, isElevationView, isEmpty, replaceMeshesWithLineSegments, translateDrawer } from 'src/utils/helper';
26
- import { formatNumber } from 'src/utils/math';
21
+ import { verticesDistance } from "../../utils/geometry";
22
+ import * as GeomUtils from "../../catalog/utils/geom-utils";
23
+ import { loadTexture } from "../../catalog/utils/item-loader";
24
+ import { returnReplaceableDeepSearchType } from "../viewer2d/utils";
25
+ import { animateDoor, isElevationView, isEmpty, replaceMeshesWithLineSegments, translateDrawer } from "../../utils/helper";
26
+ import { formatNumber } from "../../utils/math";
27
27
  var transformBox;
28
28
  export var fVLine = [];
29
29
  var scene_mode = null;
@@ -17,12 +17,12 @@ import React from 'react';
17
17
  import PropTypes from 'prop-types';
18
18
  import ReactDOM from 'react-dom';
19
19
  import * as Three from 'three';
20
- import { parseData, updateScene } from './scene-creator';
21
- import { disposeScene } from './three-memory-cleaner';
20
+ import { parseData, updateScene } from "./scene-creator";
21
+ import { disposeScene } from "./three-memory-cleaner";
22
22
  import diff from 'immutablediff';
23
- import { initPointerLock } from './pointer-lock-navigation';
24
- import { firstPersonOnKeyDown, firstPersonOnKeyUp } from './libs/first-person-controls';
25
- import * as SharedStyle from '../../shared-style';
23
+ import { initPointerLock } from "./pointer-lock-navigation";
24
+ import { firstPersonOnKeyDown, firstPersonOnKeyUp } from "./libs/first-person-controls";
25
+ import * as SharedStyle from "../../shared-style";
26
26
  var Viewer3DFirstPerson = /*#__PURE__*/function (_React$Component) {
27
27
  function Viewer3DFirstPerson(props) {
28
28
  var _this;
@@ -21,24 +21,24 @@ import React from 'react';
21
21
  import PropTypes from 'prop-types';
22
22
  import ReactDOM from 'react-dom';
23
23
  import * as Three from 'three';
24
- import { parseData, updateScene, visibleTransformBox, getDistances, fVLine, deleteSpecifiedMeshObjects, createBacksplash, checkCabinetOverlap } from './scene-creator';
25
- import { disposeScene } from './three-memory-cleaner';
26
- import { disposeObject } from './three-memory-cleaner';
24
+ import { parseData, updateScene, visibleTransformBox, getDistances, fVLine, deleteSpecifiedMeshObjects, createBacksplash, checkCabinetOverlap } from "./scene-creator";
25
+ import { disposeScene } from "./three-memory-cleaner";
26
+ import { disposeObject } from "./three-memory-cleaner";
27
27
  import diff from 'immutablediff';
28
- import * as SharedStyle from '../../shared-style';
29
- import { MODE_DRAWING_ITEM_3D, MODE_IDLE_3D, MODE_3D_VIEW, UNIT_CENTIMETER, MODE_DRAWING_HOLE_3D, SECONDARY_PURPLE_COLOR, MODE_ELEVATION_VIEW, MODE_DRAGGING_ITEM_3D, MODE_ROTATING_ITEM_3D, WALL_CABINET_LAYOUTPOS, BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS } from '../../constants';
28
+ import * as SharedStyle from "../../shared-style";
29
+ import { MODE_DRAWING_ITEM_3D, MODE_IDLE_3D, MODE_3D_VIEW, UNIT_CENTIMETER, MODE_DRAWING_HOLE_3D, SECONDARY_PURPLE_COLOR, MODE_ELEVATION_VIEW, MODE_DRAGGING_ITEM_3D, MODE_ROTATING_ITEM_3D, WALL_CABINET_LAYOUTPOS, BASE_CABINET_LAYOUTPOS, TALL_CABINET_LAYOUTPOS } from "../../constants";
30
30
  import { isUndefined } from 'util';
31
- import { verticesDistance } from '../../utils/geometry';
31
+ import { verticesDistance } from "../../utils/geometry";
32
32
  import convert from 'convert-units';
33
- import { GeometryUtils } from '../../utils/export';
34
- import { handleCamRect, isElevationView, isEmpty } from '../../utils/helper';
33
+ import { GeometryUtils } from "../../utils/export";
34
+ import { handleCamRect, isElevationView, isEmpty } from "../../utils/helper";
35
35
  import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader';
36
36
  import CameraControls from 'camera-controls';
37
37
  CameraControls.install({
38
38
  THREE: Three
39
39
  });
40
- import { returnReplaceableDeepSearchType } from '../viewer2d/utils';
41
- import { getAllMeshes, vectorIntersectWithMesh } from '../../utils/objects-utils';
40
+ import { returnReplaceableDeepSearchType } from "../viewer2d/utils";
41
+ import { getAllMeshes, vectorIntersectWithMesh } from "../../utils/objects-utils";
42
42
  var Scene3DViewer = /*#__PURE__*/function (_React$Component) {
43
43
  function Scene3DViewer(props) {
44
44
  var _this;
package/es/index.js CHANGED
@@ -1,15 +1,15 @@
1
- import Catalog from './catalog/catalog';
2
- import Translator from './translator/translator';
3
- import * as Models from './models';
4
- import reducer from './reducers/reducer';
5
- import KitchenConfiguratorApp from './KitchenConfiguratorApp';
6
- import Plugins from './plugins/export';
7
- import * as KitchenConfiguratorConstants from './constants';
8
- import * as KitchenConfiguratorSharedStyle from './shared-style';
9
- import KitchenConfiguratorComponents from './components/export';
10
- import KitchenConfiguratorActions from './actions/export';
11
- import KitchenConfiguratorReducers from './reducers/export';
12
- import KitchenConfiguratorClasses from './class/export';
13
- import ElementsFactories from './catalog/factories/export';
14
- import KitchenConfiguratorUtils from './utils/export';
1
+ import Catalog from "./catalog/catalog";
2
+ import Translator from "./translator/translator";
3
+ import * as Models from "./models";
4
+ import reducer from "./reducers/reducer";
5
+ import KitchenConfiguratorApp from "./KitchenConfiguratorApp";
6
+ import Plugins from "./plugins/export";
7
+ import * as KitchenConfiguratorConstants from "./constants";
8
+ import * as KitchenConfiguratorSharedStyle from "./shared-style";
9
+ import KitchenConfiguratorComponents from "./components/export";
10
+ import KitchenConfiguratorActions from "./actions/export";
11
+ import KitchenConfiguratorReducers from "./reducers/export";
12
+ import KitchenConfiguratorClasses from "./class/export";
13
+ import ElementsFactories from "./catalog/factories/export";
14
+ import KitchenConfiguratorUtils from "./utils/export";
15
15
  export { Catalog, Translator, Models, reducer, KitchenConfiguratorApp, Plugins, KitchenConfiguratorConstants, KitchenConfiguratorSharedStyle, KitchenConfiguratorComponents, KitchenConfiguratorActions, KitchenConfiguratorReducers, KitchenConfiguratorClasses, ElementsFactories, KitchenConfiguratorUtils };
package/es/models.js CHANGED
@@ -15,9 +15,9 @@ 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 { Record, List, Map, fromJS } from 'immutable';
18
- import { MODE_IDLE, UNIT_INCH } from './constants';
19
- import { SNAP_MASK } from './utils/snap';
20
- import { isEmpty } from './utils/helper';
18
+ import { MODE_IDLE, UNIT_INCH } from "./constants";
19
+ import { SNAP_MASK } from "./utils/snap";
20
+ import { isEmpty } from "./utils/helper";
21
21
  import convert from 'convert-units';
22
22
  var safeLoadMapList = function safeLoadMapList(mapList, Model, defaultMap) {
23
23
  return mapList ? new Map(mapList).map(function (m) {
@@ -1,5 +1,5 @@
1
1
  var sessionStorage = window.hasOwnProperty('sessionStorage') ? window.sessionStorage : false;
2
- import { loadProject } from '../actions/project-actions';
2
+ import { loadProject } from "../actions/project-actions";
3
3
  var TIMEOUT_DELAY = 500;
4
4
  var timeout = null;
5
5
  export default function autosave(autosaveKey, revert, delay) {
@@ -4,7 +4,7 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
4
4
  function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
5
5
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
6
  function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
7
- import actions from '../actions/export';
7
+ import actions from "../actions/export";
8
8
  export default function consoleDebugger() {
9
9
  return function (store, stateExtractor) {
10
10
  window.KitchenConfigurator = _objectSpread(_objectSpread({}, actions), {}, {
@@ -1,6 +1,6 @@
1
- import Autosave from './autosave';
2
- import Keyboard from './keyboard';
3
- import ConsoleDebugger from './console-debugger';
1
+ import Autosave from "./autosave";
2
+ import Keyboard from "./keyboard";
3
+ import ConsoleDebugger from "./console-debugger";
4
4
  export { Autosave, Keyboard, ConsoleDebugger };
5
5
  export default {
6
6
  Autosave: Autosave,
@@ -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 { 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";
3
3
  export default function keyboard() {
4
4
  return function (store, stateExtractor) {
5
5
  window.addEventListener('keydown', function (event) {
@@ -1,5 +1,5 @@
1
- import { Area } from '../class/export';
2
- import { SELECT_AREA, SET_FLOOR_STYLES } from '../constants';
1
+ import { Area } from "../class/export";
2
+ import { SELECT_AREA, SET_FLOOR_STYLES } from "../constants";
3
3
  export default function (state, action) {
4
4
  switch (action.type) {
5
5
  case SELECT_AREA:
@@ -1,14 +1,14 @@
1
- import KitchenConfiguratorAreasReducer from './areas-reducer';
2
- import KitchenConfiguratorHolesReducer from './holes-reducer';
3
- import KitchenConfiguratorItemsReducer from './items-reducer';
4
- import KitchenConfiguratorLinesReducer from './lines-reducer';
5
- import KitchenConfiguratorGroupsReducer from './groups-reducer';
6
- import KitchenConfiguratorProjectReducer from './project-reducer';
7
- import KitchenConfiguratorSceneReducer from './scene-reducer';
8
- import KitchenConfiguratorVerticesReducer from './vertices-reducer';
9
- import KitchenConfiguratorViewer2dReducer from './viewer2d-reducer';
10
- import KitchenConfiguratorViewer3dReducer from './viewer3d-reducer';
11
- import KitchenConfiguratorUserReducer from './user-reducer';
1
+ import KitchenConfiguratorAreasReducer from "./areas-reducer";
2
+ import KitchenConfiguratorHolesReducer from "./holes-reducer";
3
+ import KitchenConfiguratorItemsReducer from "./items-reducer";
4
+ import KitchenConfiguratorLinesReducer from "./lines-reducer";
5
+ import KitchenConfiguratorGroupsReducer from "./groups-reducer";
6
+ import KitchenConfiguratorProjectReducer from "./project-reducer";
7
+ import KitchenConfiguratorSceneReducer from "./scene-reducer";
8
+ import KitchenConfiguratorVerticesReducer from "./vertices-reducer";
9
+ import KitchenConfiguratorViewer2dReducer from "./viewer2d-reducer";
10
+ import KitchenConfiguratorViewer3dReducer from "./viewer3d-reducer";
11
+ import KitchenConfiguratorUserReducer from "./user-reducer";
12
12
  export { KitchenConfiguratorAreasReducer, KitchenConfiguratorHolesReducer, KitchenConfiguratorItemsReducer, KitchenConfiguratorLinesReducer, KitchenConfiguratorGroupsReducer, KitchenConfiguratorProjectReducer, KitchenConfiguratorSceneReducer, KitchenConfiguratorVerticesReducer, KitchenConfiguratorViewer2dReducer, KitchenConfiguratorViewer3dReducer, KitchenConfiguratorUserReducer };
13
13
  export default {
14
14
  KitchenConfiguratorAreasReducer: KitchenConfiguratorAreasReducer,
@@ -1,6 +1,6 @@
1
- import { GROUP_ACTIONS } from '../constants';
2
- import { Group } from '../class/export';
3
- import { history } from '../utils/export';
1
+ import { GROUP_ACTIONS } from "../constants";
2
+ import { Group } from "../class/export";
3
+ import { history } from "../utils/export";
4
4
  export default function (state, action) {
5
5
  state = state.merge({
6
6
  sceneHistory: history.historyPush(state.sceneHistory, state.scene)
@@ -1,6 +1,6 @@
1
- import { Hole } from '../class/export';
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';
1
+ import { Hole } from "../class/export";
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";
4
4
  export default function (state, action) {
5
5
  switch (action.type) {
6
6
  case UPDATE_DRAGGING_HOLE_RULER_CHANGED:
@@ -1,9 +1,9 @@
1
- import { Item, Area } from '../class/export';
2
- import { history } from '../utils/export';
1
+ import { Item, Area } from "../class/export";
2
+ import { history } from "../utils/export";
3
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
4
  // SET_MOVE_STATUS,
5
5
  // SET_ROTATE_STATUS
6
- } from '../constants';
6
+ } from "../constants";
7
7
  export default function (state, action) {
8
8
  switch (action.type) {
9
9
  case STORE_DIST_ARRAY:
@@ -1,6 +1,6 @@
1
- import { Line } from '../class/export';
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';
1
+ import { Line } from "../class/export";
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";
4
4
  export default function (state, action) {
5
5
  switch (action.type) {
6
6
  case SELECT_TOOL_DRAWING_LINE:
@@ -1,6 +1,6 @@
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';
3
- import { Project } from '../class/export';
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";
3
+ import { Project } from "../class/export";
4
4
  export default function (state, action) {
5
5
  switch (action.type) {
6
6
  case NEW_PROJECT:
@@ -1,6 +1,6 @@
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';
3
- import { State } from '../models';
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";
3
+ import { State } from "../models";
4
4
  export var initialState = new State();
5
5
  export default function appReducer(state, action) {
6
6
  // /////////
@@ -1,6 +1,6 @@
1
- import { Layer } from '../class/export';
2
- import { history } from '../utils/export';
3
- import { ADD_LAYER, SELECT_LAYER, SET_LAYER_PROPERTIES, REMOVE_LAYER, UPDATE_MOVING_STATE } from '../constants';
1
+ import { Layer } from "../class/export";
2
+ import { history } from "../utils/export";
3
+ import { ADD_LAYER, SELECT_LAYER, SET_LAYER_PROPERTIES, REMOVE_LAYER, UPDATE_MOVING_STATE } from "../constants";
4
4
  export default function (state, action) {
5
5
  var saveHistory = function saveHistory() {
6
6
  return state = state.merge({