kitchen-simulator 5.0.0-test.65 → 5.0.0-test.67

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 (32) hide show
  1. package/package.json +1 -1
  2. package/src/_KitchenConfigurator.jsx +1 -1
  3. package/src/catalog/factories/wall-factory-3d.js +1 -1
  4. package/src/catalog/properties/property-checkbox.jsx +63 -65
  5. package/src/catalog/properties/property-enum.jsx +36 -38
  6. package/src/catalog/properties/property-lenght-measure.jsx +1 -1
  7. package/src/catalog/properties/property-length-measure.jsx +36 -39
  8. package/src/catalog/properties/property-length-measure_hole.jsx +1 -1
  9. package/src/catalog/utils/exporter.js +1 -1
  10. package/src/catalog/utils/item-loader.jsx +1 -1
  11. package/src/class/item.js +1 -1
  12. package/src/components/style/form-number-input.jsx +1 -27
  13. package/src/components/style/form-select.jsx +0 -28
  14. package/src/components/viewer2d/area.jsx +1 -1
  15. package/src/components/viewer2d/grids/grid-horizontal-streak.jsx +1 -1
  16. package/src/components/viewer2d/grids/grid-streak.jsx +1 -1
  17. package/src/components/viewer2d/grids/grid-vertical-streak.jsx +1 -1
  18. package/src/components/viewer2d/item.jsx +1 -1
  19. package/src/components/viewer2d/ruler.jsx +1 -1
  20. package/src/components/viewer2d/rulerDist.jsx +1 -1
  21. package/src/components/viewer2d/viewer2d.jsx +1 -1
  22. package/src/components/viewer3d/ruler-utils/itemRect.jsx +91 -91
  23. package/src/components/viewer3d/ruler-utils/layer3D.jsx +528 -528
  24. package/src/components/viewer3d/ruler-utils/scene3D.jsx +1 -1
  25. package/src/components/viewer3d/scene-creator.js +1 -1
  26. package/src/components/viewer3d/viewer3d.jsx +1 -1
  27. package/src/models.js +1 -1
  28. package/src/reducers/viewer2d-reducer.js +1 -1
  29. package/src/reducers/viewer3d-reducer.js +1 -1
  30. package/src/utils/geometry.js +2 -2
  31. package/src/utils/helper.js +1 -1
  32. package/src/utils/molding.js +973 -973
@@ -1,6 +1,6 @@
1
1
  import React from 'react';
2
2
  import { verticesDistance } from '../../../utils/geometry';
3
- import convert from 'convert-units';
3
+ import * as convert from 'convert-units';
4
4
  import Layer3D from './layer3D';
5
5
 
6
6
  export function compareVertices(v0, v1) {
@@ -28,7 +28,7 @@ import {
28
28
  WALL_CABINET_LAYOUTPOS
29
29
  } from '../../constants';
30
30
  import { GeometryUtils, IDBroker, MoldingUtils } from '../../utils/export';
31
- import convert from 'convert-units';
31
+ import * as convert from 'convert-units';
32
32
  import { verticesDistance } from '../../utils/geometry';
33
33
  import { returnReplaceableDeepSearchType } from '../viewer2d/utils';
34
34
  import {
@@ -34,7 +34,7 @@ import {
34
34
 
35
35
  import { isUndefined } from 'util';
36
36
  import { verticesDistance } from '../../utils/geometry';
37
- import convert from 'convert-units';
37
+ import * as convert from 'convert-units';
38
38
  import { GeometryUtils } from '../../utils/export';
39
39
  import { handleCamRect, isElevationView, isEmpty } from '../../utils/helper';
40
40
  import { RGBELoader } from 'three/examples/jsm/loaders/RGBELoader';
package/src/models.js CHANGED
@@ -2,7 +2,7 @@ import { Record, List, Map, fromJS } from 'immutable';
2
2
  import { MODE_IDLE, UNIT_INCH } from './constants';
3
3
  import { SNAP_MASK } from './utils/snap';
4
4
  import { isEmpty } from './utils/helper';
5
- import convert from 'convert-units';
5
+ import * as convert from 'convert-units';
6
6
  let safeLoadMapList = (mapList, Model, defaultMap) => {
7
7
  return mapList
8
8
  ? new Map(mapList).map(m => new Model(m)).toMap()
@@ -13,7 +13,7 @@ import {
13
13
  UPDATE_CEIL_HEIGHT,
14
14
  UPDATE_CEIL_HEIGHT_UNIT
15
15
  } from '../constants';
16
- import convert from 'convert-units';
16
+ import * as convert from 'convert-units';
17
17
 
18
18
  export default function (state, action) {
19
19
  let { scene } = state;
@@ -8,7 +8,7 @@ import {
8
8
  } from '../constants';
9
9
  import { Project } from '../class/export';
10
10
  import { history } from '../utils/export';
11
- import convert from 'convert-units';
11
+ import * as convert from 'convert-units';
12
12
 
13
13
  export default function (state, action) {
14
14
  state = state.merge({
@@ -20,7 +20,7 @@ import {
20
20
  UNIT_ANGLE,
21
21
  MIN_ANGLE_DISALLOW_DRAW_WALL
22
22
  } from '../constants';
23
- import convert from 'convert-units';
23
+ import * as convert from 'convert-units';
24
24
  import * as Three from 'three';
25
25
  import { returnReplaceableDeepSearchType } from '../components/viewer2d/utils.js';
26
26
  import { isEmpty } from './helper.js';
@@ -2346,7 +2346,7 @@ export function isRightWall(v0, v1) {
2346
2346
  * OVERLAP_LINK: two lines are linked at the common point, so they can be merged to one line
2347
2347
  * OVERLAP_INCLUDED: destLine includes srcLine
2348
2348
  * OVERLAP_SOME: two lines are overlapped with some common range, then returns the trimmed segments of srcLine
2349
- *
2349
+ *
2350
2350
  * //////// test - start /////////////
2351
2351
  const p1 = { x1: 1413.1313131313132, y1: 1044.949494949495 };
2352
2352
  const p2 = { x1: 1476.2626262626263, y1: 1108.0808080808079 };
@@ -8,7 +8,7 @@ import {
8
8
  } from '../../src/constants';
9
9
  import * as Three from 'three';
10
10
  import { returnReplaceableDeepSearchType } from './../components/viewer2d/utils';
11
- import convert from 'convert-units';
11
+ import * as convert from 'convert-units';
12
12
  import { formatNumber } from './math';
13
13
 
14
14
  const AWS = require('aws-sdk');