@realsee/vreo 2.6.4 → 3.0.0-webgpu.9

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 (173) hide show
  1. package/README.md +6 -6
  2. package/lib/PlayController/createHTMLAudioElement.d.ts +1 -0
  3. package/lib/PlayController/createHTMLAudioElement.d.ts.map +1 -0
  4. package/lib/PlayController/index.d.ts +14 -24
  5. package/lib/PlayController/index.d.ts.map +1 -0
  6. package/lib/PlayController/index.js +74 -220
  7. package/lib/PlayController/index.js.map +1 -0
  8. package/lib/Player/App.d.ts +2 -2
  9. package/lib/Player/App.d.ts.map +1 -0
  10. package/lib/Player/Controller.d.ts +11 -6
  11. package/lib/Player/Controller.d.ts.map +1 -0
  12. package/lib/Player/PlaybackLifecycle.d.ts +1 -0
  13. package/lib/Player/PlaybackLifecycle.d.ts.map +1 -0
  14. package/lib/Player/custom/SpatialScenePanel/index.d.ts +2 -2
  15. package/lib/Player/custom/SpatialScenePanel/index.d.ts.map +1 -0
  16. package/lib/Player/hooks.d.ts +3 -2
  17. package/lib/Player/hooks.d.ts.map +1 -0
  18. package/lib/Player/index.d.ts +3 -2
  19. package/lib/Player/index.d.ts.map +1 -0
  20. package/lib/Player/index.js +1770 -437
  21. package/lib/Player/index.js.map +1 -0
  22. package/lib/Player/modules/Drawer/index.d.ts +2 -2
  23. package/lib/Player/modules/Drawer/index.d.ts.map +1 -0
  24. package/lib/Player/modules/PopUp/index.d.ts +2 -2
  25. package/lib/Player/modules/PopUp/index.d.ts.map +1 -0
  26. package/lib/Player/modules/ResizeObserver/index.d.ts +2 -2
  27. package/lib/Player/modules/ResizeObserver/index.d.ts.map +1 -0
  28. package/lib/Player/modules/VideoAgent/VideoAgentMesh.d.ts +5 -2
  29. package/lib/Player/modules/VideoAgent/VideoAgentMesh.d.ts.map +1 -0
  30. package/lib/Player/modules/VideoAgent/VideoAgentScene.d.ts +8 -5
  31. package/lib/Player/modules/VideoAgent/VideoAgentScene.d.ts.map +1 -0
  32. package/lib/Player/modules/VideoAgent/index.d.ts +11 -2
  33. package/lib/Player/modules/VideoAgent/index.d.ts.map +1 -0
  34. package/lib/Player/modules/Wave/index.d.ts +2 -2
  35. package/lib/Player/modules/Wave/index.d.ts.map +1 -0
  36. package/lib/Player/modules/keyframes/BgMusic/index.d.ts +2 -2
  37. package/lib/Player/modules/keyframes/BgMusic/index.d.ts.map +1 -0
  38. package/lib/Player/modules/keyframes/CameraMovement/index.d.ts +2 -2
  39. package/lib/Player/modules/keyframes/CameraMovement/index.d.ts.map +1 -0
  40. package/lib/Player/modules/keyframes/InfoPanel/index.d.ts +2 -2
  41. package/lib/Player/modules/keyframes/InfoPanel/index.d.ts.map +1 -0
  42. package/lib/Player/modules/keyframes/ModelVideo/index.d.ts +2 -2
  43. package/lib/Player/modules/keyframes/ModelVideo/index.d.ts.map +1 -0
  44. package/lib/Player/modules/keyframes/PanoEffect/index.d.ts +2 -2
  45. package/lib/Player/modules/keyframes/PanoEffect/index.d.ts.map +1 -0
  46. package/lib/Player/modules/keyframes/PanoEffect/lineAnime.d.ts +3 -2
  47. package/lib/Player/modules/keyframes/PanoEffect/lineAnime.d.ts.map +1 -0
  48. package/lib/Player/modules/keyframes/PanoTag/index.d.ts +1 -0
  49. package/lib/Player/modules/keyframes/PanoTag/index.d.ts.map +1 -0
  50. package/lib/Player/modules/keyframes/PanoTextLabel/index.d.ts +2 -2
  51. package/lib/Player/modules/keyframes/PanoTextLabel/index.d.ts.map +1 -0
  52. package/lib/Player/modules/keyframes/Prompter/index.d.ts +2 -2
  53. package/lib/Player/modules/keyframes/Prompter/index.d.ts.map +1 -0
  54. package/lib/Player/modules/keyframes/UpdateVRPanorama/index.d.ts +2 -2
  55. package/lib/Player/modules/keyframes/UpdateVRPanorama/index.d.ts.map +1 -0
  56. package/lib/Player/modules/keyframes/VideoEffect/index.d.ts +2 -2
  57. package/lib/Player/modules/keyframes/VideoEffect/index.d.ts.map +1 -0
  58. package/lib/Player/playback-types.d.ts +1 -0
  59. package/lib/Player/playback-types.d.ts.map +1 -0
  60. package/lib/Player/typings.d.ts +2 -1
  61. package/lib/Player/typings.d.ts.map +1 -0
  62. package/lib/chunks/index-BgPSzRSs.js +93 -0
  63. package/lib/chunks/index-BgPSzRSs.js.map +1 -0
  64. package/lib/chunks/index-CunyJn6H.js +51 -0
  65. package/lib/chunks/index-CunyJn6H.js.map +1 -0
  66. package/lib/fivePlugins/CSS3DRenderPlugin/centerPoint.d.ts +2 -1
  67. package/lib/fivePlugins/CSS3DRenderPlugin/centerPoint.d.ts.map +1 -0
  68. package/lib/fivePlugins/CSS3DRenderPlugin/createResizeObserver.d.ts +5 -6
  69. package/lib/fivePlugins/CSS3DRenderPlugin/createResizeObserver.d.ts.map +1 -0
  70. package/lib/fivePlugins/CSS3DRenderPlugin/evenNumber.d.ts +1 -0
  71. package/lib/fivePlugins/CSS3DRenderPlugin/evenNumber.d.ts.map +1 -0
  72. package/lib/fivePlugins/CSS3DRenderPlugin/index.d.ts +5 -22
  73. package/lib/fivePlugins/CSS3DRenderPlugin/index.d.ts.map +1 -0
  74. package/lib/fivePlugins/CSS3DRenderPlugin/transformPositionToVector3.d.ts +2 -1
  75. package/lib/fivePlugins/CSS3DRenderPlugin/transformPositionToVector3.d.ts.map +1 -0
  76. package/lib/fivePlugins/CameraMovementPlugin/index.d.ts +2 -1
  77. package/lib/fivePlugins/CameraMovementPlugin/index.d.ts.map +1 -0
  78. package/lib/fivePlugins/CameraMovementPlugin/typings.d.ts +2 -1
  79. package/lib/fivePlugins/CameraMovementPlugin/typings.d.ts.map +1 -0
  80. package/lib/fivePlugins/ModelTVVideoPlugin/index.d.ts +2 -1
  81. package/lib/fivePlugins/ModelTVVideoPlugin/index.d.ts.map +1 -0
  82. package/lib/index.d.ts +3 -0
  83. package/lib/index.d.ts.map +1 -0
  84. package/lib/index.js +12 -1
  85. package/lib/index.js.map +1 -0
  86. package/lib/plugins/CSS3DRenderPlugin.js +115 -0
  87. package/lib/plugins/CSS3DRenderPlugin.js.map +1 -0
  88. package/lib/plugins/CameraMovementPlugin.js +6 -0
  89. package/lib/plugins/CameraMovementPlugin.js.map +1 -0
  90. package/lib/plugins/ModelTVVideoPlugin.js +162 -0
  91. package/lib/plugins/ModelTVVideoPlugin.js.map +1 -0
  92. package/lib/react/index.d.ts +5 -4
  93. package/lib/react/index.d.ts.map +1 -0
  94. package/lib/react/index.js +39 -226
  95. package/lib/react/index.js.map +1 -0
  96. package/lib/shared-utils/Audio.d.ts +3 -1
  97. package/lib/shared-utils/Audio.d.ts.map +1 -0
  98. package/lib/shared-utils/AudioLike.d.ts +2 -1
  99. package/lib/shared-utils/AudioLike.d.ts.map +1 -0
  100. package/lib/shared-utils/Preloader.d.ts +1 -0
  101. package/lib/shared-utils/Preloader.d.ts.map +1 -0
  102. package/lib/shared-utils/addResizeListener.d.ts +2 -1
  103. package/lib/shared-utils/addResizeListener.d.ts.map +1 -0
  104. package/lib/shared-utils/animationFrame/BetterTween.d.ts +1 -0
  105. package/lib/shared-utils/animationFrame/BetterTween.d.ts.map +1 -0
  106. package/lib/shared-utils/animationFrame/index.d.ts +5 -14
  107. package/lib/shared-utils/animationFrame/index.d.ts.map +1 -0
  108. package/lib/shared-utils/animationFrame/tween.d.ts +1 -0
  109. package/lib/shared-utils/animationFrame/tween.d.ts.map +1 -0
  110. package/lib/shared-utils/createTransMatrix.d.ts +3 -1
  111. package/lib/shared-utils/createTransMatrix.d.ts.map +1 -0
  112. package/lib/shared-utils/getFileExpandedName.d.ts +1 -0
  113. package/lib/shared-utils/getFileExpandedName.d.ts.map +1 -0
  114. package/lib/shared-utils/getMediaInfo.d.ts +1 -0
  115. package/lib/shared-utils/getMediaInfo.d.ts.map +1 -0
  116. package/lib/shared-utils/setElementDataset.d.ts +1 -0
  117. package/lib/shared-utils/setElementDataset.d.ts.map +1 -0
  118. package/lib/timeline/index.d.ts +18 -0
  119. package/lib/timeline/index.d.ts.map +1 -0
  120. package/lib/types/index.js +10 -0
  121. package/lib/types/index.js.map +1 -0
  122. package/lib/typings/VreoUnit.d.ts +2 -1
  123. package/lib/typings/VreoUnit.d.ts.map +1 -0
  124. package/lib/typings/index.d.ts +1 -0
  125. package/lib/typings/index.d.ts.map +1 -0
  126. package/package.json +51 -71
  127. package/lib/PlayController/createHTMLAudioElement.js +0 -34
  128. package/lib/Player/App.js +0 -52
  129. package/lib/Player/Controller.js +0 -536
  130. package/lib/Player/PlaybackLifecycle.js +0 -118
  131. package/lib/Player/custom/SpatialScenePanel/index.js +0 -240
  132. package/lib/Player/hooks.js +0 -22
  133. package/lib/Player/modules/Drawer/index.js +0 -40
  134. package/lib/Player/modules/PopUp/index.js +0 -23
  135. package/lib/Player/modules/ResizeObserver/index.js +0 -22
  136. package/lib/Player/modules/VideoAgent/VideoAgentMesh.js +0 -456
  137. package/lib/Player/modules/VideoAgent/VideoAgentScene.js +0 -53
  138. package/lib/Player/modules/VideoAgent/index.js +0 -72
  139. package/lib/Player/modules/Wave/index.js +0 -171
  140. package/lib/Player/modules/keyframes/BgMusic/index.js +0 -65
  141. package/lib/Player/modules/keyframes/CameraMovement/index.js +0 -75
  142. package/lib/Player/modules/keyframes/InfoPanel/index.js +0 -170
  143. package/lib/Player/modules/keyframes/ModelVideo/index.js +0 -128
  144. package/lib/Player/modules/keyframes/PanoEffect/index.js +0 -99
  145. package/lib/Player/modules/keyframes/PanoEffect/lineAnime.js +0 -30
  146. package/lib/Player/modules/keyframes/PanoTag/index.js +0 -110
  147. package/lib/Player/modules/keyframes/PanoTextLabel/index.js +0 -122
  148. package/lib/Player/modules/keyframes/Prompter/index.js +0 -56
  149. package/lib/Player/modules/keyframes/UpdateVRPanorama/index.js +0 -98
  150. package/lib/Player/modules/keyframes/VideoEffect/index.js +0 -154
  151. package/lib/Player/playback-types.js +0 -1
  152. package/lib/Player/typings.js +0 -1
  153. package/lib/fivePlugins/CSS3DRenderPlugin/centerPoint.js +0 -4
  154. package/lib/fivePlugins/CSS3DRenderPlugin/createResizeObserver.js +0 -25
  155. package/lib/fivePlugins/CSS3DRenderPlugin/evenNumber.js +0 -4
  156. package/lib/fivePlugins/CSS3DRenderPlugin/index.js +0 -226
  157. package/lib/fivePlugins/CSS3DRenderPlugin/transformPositionToVector3.js +0 -8
  158. package/lib/fivePlugins/CameraMovementPlugin/index.js +0 -245
  159. package/lib/fivePlugins/CameraMovementPlugin/typings.js +0 -15
  160. package/lib/fivePlugins/ModelTVVideoPlugin/index.js +0 -349
  161. package/lib/shared-utils/Audio.js +0 -151
  162. package/lib/shared-utils/AudioLike.js +0 -123
  163. package/lib/shared-utils/Preloader.js +0 -37
  164. package/lib/shared-utils/addResizeListener.js +0 -39
  165. package/lib/shared-utils/animationFrame/BetterTween.js +0 -58
  166. package/lib/shared-utils/animationFrame/index.js +0 -52
  167. package/lib/shared-utils/animationFrame/tween.js +0 -58
  168. package/lib/shared-utils/createTransMatrix.js +0 -12
  169. package/lib/shared-utils/getFileExpandedName.js +0 -6
  170. package/lib/shared-utils/getMediaInfo.js +0 -55
  171. package/lib/shared-utils/setElementDataset.js +0 -16
  172. package/lib/typings/VreoUnit.js +0 -64
  173. package/lib/typings/index.js +0 -1
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export declare function BgMusic(): React.JSX.Element;
1
+ export declare function BgMusic(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../resources/Player/modules/keyframes/BgMusic/index.tsx"],"names":[],"mappings":"AAKA,wBAAgB,OAAO,4CA6CtB"}
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export declare function CameraMovement(): React.JSX.Element;
1
+ export declare function CameraMovement(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../resources/Player/modules/keyframes/CameraMovement/index.tsx"],"names":[],"mappings":"AAMA,wBAAgB,cAAc,4CA8B7B"}
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export declare function InfoPanel(): React.JSX.Element;
1
+ export declare function InfoPanel(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../resources/Player/modules/keyframes/InfoPanel/index.tsx"],"names":[],"mappings":"AAiGA,wBAAgB,SAAS,4CA8ExB"}
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export declare function ModelVideo(): React.JSX.Element;
1
+ export declare function ModelVideo(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../resources/Player/modules/keyframes/ModelVideo/index.tsx"],"names":[],"mappings":"AAOA,wBAAgB,UAAU,4CAqFzB"}
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export declare function PanoEffect(): React.JSX.Element;
1
+ export declare function PanoEffect(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../resources/Player/modules/keyframes/PanoEffect/index.tsx"],"names":[],"mappings":"AASA,wBAAgB,UAAU,4CAyFzB"}
@@ -1,5 +1,6 @@
1
- import * as THREE from 'three';
2
- import { Five } from '@realsee/five';
1
+ import * as THREE from 'three/webgpu';
2
+ import { Five } from '@realsee/five-webgpu';
3
3
  export default function lineAnime(five: Five, startPoint: THREE.Vector3, endPoint: THREE.Vector3): import("../../../../shared-utils/animationFrame/BetterTween").BetterTween<{
4
4
  progress: number;
5
5
  }>;
6
+ //# sourceMappingURL=lineAnime.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"lineAnime.d.ts","sourceRoot":"","sources":["../../../../../resources/Player/modules/keyframes/PanoEffect/lineAnime.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,MAAM,cAAc,CAAA;AAGrC,OAAO,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAG3C,MAAM,CAAC,OAAO,UAAU,SAAS,CAAC,IAAI,EAAE,IAAI,EAAE,UAAU,EAAE,KAAK,CAAC,OAAO,EAAE,QAAQ,EAAE,KAAK,CAAC,OAAO;;GA6B/F"}
@@ -1 +1,2 @@
1
1
  export declare function PanoTag(): null;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../resources/Player/modules/keyframes/PanoTag/index.tsx"],"names":[],"mappings":"AAMA,wBAAgB,OAAO,SAwFtB"}
@@ -1,5 +1,5 @@
1
- import * as React from 'react';
2
1
  /**
3
2
  * 空间文本标签。
4
3
  */
5
- export declare function PanoTextLabel(): React.JSX.Element;
4
+ export declare function PanoTextLabel(): import("react/jsx-runtime").JSX.Element;
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../resources/Player/modules/keyframes/PanoTextLabel/index.tsx"],"names":[],"mappings":"AA+CA;;GAEG;AACH,wBAAgB,aAAa,4CAyE5B"}
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export declare function Prompter(): React.JSX.Element;
1
+ export declare function Prompter(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../resources/Player/modules/keyframes/Prompter/index.tsx"],"names":[],"mappings":"AAMA,wBAAgB,QAAQ,4CAmDvB"}
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export declare function UpdateVRPanorama(): React.JSX.Element;
1
+ export declare function UpdateVRPanorama(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../resources/Player/modules/keyframes/UpdateVRPanorama/index.tsx"],"names":[],"mappings":"AAKA,wBAAgB,gBAAgB,4CAgG/B"}
@@ -1,2 +1,2 @@
1
- import * as React from 'react';
2
- export declare function VideoEffect(): React.JSX.Element;
1
+ export declare function VideoEffect(): import("react/jsx-runtime").JSX.Element;
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../../../resources/Player/modules/keyframes/VideoEffect/index.tsx"],"names":[],"mappings":"AAWA,wBAAgB,WAAW,4CA4G1B"}
@@ -19,3 +19,4 @@ export interface PlaybackSession {
19
19
  finish(): void;
20
20
  }
21
21
  export type MediaOperations = Pick<HTMLMediaElement, 'play' | 'pause' | 'load' | 'src' | 'currentTime' | 'muted' | 'volume' | 'loop'>;
22
+ //# sourceMappingURL=playback-types.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"playback-types.d.ts","sourceRoot":"","sources":["../../resources/Player/playback-types.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,eAAe;IAC9B,gBAAgB,CAAC,OAAO,EAAE;QAAE,KAAK,EAAE,MAAM,CAAC;QAAC,QAAQ,IAAI,IAAI,CAAA;KAAE,GAAG,kBAAkB,CAAA;CACnF;AAED,MAAM,WAAW,kBAAkB;IACjC,KAAK,CAAC,OAAO,EAAE;QAAE,UAAU,EAAE,OAAO,CAAC;QAAC,OAAO,EAAE,OAAO,CAAA;KAAE,GAAG,eAAe,GAAG,IAAI,CAAA;IACjF,MAAM,IAAI,IAAI,CAAA;IACd,OAAO,IAAI,IAAI,CAAA;CAChB;AAED,MAAM,WAAW,eAAe;IAC9B,QAAQ,CAAC,MAAM,EAAE,WAAW,CAAA;IAC5B,QAAQ,CAAC,YAAY,EAAE,eAAe,CAAA;IACtC,IAAI,CAAC,OAAO,EAAE,gBAAgB,GAAG,eAAe,CAAA;IAChD,MAAM,IAAI,IAAI,CAAA;CACf;AAED,MAAM,MAAM,eAAe,GAAG,IAAI,CAChC,gBAAgB,EAChB,MAAM,GAAG,OAAO,GAAG,MAAM,GAAG,KAAK,GAAG,aAAa,GAAG,OAAO,GAAG,QAAQ,GAAG,MAAM,CAChF,CAAA"}
@@ -1,6 +1,6 @@
1
1
  import type { PlaybackManager } from './playback-types';
2
2
  import React, { ReactNode } from 'react';
3
- import { Subscribe, Five } from '@realsee/five';
3
+ import { Subscribe, Five } from '@realsee/five-webgpu';
4
4
  import { VreoKeyframe, VreoKeyframeConfigMap, VreoKeyframeEvent } from '../typings/VreoUnit';
5
5
  import { VideoAgentMeshOptions } from './modules/VideoAgent/VideoAgentMesh';
6
6
  export interface PlayerConfigs {
@@ -60,3 +60,4 @@ export interface CustomVreoKeyframeProps {
60
60
  }>, 'on' | 'once' | 'off'>;
61
61
  five: Five;
62
62
  }
63
+ //# sourceMappingURL=typings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typings.d.ts","sourceRoot":"","sources":["../../resources/Player/typings.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,EAAE,eAAe,EAAE,MAAM,kBAAkB,CAAA;AACvD,OAAO,KAAK,EAAE,EAAE,SAAS,EAAE,MAAM,OAAO,CAAC;AACzC,OAAO,EAAE,SAAS,EAAE,IAAI,EAAE,MAAM,sBAAsB,CAAC;AAEvD,OAAO,EAAE,YAAY,EAAE,qBAAqB,EAAE,iBAAiB,EAAE,MAAM,qBAAqB,CAAA;AAC5F,OAAO,EAAE,qBAAqB,EAAE,MAAM,qCAAqC,CAAC;AAE5E,MAAM,WAAW,aAAa;IAC5B,YAAY,CAAC,EAAE,eAAe,CAAA;IAChC;;OAEG;IACD,UAAU,CAAC,EAAE,OAAO,CAAA;IACpB,SAAS,CAAC,EAAE,OAAO,CAAA;IACnB,WAAW,EAAE,qBAAqB,CAAA;IAClC;;;;OAIG;IACH,MAAM,CAAC,EAAE;QACP,WAAW,CAAC,EAAE,gBAAgB,CAAA;QAC9B,YAAY,CAAC,EAAE,gBAAgB,CAAA;QAC/B,UAAU,CAAC,EAAE,gBAAgB,CAAA;KAC9B,CAAA;IAED,qBAAqB,CAAC,EAAE,qBAAqB,CAAA;IAC7C;;OAEG;IACH,mBAAmB,CAAC,EAAE,SAAS,CAAA;IAC/B,eAAe,CAAC,EAAE,KAAK,CAAC,EAAE,CAAC,uBAAuB,CAAC,EAAE,CAAA;IACrD,YAAY,CAAC,EAAE;QAAE,IAAI,EAAE,MAAM,CAAA;KAAE,CAAA;IAC/B,WAAW,CAAC,EAAE,OAAO,CAAA;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;IACjB,UAAU,CAAC,EAAE,UAAU,CAAA;IACvB;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAA;IACzB,aAAa,CAAC,EAAE,MAAM,GAAG,CAAA;IACzB,WAAW,CAAC,EAAE,MAAM,GAAG,CAAA;IACvB;;;;;OAKG;IACH,oBAAoB,CAAC,EAAE,OAAO,CAAA;CAC/B;AAED,MAAM,MAAM,OAAO,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,GAAG,IAAI,CAAA;AAE5C,MAAM,MAAM,cAAc,GAAG,QAAQ,GAAG,QAAQ,GAAG,OAAO,GAAG,MAAM,GAAG,QAAQ,CAAA;AAE9E,MAAM,WAAW,UAAU;IACzB,SAAS,CAAC,EAAE,MAAM,GAAG,OAAO,CAAA;CAC7B;AAED,MAAM,MAAM,aAAa,GAAG,IAAI,CAAC,SAAS,CAAC,iBAAiB,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,KAAK,CAAC,CAAA;AAErF,MAAM,WAAW,uBAAuB;IACtC,eAAe,IAAI,eAAe,GAAG,SAAS,CAAA;IAC9C,SAAS,EAAE,IAAI,CAAC,SAAS,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,CAAC,IAAI,EAAE,YAAY,EAAE,WAAW,EAAE,MAAM,KAAK,GAAG,CAAA;KAAC,CAAC,EAAE,IAAI,GAAG,MAAM,GAAG,KAAK,CAAC,CAAA;IACpH,IAAI,EAAE,IAAI,CAAA;CACX"}
@@ -0,0 +1,93 @@
1
+ import { Five as w } from "@realsee/five-webgpu";
2
+ var y = /* @__PURE__ */ ((e) => (e.Move = "Move", e.Rotate = "Rotate", e))(y || {}), M = /* @__PURE__ */ ((e) => (e.Clockwise = "Clockwise", e.Anticlockwise = "Anticlockwise", e.Loop = "Loop", e))(M || {});
3
+ const S = Math.PI, x = S * 2;
4
+ let C = !1;
5
+ function p(e, i, f) {
6
+ return e === i ? e : e + (i - e) * f;
7
+ }
8
+ function h(e, i, f, o) {
9
+ const d = f === M.Clockwise, n = (d ? e - i : i - e) % x, a = n < 0 ? n + x : n, l = d ? -a : a;
10
+ return (e + l * o) % x;
11
+ }
12
+ const L = (e) => ({
13
+ move: (o, d, t = { preload: !0 }) => new Promise(async (n, a) => {
14
+ var u;
15
+ if (C = !0, t.asyncStartCallback && t.asyncStartCallback(), e.panoIndex === void 0)
16
+ return a(!1);
17
+ if (o.mode && o.mode !== e.currentMode)
18
+ return await e.changeMode(o.mode, o, d), n(!0);
19
+ if (o.mode === w.Mode.Floorplan || (t.preload && o.panoIndex !== void 0 && o.panoIndex !== e.panoIndex && await e.preloadPano(o.panoIndex), (u = t.asyncEndCallback) == null || u.call(t), o.panoIndex === void 0 && o.fov === void 0 && o.latitude === void 0 && o.longitude === void 0))
20
+ return n(!0);
21
+ const l = o.panoIndex !== void 0 ? o.panoIndex : e.panoIndex;
22
+ if (l !== void 0) {
23
+ const m = performance.now();
24
+ await e.ready();
25
+ const s = Object.assign({}, o, {
26
+ duration: d - (performance.now() - m),
27
+ // 移动耗时
28
+ moveEndCallback: () => n(!0),
29
+ // 移动结束
30
+ moveCancelCallback: () => {
31
+ n(!0);
32
+ },
33
+ // 移动开始
34
+ effect: o.transEffect || "fly"
35
+ });
36
+ await e.moveToPano(
37
+ l,
38
+ s
39
+ );
40
+ } else
41
+ a(!1);
42
+ }),
43
+ rotate: async (o, d, t = {}) => {
44
+ var P, k;
45
+ C = !1, (P = t.asyncStartCallback) == null || P.call(t), o.mode && e.currentMode !== o.mode && await e.changeMode(o.mode, o.mode === w.Mode.Panorama ? { latitude: 0 } : void 0), o.mode === w.Mode.Panorama && e.currentMode === w.Mode.Panorama && o.panoIndex !== void 0 && o.panoIndex !== e.panoIndex && (t.preload && await e.preloadPano(o.panoIndex), await new Promise((c, r) => {
46
+ e.moveToPano(o.panoIndex, {
47
+ moveEndCallback: () => c(!0),
48
+ // 移动结束
49
+ moveCancelCallback: () => r(!1),
50
+ // 移动开始
51
+ effect: "fade"
52
+ });
53
+ })), await e.ready(), (k = t.asyncEndCallback) == null || k.call(t);
54
+ const n = e.getCurrentState(), a = o;
55
+ let l = !1;
56
+ const u = performance.now();
57
+ let m = d;
58
+ o.rotation === M.Loop && (m = o.rotateSpeed ? Math.ceil(Math.abs(a.longitude - n.longitude) / o.rotateSpeed * 1e3) : d, m = Math.min(d, m));
59
+ const s = () => {
60
+ if (l || C) {
61
+ e.off("renderFrame", s);
62
+ return;
63
+ }
64
+ let c = {};
65
+ if (o.rotation !== M.Loop) {
66
+ const r = (performance.now() - u) / d;
67
+ c = {
68
+ fov: p(n.fov, a.fov, r),
69
+ latitude: p(n.latitude, a.latitude, r),
70
+ longitude: h(n.longitude, a.longitude, o.rotation, r)
71
+ };
72
+ } else {
73
+ const r = (performance.now() - u) / m, b = Math.floor(r), v = r - b, I = b % 2 === 1 ? 1 - v : v;
74
+ c = {
75
+ fov: p(n.fov, a.fov, I),
76
+ latitude: p(n.latitude, a.latitude, I),
77
+ longitude: p(n.longitude, a.longitude, I)
78
+ };
79
+ }
80
+ e.setState(c, !0);
81
+ };
82
+ return e.on("renderFrame", s), await new Promise((c) => {
83
+ setTimeout(() => {
84
+ l = !0, e.off("renderFrame", s), c(!0);
85
+ }, d);
86
+ });
87
+ }
88
+ });
89
+ export {
90
+ L as C,
91
+ y as a
92
+ };
93
+ //# sourceMappingURL=index-BgPSzRSs.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-BgPSzRSs.js","sources":["../../resources/fivePlugins/CameraMovementPlugin/typings.ts","../../resources/fivePlugins/CameraMovementPlugin/index.ts"],"sourcesContent":["/* eslint-disable prettier/prettier */\nimport { Mode, MovePanoOptions, Pose } from '@realsee/five-webgpu'\n\n// eslint-disable-next-line @typescript-eslint/no-empty-interface\nexport interface CameraMovementPluginParameterType { }\n\nexport interface CameraMovementPluginExportType {\n /**\n * 运镜:移动\n * @param moveArgs\n * @param duration\n * @param opts\n */\n move(moveArgs: Partial<MoveArgs>, duration: number, opts?: MoveOpts): Promise<boolean>\n /**\n * 运镜:旋转\n * @param args\n * @param duration\n * @param opts\n */\n rotate(args: RotateArgs, duration: number, opts?: RotateOpts): Promise<boolean>\n}\n\nexport enum CameraMovementEffect {\n Move = 'Move',\n Rotate = 'Rotate',\n}\nexport enum Rotation {\n Clockwise = 'Clockwise',\n Anticlockwise = 'Anticlockwise',\n Loop = 'Loop',\n}\n\nexport interface CameraMovementOptsCallback {\n asyncStartCallback?: () => void\n asyncEndCallback?: () => void\n}\n\nexport type MoveArgs = {\n mode: Mode\n panoIndex: number\n transEffect?: \"fly\" | \"fade\" | \"instant\"\n} & Pose\n\nexport type MoveOpts = {\n preload?: boolean\n} & CameraMovementOptsCallback\n\nexport type RotateArgs = {\n mode?: Mode\n panoIndex: number\n loop: boolean\n rotateSpeed: number\n rotation: Rotation\n} & Pose\n\nexport type RotateOpts = {\n preload?: boolean\n} & CameraMovementOptsCallback\n","import { Five, MovePanoOptions } from '@realsee/five-webgpu'\nimport type { FivePlugin } from '@realsee/five-webgpu'\n\nimport {\n CameraMovementPluginParameterType,\n CameraMovementPluginExportType,\n MoveArgs,\n MoveOpts,\n RotateArgs,\n RotateOpts,\n Rotation,\n} from './typings'\n\nconst PI = Math.PI\nconst PI_2 = PI * 2\nlet moving = false // five 6 神秘bug, move 的时候不能 setState\n\nfunction progressNumber(from: number, to: number, pst: number) {\n if (from === to) return from\n return from + (to - from) * pst\n}\n\nfunction progressLongitude(fromLongitude: number, toLongitude: number, rotation: Rotation, progress: number): number {\n const clockwise = rotation === Rotation.Clockwise\n const delta = clockwise ? fromLongitude - toLongitude : toLongitude - fromLongitude\n const deltaMod = delta % PI_2\n const deltaMod2 = deltaMod < 0 ? deltaMod + PI_2 : deltaMod\n const deltaMod3 = clockwise ? -deltaMod2 : deltaMod2\n const progressLongitude = fromLongitude + deltaMod3 * progress\n return progressLongitude % PI_2\n}\n\n/**\n * **运镜插件** 模拟类似于电影运镜效果。\n */\nexport const CameraMovementPlugin: FivePlugin<CameraMovementPluginParameterType, CameraMovementPluginExportType> = (\n five: Five,\n) => {\n\n const move = (args: Partial<MoveArgs>, duration: number, opts: MoveOpts = { preload: true }) => {\n return new Promise<boolean>(async (resolve, reject) => {\n moving = true\n if (opts.asyncStartCallback) {\n opts.asyncStartCallback()\n }\n\n if (five.panoIndex === undefined) {\n return reject(false)\n }\n\n if (args.mode && args.mode !== five.currentMode) {\n await five.changeMode(args.mode, args, duration)\n return resolve(true)\n }\n\n // 模型态不能 move\n if (args.mode === Five.Mode.Floorplan) {\n return resolve(true)\n }\n\n if (opts.preload && args.panoIndex !== undefined && args.panoIndex !== five.panoIndex) {\n await five.preloadPano(args.panoIndex)\n }\n\n opts.asyncEndCallback?.()\n\n if (\n args.panoIndex === undefined &&\n args.fov === undefined &&\n args.latitude === undefined &&\n args.longitude === undefined\n ) {\n return resolve(true)\n }\n\n\n const panoIndex = args.panoIndex !== undefined ? args.panoIndex : five.panoIndex\n\n if (panoIndex !== undefined) {\n const start = performance.now()\n await five.ready()\n const movePanoOptions: MovePanoOptions = Object.assign({}, args, {\n duration: duration - (performance.now() - start), // 移动耗时\n moveEndCallback: () => resolve(true), // 移动结束\n moveCancelCallback: () => {\n resolve(true)\n }, // 移动开始\n effect: args.transEffect || 'fly',\n })\n await five.moveToPano(\n panoIndex,\n movePanoOptions,\n )\n } else {\n reject(false)\n }\n })\n }\n\n const rotate = async (args: RotateArgs, duration: number, opts: RotateOpts = {}) => {\n moving = false\n opts.asyncStartCallback?.()\n\n // 先切换模型再出旋转效果\n if (args.mode && five.currentMode !== args.mode) {\n await five.changeMode(args.mode, args.mode === Five.Mode.Panorama ? {latitude: 0} : undefined)\n }\n\n // 全景状态下,需要点位对齐\n if (args.mode === Five.Mode.Panorama &&\n five.currentMode === Five.Mode.Panorama &&\n args.panoIndex !== undefined &&\n args.panoIndex !== five.panoIndex) {\n if (opts.preload) await five.preloadPano(args.panoIndex)\n await new Promise((resolve, reject) => {\n five.moveToPano(args.panoIndex, {\n moveEndCallback: () => resolve(true), // 移动结束\n moveCancelCallback: () => reject(false), // 移动开始\n effect: 'fade',\n })\n })\n }\n\n await five.ready()\n\n opts.asyncEndCallback?.()\n\n // 计算to\n const from = five.getCurrentState()\n const to = (() => {\n return args\n })()\n\n let timeEnd = false\n\n // 开始时间\n const start = performance.now()\n\n let animeDuration = duration\n\n if (args.rotation === Rotation.Loop) {\n animeDuration = args.rotateSpeed\n ? Math.ceil((Math.abs(to.longitude - from.longitude) / args.rotateSpeed) * 1000)\n : duration\n animeDuration = Math.min(duration, animeDuration)\n }\n\n const onFiveRenderFrame = () => {\n if (timeEnd || moving) {\n five.off('renderFrame', onFiveRenderFrame)\n return\n }\n \n let targetState = {}\n \n if (args.rotation !== Rotation.Loop) {\n const progress = (performance.now() - start) / duration\n targetState = {\n fov: progressNumber(from.fov, to.fov, progress),\n latitude: progressNumber(from.latitude, to.latitude, progress),\n longitude: progressLongitude(from.longitude, to.longitude, args.rotation, progress)\n }\n } else {\n const progress = (performance.now() - start) / animeDuration // 可能大于1\n const times = Math.floor(progress)\n const progress2 = progress - times // 一定小于1\n const isNegative = times % 2 === 1 // 是否为反向旋转, 0: 正, 1: 反, 2: 正, 3: 反 以此类推\n const resultProgress = isNegative ? 1 - progress2 : progress2\n targetState = {\n fov: progressNumber(from.fov, to.fov, resultProgress),\n latitude: progressNumber(from.latitude, to.latitude, resultProgress),\n longitude: progressNumber(from.longitude, to.longitude, resultProgress)\n }\n }\n\n five.setState(targetState, true)\n }\n \n five.on('renderFrame', onFiveRenderFrame)\n\n return await new Promise<boolean>((resolve) => {\n setTimeout(() => {\n timeEnd = true\n five.off('renderFrame', onFiveRenderFrame)\n // 总时间到了之后强制结束,同时也是 Loop 模式的结束方式\n resolve(true)\n }, duration)\n })\n }\n\n return {\n move,\n rotate,\n }\n}\n"],"names":["CameraMovementEffect","Rotation","PI","PI_2","moving","progressNumber","from","to","pst","progressLongitude","fromLongitude","toLongitude","rotation","progress","clockwise","deltaMod","deltaMod2","deltaMod3","CameraMovementPlugin","five","args","duration","opts","resolve","reject","Five","_a","panoIndex","start","movePanoOptions","_b","timeEnd","animeDuration","onFiveRenderFrame","targetState","times","progress2","resultProgress"],"mappings":";AAuBO,IAAKA,sBAAAA,OACVA,EAAA,OAAO,QACPA,EAAA,SAAS,UAFCA,IAAAA,KAAA,CAAA,CAAA,GAIAC,sBAAAA,OACVA,EAAA,YAAY,aACZA,EAAA,gBAAgB,iBAChBA,EAAA,OAAO,QAHGA,IAAAA,KAAA,CAAA,CAAA;ACdZ,MAAMC,IAAK,KAAK,IACVC,IAAOD,IAAK;AAClB,IAAIE,IAAS;AAEb,SAASC,EAAeC,GAAcC,GAAYC,GAAa;AAC7D,SAAIF,MAASC,IAAWD,IACjBA,KAAQC,IAAKD,KAAQE;AAC9B;AAEA,SAASC,EAAkBC,GAAuBC,GAAqBC,GAAoBC,GAA0B;AACnH,QAAMC,IAAYF,MAAaX,EAAS,WAElCc,KADQD,IAAYJ,IAAgBC,IAAcA,IAAcD,KAC7CP,GACnBa,IAAYD,IAAW,IAAIA,IAAWZ,IAAOY,GAC7CE,IAAYH,IAAY,CAACE,IAAYA;AAE3C,UAD0BN,IAAgBO,IAAYJ,KAC3BV;AAC7B;AAKO,MAAMe,IAAsG,CACjHC,OA0JO;AAAA,EACL,MAxJW,CAACC,GAAyBC,GAAkBC,IAAiB,EAAE,SAAS,SAC5E,IAAI,QAAiB,OAAOC,GAASC,MAAW;;AAMrD,QALApB,IAAS,IACLkB,EAAK,sBACPA,EAAK,mBAAA,GAGHH,EAAK,cAAc;AACrB,aAAOK,EAAO,EAAK;AAGrB,QAAIJ,EAAK,QAAQA,EAAK,SAASD,EAAK;AAClC,mBAAMA,EAAK,WAAWC,EAAK,MAAMA,GAAMC,CAAQ,GACxCE,EAAQ,EAAI;AAcrB,QAVIH,EAAK,SAASK,EAAK,KAAK,cAIxBH,EAAK,WAAWF,EAAK,cAAc,UAAaA,EAAK,cAAcD,EAAK,aAC1E,MAAMA,EAAK,YAAYC,EAAK,SAAS,IAGvCM,IAAAJ,EAAK,qBAAL,QAAAI,EAAA,KAAAJ,IAGEF,EAAK,cAAc,UACnBA,EAAK,QAAQ,UACbA,EAAK,aAAa,UAClBA,EAAK,cAAc;AAEnB,aAAOG,EAAQ,EAAI;AAIrB,UAAMI,IAAYP,EAAK,cAAc,SAAYA,EAAK,YAAYD,EAAK;AAEvE,QAAIQ,MAAc,QAAW;AAC3B,YAAMC,IAAQ,YAAY,IAAA;AAC1B,YAAMT,EAAK,MAAA;AACX,YAAMU,IAAmC,OAAO,OAAO,CAAA,GAAIT,GAAM;AAAA,QAC/D,UAAUC,KAAY,YAAY,IAAA,IAAQO;AAAA;AAAA,QAC1C,iBAAiB,MAAML,EAAQ,EAAI;AAAA;AAAA,QACnC,oBAAoB,MAAM;AACxB,UAAAA,EAAQ,EAAI;AAAA,QACd;AAAA;AAAA,QACA,QAAQH,EAAK,eAAe;AAAA,MAAA,CAC7B;AACD,YAAMD,EAAK;AAAA,QACTQ;AAAA,QACAE;AAAA,MAAA;AAAA,IAEJ;AACE,MAAAL,EAAO,EAAK;AAAA,EAEhB,CAAC;AAAA,EAgGD,QA7Fa,OAAOJ,GAAkBC,GAAkBC,IAAmB,CAAA,MAAO;;AAClF,IAAAlB,IAAS,KACTsB,IAAAJ,EAAK,uBAAL,QAAAI,EAAA,KAAAJ,IAGIF,EAAK,QAAQD,EAAK,gBAAgBC,EAAK,QACzC,MAAMD,EAAK,WAAWC,EAAK,MAAMA,EAAK,SAASK,EAAK,KAAK,WAAW,EAAC,UAAU,EAAA,IAAK,MAAS,GAI3FL,EAAK,SAASK,EAAK,KAAK,YAC1BN,EAAK,gBAAgBM,EAAK,KAAK,YAC/BL,EAAK,cAAc,UACnBA,EAAK,cAAcD,EAAK,cACpBG,EAAK,WAAS,MAAMH,EAAK,YAAYC,EAAK,SAAS,GACvD,MAAM,IAAI,QAAQ,CAACG,GAASC,MAAW;AACrC,MAAAL,EAAK,WAAWC,EAAK,WAAW;AAAA,QAC9B,iBAAiB,MAAMG,EAAQ,EAAI;AAAA;AAAA,QACnC,oBAAoB,MAAMC,EAAO,EAAK;AAAA;AAAA,QACtC,QAAQ;AAAA,MAAA,CACT;AAAA,IACH,CAAC,IAGH,MAAML,EAAK,MAAA,IAEXW,IAAAR,EAAK,qBAAL,QAAAQ,EAAA,KAAAR;AAGA,UAAMhB,IAAOa,EAAK,gBAAA,GACZZ,IACGa;AAGT,QAAIW,IAAU;AAGd,UAAMH,IAAQ,YAAY,IAAA;AAE1B,QAAII,IAAgBX;AAEpB,IAAID,EAAK,aAAanB,EAAS,SAC7B+B,IAAgBZ,EAAK,cACjB,KAAK,KAAM,KAAK,IAAIb,EAAG,YAAYD,EAAK,SAAS,IAAIc,EAAK,cAAe,GAAI,IAC7EC,GACJW,IAAgB,KAAK,IAAIX,GAAUW,CAAa;AAGlD,UAAMC,IAAoB,MAAM;AAC9B,UAAIF,KAAW3B,GAAQ;AACrB,QAAAe,EAAK,IAAI,eAAec,CAAiB;AACzC;AAAA,MACF;AAEA,UAAIC,IAAc,CAAA;AAElB,UAAId,EAAK,aAAanB,EAAS,MAAM;AACnC,cAAMY,KAAY,YAAY,IAAA,IAAQe,KAASP;AAC/C,QAAAa,IAAc;AAAA,UACZ,KAAK7B,EAAeC,EAAK,KAAKC,EAAG,KAAKM,CAAQ;AAAA,UAC9C,UAAUR,EAAeC,EAAK,UAAUC,EAAG,UAAUM,CAAQ;AAAA,UAC7D,WAAWJ,EAAkBH,EAAK,WAAWC,EAAG,WAAWa,EAAK,UAAUP,CAAQ;AAAA,QAAA;AAAA,MAEtF,OAAO;AACL,cAAMA,KAAY,YAAY,IAAA,IAAQe,KAASI,GACzCG,IAAQ,KAAK,MAAMtB,CAAQ,GAC3BuB,IAAYvB,IAAWsB,GAEvBE,IADaF,IAAQ,MAAM,IACG,IAAIC,IAAYA;AACpD,QAAAF,IAAc;AAAA,UACZ,KAAK7B,EAAeC,EAAK,KAAKC,EAAG,KAAK8B,CAAc;AAAA,UACpD,UAAUhC,EAAeC,EAAK,UAAUC,EAAG,UAAU8B,CAAc;AAAA,UACnE,WAAWhC,EAAeC,EAAK,WAAWC,EAAG,WAAW8B,CAAc;AAAA,QAAA;AAAA,MAE1E;AAEA,MAAAlB,EAAK,SAASe,GAAa,EAAI;AAAA,IACjC;AAEA,WAAAf,EAAK,GAAG,eAAec,CAAiB,GAEjC,MAAM,IAAI,QAAiB,CAACV,MAAY;AAC7C,iBAAW,MAAM;AACf,QAAAQ,IAAU,IACVZ,EAAK,IAAI,eAAec,CAAiB,GAEzCV,EAAQ,EAAI;AAAA,MACd,GAAGF,CAAQ;AAAA,IACb,CAAC;AAAA,EACH;AAIE;"}
@@ -0,0 +1,51 @@
1
+ var l = Object.defineProperty;
2
+ var f = (n, t, e) => t in n ? l(n, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : n[t] = e;
3
+ var a = (n, t, e) => f(n, typeof t != "symbol" ? t + "" : t, e);
4
+ const r = globalThis;
5
+ var m;
6
+ const d = ((m = r.requestAnimationFrame) == null ? void 0 : m.bind(r)) ?? ((n) => setTimeout(() => n(performance.now()), 16));
7
+ var c;
8
+ const p = ((c = r.cancelAnimationFrame) == null ? void 0 : c.bind(r)) ?? ((n) => clearTimeout(n));
9
+ function g(n, t = 60) {
10
+ let e = -1, s = 0, o = -1;
11
+ const h = 1e3 / t;
12
+ function u(i) {
13
+ o === -1 && (o = i), e = d(u), !(i - s < h) && (s = i, n == null || n(i - o));
14
+ }
15
+ return e = d(u), () => p(e);
16
+ }
17
+ class A {
18
+ constructor() {
19
+ a(this, "keyframes", []);
20
+ a(this, "consumed", /* @__PURE__ */ new Set());
21
+ }
22
+ load(t) {
23
+ this.keyframes = t, this.consumed = new Set(t.filter((e) => e.parsed));
24
+ }
25
+ pendingAt(t) {
26
+ return this.keyframes.filter((e) => this.consumed.has(e) || e.start > t || e.end < t ? !1 : e.type === "BgMusic" || e.type === "PanoTextLabel" || e.type === "Prompter" || e.type === "PanoTag" || t - e.start <= 100);
27
+ }
28
+ take(t) {
29
+ const e = this.pendingAt(t);
30
+ return e.forEach((s) => this.consumed.add(s)), e;
31
+ }
32
+ seek(t) {
33
+ this.consumed = new Set(this.keyframes.filter((e) => e.end < t));
34
+ }
35
+ reset(t) {
36
+ if (t === void 0) {
37
+ this.consumed.clear();
38
+ return;
39
+ }
40
+ for (const e of this.keyframes)
41
+ e.type === t && this.consumed.delete(e);
42
+ }
43
+ clear() {
44
+ this.keyframes = [], this.consumed.clear();
45
+ }
46
+ }
47
+ export {
48
+ A as T,
49
+ g as r
50
+ };
51
+ //# sourceMappingURL=index-CunyJn6H.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index-CunyJn6H.js","sources":["../../resources/shared-utils/animationFrame/index.ts","../../resources/timeline/index.ts"],"sourcesContent":["const scope = globalThis as typeof globalThis & {\n requestAnimationFrame?: (callback: FrameRequestCallback) => number\n cancelAnimationFrame?: (handle: number) => void\n}\n\nconst requestFrame = scope.requestAnimationFrame?.bind(scope)\n ?? ((callback: FrameRequestCallback) => setTimeout(() => callback(performance.now()), 16) as unknown as number)\nconst cancelFrame = scope.cancelAnimationFrame?.bind(scope)\n ?? ((handle: number) => clearTimeout(handle))\n\nexport default requestFrame\n\nexport function nextFrame(fn: FrameRequestCallback, delay = 0) {\n if (delay <= 0) requestFrame(fn)\n else requestFrame(() => nextFrame(fn, delay - 1))\n}\n\nexport function requestAnimationFrameInterval(callback?: (time: number) => unknown, frame = 60) {\n let handle = -1\n let previousTime = 0\n let startTime = -1\n const minimumDelta = 1000 / frame\n function loop(time: number) {\n if (startTime === -1) startTime = time\n handle = requestFrame(loop)\n if (time - previousTime < minimumDelta) return\n previousTime = time\n callback?.(time - startTime)\n }\n handle = requestFrame(loop)\n return () => cancelFrame(handle)\n}\n\nexport function getFrameTime() {\n const start = Date.now()\n return new Promise<number>(resolve => requestFrame(() => resolve(Date.now() - start)))\n}\n","export interface TimelineKeyframe {\n type: string\n start: number\n end: number\n parsed?: boolean\n}\n\n/** Deterministic keyframe selection. Runtime state never mutates timeline input. */\nexport class Timeline<Keyframe extends TimelineKeyframe = TimelineKeyframe> {\n private keyframes: readonly Keyframe[] = []\n private consumed = new Set<Keyframe>()\n\n load(keyframes: readonly Keyframe[]) {\n this.keyframes = keyframes\n this.consumed = new Set(keyframes.filter(keyframe => keyframe.parsed))\n }\n\n pendingAt(currentTime: number) {\n return this.keyframes.filter(keyframe => {\n if (this.consumed.has(keyframe)) return false\n if (keyframe.start > currentTime || keyframe.end < currentTime) return false\n return keyframe.type === 'BgMusic' ||\n keyframe.type === 'PanoTextLabel' || keyframe.type === 'Prompter' || keyframe.type === 'PanoTag' ||\n currentTime - keyframe.start <= 100\n })\n }\n\n take(currentTime: number) {\n const pending = this.pendingAt(currentTime)\n pending.forEach(keyframe => this.consumed.add(keyframe))\n return pending\n }\n\n seek(currentTime: number) {\n this.consumed = new Set(this.keyframes.filter(keyframe => keyframe.end < currentTime))\n }\n\n reset(type?: Keyframe['type']) {\n if (type === undefined) {\n this.consumed.clear()\n return\n }\n for (const keyframe of this.keyframes) {\n if (keyframe.type === type) this.consumed.delete(keyframe)\n }\n }\n\n clear() {\n this.keyframes = []\n this.consumed.clear()\n }\n}\n"],"names":["scope","_a","requestFrame","callback","cancelFrame","handle","requestAnimationFrameInterval","frame","previousTime","startTime","minimumDelta","loop","time","Timeline","__publicField","keyframes","keyframe","currentTime","pending","type"],"mappings":";;;AAAA,MAAMA,IAAQ;AAAd,IAAAC;AAKA,MAAMC,MAAeD,IAAAD,EAAM,0BAAN,gBAAAC,EAA6B,KAAKD,QACjD,CAACG,MAAmC,WAAW,MAAMA,EAAS,YAAY,IAAA,CAAK,GAAG,EAAE;AAN1F,IAAAF;AAOA,MAAMG,MAAcH,IAAAD,EAAM,yBAAN,gBAAAC,EAA4B,KAAKD,QAC/C,CAACK,MAAmB,aAAaA,CAAM;AAStC,SAASC,EAA8BH,GAAsCI,IAAQ,IAAI;AAC9F,MAAIF,IAAS,IACTG,IAAe,GACfC,IAAY;AAChB,QAAMC,IAAe,MAAOH;AAC5B,WAASI,EAAKC,GAAc;AAG1B,IAFIH,MAAc,OAAIA,IAAYG,IAClCP,IAASH,EAAaS,CAAI,GACtB,EAAAC,IAAOJ,IAAeE,OAC1BF,IAAeI,GACfT,KAAA,QAAAA,EAAWS,IAAOH;AAAA,EACpB;AACA,SAAAJ,IAASH,EAAaS,CAAI,GACnB,MAAMP,EAAYC,CAAM;AACjC;ACvBO,MAAMQ,EAA+D;AAAA,EAArE;AACG,IAAAC,EAAA,mBAAiC,CAAA;AACjC,IAAAA,EAAA,sCAAe,IAAA;AAAA;AAAA,EAEvB,KAAKC,GAAgC;AACnC,SAAK,YAAYA,GACjB,KAAK,WAAW,IAAI,IAAIA,EAAU,OAAO,CAAAC,MAAYA,EAAS,MAAM,CAAC;AAAA,EACvE;AAAA,EAEA,UAAUC,GAAqB;AAC7B,WAAO,KAAK,UAAU,OAAO,CAAAD,MACvB,KAAK,SAAS,IAAIA,CAAQ,KAC1BA,EAAS,QAAQC,KAAeD,EAAS,MAAMC,IAAoB,KAChED,EAAS,SAAS,aACvBA,EAAS,SAAS,mBAAmBA,EAAS,SAAS,cAAcA,EAAS,SAAS,aACvFC,IAAcD,EAAS,SAAS,GACnC;AAAA,EACH;AAAA,EAEA,KAAKC,GAAqB;AACxB,UAAMC,IAAU,KAAK,UAAUD,CAAW;AAC1C,WAAAC,EAAQ,QAAQ,CAAAF,MAAY,KAAK,SAAS,IAAIA,CAAQ,CAAC,GAChDE;AAAA,EACT;AAAA,EAEA,KAAKD,GAAqB;AACxB,SAAK,WAAW,IAAI,IAAI,KAAK,UAAU,OAAO,CAAAD,MAAYA,EAAS,MAAMC,CAAW,CAAC;AAAA,EACvF;AAAA,EAEA,MAAME,GAAyB;AAC7B,QAAIA,MAAS,QAAW;AACtB,WAAK,SAAS,MAAA;AACd;AAAA,IACF;AACA,eAAWH,KAAY,KAAK;AAC1B,MAAIA,EAAS,SAASG,KAAM,KAAK,SAAS,OAAOH,CAAQ;AAAA,EAE7D;AAAA,EAEA,QAAQ;AACN,SAAK,YAAY,CAAA,GACjB,KAAK,SAAS,MAAA;AAAA,EAChB;AACF;"}
@@ -1,2 +1,3 @@
1
- import { Vector3 } from 'three';
1
+ import { Vector3 } from 'three/webgpu';
2
2
  export default function centerPoint(point1: Vector3, point2: Vector3): Vector3;
3
+ //# sourceMappingURL=centerPoint.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"centerPoint.d.ts","sourceRoot":"","sources":["../../../resources/fivePlugins/CSS3DRenderPlugin/centerPoint.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,MAAM,CAAC,OAAO,UAAU,WAAW,CAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAE,OAAO,GAAG,OAAO,CAE7E"}
@@ -1,7 +1,6 @@
1
- /**
2
- * @description: 简陋的 ResizeObserver polyfill
3
- */
4
- export default function createResizeObserver(func: () => any, element?: HTMLElement): {
5
- observe: () => void;
6
- unobserve: () => void;
1
+ export default function createResizeObserver(callback: () => void, element?: HTMLElement): {
2
+ observe(): void;
3
+ unobserve(): void;
4
+ disconnect(): void;
7
5
  };
6
+ //# sourceMappingURL=createResizeObserver.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"createResizeObserver.d.ts","sourceRoot":"","sources":["../../../resources/fivePlugins/CSS3DRenderPlugin/createResizeObserver.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,oBAAoB,CAAC,QAAQ,EAAE,MAAM,IAAI,EAAE,OAAO,CAAC,EAAE,WAAW;;;;EAuCvF"}
@@ -1,3 +1,4 @@
1
1
  export default function evenNumber(num: number, config?: {
2
2
  smaller?: boolean;
3
3
  }): number;
4
+ //# sourceMappingURL=evenNumber.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"evenNumber.d.ts","sourceRoot":"","sources":["../../../resources/fivePlugins/CSS3DRenderPlugin/evenNumber.ts"],"names":[],"mappings":"AAAA,MAAM,CAAC,OAAO,UAAU,UAAU,CAAC,GAAG,EAAE,MAAM,EAAE,MAAM,CAAC,EAAE;IAAE,OAAO,CAAC,EAAE,OAAO,CAAA;CAAE,GAAG,MAAM,CAGtF"}
@@ -1,9 +1,6 @@
1
- import { FivePlugin } from '@realsee/five';
2
- import { Vector3 } from 'three';
3
- import { CSS3DObject } from 'three/examples/jsm/renderers/CSS3DRenderer';
4
- /**
5
- * 三维向量
6
- */
1
+ import { FivePlugin } from '@realsee/five-webgpu';
2
+ import { Vector3 } from 'three/webgpu';
3
+ import { CSS3DObject } from 'three/addons/renderers/CSS3DRenderer.js';
7
4
  export interface Vector3Position {
8
5
  x: number;
9
6
  y: number;
@@ -11,13 +8,6 @@ export interface Vector3Position {
11
8
  }
12
9
  export type CSS3DRenderPluginParameterType = undefined;
13
10
  export interface CSS3DRenderPluginExportType {
14
- /**
15
- * 根据传入的四个点位创建一个3d dom容器,可以通过ReactDom.render()的方式将react组件放到容器中
16
- *
17
- * @param points - 矩形四个点坐标
18
- * @param config - 配置项,包含ratio(像素比例)、dpr(设备像素比)、container(容器)、autoRender(自动渲染)、mode(渲染模式)等
19
- * @returns 返回包含容器、销毁函数、CSS3D对象和可选渲染函数的对象
20
- */
21
11
  create3DDomContainer: (points: Vector3[] | Vector3Position[], config?: {
22
12
  ratio?: number;
23
13
  dpr?: number;
@@ -35,16 +25,9 @@ export interface CSS3DRenderPluginExportType {
35
25
  css3DObject: CSS3DObject;
36
26
  render?: () => void;
37
27
  } | void;
38
- /**
39
- * 销毁所有的渲染内容
40
- */
41
28
  disposeAll: () => void;
42
29
  }
43
- /**
44
- * **CSS3DRenderPlugin** 提供矩形区域(三维空间四个坐标点),你可以在此矩形区域中渲染 DOM 内容。
45
- * 实现原理参考[CSS3DRenderer](https://threejs.org/docs/index.html?q=CSS3D#examples/en/renderers/CSS3DRenderer)。
46
- *
47
- * @returns
48
- */
30
+ /** Renders DOM overlays in a Five scene. One renderer is shared by each front/behind layer. */
49
31
  export declare const CSS3DRenderPlugin: FivePlugin<CSS3DRenderPluginParameterType, CSS3DRenderPluginExportType>;
50
32
  export default CSS3DRenderPlugin;
33
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../resources/fivePlugins/CSS3DRenderPlugin/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEjD,OAAO,EAAS,OAAO,EAAE,MAAM,cAAc,CAAA;AAC7C,OAAO,EAAE,WAAW,EAAiB,MAAM,yCAAyC,CAAA;AAMpF,MAAM,WAAW,eAAe;IAC9B,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;IACT,CAAC,EAAE,MAAM,CAAA;CACV;AAED,MAAM,MAAM,8BAA8B,GAAG,SAAS,CAAA;AACtD,MAAM,WAAW,2BAA2B;IAC1C,oBAAoB,EAAE,CACpB,MAAM,EAAE,OAAO,EAAE,GAAG,eAAe,EAAE,EACrC,MAAM,CAAC,EAAE;QAAE,KAAK,CAAC,EAAE,MAAM,CAAC;QAAC,GAAG,CAAC,EAAE,MAAM,CAAC;QAAC,UAAU,CAAC,EAAE,OAAO,CAAC;QAAC,SAAS,CAAC,EAAE,WAAW,CAAC;QAAC,CAAC,GAAG,EAAE,MAAM,GAAG,GAAG,CAAA;KAAE,GAAG,CAC3G;QAAE,IAAI,CAAC,EAAE,OAAO,CAAA;KAAE,GAClB;QAAE,IAAI,EAAE,QAAQ,CAAC;QAAC,mBAAmB,EAAE,WAAW,CAAA;KAAE,CACvD,KACE;QAAE,SAAS,EAAE,WAAW,CAAC;QAAC,OAAO,EAAE,MAAM,IAAI,CAAC;QAAC,WAAW,EAAE,WAAW,CAAC;QAAC,MAAM,CAAC,EAAE,MAAM,IAAI,CAAA;KAAE,GAAG,IAAI,CAAA;IAC1G,UAAU,EAAE,MAAM,IAAI,CAAA;CACvB;AAkBD,+FAA+F;AAC/F,eAAO,MAAM,iBAAiB,EAAE,UAAU,CAAC,8BAA8B,EAAE,2BAA2B,CA8JrG,CAAA;AAED,eAAe,iBAAiB,CAAA"}
@@ -1,7 +1,8 @@
1
- import { Vector3 } from 'three';
1
+ import { Vector3 } from 'three/webgpu';
2
2
  declare const transformPositionToVector3: ({ x, y, z }: {
3
3
  x: number;
4
4
  y: number;
5
5
  z: number;
6
6
  }) => Vector3;
7
7
  export default transformPositionToVector3;
8
+ //# sourceMappingURL=transformPositionToVector3.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transformPositionToVector3.d.ts","sourceRoot":"","sources":["../../../resources/fivePlugins/CSS3DRenderPlugin/transformPositionToVector3.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,OAAO,EAAE,MAAM,cAAc,CAAA;AAEtC,QAAA,MAAM,0BAA0B,gBAAiB;IAAE,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAC;IAAC,CAAC,EAAE,MAAM,CAAA;CAAE,YAAyB,CAAA;AAE7G,eAAe,0BAA0B,CAAA"}
@@ -1,6 +1,7 @@
1
- import type { FivePlugin } from '@realsee/five';
1
+ import type { FivePlugin } from '@realsee/five-webgpu';
2
2
  import { CameraMovementPluginParameterType, CameraMovementPluginExportType } from './typings';
3
3
  /**
4
4
  * **运镜插件** 模拟类似于电影运镜效果。
5
5
  */
6
6
  export declare const CameraMovementPlugin: FivePlugin<CameraMovementPluginParameterType, CameraMovementPluginExportType>;
7
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../resources/fivePlugins/CameraMovementPlugin/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AAEtD,OAAO,EACL,iCAAiC,EACjC,8BAA8B,EAM/B,MAAM,WAAW,CAAA;AAqBlB;;GAEG;AACH,eAAO,MAAM,oBAAoB,EAAE,UAAU,CAAC,iCAAiC,EAAE,8BAA8B,CA+J9G,CAAA"}
@@ -1,4 +1,4 @@
1
- import { Mode, Pose } from '@realsee/five';
1
+ import { Mode, Pose } from '@realsee/five-webgpu';
2
2
  export interface CameraMovementPluginParameterType {
3
3
  }
4
4
  export interface CameraMovementPluginExportType {
@@ -48,3 +48,4 @@ export type RotateArgs = {
48
48
  export type RotateOpts = {
49
49
  preload?: boolean;
50
50
  } & CameraMovementOptsCallback;
51
+ //# sourceMappingURL=typings.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"typings.d.ts","sourceRoot":"","sources":["../../../resources/fivePlugins/CameraMovementPlugin/typings.ts"],"names":[],"mappings":"AACA,OAAO,EAAE,IAAI,EAAmB,IAAI,EAAE,MAAM,sBAAsB,CAAA;AAGlE,MAAM,WAAW,iCAAiC;CAAI;AAEtD,MAAM,WAAW,8BAA8B;IAC7C;;;;;OAKG;IACH,IAAI,CAAC,QAAQ,EAAE,OAAO,CAAC,QAAQ,CAAC,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,QAAQ,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;IACtF;;;;;OAKG;IACH,MAAM,CAAC,IAAI,EAAE,UAAU,EAAE,QAAQ,EAAE,MAAM,EAAE,IAAI,CAAC,EAAE,UAAU,GAAG,OAAO,CAAC,OAAO,CAAC,CAAA;CAChF;AAED,oBAAY,oBAAoB;IAC9B,IAAI,SAAS;IACb,MAAM,WAAW;CAClB;AACD,oBAAY,QAAQ;IAClB,SAAS,cAAc;IACvB,aAAa,kBAAkB;IAC/B,IAAI,SAAS;CACd;AAED,MAAM,WAAW,0BAA0B;IACzC,kBAAkB,CAAC,EAAE,MAAM,IAAI,CAAA;IAC/B,gBAAgB,CAAC,EAAE,MAAM,IAAI,CAAA;CAC9B;AAED,MAAM,MAAM,QAAQ,GAAG;IACrB,IAAI,EAAE,IAAI,CAAA;IACV,SAAS,EAAE,MAAM,CAAA;IACjB,WAAW,CAAC,EAAE,KAAK,GAAG,MAAM,GAAG,SAAS,CAAA;CACzC,GAAG,IAAI,CAAA;AAER,MAAM,MAAM,QAAQ,GAAG;IACrB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,GAAG,0BAA0B,CAAA;AAE9B,MAAM,MAAM,UAAU,GAAG;IACvB,IAAI,CAAC,EAAE,IAAI,CAAA;IACX,SAAS,EAAE,MAAM,CAAA;IACjB,IAAI,EAAE,OAAO,CAAA;IACb,WAAW,EAAE,MAAM,CAAA;IACnB,QAAQ,EAAE,QAAQ,CAAA;CACnB,GAAG,IAAI,CAAA;AAER,MAAM,MAAM,UAAU,GAAG;IACvB,OAAO,CAAC,EAAE,OAAO,CAAA;CAClB,GAAG,0BAA0B,CAAA"}
@@ -1,4 +1,4 @@
1
- import type { FivePlugin } from '@realsee/five';
1
+ import type { FivePlugin } from '@realsee/five-webgpu';
2
2
  import type { PlaybackManager } from '../../Player/playback-types';
3
3
  export interface ModelTVVideoPluginData {
4
4
  enable?: boolean;
@@ -21,3 +21,4 @@ export interface ModelTVVideoPluginExportType {
21
21
  load: (data: ModelTVVideoPluginData, videoElement?: HTMLVideoElement) => Promise<void>;
22
22
  }
23
23
  export declare const ModelTVVideoPlugin: FivePlugin<ModelTVVideoPluginParameterType, ModelTVVideoPluginExportType>;
24
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../../resources/fivePlugins/ModelTVVideoPlugin/index.ts"],"names":[],"mappings":"AACA,OAAO,KAAK,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAA;AACtD,OAAO,KAAK,EAAE,eAAe,EAAoC,MAAM,6BAA6B,CAAA;AAEpG,MAAM,WAAW,sBAAsB;IACrC,MAAM,CAAC,EAAE,OAAO,CAAA;IAChB,SAAS,EAAE,MAAM,CAAA;IACjB,gBAAgB,EAAE,MAAM,CAAA;IACxB,MAAM,EAAE;QAAE,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAC;QAAC,CAAC,EAAE,MAAM,CAAA;KAAE,EAAE,EAAE,CAAA;CAChD;AAED,MAAM,WAAW,+BAA+B;IAC9C,YAAY,CAAC,EAAE,gBAAgB,CAAA;IAC/B,YAAY,CAAC,EAAE,eAAe,CAAA;CAC/B;AACD,MAAM,WAAW,4BAA4B;IAC3C,MAAM,EAAE,MAAM,IAAI,CAAA;IAClB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,OAAO,EAAE,MAAM,IAAI,CAAA;IACnB,IAAI,EAAE,CAAC,IAAI,EAAE,sBAAsB,EAAE,YAAY,CAAC,EAAE,gBAAgB,KAAK,OAAO,CAAC,IAAI,CAAC,CAAA;CACvF;AAeD,eAAO,MAAM,kBAAkB,EAAE,UAAU,CAAC,+BAA+B,EAAE,4BAA4B,CAuSxG,CAAA"}
package/lib/index.d.ts CHANGED
@@ -1,2 +1,5 @@
1
1
  export { Player } from './Player';
2
+ export type { PlayerConfigs, Appearance, AppSize, CustomVreoKeyframeProps, VreoSubscribe, WaveAppearance } from './Player/typings';
2
3
  export type { PlaybackManager, PlaybackController, PlaybackSession, MediaOperations } from './Player/playback-types';
4
+ export * from './typings';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../resources/index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACjC,YAAY,EAAE,aAAa,EAAE,UAAU,EAAE,OAAO,EAAE,uBAAuB,EAAE,aAAa,EAAE,cAAc,EAAE,MAAM,kBAAkB,CAAA;AAClI,YAAY,EAAE,eAAe,EAAE,kBAAkB,EAAE,eAAe,EAAE,eAAe,EAAE,MAAM,yBAAyB,CAAA;AACpH,cAAc,WAAW,CAAA"}
package/lib/index.js CHANGED
@@ -1 +1,12 @@
1
- export { Player } from "./Player/index.js";
1
+ import { Player as o } from "./Player/index.js";
2
+ import { InfoPanelStyleEnum as m, InfoPanelTypeEnum as f, PanoEffectEnum as r, PanoTagEnum as E, PanoTagStyleEnum as u, VreoKeyframeEnum as P } from "./types/index.js";
3
+ export {
4
+ m as InfoPanelStyleEnum,
5
+ f as InfoPanelTypeEnum,
6
+ r as PanoEffectEnum,
7
+ E as PanoTagEnum,
8
+ u as PanoTagStyleEnum,
9
+ o as Player,
10
+ P as VreoKeyframeEnum
11
+ };
12
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sources":[],"sourcesContent":[],"names":[],"mappings":";;"}