@yschindel/ara3d-webgl 1.3.5 → 1.3.6
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/ara3d-webgl.mjs +310 -328
- package/dist/ara3d-webgl.mjs.map +1 -1
- package/dist/ara3d-webgl.umd.js +14 -14
- package/dist/ara3d-webgl.umd.js.map +1 -1
- package/dist/types/viewer/camera/camera.d.ts +0 -3
- package/dist/types/viewer/camera/cameraMovementLerp.d.ts +3 -5
- package/dist/types/viewer/viewerSettings.d.ts +0 -4
- package/package.json +1 -1
|
@@ -45,8 +45,6 @@ export declare class Camera {
|
|
|
45
45
|
set defaultForward(value: THREE.Vector3);
|
|
46
46
|
private _velocityBlendFactor;
|
|
47
47
|
private _moveSpeed;
|
|
48
|
-
private _lerpDuration;
|
|
49
|
-
private _lerpEasing;
|
|
50
48
|
constructor(viewport: Viewport, settings: Settings);
|
|
51
49
|
/**
|
|
52
50
|
* Interface to move camera instantaneously
|
|
@@ -55,7 +53,6 @@ export declare class Camera {
|
|
|
55
53
|
do(force?: boolean): CameraMovement;
|
|
56
54
|
/**
|
|
57
55
|
* Interface to move camera over time
|
|
58
|
-
* @param duration Duration in seconds (defaults to settings.camera.controls.lerpDuration)
|
|
59
56
|
* @param force Set to true to ignore locked axis and rotation.
|
|
60
57
|
*/
|
|
61
58
|
lerp(duration?: number, force?: boolean): CameraMovement;
|
|
@@ -2,18 +2,16 @@ import * as THREE from 'three';
|
|
|
2
2
|
import { Camera } from './camera';
|
|
3
3
|
import { CameraMovementDo } from './cameraMovementDo';
|
|
4
4
|
import { CameraMovement } from './cameraMovement';
|
|
5
|
-
export type EasingFunction = 'linear' | 'easeOutCubic' | 'easeInOutCubic' | 'easeOutQuad';
|
|
6
5
|
export declare class CameraLerp extends CameraMovement {
|
|
7
6
|
_movement: CameraMovementDo;
|
|
8
7
|
_clock: any;
|
|
9
8
|
onProgress: ((progress: number) => void) | undefined;
|
|
10
9
|
_duration: number;
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
init(duration: number, easing?: EasingFunction): void;
|
|
10
|
+
constructor(camera: Camera, movement: CameraMovementDo);
|
|
11
|
+
init(duration: number): void;
|
|
14
12
|
cancel(): void;
|
|
15
13
|
animate(): void;
|
|
16
|
-
|
|
14
|
+
easeOutCubic(x: number): number;
|
|
17
15
|
update(): void;
|
|
18
16
|
move3(vector: THREE.Vector3): void;
|
|
19
17
|
rotate(angle: THREE.Vector2): void;
|
|
@@ -79,10 +79,6 @@ export type Settings = {
|
|
|
79
79
|
orbitSpeed: number;
|
|
80
80
|
/** Camera movement speed factor */
|
|
81
81
|
moveSpeed: number;
|
|
82
|
-
/** Camera lerp animation duration in seconds */
|
|
83
|
-
lerpDuration: number;
|
|
84
|
-
/** Camera lerp easing function type: 'linear' | 'easeOutCubic' | 'easeInOutCubic' | 'easeOutQuad' */
|
|
85
|
-
lerpEasing: 'linear' | 'easeOutCubic' | 'easeInOutCubic' | 'easeOutQuad';
|
|
86
82
|
};
|
|
87
83
|
/** Camera gizmo related options */
|
|
88
84
|
gizmo: {
|