@realsee/dnalogel 3.6.0 → 3.7.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.
Files changed (46) hide show
  1. package/dist/CruisePlugin/BaseController.d.ts +159 -0
  2. package/dist/CruisePlugin/Move.d.ts +40 -0
  3. package/dist/CruisePlugin/Work.d.ts +120 -0
  4. package/dist/CruisePlugin/index.d.ts +6 -4
  5. package/dist/CruisePlugin/typing.d.ts +2 -2
  6. package/dist/CruisePlugin/utils/getFiveStateOnCurve.d.ts +11 -0
  7. package/dist/GuideLinePlugin/Controller.d.ts +1 -6
  8. package/dist/index.cjs.js +54 -54
  9. package/dist/index.js +3565 -3466
  10. package/dist/index.umd.js +47 -47
  11. package/dist/shared-utils/five/fiveLoaded.d.ts +2 -0
  12. package/dist/shared-utils/five/fiveReady.d.ts +2 -0
  13. package/libs/CruisePlugin/BaseController.d.ts +159 -0
  14. package/libs/CruisePlugin/BaseController.js +231 -0
  15. package/libs/CruisePlugin/Move.d.ts +40 -0
  16. package/libs/CruisePlugin/Move.js +137 -0
  17. package/libs/CruisePlugin/Work.d.ts +120 -0
  18. package/libs/CruisePlugin/Work.js +598 -0
  19. package/libs/CruisePlugin/index.d.ts +6 -4
  20. package/libs/CruisePlugin/index.js +19 -12
  21. package/libs/CruisePlugin/typing.d.ts +2 -2
  22. package/libs/CruisePlugin/utils/getFiveStateOnCurve.d.ts +11 -0
  23. package/libs/CruisePlugin/utils/getFiveStateOnCurve.js +11 -0
  24. package/libs/GuideLinePlugin/Controller.d.ts +1 -6
  25. package/libs/GuideLinePlugin/Controller.js +49 -62
  26. package/libs/GuideLinePlugin/GuideLineItem/index.js +53 -43
  27. package/libs/GuideLinePlugin/GuideLineItem.js +14 -10
  28. package/libs/GuideLinePlugin/index.js +21 -17
  29. package/libs/base/BasePlugin.js +1 -1
  30. package/libs/index.js +126 -119
  31. package/libs/shared-utils/five/fiveLoaded.d.ts +2 -0
  32. package/libs/shared-utils/five/fiveLoaded.js +30 -0
  33. package/libs/shared-utils/five/fiveReady.d.ts +2 -0
  34. package/libs/shared-utils/five/fiveReady.js +28 -0
  35. package/libs/shared-utils/formatRad.d.ts +7 -0
  36. package/libs/shared-utils/formatRad.js +7 -0
  37. package/libs/shared-utils/logger.js +1 -1
  38. package/package.json +3 -3
  39. package/dist/CruisePlugin/Controller.d.ts +0 -171
  40. package/dist/CruisePlugin/utils/linerValue.d.ts +0 -1
  41. package/libs/CruisePlugin/Controller.d.ts +0 -171
  42. package/libs/CruisePlugin/Controller.js +0 -760
  43. /package/dist/{CruisePlugin/utils → shared-utils}/formatRad.d.ts +0 -0
  44. /package/dist/{CruisePlugin/utils/vectorToCoordinates.d.ts → shared-utils/vectorToCoordinate.d.ts} +0 -0
  45. /package/libs/{CruisePlugin/utils/vectorToCoordinates.d.ts → shared-utils/vectorToCoordinate.d.ts} +0 -0
  46. /package/libs/{CruisePlugin/utils/vectorToCoordinates.js → shared-utils/vectorToCoordinate.js} +0 -0
