@xviewer.js/core 1.0.0-alpha.34 → 1.0.0-alpha.36
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/main.js +208 -116
- package/dist/main.js.map +1 -1
- package/dist/module.js +209 -117
- package/dist/module.js.map +1 -1
- package/package.json +1 -1
- package/types/cinestation/FreelookVirtualCamera.d.ts +28 -15
- package/types/cinestation/VirtualCamera.d.ts +7 -5
- package/types/tween/Tween.d.ts +1 -1
package/package.json
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { Quaternion, Vector2, Vector3 } from "three";
|
|
2
2
|
import { VirtualCamera } from "./VirtualCamera";
|
|
3
3
|
export declare class FreelookVirtualCamera extends VirtualCamera {
|
|
4
4
|
static __loc0: Vector2;
|
|
@@ -17,35 +17,41 @@ export declare class FreelookVirtualCamera extends VirtualCamera {
|
|
|
17
17
|
private _preLoc0;
|
|
18
18
|
private _preLoc1;
|
|
19
19
|
private _spherical;
|
|
20
|
-
private
|
|
21
|
-
private _lookAtOffset;
|
|
20
|
+
private _lookAt;
|
|
22
21
|
private _tempSmoothing;
|
|
22
|
+
private _targetTheta;
|
|
23
|
+
private _targetPhi;
|
|
24
|
+
private _targetSpringLength;
|
|
23
25
|
private _targetFov;
|
|
24
|
-
private
|
|
25
|
-
private _targetSpherical;
|
|
26
|
+
private _targetLookAt;
|
|
26
27
|
forbidX: boolean;
|
|
27
28
|
forbidY: boolean;
|
|
28
29
|
forbidZ: boolean;
|
|
29
30
|
forbidPanX: boolean;
|
|
30
31
|
forbidPanY: boolean;
|
|
31
32
|
forbitPanOffsetY: boolean;
|
|
32
|
-
printInfo(): void;
|
|
33
|
-
smoothing: number;
|
|
34
|
-
rotateSpeed: number;
|
|
35
33
|
panSpeed: number;
|
|
36
|
-
|
|
34
|
+
rotateSpeed: number;
|
|
35
|
+
smoothing: number;
|
|
37
36
|
phiMin: number;
|
|
38
37
|
phiMax: number;
|
|
39
38
|
thetaMin: number;
|
|
40
39
|
thetaMax: number;
|
|
41
40
|
distanceMin: number;
|
|
42
41
|
distanceMax: number;
|
|
43
|
-
|
|
44
|
-
lookAt:
|
|
42
|
+
get lookAt(): Vector3;
|
|
43
|
+
set lookAt(v: Vector3);
|
|
44
|
+
get springLength(): number;
|
|
45
|
+
set springLength(v: number);
|
|
46
|
+
get theta(): number;
|
|
47
|
+
set theta(v: number);
|
|
48
|
+
get phi(): number;
|
|
49
|
+
set phi(v: number);
|
|
50
|
+
get fov(): number;
|
|
51
|
+
set fov(v: number);
|
|
45
52
|
onEnable(): void;
|
|
46
53
|
onDisable(): void;
|
|
47
54
|
reset(): void;
|
|
48
|
-
get lookAtPosition(): Vector3;
|
|
49
55
|
private _setSpherical;
|
|
50
56
|
private _onPointerDown;
|
|
51
57
|
private _onPointerUp;
|
|
@@ -56,8 +62,15 @@ export declare class FreelookVirtualCamera extends VirtualCamera {
|
|
|
56
62
|
private _calculateDistanceScale;
|
|
57
63
|
private _calculateRotatelDelta;
|
|
58
64
|
private _calculatePanDelta;
|
|
59
|
-
private
|
|
60
|
-
private
|
|
61
|
-
gotoPOI(springLength
|
|
65
|
+
private _calculateTargetLookAt;
|
|
66
|
+
private _calculateTargetSpringArm;
|
|
67
|
+
gotoPOI({ springLength, theta, phi, lookAt, fov, smoothing }: {
|
|
68
|
+
springLength?: number;
|
|
69
|
+
theta?: number;
|
|
70
|
+
phi?: number;
|
|
71
|
+
lookAt?: Vector3;
|
|
72
|
+
fov?: number;
|
|
73
|
+
smoothing?: number;
|
|
74
|
+
}): void;
|
|
62
75
|
update(dt: number): void;
|
|
63
76
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
1
1
|
import { Object3D, Quaternion, Vector3 } from "three";
|
|
2
2
|
import { Component } from "../Component";
|
|
3
3
|
import { CinestationBrain } from "./CinestationBrain";
|
|
4
|
+
declare class Lens {
|
|
5
|
+
fov: number;
|
|
6
|
+
near: number;
|
|
7
|
+
far: number;
|
|
8
|
+
}
|
|
4
9
|
export declare class VirtualCamera extends Component<Object3D & {
|
|
5
10
|
isCamera?: boolean;
|
|
6
11
|
}> {
|
|
7
12
|
private _finalPosition;
|
|
8
13
|
private _finalRotation;
|
|
9
14
|
priority: number;
|
|
10
|
-
|
|
11
|
-
follow: Object3D | null;
|
|
12
|
-
fov: number;
|
|
13
|
-
near: number;
|
|
14
|
-
far: number;
|
|
15
|
+
lens: Lens;
|
|
15
16
|
correctPosition: Vector3;
|
|
16
17
|
correctRotation: Quaternion;
|
|
17
18
|
brain: CinestationBrain;
|
|
@@ -20,3 +21,4 @@ export declare class VirtualCamera extends Component<Object3D & {
|
|
|
20
21
|
onLoad(): void;
|
|
21
22
|
onDestroy(): void;
|
|
22
23
|
}
|
|
24
|
+
export {};
|
package/types/tween/Tween.d.ts
CHANGED
|
@@ -44,7 +44,7 @@ export declare class Tween<T extends UnknownProps> {
|
|
|
44
44
|
private _propertiesAreSetUp;
|
|
45
45
|
private _headTween;
|
|
46
46
|
private _tailTween;
|
|
47
|
-
private
|
|
47
|
+
private _headTweenStartFired;
|
|
48
48
|
constructor(_object: T, _group?: Group | false);
|
|
49
49
|
getId(): number;
|
|
50
50
|
isPlaying(): boolean;
|