@xviewer.js/core 1.0.0-alpha.31 → 1.0.0-alpha.33

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@xviewer.js/core",
3
- "version": "1.0.0-alpha.31",
3
+ "version": "1.0.0-alpha.33",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "sideEffects": false,
@@ -1,10 +1,5 @@
1
1
  import { Object3D, Quaternion, Spherical, Vector2, Vector3 } from "three";
2
2
  import { VirtualCamera } from "./VirtualCamera";
3
- export declare const VCamFreeLookMode: {
4
- FREE: number;
5
- TRANSLATE: number;
6
- };
7
- export type VCamFreeLookMode = typeof VCamFreeLookMode[keyof typeof VCamFreeLookMode];
8
3
  export declare class FreelookVirtualCamera extends VirtualCamera {
9
4
  static __loc0: Vector2;
10
5
  static __loc1: Vector2;
@@ -13,11 +8,11 @@ export declare class FreelookVirtualCamera extends VirtualCamera {
13
8
  static __moveDelta: Vector2;
14
9
  static __worldPos: Vector3;
15
10
  static __posDelta: Vector3;
16
- static __posOffset: Vector3;
17
11
  static __xAxis: Vector3;
18
12
  static __yAxis: Vector3;
19
13
  static __quat: Quaternion;
20
14
  static __spherical: Spherical;
15
+ static __offsetDelta: Vector3;
21
16
  private _button;
22
17
  private _touchID;
23
18
  private _distanceDelta;
@@ -25,17 +20,18 @@ export declare class FreelookVirtualCamera extends VirtualCamera {
25
20
  private _preLoc1;
26
21
  private _rotateDelta;
27
22
  private _panDelta;
28
- mode: VCamFreeLookMode;
23
+ private _tempSmoothing;
24
+ private _lookAtOffsetDelta;
29
25
  forbidX: boolean;
30
26
  forbidY: boolean;
31
27
  forbidZ: boolean;
32
28
  forbidPanX: boolean;
33
29
  forbidPanY: boolean;
34
30
  forbitPanOffsetY: boolean;
31
+ printInfo(): void;
32
+ smoothing: number;
35
33
  rotateSpeed: number;
36
- rotateSmoothing: number;
37
34
  panSpeed: number;
38
- panSmoothing: number;
39
35
  panScale: Vector3;
40
36
  phiMin: number;
41
37
  phiMax: number;
@@ -48,8 +44,6 @@ export declare class FreelookVirtualCamera extends VirtualCamera {
48
44
  onEnable(): void;
49
45
  onDisable(): void;
50
46
  reset(): void;
51
- private _tweenPOI;
52
- gotoPOI(position: Vector3, lookAt: Vector3, duration?: number, easing?: (amount: number) => number): void;
53
47
  private _onPointerDown;
54
48
  private _onPointerUp;
55
49
  private _onPointerMove;
@@ -59,5 +53,6 @@ export declare class FreelookVirtualCamera extends VirtualCamera {
59
53
  private _calculateDistanceScale;
60
54
  private _calculateRotateDelta;
61
55
  private _calculatePanDelta;
56
+ gotoPOI(position: Vector3, lookAt: Vector3, smoothing?: number): void;
62
57
  update(dt: number): void;
63
58
  }
@@ -15,7 +15,7 @@ export declare class VirtualCamera extends Component<Object3D & {
15
15
  correctPosition: Vector3;
16
16
  correctRotation: Quaternion;
17
17
  lookaheadPosition: Vector3;
18
- trackedObjectOffset: Vector3;
18
+ lookAtOffset: Vector3;
19
19
  brain: CinestationBrain;
20
20
  get finalPosition(): Vector3;
21
21
  get finalRotation(): Quaternion;