@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 CHANGED
@@ -1972,10 +1972,10 @@ function disposeLabelSystem(state) {
1972
1972
  }
1973
1973
  state.textureCache.clear();
1974
1974
  }
1975
- const ORBIT_ROTATE_SPEED = 0.034;
1975
+ const ORBIT_ROTATE_SPEED = 0.058;
1976
1976
  const ORBIT_ZOOM_FACTOR = 0.015;
1977
1977
  const FLY_THRUST_SPEED = 0.056;
1978
- const FLY_TURN_RATE = 0.0136;
1978
+ const FLY_TURN_RATE = 0.041;
1979
1979
  const _offset = new THREE__namespace.Vector3();
1980
1980
  const _right = new THREE__namespace.Vector3();
1981
1981
  const _q = new THREE__namespace.Quaternion();
@@ -2002,7 +2002,9 @@ function createOrbitUpdate(camera, controls, keys) {
2002
2002
  radius = Math.max(controls.minDistance, Math.min(controls.maxDistance, radius));
2003
2003
  }
2004
2004
  if (azimuth !== 0) {
2005
- _q.setFromAxisAngle(camera.up, -azimuth);
2005
+ const upDot = camera.up.dot(_worldUp);
2006
+ const azSign = upDot < 0 ? -1 : 1;
2007
+ _q.setFromAxisAngle(camera.up, -azimuth * azSign);
2006
2008
  _offset.applyQuaternion(_q);
2007
2009
  }
2008
2010
  if (polar !== 0) {