kitchen-simulator 5.0.0-test.66 → 5.0.0-test.68
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/src/_KitchenConfigurator.jsx +1 -1
- package/src/catalog/factories/wall-factory-3d.js +1 -1
- package/src/catalog/properties/property-lenght-measure.jsx +1 -1
- package/src/catalog/properties/property-length-measure.jsx +1 -1
- package/src/catalog/properties/property-length-measure_hole.jsx +1 -1
- package/src/catalog/utils/exporter.js +1 -1
- package/src/catalog/utils/item-loader.jsx +1 -1
- package/src/class/item.js +1 -1
- package/src/components/viewer2d/area.jsx +1 -1
- package/src/components/viewer2d/grids/grid-horizontal-streak.jsx +1 -1
- package/src/components/viewer2d/grids/grid-streak.jsx +1 -1
- package/src/components/viewer2d/grids/grid-vertical-streak.jsx +1 -1
- package/src/components/viewer2d/item.jsx +1 -1
- package/src/components/viewer2d/ruler.jsx +1 -1
- package/src/components/viewer2d/rulerDist.jsx +1 -1
- package/src/components/viewer2d/viewer2d.jsx +1 -1
- package/src/components/viewer3d/ruler-utils/itemRect.jsx +91 -91
- package/src/components/viewer3d/ruler-utils/layer3D.jsx +528 -528
- package/src/components/viewer3d/ruler-utils/scene3D.jsx +1 -1
- package/src/components/viewer3d/scene-creator.js +1 -1
- package/src/components/viewer3d/viewer3d.jsx +1 -1
- package/src/models.js +1 -1
- package/src/reducers/viewer2d-reducer.js +1 -1
- package/src/reducers/viewer3d-reducer.js +1 -1
- package/src/utils/geometry.js +2 -2
- package/src/utils/graph-inner-cycles.js +1 -1
- package/src/utils/helper.js +1 -1
- package/src/utils/molding.js +973 -973
|
@@ -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()
|
|
@@ -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({
|
package/src/utils/geometry.js
CHANGED
|
@@ -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 };
|
package/src/utils/helper.js
CHANGED
|
@@ -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');
|