From 335e1f650745ba4d5e01104c20d879ede3b3947e Mon Sep 17 00:00:00 2001 From: keywizzle Date: Tue, 14 May 2024 17:13:07 -0400 Subject: [PATCH 01/12] Removed excess rotation on drag release --- src/interaction/FlingRotation.ts | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/src/interaction/FlingRotation.ts b/src/interaction/FlingRotation.ts index feb635c38..16438c2d5 100644 --- a/src/interaction/FlingRotation.ts +++ b/src/interaction/FlingRotation.ts @@ -95,6 +95,8 @@ class FlingRotation extends Effects { #deltaX = 0 #deltaY = 0 + #moveTimestamp = 0 + #onPointerDown = (event: PointerEvent) => { this.#pointerCount++ if (this.#pointerCount === 1) this.#mainPointer = event.pointerId @@ -120,6 +122,8 @@ class FlingRotation extends Effects { #onMove = (event: PointerEvent) => { if (event.pointerId !== this.#mainPointer) return + this.#moveTimestamp = performance.now() + // We're not simply using event.movementX and event.movementY // because of a Safari bug: // https://bugs.webkit.org/show_bug.cgi?id=248119 @@ -157,7 +161,7 @@ class FlingRotation extends Effects { // @ts-expect-error, whyyyy TypeScript It says that event type is Event instead of PointerEvent this.interactionContainer.removeEventListener('pointermove', this.#onMove) - if (this.#deltaX === 0 && this.#deltaY === 0) return + if ((this.#deltaX === 0 && this.#deltaY === 0) || performance.now() - this.#moveTimestamp > 100) return // slow the rotation down based on former drag speed this.rotationXTarget.rotation = (x, y, z) => { From ffc4f9b501a6a9e4467176b46cf2491a20e2afd2 Mon Sep 17 00:00:00 2001 From: keywizzle Date: Tue, 14 May 2024 18:46:15 -0400 Subject: [PATCH 02/12] Added dynamic dolly speed and rotation --- dist/cameras/CameraRig.d.ts | 26 ++++++- dist/cameras/CameraRig.d.ts.map | 2 +- dist/cameras/CameraRig.js | 96 ++++++++++++++++++++++++- dist/cameras/CameraRig.js.map | 2 +- dist/interaction/FlingRotation.d.ts.map | 2 +- dist/interaction/FlingRotation.js | 4 +- dist/interaction/FlingRotation.js.map | 2 +- src/cameras/CameraRig.ts | 73 ++++++++++++++++++- 8 files changed, 198 insertions(+), 9 deletions(-) diff --git a/dist/cameras/CameraRig.d.ts b/dist/cameras/CameraRig.d.ts index 0acae8625..77370ff84 100644 --- a/dist/cameras/CameraRig.d.ts +++ b/dist/cameras/CameraRig.d.ts @@ -2,7 +2,7 @@ import { type ElementAttributes } from '@lume/element'; import { Element3D, type Element3DAttributes } from '../core/Element3D.js'; import { FlingRotation, ScrollFling, PinchFling } from '../interaction/index.js'; import type { PerspectiveCamera } from './PerspectiveCamera.js'; -export type CameraRigAttributes = Element3DAttributes | 'verticalAngle' | 'minVerticalAngle' | 'maxVerticalAngle' | 'horizontalAngle' | 'minHorizontalAngle' | 'maxHorizontalAngle' | 'distance' | 'minDistance' | 'maxDistance' | 'active' | 'dollySpeed' | 'interactive' | 'initialPolarAngle' | 'minPolarAngle' | 'maxPolarAngle' | 'initialDistance'; +export type CameraRigAttributes = Element3DAttributes | 'verticalAngle' | 'minVerticalAngle' | 'maxVerticalAngle' | 'horizontalAngle' | 'minHorizontalAngle' | 'maxHorizontalAngle' | 'distance' | 'minDistance' | 'maxDistance' | 'active' | 'dollySpeed' | 'interactive' | 'rotationSpeed' | 'dynamicDolly' | 'dynamicRotation' | 'initialPolarAngle' | 'minPolarAngle' | 'maxPolarAngle' | 'initialDistance'; /** * @class CameraRig * @@ -217,6 +217,30 @@ export declare class CameraRig extends Element3D { * disabled, but the camera rig can still be manipulated programmatically. */ interactive: boolean; + /** + * @property {number} rotationSpeed + * + * *attribute* + * + * Default: `1` + */ + rotationSpeed: number; + /** + * @property {boolean} dynamicDolly + * + * *attribute* + * + * Default: `false` + */ + dynamicDolly: boolean; + /** + * @property {boolean} dynamicRotation + * + * *attribute* + * + * Default: `false` + */ + dynamicRotation: boolean; threeCamera?: PerspectiveCamera; /** @deprecated Use `.threeCamera` instead. */ get cam(): PerspectiveCamera | undefined; diff --git a/dist/cameras/CameraRig.d.ts.map b/dist/cameras/CameraRig.d.ts.map index ab7dca83a..2b399ab03 100644 --- a/dist/cameras/CameraRig.d.ts.map +++ b/dist/cameras/CameraRig.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"CameraRig.d.ts","sourceRoot":"","sources":["../../src/cameras/CameraRig.ts"],"names":[],"mappings":"AAOA,OAAO,EAA6C,KAAK,iBAAiB,EAAC,MAAM,eAAe,CAAA;AAEhG,OAAO,EAAC,SAAS,EAAE,KAAK,mBAAmB,EAAC,MAAM,sBAAsB,CAAA;AACxE,OAAO,EAAC,aAAa,EAAE,WAAW,EAAE,UAAU,EAAC,MAAM,yBAAyB,CAAA;AAE9E,OAAO,KAAK,EAAC,iBAAiB,EAAC,MAAM,wBAAwB,CAAA;AAE7D,MAAM,MAAM,mBAAmB,GAC5B,mBAAmB,GACnB,eAAe,GACf,kBAAkB,GAClB,kBAAkB,GAClB,iBAAiB,GACjB,oBAAoB,GACpB,oBAAoB,GACpB,UAAU,GACV,aAAa,GACb,aAAa,GACb,QAAQ,GACR,YAAY,GACZ,aAAa,GACb,mBAAmB,GACnB,eAAe,GACf,eAAe,GACf,iBAAiB,CAAA;AAIpB;;;;;;;;;;;;;;;;;;;GAmBG;AACH,qBAEM,SAAU,SAAQ,SAAS;;IAChC;;;;;;;OAOG;IACH,SAAkB,SAAS,EAAE,IAAI,CAAO;IAExC;;;;;;;;;;OAUG;IACc,aAAa,SAAI;IAElC;;;;;OAKG;IACH,IACI,iBAAiB,WAEpB;IACD,IAAI,iBAAiB,CAAC,KAAK,QAAA,EAE1B;IAED;;;;;;;;OAQG;IACc,gBAAgB,SAAM;IAEvC;;;;;OAKG;IACH,IACI,aAAa,WAEhB;IACD,IAAI,aAAa,CAAC,KAAK,QAAA,EAEtB;IAED;;;;;;;;;;;;;;;OAeG;IACc,gBAAgB,SAAK;IAEtC;;;;;OAKG;IACH,IACI,aAAa,WAEhB;IACD,IAAI,aAAa,CAAC,KAAK,QAAA,EAEtB;IAED;;;;;;;;;;OAUG;IACc,eAAe,SAAI;IAEpC;;;;;;;;;;OAUG;IACc,kBAAkB,SAAY;IAE/C;;;;;;;;;;OAUG;IACc,kBAAkB,SAAW;IAE9C;;;;;;;;;;;;;;OAcG;IACc,QAAQ,SAAK;IAEtB,iBAAiB,SAA0B;IAEnD;;;;;OAKG;IACH,IACI,eAAe,WAElB;IACD,IAAI,eAAe,CAAC,KAAK,QAAA,EAExB;IAED;;;;;;;;;;;;OAYG;IACc,WAAW,SAAK;IAEzB,oBAAoB,SAAM;IAElC;;;;;;;;;;;;OAYG;IACc,WAAW,SAAK;IAEzB,oBAAoB,SAAM;IAElC;;;;;;;;OAQG;IACe,MAAM,UAAO;IAE/B;;;;;;OAMG;IACc,UAAU,SAAI;IAE/B;;;;;;;;;OASG;IACe,WAAW,UAAO;IAE5B,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAEvC,8CAA8C;IAC9C,IAAI,GAAG,kCAEN;IAEO,eAAe,CAAC,EAAE,SAAS,CAAA;IAC3B,eAAe,CAAC,EAAE,SAAS,CAAA;IAEnC,aAAa,gBAAsB;IACnC,WAAW,cAAoB;IAC/B,UAAU,aAAmB;IAMpB,iBAAiB;IA8EjB,QAAQ,sBAmChB;CACD;AAED,OAAO,QAAQ,UAAU,CAAC;IACzB,UAAU,GAAG,CAAC;QACb,UAAU,iBAAiB;YAC1B,iBAAiB,EAAE,iBAAiB,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAA;SACpE;KACD;CACD;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,SAAS,CAAA;KAC5B;CACD"} \ No newline at end of file +{"version":3,"file":"CameraRig.d.ts","sourceRoot":"","sources":["../../src/cameras/CameraRig.ts"],"names":[],"mappings":"AAOA,OAAO,EAA6C,KAAK,iBAAiB,EAAC,MAAM,eAAe,CAAA;AAEhG,OAAO,EAAC,SAAS,EAAE,KAAK,mBAAmB,EAAC,MAAM,sBAAsB,CAAA;AACxE,OAAO,EAAC,aAAa,EAAE,WAAW,EAAE,UAAU,EAAC,MAAM,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AAW,SAAK;IAEzB,oBAAoB,SAAM;IAElC;;;;;;;;OAQG;IACe,MAAM,UAAO;IAE/B;;;;;;OAMG;IACc,UAAU,SAAI;IAE/B;;;;;;;;;OASG;IACe,WAAW,UAAO;IAEpC;;;;;;OAMG;IACc,aAAa,SAAI;IAElC;;;;;;OAMG;IACe,YAAY,UAAQ;IAEtC;;;;;;OAMG;IACe,eAAe,UAAQ;IAEjC,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAEvC,8CAA8C;IAC9C,IAAI,GAAG,kCAEN;IAEO,eAAe,CAAC,EAAE,SAAS,CAAA;IAC3B,eAAe,CAAC,EAAE,SAAS,CAAA;IAEnC,aAAa,gBAAsB;IACnC,WAAW,cAAoB;IAC/B,UAAU,aAAmB;IAMpB,iBAAiB;IAuHjB,QAAQ,sBAmChB;CACD;AAED,OAAO,QAAQ,UAAU,CAAC;IACzB,UAAU,GAAG,CAAC;QACb,UAAU,iBAAiB;YAC1B,iBAAiB,EAAE,iBAAiB,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAA;SACpE;KACD;CACD;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,SAAS,CAAA;KAC5B;CACD"} \ No newline at end of file diff --git a/dist/cameras/CameraRig.js b/dist/cameras/CameraRig.js index 68e18f5cd..1fbec028e 100644 --- a/dist/cameras/CameraRig.js +++ b/dist/cameras/CameraRig.js @@ -105,6 +105,12 @@ let CameraRig = (() => { let _dollySpeed_initializers = []; let _interactive_decorators; let _interactive_initializers = []; + let _rotationSpeed_decorators; + let _rotationSpeed_initializers = []; + let _dynamicDolly_decorators; + let _dynamicDolly_initializers = []; + let _dynamicRotation_decorators; + let _dynamicRotation_initializers = []; let _threeCamera_decorators; let _threeCamera_initializers = []; let _rotationYTarget_decorators; @@ -134,6 +140,9 @@ let CameraRig = (() => { _active_decorators = [booleanAttribute]; _dollySpeed_decorators = [numberAttribute]; _interactive_decorators = [booleanAttribute]; + _rotationSpeed_decorators = [numberAttribute]; + _dynamicDolly_decorators = [booleanAttribute]; + _dynamicRotation_decorators = [booleanAttribute]; _threeCamera_decorators = [signal]; _rotationYTarget_decorators = [signal]; _rotationXTarget_decorators = [signal]; @@ -156,6 +165,9 @@ let CameraRig = (() => { __esDecorate(null, null, _active_decorators, { kind: "field", name: "active", static: false, private: false, access: { has: obj => "active" in obj, get: obj => obj.active, set: (obj, value) => { obj.active = value; } }, metadata: _metadata }, _active_initializers, _instanceExtraInitializers); __esDecorate(null, null, _dollySpeed_decorators, { kind: "field", name: "dollySpeed", static: false, private: false, access: { has: obj => "dollySpeed" in obj, get: obj => obj.dollySpeed, set: (obj, value) => { obj.dollySpeed = value; } }, metadata: _metadata }, _dollySpeed_initializers, _instanceExtraInitializers); __esDecorate(null, null, _interactive_decorators, { kind: "field", name: "interactive", static: false, private: false, access: { has: obj => "interactive" in obj, get: obj => obj.interactive, set: (obj, value) => { obj.interactive = value; } }, metadata: _metadata }, _interactive_initializers, _instanceExtraInitializers); + __esDecorate(null, null, _rotationSpeed_decorators, { kind: "field", name: "rotationSpeed", static: false, private: false, access: { has: obj => "rotationSpeed" in obj, get: obj => obj.rotationSpeed, set: (obj, value) => { obj.rotationSpeed = value; } }, metadata: _metadata }, _rotationSpeed_initializers, _instanceExtraInitializers); + __esDecorate(null, null, _dynamicDolly_decorators, { kind: "field", name: "dynamicDolly", static: false, private: false, access: { has: obj => "dynamicDolly" in obj, get: obj => obj.dynamicDolly, set: (obj, value) => { obj.dynamicDolly = value; } }, metadata: _metadata }, _dynamicDolly_initializers, _instanceExtraInitializers); + __esDecorate(null, null, _dynamicRotation_decorators, { kind: "field", name: "dynamicRotation", static: false, private: false, access: { has: obj => "dynamicRotation" in obj, get: obj => obj.dynamicRotation, set: (obj, value) => { obj.dynamicRotation = value; } }, metadata: _metadata }, _dynamicRotation_initializers, _instanceExtraInitializers); __esDecorate(null, null, _threeCamera_decorators, { kind: "field", name: "threeCamera", static: false, private: false, access: { has: obj => "threeCamera" in obj, get: obj => obj.threeCamera, set: (obj, value) => { obj.threeCamera = value; } }, metadata: _metadata }, _threeCamera_initializers, _instanceExtraInitializers); __esDecorate(null, null, _rotationYTarget_decorators, { kind: "field", name: "rotationYTarget", static: false, private: false, access: { has: obj => "rotationYTarget" in obj, get: obj => obj.rotationYTarget, set: (obj, value) => { obj.rotationYTarget = value; } }, metadata: _metadata }, _rotationYTarget_initializers, _instanceExtraInitializers); __esDecorate(null, null, _rotationXTarget_decorators, { kind: "field", name: "rotationXTarget", static: false, private: false, access: { has: obj => "rotationXTarget" in obj, get: obj => obj.rotationXTarget, set: (obj, value) => { obj.rotationXTarget = value; } }, metadata: _metadata }, _rotationXTarget_initializers, _instanceExtraInitializers); @@ -482,7 +494,55 @@ let CameraRig = (() => { * When `false`, user interaction (ability to zoom or rotate the camera) is * disabled, but the camera rig can still be manipulated programmatically. */ - interactive = __runInitializers(this, _interactive_initializers, true); + interactive = __runInitializers(this, _interactive_initializers, true + /** + * @property {number} rotationSpeed + * + * *attribute* + * + * Default: `1` + */ + ); + /** + * @property {number} rotationSpeed + * + * *attribute* + * + * Default: `1` + */ + rotationSpeed = __runInitializers(this, _rotationSpeed_initializers, 1 + /** + * @property {boolean} dynamicDolly + * + * *attribute* + * + * Default: `false` + */ + ); + /** + * @property {boolean} dynamicDolly + * + * *attribute* + * + * Default: `false` + */ + dynamicDolly = __runInitializers(this, _dynamicDolly_initializers, false + /** + * @property {boolean} dynamicRotation + * + * *attribute* + * + * Default: `false` + */ + ); + /** + * @property {boolean} dynamicRotation + * + * *attribute* + * + * Default: `false` + */ + dynamicRotation = __runInitializers(this, _dynamicRotation_initializers, false); threeCamera = __runInitializers(this, _threeCamera_initializers, void 0); /** @deprecated Use `.threeCamera` instead. */ get cam() { @@ -529,10 +589,42 @@ let CameraRig = (() => { flingRotation.maxFlingRotationX = this.maxVerticalAngle; flingRotation.minFlingRotationY = this.minHorizontalAngle; flingRotation.maxFlingRotationY = this.maxHorizontalAngle; + flingRotation.factor = this.rotationSpeed; scrollFling.minY = pinchFling.minX = this.__appliedMinDistance; scrollFling.maxY = pinchFling.maxX = this.__appliedMaxDistance; scrollFling.sensitivity = pinchFling.sensitivity = this.dollySpeed; }); + this.createEffect(() => { + if (!this.dynamicDolly) + return; + // Dolly speed when position is at minDistance + const minDollySpeed = 0.001; + // Dolly speed when position is at maxDistance + const maxDollySpeed = 2 * this.dollySpeed; + // Scroll sensitivity is linear between min/max dolly speed and min/max distance. + const sens = ((maxDollySpeed - minDollySpeed) / (this.maxDistance - this.minDistance)) * + (this.threeCamera.position.z - this.minDistance) + + minDollySpeed; + scrollFling.sensitivity = sens < minDollySpeed ? minDollySpeed : sens; + }); + this.createEffect(() => { + if (!this.dynamicRotation) + return; + // This only depends on the size of the scene and the FOV of the camera. The only + // issue is the camera's FOV is not reactive and is set by the scene at some point. + // In the case where the camera's FOV is not set yet, use the scene's perspective. + const perspective = this.threeCamera.three.fov + ? this.scene.calculatedSize.y / 2 / Math.tan((this.threeCamera.three.fov * Math.PI) / 360) + : this.scene.perspective; + // Plane positioned at origin facing camera with width equal to `minDistance`. + // `minDistance` is doubled because the expected `minDistance` should barely touch + // the object, whose size would be double `minDistance`. + const planeSize = (perspective * (this.minDistance * 2)) / this.threeCamera.position.z; + const degreesPerPixel = 180 / planeSize; + // Counteract the FlingRotation's delta modifier to get exact angular movement. + const sens = (1 / 0.15) * degreesPerPixel * this.rotationSpeed; + this.flingRotation.factor = sens <= 0 ? 1 : sens; + }); this.createEffect(() => { if (this.interactive && !this.pinchFling?.interacting) flingRotation.start(); @@ -582,7 +674,7 @@ let CameraRig = (() => { comment="We don't set position here because it triggers the pre-upgrade handling due to the template running before perspective-camera is upgraded (due to Solid specifics) which causes the initial value to override the initial position calculated from scene.perspective." xposition=${() => [0, 0, this.__appliedDistance]} align-point="0.5 0.5 0.5" - far="10000" + far="100000" > diff --git a/dist/cameras/CameraRig.js.map b/dist/cameras/CameraRig.js.map index 1a9c7f2c9..a837bcd15 100644 --- a/dist/cameras/CameraRig.js.map +++ b/dist/cameras/CameraRig.js.map @@ -1 +1 @@ -{"version":3,"file":"CameraRig.js","sourceRoot":"","sources":["../../src/cameras/CameraRig.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,gFAAgF;AAChF,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElC,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAA;AAClC,OAAO,IAAI,MAAM,eAAe,CAAA;AAChC,OAAO,EAAC,MAAM,EAAE,WAAW,EAAC,MAAM,cAAc,CAAA;AAChD,OAAO,EAAC,OAAO,EAAE,eAAe,EAAE,gBAAgB,EAAyB,MAAM,eAAe,CAAA;AAChG,OAAO,EAAC,kBAAkB,EAAC,MAAM,kBAAkB,CAAA;AACnD,OAAO,EAAC,SAAS,EAA2B,MAAM,sBAAsB,CAAA;AACxE,OAAO,EAAC,aAAa,EAAE,WAAW,EAAE,UAAU,EAAC,MAAM,yBAAyB,CAAA;AAC9E,OAAO,EAAC,uBAAuB,EAAC,MAAM,iBAAiB,CAAA;AAsBvD,6FAA6F;AAE7F;;;;;;;;;;;;;;;;;;;GAmBG;IAGG,SAAS;4BADd,OAAO,CAAC,iBAAiB,EAAE,kBAAkB,CAAC;;;;sBACvB,SAAS;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;yBAAjB,SAAQ,WAAS;;;;yCAsB/B,eAAe;iDAQf,eAAe;4CAiBf,eAAe;6CAQf,eAAe;4CAwBf,eAAe;6CAQf,eAAe;2CAmBf,eAAe;8CAaf,eAAe;8CAaf,eAAe;oCAiBf,eAAe;6CAEf,MAAM;+CAQN,eAAe;uCAqBf,eAAe;gDAEf,MAAM;uCAeN,eAAe;gDAEf,MAAM;kCAWN,gBAAgB;sCAShB,eAAe;uCAYf,gBAAgB;uCAEhB,MAAM;2CAON,MAAM;2CACN,MAAM;YAlNP,0MAAI,iBAAiB,6DAEpB;YAuBD,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SAhbI,SAAS"} \ No newline at end of file diff --git a/dist/interaction/FlingRotation.d.ts.map b/dist/interaction/FlingRotation.d.ts.map index 6d8d8fc36..68fe7e5b6 100644 --- a/dist/interaction/FlingRotation.d.ts.map +++ b/dist/interaction/FlingRotation.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"FlingRotation.d.ts","sourceRoot":"","sources":["../../src/interaction/FlingRotation.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,OAAO,EAAmB,MAAM,cAAc,CAAA;AAGtD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAEnD,KAAK,OAAO,GAAG,OAAO,CACrB,IAAI,CACH,aAAa,EACX,iBAAiB,GACjB,iBAAiB,GACjB,sBAAsB,GACtB,sBAAsB,GACtB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,QAAQ,CACV,CACD,CAAA;AAED,qBAEM,aAAc,SAAQ,OAAO;;IAClC,sDAAsD;IAC9C,eAAe,EAAG,SAAS,CAAA;IAEnC;;;OAGG;IACK,eAAe,EAAG,SAAS,CAAA;IAEnC;;;OAGG;IACK,oBAAoB,EAAG,OAAO,CAAA;IAEtC;;;OAGG;IAGK,oBAAoB,EAAE,OAAO,CAA2B;IAEhE;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAM;IAE/B;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAK;IAE9B;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAY;IAErC;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAW;IAEpC,MAAM,SAAI;gBAIE,OAAO,GAAE,OAAY;IAyGjC,KAAK,IAAI,IAAI;IA4Cb,IAAI,IAAI,IAAI;CAQZ"} \ No newline at end of file +{"version":3,"file":"FlingRotation.d.ts","sourceRoot":"","sources":["../../src/interaction/FlingRotation.ts"],"names":[],"mappings":"AAMA,OAAO,EAAC,OAAO,EAAmB,MAAM,cAAc,CAAA;AAGtD,OAAO,KAAK,EAAC,SAAS,EAAC,MAAM,sBAAsB,CAAA;AAEnD,KAAK,OAAO,GAAG,OAAO,CACrB,IAAI,CACH,aAAa,EACX,iBAAiB,GACjB,iBAAiB,GACjB,sBAAsB,GACtB,sBAAsB,GACtB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,QAAQ,CACV,CACD,CAAA;AAED,qBAEM,aAAc,SAAQ,OAAO;;IAClC,sDAAsD;IAC9C,eAAe,EAAG,SAAS,CAAA;IAEnC;;;OAGG;IACK,eAAe,EAAG,SAAS,CAAA;IAEnC;;;OAGG;IACK,oBAAoB,EAAG,OAAO,CAAA;IAEtC;;;OAGG;IAGK,oBAAoB,EAAE,OAAO,CAA2B;IAEhE;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAM;IAE/B;;;OAGG;IACH,iBAAiB,EAAE,MAAM,CAAK;IAE9B;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAY;IAErC;;;;OAIG;IACH,iBAAiB,EAAE,MAAM,CAAW;IAEpC,MAAM,SAAI;gBAIE,OAAO,GAAE,OAAY;IA6GjC,KAAK,IAAI,IAAI;IA4Cb,IAAI,IAAI,IAAI;CAQZ"} \ No newline at end of file diff --git a/dist/interaction/FlingRotation.js b/dist/interaction/FlingRotation.js index 9f254f2b0..c83738fb4 100644 --- a/dist/interaction/FlingRotation.js +++ b/dist/interaction/FlingRotation.js @@ -131,6 +131,7 @@ let FlingRotation = (() => { #lastY = 0; #deltaX = 0; #deltaY = 0; + #moveTimestamp = 0; #onPointerDown = (event) => { this.#pointerCount++; if (this.#pointerCount === 1) @@ -152,6 +153,7 @@ let FlingRotation = (() => { #onMove = (event) => { if (event.pointerId !== this.#mainPointer) return; + this.#moveTimestamp = performance.now(); // We're not simply using event.movementX and event.movementY // because of a Safari bug: // https://bugs.webkit.org/show_bug.cgi?id=248119 @@ -175,7 +177,7 @@ let FlingRotation = (() => { // stop dragging // @ts-expect-error, whyyyy TypeScript It says that event type is Event instead of PointerEvent this.interactionContainer.removeEventListener('pointermove', this.#onMove); - if (this.#deltaX === 0 && this.#deltaY === 0) + if ((this.#deltaX === 0 && this.#deltaY === 0) || performance.now() - this.#moveTimestamp > 100) return; // slow the rotation down based on former drag speed this.rotationXTarget.rotation = (x, y, z) => { diff --git a/dist/interaction/FlingRotation.js.map b/dist/interaction/FlingRotation.js.map index 9407ce08b..dee511de7 100644 --- a/dist/interaction/FlingRotation.js.map +++ b/dist/interaction/FlingRotation.js.map @@ -1 +1 @@ -{"version":3,"file":"FlingRotation.js","sourceRoot":"","sources":["../../src/interaction/FlingRotation.ts"],"names":[],"mappings":"AAAA,4EAA4E;AAC5E,6EAA6E;AAC7E,6EAA6E;AAC7E,8EAA8E;AAC9E,wDAAwD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAExD,OAAO,EAAC,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAC,MAAM,cAAc,CAAA;AACtD,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAA;AAClC,OAAO,EAAC,KAAK,EAAC,MAAM,kBAAkB,CAAA;IAoBhC,aAAa;4BADlB,QAAQ;;;;sBACmB,OAAO;;;;;;;;;;6BAAf,SAAQ,WAAO;;;;2CAEjC,MAAM;2CAMN,MAAM;gDAMN,MAAM;gDAQN,MAAM;YApBC,+LAAA,eAAe,6BAAf,eAAe,iGAAY;YAM3B,+LAAA,eAAe,6BAAf,eAAe,iGAAY;YAM3B,8MAAA,oBAAoB,6BAApB,oBAAoB,sGAAU;YAQ9B,8MAAA,oBAAoB,6BAApB,oBAAoB,sGAAoC;YAtBjE,6KAmNC;;;YAnNK,uDAAa;;QAClB,sDAAsD;QAC9C,eAAe,yHAAY;QAEnC;;;WAGG;QACK,eAAe,kEAAY;QAEnC;;;WAGG;QACK,oBAAoB,uEAAU;QAEtC;;;WAGG;QACH,0EAA0E;QAC1E,oCAAoC;QAC5B,oBAAoB,+DAAY,QAAQ,CAAC,eAAe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BAEtB,8BAA8B;oBAC9B,IAAI,CAAC,eAAe,CAAC,QAAQ,GAAG,GAAG,EAAE,CAAC,KAAK,CAAA;oBAC3C,IAAI,CAAC,eAAe,CAAC,QAAQ,GAAG,GAAG,EAAE,CAAC,KAAK,CAAA;oBAE3C,IAAI,CAAC,QAAQ,CAAC,KAAK,EAAE,CAAA;gBACtB,CAAC,CAAC,CAAA;YACH,CAAC,CAAC,CAAA;YAEF,OAAO,IAAI,CAAA;QACZ,CAAC;QAED,IAAI;YACH,IAAI,CAAC,IAAI,CAAC,UAAU;gBAAE,OAAO,IAAI,CAAA;YACjC,IAAI,CAAC,UAAU,GAAG,KAAK,CAAA;YAEvB,IAAI,CAAC,WAAW,EAAE,CAAA;YAElB,OAAO,IAAI,CAAA;QACZ,CAAC;;;;SAtNI,aAAa"} \ No newline at end of file diff --git a/src/cameras/CameraRig.ts b/src/cameras/CameraRig.ts index 1483c6862..24bd0bffe 100644 --- a/src/cameras/CameraRig.ts +++ b/src/cameras/CameraRig.ts @@ -26,6 +26,9 @@ export type CameraRigAttributes = | 'active' | 'dollySpeed' | 'interactive' + | 'rotationSpeed' + | 'dynamicDolly' + | 'dynamicRotation' | 'initialPolarAngle' // deprecated | 'minPolarAngle' // deprecated | 'maxPolarAngle' // deprecated @@ -288,6 +291,33 @@ class CameraRig extends Element3D { */ @booleanAttribute interactive = true + /** + * @property {number} rotationSpeed + * + * *attribute* + * + * Default: `1` + */ + @numberAttribute rotationSpeed = 1 + + /** + * @property {boolean} dynamicDolly + * + * *attribute* + * + * Default: `false` + */ + @booleanAttribute dynamicDolly = false + + /** + * @property {boolean} dynamicRotation + * + * *attribute* + * + * Default: `false` + */ + @booleanAttribute dynamicRotation = false + @signal threeCamera?: PerspectiveCamera /** @deprecated Use `.threeCamera` instead. */ @@ -355,12 +385,53 @@ class CameraRig extends Element3D { flingRotation.maxFlingRotationX = this.maxVerticalAngle flingRotation.minFlingRotationY = this.minHorizontalAngle flingRotation.maxFlingRotationY = this.maxHorizontalAngle + flingRotation.factor = this.rotationSpeed scrollFling.minY = pinchFling.minX = this.__appliedMinDistance scrollFling.maxY = pinchFling.maxX = this.__appliedMaxDistance scrollFling.sensitivity = pinchFling.sensitivity = this.dollySpeed }) + this.createEffect(() => { + if (!this.dynamicDolly) return + + // Dolly speed when position is at minDistance + const minDollySpeed = 0.001 + + // Dolly speed when position is at maxDistance + const maxDollySpeed = 2 * this.dollySpeed + + // Scroll sensitivity is linear between min/max dolly speed and min/max distance. + const sens = + ((maxDollySpeed - minDollySpeed) / (this.maxDistance - this.minDistance)) * + (this.threeCamera!.position.z - this.minDistance) + + minDollySpeed + + scrollFling.sensitivity = sens < minDollySpeed ? minDollySpeed : sens + }) + this.createEffect(() => { + if (!this.dynamicRotation) return + + // This only depends on the size of the scene and the FOV of the camera. The only + // issue is the camera's FOV is not reactive and is set by the scene at some point. + // In the case where the camera's FOV is not set yet, use the scene's perspective. + const perspective = this.threeCamera!.three.fov + ? this.scene!.calculatedSize.y / 2 / Math.tan((this.threeCamera!.three.fov * Math.PI) / 360) + : this.scene!.perspective + + // Plane positioned at origin facing camera with width equal to `minDistance`. + // `minDistance` is doubled because the expected `minDistance` should barely touch + // the object, whose size would be double `minDistance`. + const planeSize = (perspective * (this.minDistance * 2)) / this.threeCamera!.position.z + + const degreesPerPixel = 180 / planeSize + + // Counteract the FlingRotation's delta modifier to get exact angular movement. + const sens = (1 / 0.15) * degreesPerPixel * this.rotationSpeed + + this.flingRotation.factor = sens <= 0 ? 1 : sens + }) + this.createEffect(() => { if (this.interactive && !this.pinchFling?.interacting) flingRotation.start() else flingRotation.stop() @@ -410,7 +481,7 @@ class CameraRig extends Element3D { comment="We don't set position here because it triggers the pre-upgrade handling due to the template running before perspective-camera is upgraded (due to Solid specifics) which causes the initial value to override the initial position calculated from scene.perspective." xposition=${() => [0, 0, this.__appliedDistance]} align-point="0.5 0.5 0.5" - far="10000" + far="100000" > From bd9d9095cbf6967167277a25e96017a1edc2c105 Mon Sep 17 00:00:00 2001 From: keywizzle Date: Tue, 14 May 2024 18:46:23 -0400 Subject: [PATCH 03/12] Added example for dynamic camera rig --- examples/camera-rig.html | 51 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 51 insertions(+) create mode 100644 examples/camera-rig.html diff --git a/examples/camera-rig.html b/examples/camera-rig.html new file mode 100644 index 000000000..12c797e03 --- /dev/null +++ b/examples/camera-rig.html @@ -0,0 +1,51 @@ + + + + + + + + + + + + From 25bdb3e2993a751254384cfff0413f8682bd7842 Mon Sep 17 00:00:00 2001 From: keywizzle Date: Tue, 14 May 2024 18:47:39 -0400 Subject: [PATCH 04/12] Modified rotation speed --- examples/camera-rig.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/examples/camera-rig.html b/examples/camera-rig.html index 12c797e03..700aece1b 100644 --- a/examples/camera-rig.html +++ b/examples/camera-rig.html @@ -17,7 +17,7 @@ active dolly-speed="1" dynamic-dolly - rotation-speed="0.5" + rotation-speed="0.3" dynamic-rotation distance="800" max-distance="15000" From b575666484311c85916d303b8bd68ca5a343bb12 Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Mon, 24 Jun 2024 20:02:45 -0700 Subject: [PATCH 05/12] formatting --- src/cameras/CameraRig.ts | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/cameras/CameraRig.ts b/src/cameras/CameraRig.ts index aa141bf7d..2f6dad4b2 100644 --- a/src/cameras/CameraRig.ts +++ b/src/cameras/CameraRig.ts @@ -302,8 +302,8 @@ class CameraRig extends Element3D { * *attribute* * * Default: `1` - * - * + * + * */ @numberAttribute rotationSpeed = 1 @@ -313,8 +313,8 @@ class CameraRig extends Element3D { * *attribute* * * Default: `false` - * - * + * + * */ @booleanAttribute dynamicDolly = false @@ -326,7 +326,7 @@ class CameraRig extends Element3D { * Default: `false` */ @booleanAttribute dynamicRotation = false - + /** * @property {number} dollyEpsilon * From 61adb8a6e2070329ffc119b10037c678e0a87e35 Mon Sep 17 00:00:00 2001 From: keywizzle Date: Tue, 2 Jul 2024 16:18:45 -0400 Subject: [PATCH 06/12] Added basic jsdoc comments for dynamic properties --- dist/cameras/CameraRig.d.ts | 10 ++++++++-- dist/cameras/CameraRig.d.ts.map | 2 +- dist/cameras/CameraRig.js | 20 ++++++++++++++++---- dist/cameras/CameraRig.js.map | 2 +- src/cameras/CameraRig.ts | 10 ++++++++-- 5 files changed, 34 insertions(+), 10 deletions(-) diff --git a/dist/cameras/CameraRig.d.ts b/dist/cameras/CameraRig.d.ts index 56ef7b556..777dd4223 100644 --- a/dist/cameras/CameraRig.d.ts +++ b/dist/cameras/CameraRig.d.ts @@ -224,7 +224,7 @@ export declare class CameraRig extends Element3D { * * Default: `1` * - * + * How much the camera rotates while dragging. */ rotationSpeed: number; /** @@ -234,7 +234,9 @@ export declare class CameraRig extends Element3D { * * Default: `false` * - * + * When `true`, the effective dolly speed will be changed based on the + * camera's distance to `minDistance`. Getting closer to `minDistance` will + * lower the effective dolly speed. */ dynamicDolly: boolean; /** @@ -243,6 +245,10 @@ export declare class CameraRig extends Element3D { * *attribute* * * Default: `false` + * + * When `true`, the effective rotation speed will be changed based on the + * camera's distance to `minDistance`. Getting closer to `minDistance` will + * lower the effective rotation speed to allow for finer control. */ dynamicRotation: boolean; /** diff --git a/dist/cameras/CameraRig.d.ts.map b/dist/cameras/CameraRig.d.ts.map index 6e2e494b6..3476e740c 100644 --- a/dist/cameras/CameraRig.d.ts.map +++ b/dist/cameras/CameraRig.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"CameraRig.d.ts","sourceRoot":"","sources":["../../src/cameras/CameraRig.ts"],"names":[],"mappings":"AAOA,OAAO,EAA6C,KAAK,iBAAiB,EAAC,MAAM,eAAe,CAAA;AAEhG,OAAO,EAAC,SAAS,EAAE,KAAK,mBAAmB,EAAC,MAAM,sBAAsB,CAAA;AACxE,OAAO,EAAC,aAAa,EAAE,WAAW,EAAE,UAAU,EAAC,MAAM,yBAAyB,CAAA;AAE9E,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,oBAAoB,SAAM;IAElC;;;;;;;;;;;;OAYG;IACc,WAAW,SAAK;IAEzB,oBAAoB,SAAM;IAElC;;;;;;;;OAQG;IACe,MAAM,UAAO;IAE/B;;;;;;OAMG;IACc,UAAU,SAAI;IAE/B;;;;;;;;;OASG;IACe,WAAW,UAAO;IAEpC;;;;;;;;OAQG;IACc,aAAa,SAAI;IAElC;;;;;;;;OAQG;IACe,YAAY,UAAQ;IAEtC;;;;;;OAMG;IACe,eAAe,UAAQ;IAEzC;;;;;;;;;;;OAWG;IACc,YAAY,SAAO;IAEpC;;;;;;;;;OASG;IACc,eAAe,SAAM;IAEtC;;;;;;;;;;OAUG;IACc,kBAAkB,SAAO;IAE1C;;;;;;;;;;OAUG;IACc,eAAe,SAAO;IAEvC;;;;;;;;;;OAUG;IACc,gBAAgB,SAAO;IAEhC,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAEvC,8CAA8C;IAC9C,IAAI,GAAG,kCAEN;IAEO,eAAe,CAAC,EAAE,SAAS,CAAA;IAC3B,eAAe,CAAC,EAAE,SAAS,CAAA;IAEnC,aAAa,gBAAsB;IACnC,WAAW,cAAoB;IAC/B,UAAU,aAAmB;IAMpB,iBAAiB;IA8HjB,QAAQ,sBAmChB;CACD;AAED,OAAO,QAAQ,UAAU,CAAC;IACzB,UAAU,GAAG,CAAC;QACb,UAAU,iBAAiB;YAC1B,iBAAiB,EAAE,iBAAiB,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAA;SACpE;KACD;CACD;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,SAAS,CAAA;KAC5B;CACD"} \ No newline at end of file +{"version":3,"file":"CameraRig.d.ts","sourceRoot":"","sources":["../../src/cameras/CameraRig.ts"],"names":[],"mappings":"AAOA,OAAO,EAA6C,KAAK,iBAAiB,EAAC,MAAM,eAAe,CAAA;AAEhG,OAAO,EAAC,SAAS,EAAE,KAAK,mBAAmB,EAAC,MAAM,s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,WAElB;IACD,IAAI,eAAe,CAAC,KAAK,QAAA,EAExB;IAED;;;;;;;;;;;;OAYG;IACc,WAAW,SAAK;IAEzB,oBAAoB,SAAM;IAElC;;;;;;;;;;;;OAYG;IACc,WAAW,SAAK;IAEzB,oBAAoB,SAAM;IAElC;;;;;;;;OAQG;IACe,MAAM,UAAO;IAE/B;;;;;;OAMG;IACc,UAAU,SAAI;IAE/B;;;;;;;;;OASG;IACe,WAAW,UAAO;IAEpC;;;;;;;;OAQG;IACc,aAAa,SAAI;IAElC;;;;;;;;;;OAUG;IACe,YAAY,UAAQ;IAEtC;;;;;;;;;;OAUG;IACe,eAAe,UAAQ;IAEzC;;;;;;;;;;;OAWG;IACc,YAAY,SAAO;IAEpC;;;;;;;;;OASG;IACc,eAAe,SAAM;IAEtC;;;;;;;;;;OAUG;IACc,kBAAkB,SAAO;IAE1C;;;;;;;;;;OAUG;IACc,eAAe,SAAO;IAEvC;;;;;;;;;;OAUG;IACc,gBAAgB,SAAO;IAEhC,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAEvC,8CAA8C;IAC9C,IAAI,GAAG,kCAEN;IAEO,eAAe,CAAC,EAAE,SAAS,CAAA;IAC3B,eAAe,CAAC,EAAE,SAAS,CAAA;IAEnC,aAAa,gBAAsB;IACnC,WAAW,cAAoB;IAC/B,UAAU,aAAmB;IAMpB,iBAAiB;IA8HjB,QAAQ,sBAmChB;CACD;AAED,OAAO,QAAQ,UAAU,CAAC;IACzB,UAAU,GAAG,CAAC;QACb,UAAU,iBAAiB;YAC1B,iBAAiB,EAAE,iBAAiB,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAA;SACpE;KACD;CACD;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,SAAS,CAAA;KAC5B;CACD"} \ No newline at end of file diff --git a/dist/cameras/CameraRig.js b/dist/cameras/CameraRig.js index 75208f687..5443ad519 100644 --- a/dist/cameras/CameraRig.js +++ b/dist/cameras/CameraRig.js @@ -522,7 +522,7 @@ let CameraRig = (() => { * * Default: `1` * - * + * How much the camera rotates while dragging. */ ); /** @@ -532,7 +532,7 @@ let CameraRig = (() => { * * Default: `1` * - * + * How much the camera rotates while dragging. */ rotationSpeed = __runInitializers(this, _rotationSpeed_initializers, 1 /** @@ -542,7 +542,9 @@ let CameraRig = (() => { * * Default: `false` * - * + * When `true`, the effective dolly speed will be changed based on the + * camera's distance to `minDistance`. Getting closer to `minDistance` will + * lower the effective dolly speed. */ ); /** @@ -552,7 +554,9 @@ let CameraRig = (() => { * * Default: `false` * - * + * When `true`, the effective dolly speed will be changed based on the + * camera's distance to `minDistance`. Getting closer to `minDistance` will + * lower the effective dolly speed. */ dynamicDolly = __runInitializers(this, _dynamicDolly_initializers, false /** @@ -561,6 +565,10 @@ let CameraRig = (() => { * *attribute* * * Default: `false` + * + * When `true`, the effective rotation speed will be changed based on the + * camera's distance to `minDistance`. Getting closer to `minDistance` will + * lower the effective rotation speed to allow for finer control. */ ); /** @@ -569,6 +577,10 @@ let CameraRig = (() => { * *attribute* * * Default: `false` + * + * When `true`, the effective rotation speed will be changed based on the + * camera's distance to `minDistance`. Getting closer to `minDistance` will + * lower the effective rotation speed to allow for finer control. */ dynamicRotation = __runInitializers(this, _dynamicRotation_initializers, false /** diff --git a/dist/cameras/CameraRig.js.map b/dist/cameras/CameraRig.js.map index cd13a15a4..0d6b1b696 100644 --- a/dist/cameras/CameraRig.js.map +++ b/dist/cameras/CameraRig.js.map @@ -1 +1 @@ -{"version":3,"file":"CameraRig.js","sourceRoot":"","sources":["../../src/cameras/CameraRig.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,gFAAgF;AAChF,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElC,OAAO,EAAC,SAAS,EAAC,MAAM,UAAU,CAAA;AAClC,OAAO,IAAI,MAAM,eAAe,CAAA;AAChC,OAAO,EAAC,MAAM,EAAE,WAAW,EAAC,MA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AAE,IAAI,CAAC,iBAAiB,CAAC;;;;;;;;;;;EAWpD,CAAA;;;;SAlgBI,SAAS"} \ No newline at end of file diff --git a/src/cameras/CameraRig.ts b/src/cameras/CameraRig.ts index 2f6dad4b2..926d603ab 100644 --- a/src/cameras/CameraRig.ts +++ b/src/cameras/CameraRig.ts @@ -303,7 +303,7 @@ class CameraRig extends Element3D { * * Default: `1` * - * + * How much the camera rotates while dragging. */ @numberAttribute rotationSpeed = 1 @@ -314,7 +314,9 @@ class CameraRig extends Element3D { * * Default: `false` * - * + * When `true`, the effective dolly speed will be changed based on the + * camera's distance to `minDistance`. Getting closer to `minDistance` will + * lower the effective dolly speed. */ @booleanAttribute dynamicDolly = false @@ -324,6 +326,10 @@ class CameraRig extends Element3D { * *attribute* * * Default: `false` + * + * When `true`, the effective rotation speed will be changed based on the + * camera's distance to `minDistance`. Getting closer to `minDistance` will + * lower the effective rotation speed to allow for finer control. */ @booleanAttribute dynamicRotation = false From 17ccbcfe13b5e030d8a23ebdbe875a9a807d4bd2 Mon Sep 17 00:00:00 2001 From: keywizzle Date: Tue, 2 Jul 2024 22:24:49 -0400 Subject: [PATCH 07/12] update docs --- apps/docs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/docs b/apps/docs index 9c5bad096..682c3ce15 160000 --- a/apps/docs +++ b/apps/docs @@ -1 +1 @@ -Subproject commit 9c5bad096ea08207ac87670f84c7d9581ba1cb3b +Subproject commit 682c3ce15b78fc310c5fe43838ee5177d9735ad7 From dcd6c132ea128b5b595693387cc7b1cd6aeb63e8 Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Tue, 23 Jul 2024 18:10:18 -0700 Subject: [PATCH 08/12] Update CameraRig.ts docs --- src/cameras/CameraRig.ts | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/src/cameras/CameraRig.ts b/src/cameras/CameraRig.ts index 926d603ab..f9ebbd150 100644 --- a/src/cameras/CameraRig.ts +++ b/src/cameras/CameraRig.ts @@ -316,7 +316,9 @@ class CameraRig extends Element3D { * * When `true`, the effective dolly speed will be changed based on the * camera's distance to `minDistance`. Getting closer to `minDistance` will - * lower the effective dolly speed. + * lower the effective dolly speed towards zero. This is useful when zoomed + * into an object and having the dolly movements not be disproportionately + * huge while viewing fine details of the object. */ @booleanAttribute dynamicDolly = false @@ -329,7 +331,9 @@ class CameraRig extends Element3D { * * When `true`, the effective rotation speed will be changed based on the * camera's distance to `minDistance`. Getting closer to `minDistance` will - * lower the effective rotation speed to allow for finer control. + * lower the effective rotation speed to allow for finer control. This is useful + * zoomed in to see fine details of an object and having the rotation not be + * disproportionately huge, for example when zooming into a 3D globe. */ @booleanAttribute dynamicRotation = false From 2d43ca258bd95048849c59db26659732b7a4a0c6 Mon Sep 17 00:00:00 2001 From: keywizzle Date: Tue, 23 Jul 2024 21:33:05 -0400 Subject: [PATCH 09/12] Changed file paths and updated dolly speed --- examples/camera-rig.html | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/examples/camera-rig.html b/examples/camera-rig.html index 700aece1b..84607efeb 100644 --- a/examples/camera-rig.html +++ b/examples/camera-rig.html @@ -4,10 +4,10 @@ id="scene" perspective="800" webgl - background="../apps/docs/examples/hello-world/galaxy_starfield.png" + background="https://docs.lume.io/examples/hello-world/galaxy_starfield.png" background-intensity="0.6" equirectangular-background="true" - environment="../apps/docs/examples/hello-world/galaxy_starfield.png" + environment="https://docs.lume.io/examples/hello-world/galaxy_starfield.png" physically-correct-lights > @@ -15,7 +15,7 @@ Date: Wed, 24 Jul 2024 01:18:45 -0700 Subject: [PATCH 10/12] update docs --- apps/docs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/apps/docs b/apps/docs index 682c3ce15..1bf1b89a0 160000 --- a/apps/docs +++ b/apps/docs @@ -1 +1 @@ -Subproject commit 682c3ce15b78fc310c5fe43838ee5177d9735ad7 +Subproject commit 1bf1b89a047e7df54a1a328a0166ca814fb058e8 From f21b78df5a7c6bf704170bb720eed0daa6aa1a03 Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Wed, 24 Jul 2024 01:28:55 -0700 Subject: [PATCH 11/12] update build --- dist/cameras/CameraRig.d.ts | 8 ++++++-- dist/cameras/CameraRig.d.ts.map | 2 +- dist/cameras/CameraRig.js | 16 ++++++++++++---- dist/cameras/CameraRig.js.map | 2 +- 4 files changed, 20 insertions(+), 8 deletions(-) diff --git a/dist/cameras/CameraRig.d.ts b/dist/cameras/CameraRig.d.ts index 777dd4223..be5935638 100644 --- a/dist/cameras/CameraRig.d.ts +++ b/dist/cameras/CameraRig.d.ts @@ -236,7 +236,9 @@ export declare class CameraRig extends Element3D { * * When `true`, the effective dolly speed will be changed based on the * camera's distance to `minDistance`. Getting closer to `minDistance` will - * lower the effective dolly speed. + * lower the effective dolly speed towards zero. This is useful when zoomed + * into an object and having the dolly movements not be disproportionately + * huge while viewing fine details of the object. */ dynamicDolly: boolean; /** @@ -248,7 +250,9 @@ export declare class CameraRig extends Element3D { * * When `true`, the effective rotation speed will be changed based on the * camera's distance to `minDistance`. Getting closer to `minDistance` will - * lower the effective rotation speed to allow for finer control. + * lower the effective rotation speed to allow for finer control. This is useful + * zoomed in to see fine details of an object and having the rotation not be + * disproportionately huge, for example when zooming into a 3D globe. */ dynamicRotation: boolean; /** diff --git a/dist/cameras/CameraRig.d.ts.map b/dist/cameras/CameraRig.d.ts.map index 3476e740c..cf7312564 100644 --- a/dist/cameras/CameraRig.d.ts.map +++ b/dist/cameras/CameraRig.d.ts.map @@ -1 +1 @@ -{"version":3,"file":"CameraRig.d.ts","sourceRoot":"","sources":["../../src/cameras/CameraRig.ts"],"names":[],"mappings":"AAOA,OAAO,EAA6C,KAAK,iBAAiB,EAAC,MAAM,eAAe,CAAA;AAEhG,OAAO,EAAC,SAAS,EAAE,KAAK,mBAAmB,EAAC,MAAM,sBAAsB,CAAA;AACxE,OAAO,EAAC,aAAa,EAAE,WAAW,EAAE,UAAU,EAAC,MAAM,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ACc,WAAW,SAAK;IAEzB,oBAAoB,SAAM;IAElC;;;;;;;;;;;;OAYG;IACc,WAAW,SAAK;IAEzB,oBAAoB,SAAM;IAElC;;;;;;;;OAQG;IACe,MAAM,UAAO;IAE/B;;;;;;OAMG;IACc,UAAU,SAAI;IAE/B;;;;;;;;;OASG;IACe,WAAW,UAAO;IAEpC;;;;;;;;OAQG;IACc,aAAa,SAAI;IAElC;;;;;;;;;;OAUG;IACe,YAAY,UAAQ;IAEtC;;;;;;;;;;OAUG;IACe,eAAe,UAAQ;IAEzC;;;;;;;;;;;OAWG;IACc,YAAY,SAAO;IAEpC;;;;;;;;;OASG;IACc,eAAe,SAAM;IAEtC;;;;;;;;;;OAUG;IACc,kBAAkB,SAAO;IAE1C;;;;;;;;;;OAUG;IACc,eAAe,SAAO;IAEvC;;;;;;;;;;OAUG;IACc,gBAAgB,SAAO;IAEhC,WAAW,CAAC,EAAE,iBAAiB,CAAA;IAEvC,8CAA8C;IAC9C,IAAI,GAAG,kCAEN;IAEO,eAAe,CAAC,EAAE,SAAS,CAAA;IAC3B,eAAe,CAAC,EAAE,SAAS,CAAA;IAEnC,aAAa,gBAAsB;IACnC,WAAW,cAAoB;IAC/B,UAAU,aAAmB;IAMpB,iBAAiB;IA8HjB,QAAQ,sBAmChB;CACD;AAED,OAAO,QAAQ,UAAU,CAAC;IACzB,UAAU,GAAG,CAAC;QACb,UAAU,iBAAiB;YAC1B,iBAAiB,EAAE,iBAAiB,CAAC,SAAS,EAAE,mBAAmB,CAAC,CAAA;SACpE;KACD;CACD;AAED,OAAO,CAAC,MAAM,CAAC;IACd,UAAU,qBAAqB;QAC9B,iBAAiB,EAAE,SAAS,CAAA;KAC5B;CACD"} \ No newline at end of file +{"version":3,"file":"CameraRig.d.ts","sourceRoot":"","sources":["../../src/cameras/CameraRig.ts"],"names":[],"mappings":"AAOA,OAAO,EAA6C,KAAK,iBAAiB,EAAC,MAAM,eAAe,CAAA;AAEhG,OAAO,EAAC,SAAS,EAAE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614 100644 --- a/dist/cameras/CameraRig.js +++ b/dist/cameras/CameraRig.js @@ -544,7 +544,9 @@ let CameraRig = (() => { * * When `true`, the effective dolly speed will be changed based on the * camera's distance to `minDistance`. Getting closer to `minDistance` will - * lower the effective dolly speed. + * lower the effective dolly speed towards zero. This is useful when zoomed + * into an object and having the dolly movements not be disproportionately + * huge while viewing fine details of the object. */ ); /** @@ -556,7 +558,9 @@ let CameraRig = (() => { * * When `true`, the effective dolly speed will be changed based on the * camera's distance to `minDistance`. Getting closer to `minDistance` will - * lower the effective dolly speed. + * lower the effective dolly speed towards zero. This is useful when zoomed + * into an object and having the dolly movements not be disproportionately + * huge while viewing fine details of the object. */ dynamicDolly = __runInitializers(this, _dynamicDolly_initializers, false /** @@ -568,7 +572,9 @@ let CameraRig = (() => { * * When `true`, the effective rotation speed will be changed based on the * camera's distance to `minDistance`. Getting closer to `minDistance` will - * lower the effective rotation speed to allow for finer control. + * lower the effective rotation speed to allow for finer control. This is useful + * zoomed in to see fine details of an object and having the rotation not be + * disproportionately huge, for example when zooming into a 3D globe. */ ); /** @@ -580,7 +586,9 @@ let CameraRig = (() => { * * When `true`, the effective rotation speed will be changed based on the * camera's distance to `minDistance`. Getting closer to `minDistance` will - * lower the effective rotation speed to allow for finer control. + * lower the effective rotation speed to allow for finer control. This is useful + * zoomed in to see fine details of an object and having the rotation not be + * disproportionately huge, for example when zooming into a 3D globe. */ dynamicRotation = __runInitializers(this, _dynamicRotation_initializers, false /** diff --git a/dist/cameras/CameraRig.js.map b/dist/cameras/CameraRig.js.map index 0d6b1b696..d1aa68ba3 100644 --- a/dist/cameras/CameraRig.js.map +++ b/dist/cameras/CameraRig.js.map @@ -1 +1 @@ -{"version":3,"file":"CameraRig.js","sourceRoot":"","sources":["../../src/cameras/CameraRig.ts"],"names":[],"mappings":"AAAA,6EAA6E;AAC7E,gFAAgF;AAChF,kCAAkC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAElC,OAAO,EAAC,SAAS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AAI,CAAC,WAAW,GAAG,GAAG,CAAC;;eAEjD,GAAG,EAAE,CAAC,IAAI,CAAC,MAAM;;kBAEd,GAAG,EAAE,CAAC,CAAC,CAAC,EAAE,CAAC,EAAE,IAAI,CAAC,iBAAiB,CAAC;;;;;;;;;;;EAWpD,CAAA;;;;SAtgBI,SAAS"} \ No newline at end of file From e5a74a6c99bca79c6c82ab19924ac61ce9b9b9da Mon Sep 17 00:00:00 2001 From: Joe Pea Date: Wed, 24 Jul 2024 01:37:12 -0700 Subject: [PATCH 12/12] improve repo clean check to show what changed --- .github/workflows/tests.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index 574bfef5a..0ba5f3067 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -46,6 +46,10 @@ jobs: if: runner.os != 'Windows' run: | cd packages/docsifyjs+docsify/ && git checkout docs/emoji.md src/core/render/emoji-data.js && cd .. && cd .. - git status && git submodule foreach git --no-pager diff && git add . && git diff --quiet && git diff --cached --quiet + git status + git --no-pager diff + git submodule foreach git --no-pager diff + git add . + git diff --quiet && git diff --cached --quiet env: CI: true