kitchen-simulator 5.0.0-test.23 → 5.0.0-test.24
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -1,27 +1,20 @@
|
|
|
1
|
+
import * as Three from 'three';
|
|
1
2
|
import {
|
|
2
|
-
TextureLoader,
|
|
3
|
-
Mesh,
|
|
4
|
-
RepeatWrapping,
|
|
5
|
-
Vector2,
|
|
6
3
|
BoxGeometry,
|
|
4
|
+
Group,
|
|
5
|
+
Mesh,
|
|
7
6
|
MeshBasicMaterial,
|
|
8
7
|
MeshStandardMaterial,
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
DoubleSide
|
|
8
|
+
RepeatWrapping,
|
|
9
|
+
TextureLoader,
|
|
10
|
+
Vector2
|
|
13
11
|
} from 'three';
|
|
14
12
|
|
|
15
13
|
import { verticesDistance } from '../../utils/geometry';
|
|
16
|
-
import
|
|
17
|
-
import { textureCube, isElevationView } from '../../../src/utils/helper';
|
|
14
|
+
import { isElevationView } from '../../../src/utils/helper';
|
|
18
15
|
|
|
19
16
|
import * as SharedStyle from '../../shared-style';
|
|
20
|
-
import {
|
|
21
|
-
MODE_ELEVATION_VIEW,
|
|
22
|
-
LINE_THICKNESS,
|
|
23
|
-
UNIT_CENTIMETER
|
|
24
|
-
} from '../../constants';
|
|
17
|
+
import { LINE_THICKNESS, UNIT_CENTIMETER } from '../../constants';
|
|
25
18
|
import convert from 'convert-units';
|
|
26
19
|
import ThreeBSP from '../../utils/threeCSG.es6';
|
|
27
20
|
|
|
@@ -46,8 +39,8 @@ const applyTexture = (material, texture, length, height) => {
|
|
|
46
39
|
|
|
47
40
|
if (texture) {
|
|
48
41
|
material.map = loader.load(texture.uri.default);
|
|
49
|
-
(material.map.colorSpace = Three.SRGBColorSpace),
|
|
50
|
-
(material.needsUpdate = true);
|
|
42
|
+
((material.map.colorSpace = Three.SRGBColorSpace),
|
|
43
|
+
(material.needsUpdate = true));
|
|
51
44
|
material.map.wrapS = RepeatWrapping;
|
|
52
45
|
material.map.wrapT = RepeatWrapping;
|
|
53
46
|
material.map.repeat.set(
|