@cocorof/graphier 1.3.1 → 1.3.3
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/dist/index.cjs +5 -3
- package/dist/index.cjs.map +1 -1
- package/dist/index.js +5 -3
- package/dist/index.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1954,10 +1954,10 @@ function disposeLabelSystem(state) {
|
|
|
1954
1954
|
}
|
|
1955
1955
|
state.textureCache.clear();
|
|
1956
1956
|
}
|
|
1957
|
-
const ORBIT_ROTATE_SPEED = 0.
|
|
1957
|
+
const ORBIT_ROTATE_SPEED = 0.058;
|
|
1958
1958
|
const ORBIT_ZOOM_FACTOR = 0.015;
|
|
1959
1959
|
const FLY_THRUST_SPEED = 0.056;
|
|
1960
|
-
const FLY_TURN_RATE = 0.
|
|
1960
|
+
const FLY_TURN_RATE = 0.041;
|
|
1961
1961
|
const _offset = new THREE.Vector3();
|
|
1962
1962
|
const _right = new THREE.Vector3();
|
|
1963
1963
|
const _q = new THREE.Quaternion();
|
|
@@ -1984,7 +1984,9 @@ function createOrbitUpdate(camera, controls, keys) {
|
|
|
1984
1984
|
radius = Math.max(controls.minDistance, Math.min(controls.maxDistance, radius));
|
|
1985
1985
|
}
|
|
1986
1986
|
if (azimuth !== 0) {
|
|
1987
|
-
|
|
1987
|
+
const upDot = camera.up.dot(_worldUp);
|
|
1988
|
+
const azSign = upDot < 0 ? -1 : 1;
|
|
1989
|
+
_q.setFromAxisAngle(camera.up, -azimuth * azSign);
|
|
1988
1990
|
_offset.applyQuaternion(_q);
|
|
1989
1991
|
}
|
|
1990
1992
|
if (polar !== 0) {
|