redhotmagma-visualization 1.51.4 → 1.53.0
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/Three/Exporters/glTFExporter.js +1 -1
- package/Three/Three3D.js +4 -4
- package/Three/Three3DScene.js +3 -3
- package/Utils/restrictCameraMovement.js +1 -1
- package/package.json +2 -2
- package/src/Three/Exporters/glTFExporter.js +1 -1
- package/src/Three/Three3D.js +4 -4
- package/src/Three/Three3DScene.js +3 -3
- package/src/Utils/restrictCameraMovement.js +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GLTFExporter } from "three/
|
|
1
|
+
import { GLTFExporter } from "three/examples/jsm/exporters/GLTFExporter";
|
|
2
2
|
export function exportGLTF(input) {
|
|
3
3
|
var filename = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : "scene";
|
|
4
4
|
var gltfExporter = new GLTFExporter();
|
package/Three/Three3D.js
CHANGED
|
@@ -44,10 +44,10 @@ import { restrictOrbitControls } from "../Utils/restrictCameraMovement";
|
|
|
44
44
|
import { isMobileDevice } from "../Utils/isMobileDevice";
|
|
45
45
|
import { createZoomHandler } from "../CommonUtils/pointerEvent";
|
|
46
46
|
import { createTextureBuilder } from "../Utils/TextureBuilder/createTextureBuilder";
|
|
47
|
-
import { OrbitControls } from
|
|
48
|
-
import { ColladaLoader } from "three/
|
|
49
|
-
import { OBJLoader } from "three/
|
|
50
|
-
import { MTLLoader } from "three/
|
|
47
|
+
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
|
|
48
|
+
import { ColladaLoader } from "three/examples/jsm/loaders/ColladaLoader";
|
|
49
|
+
import { OBJLoader } from "three/examples/jsm/loaders/OBJLoader";
|
|
50
|
+
import { MTLLoader } from "three/examples/jsm/loaders/MTLLoader";
|
|
51
51
|
export var MAX_DISTANCE_MULTIPLIER = 1.1;
|
|
52
52
|
export var MIN_DISTANCE_MULTIPLIER = 0.1;
|
|
53
53
|
export var DEFAULT_TEXTURE_SIZE = 2048;
|
package/Three/Three3DScene.js
CHANGED
|
@@ -31,9 +31,9 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
|
|
|
31
31
|
import { ACESFilmicToneMapping, AnimationMixer, Box3, CameraHelper, Clock, Color, DirectionalLight, DoubleSide, Group, ImageLoader, LoadingManager, Mesh, MeshBasicMaterial, Object3D, PCFSoftShadowMap, PerspectiveCamera, PlaneGeometry, PMREMGenerator, Scene, ShadowMaterial, Sphere, SphereGeometry, Texture, Vector3, WebGLRenderer } from "three";
|
|
32
32
|
import { Three3D } from "./Three3D";
|
|
33
33
|
import { isMobileDevice } from "../Utils/isMobileDevice";
|
|
34
|
-
import { GLTFLoader } from "three/
|
|
35
|
-
import { DRACOLoader } from "three/
|
|
36
|
-
import { RGBELoader } from "three/
|
|
34
|
+
import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader";
|
|
35
|
+
import { DRACOLoader } from "three/examples/jsm/loaders/DRACOLoader";
|
|
36
|
+
import { RGBELoader } from "three/examples/jsm/loaders/RGBELoader";
|
|
37
37
|
import get from "lodash/get";
|
|
38
38
|
import size from "lodash/size";
|
|
39
39
|
import isPlainObject from "lodash/isPlainObject";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import pick from "lodash/pick";
|
|
2
|
-
import { OrbitControls } from
|
|
2
|
+
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
|
|
3
3
|
var stateMemo = function stateMemo(obj, props) {
|
|
4
4
|
var state = pick(obj, props);
|
|
5
5
|
return function () {
|
package/package.json
CHANGED
|
@@ -1,12 +1,12 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "redhotmagma-visualization",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.53.0",
|
|
4
4
|
"license": "UNLICENSED",
|
|
5
5
|
"private": false,
|
|
6
6
|
"main": "./index.js",
|
|
7
7
|
"dependencies": {
|
|
8
8
|
"@babel/polyfill": "^7.12.1",
|
|
9
|
-
"@configuratorware/scripts": "1.
|
|
9
|
+
"@configuratorware/scripts": "1.53.0",
|
|
10
10
|
"@tweenjs/tween.js": "^17.6.0",
|
|
11
11
|
"console-polyfill": "^0.3.0",
|
|
12
12
|
"css-element-queries": "^1.2.3",
|
package/src/Three/Three3D.js
CHANGED
|
@@ -27,10 +27,10 @@ import { restrictOrbitControls } from "../Utils/restrictCameraMovement";
|
|
|
27
27
|
import { isMobileDevice } from "../Utils/isMobileDevice";
|
|
28
28
|
import { createZoomHandler } from "../CommonUtils/pointerEvent";
|
|
29
29
|
import { createTextureBuilder } from "../Utils/TextureBuilder/createTextureBuilder";
|
|
30
|
-
import { OrbitControls } from
|
|
31
|
-
import { ColladaLoader } from "three/
|
|
32
|
-
import { OBJLoader } from "three/
|
|
33
|
-
import { MTLLoader } from "three/
|
|
30
|
+
import { OrbitControls } from 'three/examples/jsm/controls/OrbitControls';
|
|
31
|
+
import { ColladaLoader } from "three/examples/jsm/loaders/ColladaLoader";
|
|
32
|
+
import { OBJLoader } from "three/examples/jsm/loaders/OBJLoader";
|
|
33
|
+
import { MTLLoader } from "three/examples/jsm/loaders/MTLLoader";
|
|
34
34
|
|
|
35
35
|
export const MAX_DISTANCE_MULTIPLIER = 1.1;
|
|
36
36
|
export const MIN_DISTANCE_MULTIPLIER = 0.1;
|
|
@@ -28,9 +28,9 @@ import {
|
|
|
28
28
|
|
|
29
29
|
import { Three3D } from "./Three3D";
|
|
30
30
|
import { isMobileDevice } from "../Utils/isMobileDevice";
|
|
31
|
-
import { GLTFLoader } from "three/
|
|
32
|
-
import { DRACOLoader } from "three/
|
|
33
|
-
import { RGBELoader } from "three/
|
|
31
|
+
import { GLTFLoader } from "three/examples/jsm/loaders/GLTFLoader";
|
|
32
|
+
import { DRACOLoader } from "three/examples/jsm/loaders/DRACOLoader";
|
|
33
|
+
import { RGBELoader } from "three/examples/jsm/loaders/RGBELoader";
|
|
34
34
|
import get from "lodash/get";
|
|
35
35
|
import size from "lodash/size";
|
|
36
36
|
import isPlainObject from "lodash/isPlainObject";
|