@archvisioninc/canvas 2.6.9 → 2.7.1
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.
|
@@ -35,20 +35,19 @@ export const prepareCamera = () => {
|
|
|
35
35
|
};
|
|
36
36
|
export const prepareMaterialCamera = () => {
|
|
37
37
|
const camera = scene.activeCamera;
|
|
38
|
-
const
|
|
39
|
-
const sphere = scene.getMeshById('node4');
|
|
38
|
+
const sphere = scene.getMeshById('node0');
|
|
40
39
|
camera.position = defaultCameraPosition();
|
|
41
|
-
if (
|
|
42
|
-
const primarySurfaces = [sphere
|
|
40
|
+
if (sphere) {
|
|
41
|
+
const primarySurfaces = [sphere];
|
|
43
42
|
const meshCenter = getBoundingMeshData(primarySurfaces).center;
|
|
44
43
|
camera.setTarget(meshCenter);
|
|
45
44
|
camera.alpha = 1.57;
|
|
46
|
-
camera.beta = 1.
|
|
45
|
+
camera.beta = 1.65;
|
|
47
46
|
camera.lowerRadiusLimit = 0.3239;
|
|
48
47
|
camera.upperRadiusLimit = 5000;
|
|
49
48
|
camera.minZ = 0.1;
|
|
50
49
|
camera.maxZ = 10000;
|
|
51
|
-
camera.radius =
|
|
50
|
+
camera.radius = 5;
|
|
52
51
|
}
|
|
53
52
|
};
|
|
54
53
|
export const toggleCameraMode = (orthoCamera, requestedMode) => {
|
package/package.json
CHANGED
|
@@ -63,22 +63,21 @@ export const prepareCamera = () => {
|
|
|
63
63
|
|
|
64
64
|
export const prepareMaterialCamera = () => {
|
|
65
65
|
const camera = scene.activeCamera;
|
|
66
|
-
const
|
|
67
|
-
const sphere = scene.getMeshById('node4');
|
|
66
|
+
const sphere = scene.getMeshById('node0');
|
|
68
67
|
camera.position = defaultCameraPosition();
|
|
69
68
|
|
|
70
|
-
if (
|
|
71
|
-
const primarySurfaces = [ sphere
|
|
69
|
+
if (sphere) {
|
|
70
|
+
const primarySurfaces = [ sphere ];
|
|
72
71
|
const meshCenter = getBoundingMeshData(primarySurfaces).center;
|
|
73
72
|
|
|
74
73
|
camera.setTarget(meshCenter);
|
|
75
74
|
camera.alpha = 1.57;
|
|
76
|
-
camera.beta = 1.
|
|
75
|
+
camera.beta = 1.65;
|
|
77
76
|
camera.lowerRadiusLimit = 0.3239;
|
|
78
77
|
camera.upperRadiusLimit = 5000;
|
|
79
78
|
camera.minZ = 0.1;
|
|
80
79
|
camera.maxZ = 10000;
|
|
81
|
-
camera.radius =
|
|
80
|
+
camera.radius = 5;
|
|
82
81
|
}
|
|
83
82
|
};
|
|
84
83
|
|
package/src/scenes/App/App.js
CHANGED
|
@@ -12,7 +12,7 @@ import _ from 'lodash';
|
|
|
12
12
|
const materialMode = true;
|
|
13
13
|
const previewMode = false;
|
|
14
14
|
const demoScene = false;
|
|
15
|
-
const shaderballGuid = '21-
|
|
15
|
+
const shaderballGuid = '21-791A-0D8D-F8A0-63F7-5086-471F-69A7-7AB0-00';
|
|
16
16
|
|
|
17
17
|
const serializedResponseData = {
|
|
18
18
|
albedoColor: '#004BA6',
|