@@ -1,171 +0,0 @@
1
- import type { Five } from '@realsee/five';
2
- import type { BaseOptions } from '../base/BasePlugin';
3
- import * as BasePluginWithData from '../base/BasePluginWithData';
4
- import type { PluginState, EventMap, PluginServerData, PluginData, Config } from './typing';
5
- export declare const pluginFlag: (name: string) => string;
6
- export default class CruisePluginController extends BasePluginWithData.Controller<PluginState, EventMap, PluginServerData, PluginData> {
7
- static PluginVersion: string;
8
- state: PluginState;
9
- protected data?: PluginData;
10
- private config?;
11
- private privateState;
12
- private GuideLine?;
13
- constructor(five: Five, config?: Config);
14
- /**
15
- * @description Load Data and State
16
- */
17
- load(serverData: PluginServerData | PluginServerData['data'], state?: PluginState, userAction?: boolean): Promise<void>;
18
- /**
19
- * @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
20
- */
21
- play(options?: {
22
- userAction?: boolean;
23
- }): void;
24
- /**
25
- * @description If playing, first pause, then play from keyframes index/id
26
- * @param {number} options.index play from keyframes index
27
- * @param {string} options.id play from keyframes id
28
- */
29
- playFrom(options: {
30
- userAction?: boolean;
31
- index?: number;
32
- id?: string;
33
- }): void;
34
- /**
35
- * @description Play from first keyframe
36
- */
37
- playFromStart(options?: {
38
- userAction?: boolean;
39
- }): void;
40
- /**
41
- * @description Pause
42
- */
43
- pause(options?: {
44
- userAction?: boolean;
45
- }): void;
46
- /**
47
- * @description Show guide line
48
- */
49
- show(options?: {
50
- userAction?: boolean;
51
- }): Promise<void>;
52
- /**
53
- * @description Hide guide line
54
- */
55
- hide(options?: {
56
- userAction?: boolean;
57
- }): Promise<void>;
58
- /**
59
- * @description Enable
60
- */
61
- enable(options?: {
62
- userAction?: boolean;
63
- }): void;
64
- /**
65
- * @description Disable
66
- */
67
- disable(options?: {
68
- userAction?: boolean;
69
- }): void;
70
- /**
71
- * @description Dispose
72
- */
73
- dispose(): void;
74
- /**
75
- * @description Set state
76
- */
77
- setState(state: Partial<PluginState>, options?: BaseOptions & Record<string, any>): void;
78
- /**
79
- * @description Format data
80
- */
81
- protected formatData(serverData: PluginServerData | PluginServerData['data']): Promise<PluginData>;
82
- private handleEnable;
83
- private handleVisible;
84
- private changePlayState;
85
- /**
86
- * @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
87
- * @param {number} options.playFromIndex play from keyframes index
88
- * @param {string} options.playFromId play from keyframes id
89
- */
90
- private handlePlay;
91
- /**
92
- * @description: Pause and record pause state
93
- */
94
- private handlePause;
95
- /**
96
- * @description Play single keyframe
97
- */
98
- private playKeyframe;
99
- /**
100
- * @description: listen interupted by five gesture
101
- */
102
- private addInterruptListener;
103
- /**
104
- * @description: getPlayPromise
105
- */
106
- private getPlayPromise;
107
- /**
108
- * @description Action promise queue in sequence
109
- */
110
- private actionPromiseQueue;
111
- /**
112
- * @description Action move keyframe
113
- */
114
- private move;
115
- /**
116
- * @description Action rotate keyframe
117
- */
118
- private rotate;
119
- /**
120
- * @description Update five camera
121
- */
122
- private updateCamera;
123
- /**
124
- * @description: Change five pano
125
- */
126
- private changePano;
127
- /**
128
- * @description: Change play speed
129
- */
130
- private changeSpeed;
131
- /**
132
- * @description Get duration by speed
133
- */
134
- private getSpeededDuration;
135
- /**
136
- * @description Get ratate progress
137
- */
138
- private getProgress;
139
- /**
140
- * @description Change five mode
141
- */
142
- private changeMode;
143
- /**
144
- * @description Force interupt five updateCamera
145
- */
146
- private forceInteruptUpdateCamera;
147
- private getPauseData;
148
- /**
149
- * @description Set pause data
150
- */
151
- private setPauseData;
152
- /**
153
- * @description Clear pause data
154
- */
155
- private clearPauseData;
156
- /**
157
- * @description: Restore state that before loaded
158
- */
159
- private clear;
160
- private handleDispose;
161
- /**
162
- * @description Action function if plugin is enable
163
- */
164
- private actionIfStateIsEnabled;
165
- /**
166
- * @description: Wait for five work ready
167
- */
168
- private waitFiveLoaded;
169
- private setFiveLinearUpdateCamera;
170
- private setFiveOriginUpdateCamera;
171
- }