three-stdlib 2.23.14 → 2.24.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.
| @@ -81,6 +81,7 @@ class OrbitControls extends THREE.EventDispatcher { | |
| 81 81 | 
             
                __publicField(this, "setAzimuthalAngle");
         | 
| 82 82 | 
             
                __publicField(this, "getDistance");
         | 
| 83 83 | 
             
                __publicField(this, "listenToKeyEvents");
         | 
| 84 | 
            +
                __publicField(this, "stopListenToKeyEvents");
         | 
| 84 85 | 
             
                __publicField(this, "saveState");
         | 
| 85 86 | 
             
                __publicField(this, "reset");
         | 
| 86 87 | 
             
                __publicField(this, "update");
         | 
| @@ -134,6 +135,10 @@ class OrbitControls extends THREE.EventDispatcher { | |
| 134 135 | 
             
                  domElement2.addEventListener("keydown", onKeyDown);
         | 
| 135 136 | 
             
                  this._domElementKeyEvents = domElement2;
         | 
| 136 137 | 
             
                };
         | 
| 138 | 
            +
                this.stopListenToKeyEvents = () => {
         | 
| 139 | 
            +
                  this._domElementKeyEvents.removeEventListener("keydown", onKeyDown);
         | 
| 140 | 
            +
                  this._domElementKeyEvents = null;
         | 
| 141 | 
            +
                };
         | 
| 137 142 | 
             
                this.saveState = () => {
         | 
| 138 143 | 
             
                  scope.target0.copy(scope.target);
         | 
| 139 144 | 
             
                  scope.position0.copy(scope.object.position);
         | 
| @@ -50,6 +50,7 @@ declare class OrbitControls extends EventDispatcher { | |
| 50 50 | 
             
                setAzimuthalAngle: (x: number) => void;
         | 
| 51 51 | 
             
                getDistance: () => number;
         | 
| 52 52 | 
             
                listenToKeyEvents: (domElement: HTMLElement) => void;
         | 
| 53 | 
            +
                stopListenToKeyEvents: () => void;
         | 
| 53 54 | 
             
                saveState: () => void;
         | 
| 54 55 | 
             
                reset: () => void;
         | 
| 55 56 | 
             
                update: () => void;
         | 
| @@ -79,6 +79,7 @@ class OrbitControls extends EventDispatcher { | |
| 79 79 | 
             
                __publicField(this, "setAzimuthalAngle");
         | 
| 80 80 | 
             
                __publicField(this, "getDistance");
         | 
| 81 81 | 
             
                __publicField(this, "listenToKeyEvents");
         | 
| 82 | 
            +
                __publicField(this, "stopListenToKeyEvents");
         | 
| 82 83 | 
             
                __publicField(this, "saveState");
         | 
| 83 84 | 
             
                __publicField(this, "reset");
         | 
| 84 85 | 
             
                __publicField(this, "update");
         | 
| @@ -132,6 +133,10 @@ class OrbitControls extends EventDispatcher { | |
| 132 133 | 
             
                  domElement2.addEventListener("keydown", onKeyDown);
         | 
| 133 134 | 
             
                  this._domElementKeyEvents = domElement2;
         | 
| 134 135 | 
             
                };
         | 
| 136 | 
            +
                this.stopListenToKeyEvents = () => {
         | 
| 137 | 
            +
                  this._domElementKeyEvents.removeEventListener("keydown", onKeyDown);
         | 
| 138 | 
            +
                  this._domElementKeyEvents = null;
         | 
| 139 | 
            +
                };
         | 
| 135 140 | 
             
                this.saveState = () => {
         | 
| 136 141 | 
             
                  scope.target0.copy(scope.target);
         | 
| 137 142 | 
             
                  scope.position0.copy(scope.object.position);
         | 
    
        package/loaders/SVGLoader.d.ts
    CHANGED
    
    | @@ -1,4 +1,4 @@ | |
| 1 | 
            -
            import { Loader, LoadingManager, ShapePath, BufferGeometry,  | 
| 1 | 
            +
            import { Loader, LoadingManager, ShapePath, BufferGeometry, Vector2, Shape } from 'three'
         | 
| 2 2 |  | 
| 3 3 | 
             
            export interface SVGResultPaths extends ShapePath {
         | 
| 4 4 | 
             
              userData?:
         | 
| @@ -44,13 +44,13 @@ export class SVGLoader extends Loader { | |
| 44 44 | 
             
                miterLimit?: number,
         | 
| 45 45 | 
             
              ): StrokeStyle
         | 
| 46 46 | 
             
              static pointsToStroke(
         | 
| 47 | 
            -
                points:  | 
| 47 | 
            +
                points: Vector2[],
         | 
| 48 48 | 
             
                style: StrokeStyle,
         | 
| 49 49 | 
             
                arcDivisions?: number,
         | 
| 50 50 | 
             
                minDistance?: number,
         | 
| 51 51 | 
             
              ): BufferGeometry
         | 
| 52 52 | 
             
              static pointsToStrokeWithBuffers(
         | 
| 53 | 
            -
                points:  | 
| 53 | 
            +
                points: Vector2[],
         | 
| 54 54 | 
             
                style: StrokeStyle,
         | 
| 55 55 | 
             
                arcDivisions?: number,
         | 
| 56 56 | 
             
                minDistance?: number,
         |