@realsee/five-webgpu 1.0.0-alpha.4 → 1.0.0-alpha.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.
Files changed (313) hide show
  1. package/ai_guides/api.md +9 -8
  2. package/ai_guides/features/camera-animation.md +1 -1
  3. package/ai_guides/features/event.md +0 -1
  4. package/ai_guides/features/five.md +8 -8
  5. package/ai_guides/features/gesture.md +1 -1
  6. package/ai_guides/features/load-external-model.md +6 -6
  7. package/ai_guides/features/load-progress.md +2 -2
  8. package/ai_guides/features/mode.md +3 -23
  9. package/ai_guides/features/model.md +1 -1
  10. package/ai_guides/features/state.md +2 -2
  11. package/ai_guides/features/ultra-hdr.md +41 -32
  12. package/ai_guides/quick-start.md +2 -2
  13. package/ai_guides/release_notes/6.8.md +2 -2
  14. package/ai_guides/support.md +0 -4
  15. package/docs/assets/hierarchy.js +1 -1
  16. package/docs/assets/navigation.js +1 -1
  17. package/docs/assets/search.js +1 -1
  18. package/docs/classes/index.AdaptiveLuminancePass.html +1 -1
  19. package/docs/classes/index.BoundingMesh.html +1 -1
  20. package/docs/classes/index.Camera.html +1 -1
  21. package/docs/classes/index.EffectComposer.html +1 -1
  22. package/docs/classes/index.EyeDomeLightingPass.html +1 -1
  23. package/docs/classes/index.Five.html +68 -67
  24. package/docs/classes/index.FivePass.html +1 -1
  25. package/docs/classes/index.FlowingFireworks3DPass.html +1 -1
  26. package/docs/classes/index.FlowingLight2DPass.html +1 -1
  27. package/docs/classes/index.FlowingLight3DPass.html +1 -1
  28. package/docs/classes/index.GaussianBlurPass.html +1 -1
  29. package/docs/classes/index.InternalWebGPURenderer.html +14 -3
  30. package/docs/classes/index.Model.html +1 -1
  31. package/docs/classes/index.ModelScene.html +1 -1
  32. package/docs/classes/index.NetworkSubscribe.html +1 -1
  33. package/docs/classes/index.PBMCustomNode.html +57 -0
  34. package/docs/classes/index.PBMGaussianSplattingNodeMaterial.html +8 -6
  35. package/docs/classes/index.PBMGaussianSplattingObject.html +10 -4
  36. package/docs/classes/index.PBMGaussianSplattingRenderMesh.html +26 -15
  37. package/docs/classes/index.PBMGroup.html +1 -1
  38. package/docs/classes/index.PBMMesh.html +1 -1
  39. package/docs/classes/index.PBMMeshBasicMaterial.html +16 -5
  40. package/docs/classes/index.PBMMeshBasicNodeMaterial.html +28 -7
  41. package/docs/classes/index.PBMMeshPanoOnlyMaterial.html +16 -5
  42. package/docs/classes/index.PBMMeshPanoOnlyNodeMaterial.html +28 -7
  43. package/docs/classes/index.PBMMeshPhongMaterial.html +16 -5
  44. package/docs/classes/index.PBMMeshPhongNodeMaterial.html +28 -7
  45. package/docs/classes/index.PBMMeshPhysicalMaterial.html +16 -5
  46. package/docs/classes/index.PBMMeshPhysicalNodeMaterial.html +28 -7
  47. package/docs/classes/index.PBMPanoFilter.html +8 -8
  48. package/docs/classes/index.PBMPointCloud.html +1 -1
  49. package/docs/classes/index.PBMSkinnedMesh.html +1 -1
  50. package/docs/classes/index.PBMUpdateable.html +1 -1
  51. package/docs/classes/index.PanoCircleMesh.html +1 -1
  52. package/docs/classes/index.PanoCircleMeshCustom.html +5 -5
  53. package/docs/classes/index.PanoCircleMeshSolid.html +1 -1
  54. package/docs/classes/index.Parameter.html +57 -52
  55. package/docs/classes/index.Scene.html +1 -1
  56. package/docs/classes/index.Subscribe.html +1 -1
  57. package/docs/classes/index.TextureLoader.html +4 -1
  58. package/docs/classes/index.Tile3D.html +23 -21
  59. package/docs/classes/index.TileNode.html +1 -1
  60. package/docs/classes/index.Tileset.html +4 -4
  61. package/docs/classes/index.TrajectoryNode.html +3 -3
  62. package/docs/classes/index.Work.html +20 -18
  63. package/docs/classes/index.WorkResolvedObserver.html +22 -22
  64. package/docs/documents/api.html +11 -10
  65. package/docs/documents/features_camera-animation.html +1 -1
  66. package/docs/documents/features_event.html +0 -1
  67. package/docs/documents/features_five.html +7 -7
  68. package/docs/documents/features_gesture.html +1 -1
  69. package/docs/documents/features_load-external-model.html +6 -6
  70. package/docs/documents/features_load-progress.html +1 -1
  71. package/docs/documents/features_mode.html +5 -15
  72. package/docs/documents/features_model.html +1 -1
  73. package/docs/documents/features_state.html +1 -1
  74. package/docs/documents/features_ultra-hdr.html +50 -44
  75. package/docs/documents/quick-start.html +1 -1
  76. package/docs/documents/release_notes_6.8.html +2 -2
  77. package/docs/documents/support.html +1 -3
  78. package/docs/functions/index.customNodesCacheKey.html +3 -0
  79. package/docs/functions/index.parseWork.html +1 -1
  80. package/docs/functions/index.workToJson.html +1 -1
  81. package/docs/hierarchy.html +1 -1
  82. package/docs/interfaces/index.AddableObject.html +1 -1
  83. package/docs/interfaces/index.AjaxOptions.html +1 -1
  84. package/docs/interfaces/index.BaseEvent.html +2 -2
  85. package/docs/interfaces/index.Clock.html +24 -0
  86. package/docs/interfaces/index.EventCallback.html +49 -47
  87. package/docs/interfaces/index.FiveInitArgs.html +49 -40
  88. package/docs/interfaces/index.GainmapCfgData.html +15 -0
  89. package/docs/interfaces/index.GestureEvent.html +2 -2
  90. package/docs/interfaces/index.IPBMMaterial.html +15 -4
  91. package/docs/interfaces/index.ImageOptions.html +1 -1
  92. package/docs/interfaces/index.IntersectEvent.html +2 -2
  93. package/docs/interfaces/index.IntersectMesh.html +1 -1
  94. package/docs/interfaces/index.IntersectMeshInterface.html +1 -1
  95. package/docs/interfaces/index.Intersection.html +1 -1
  96. package/docs/interfaces/index.LoosePanoWork.html +2 -2
  97. package/docs/interfaces/index.LooseWork.html +2 -2
  98. package/docs/interfaces/index.LooseWorkInitial.html +2 -2
  99. package/docs/interfaces/index.LooseWorkModel.html +2 -2
  100. package/docs/interfaces/index.LooseWorkObserver.html +2 -2
  101. package/docs/interfaces/index.LooseWorkPanorama.html +4 -3
  102. package/docs/interfaces/index.LooseWorkWithExtrinsics.html +15 -9
  103. package/docs/interfaces/index.ModeChangeEvent.html +2 -2
  104. package/docs/interfaces/index.ModelControllerCustomInitArgs.html +1 -1
  105. package/docs/interfaces/index.ModelEvent.html +2 -2
  106. package/docs/interfaces/index.ModelSceneEvent.html +2 -2
  107. package/docs/interfaces/index.ModelTileEvent.html +2 -2
  108. package/docs/interfaces/index.MovePanoOptions.html +1 -1
  109. package/docs/interfaces/index.NetworkAbortError.html +1 -1
  110. package/docs/interfaces/index.NetworkFirbiddenError.html +1 -1
  111. package/docs/interfaces/index.NetworkOptions.html +1 -1
  112. package/docs/interfaces/index.NetworkProxyError.html +1 -1
  113. package/docs/interfaces/index.NetworkResourceEvent.html +2 -2
  114. package/docs/interfaces/index.NetworkResponseError.html +1 -1
  115. package/docs/interfaces/index.NetworkTimeoutError.html +1 -1
  116. package/docs/interfaces/index.ObjectEvent.html +2 -2
  117. package/docs/interfaces/index.PBMClipperParameter.html +2 -2
  118. package/docs/interfaces/index.PBMCustomNodeContext.html +87 -0
  119. package/docs/interfaces/index.PBMCustomNodeOptions.html +10 -0
  120. package/docs/interfaces/index.PBMCustomNodePanoContext.html +20 -0
  121. package/docs/interfaces/index.PBMCustomNodeSlots.html +31 -0
  122. package/docs/interfaces/index.PBMPanoDepth.html +5 -5
  123. package/docs/interfaces/index.PBMPanoFilterValue.html +2 -2
  124. package/docs/interfaces/index.PBMPanoGainmap.html +6 -0
  125. package/docs/interfaces/index.PBMPanoPicture.html +9 -8
  126. package/docs/interfaces/index.PBMRefinedScreen.html +2 -2
  127. package/docs/interfaces/index.PanoCircleMeshCustomOptions.html +2 -2
  128. package/docs/interfaces/index.PanoCircleMeshInterface.html +1 -1
  129. package/docs/interfaces/index.PanoEvent.html +2 -2
  130. package/docs/interfaces/index.PanoTextureEvent.html +2 -2
  131. package/docs/interfaces/index.PanoramaControllerCustomInitArgs.html +9 -9
  132. package/docs/interfaces/index.PanoramaLikeControllerCustomInitArgs.html +1 -1
  133. package/docs/interfaces/index.ParameterMaterialValue.html +42 -37
  134. package/docs/interfaces/index.ParameterTilesetValue.html +15 -15
  135. package/docs/interfaces/index.ParameterValue.html +56 -51
  136. package/docs/interfaces/index.Pose.html +1 -1
  137. package/docs/interfaces/index.RenderEvent.html +2 -2
  138. package/docs/interfaces/index.ResolvedParameterValue.html +56 -51
  139. package/docs/interfaces/index.State.html +1 -1
  140. package/docs/interfaces/index.StateEvent.html +2 -2
  141. package/docs/interfaces/index.TextureOptions.html +1 -1
  142. package/docs/interfaces/index.TilesetOptions.html +7 -2
  143. package/docs/interfaces/index.TopviewControllerCustomInitArgs.html +1 -1
  144. package/docs/interfaces/index.VRPanoramaControllerCustomInitArgs.html +37 -0
  145. package/docs/interfaces/index.ViewLayer.html +23 -21
  146. package/docs/interfaces/index.WorkCubeHdrGainmapImage.html +10 -0
  147. package/docs/interfaces/index.WorkCubeImage.html +5 -9
  148. package/docs/interfaces/index.WorkImage.html +8 -12
  149. package/docs/interfaces/index.WorkInitial.html +8 -8
  150. package/docs/interfaces/index.WorkModel.html +8 -8
  151. package/docs/interfaces/index.WorkModelLayer.html +6 -6
  152. package/docs/interfaces/index.WorkObserver.html +23 -23
  153. package/docs/interfaces/index.WorkPanoramaJson.html +3 -2
  154. package/docs/interfaces/index.WorkTile.html +8 -12
  155. package/docs/interfaces/index.WorksEvent.html +2 -2
  156. package/docs/interfaces/index.XRControllerEvent.html +2 -2
  157. package/docs/interfaces/index.XRGestureEvent.html +2 -2
  158. package/docs/interfaces/index.XRSessionEvent.html +2 -2
  159. package/docs/modules/index.html +1 -1
  160. package/docs/types/index.ControllerCustomInitTypes.html +3 -2
  161. package/docs/types/index.ControllerEventTypes.html +25 -23
  162. package/docs/types/index.EventTypes.html +26 -26
  163. package/docs/types/index.Mode.html +2 -1
  164. package/docs/types/index.PBMCustomNodeTargetType.html +2 -0
  165. package/docs/types/index.ParseOptions.html +14 -8
  166. package/docs/variables/index.GSPLAT_PIPELINE_AUTO.html +2 -0
  167. package/docs/variables/index.GSPLAT_PIPELINE_RASTER_CPU_SORT.html +2 -0
  168. package/docs/variables/index.GSPLAT_PIPELINE_RASTER_GPU_SORT.html +2 -0
  169. package/docs/variables/index.PROXY_CONTROLLER_EVENT_NAMES.html +1 -1
  170. package/docs/variables/index.controllersDefaultInitArgs.html +1 -1
  171. package/five/application/controllers.d.ts +4 -0
  172. package/five/application/events.d.ts +1 -1
  173. package/five/application/five.d.ts +4 -1
  174. package/five/application/fiveInitArgs.d.ts +13 -0
  175. package/five/application/mode.d.ts +2 -0
  176. package/five/cardboard/helper.d.ts +2 -0
  177. package/five/cardboard/index.d.ts +13 -0
  178. package/five/cardboard/sensor.d.ts +158 -0
  179. package/five/controllers/base.d.ts +3 -0
  180. package/five/controllers/events.d.ts +5 -3
  181. package/five/controllers/panorama.d.ts +2 -2
  182. package/five/controllers/vrPanorama.d.ts +56 -0
  183. package/five/core/internalWebGPURenderer.d.ts +16 -0
  184. package/five/core/panoVideo.d.ts +4 -1
  185. package/five/core/tiling.d.ts +40 -9
  186. package/five/gaussian-splatting/gpu-sort/prefixSumKernel.d.ts +65 -0
  187. package/five/gaussian-splatting/gpu-sort/radixSortModule.d.ts +128 -0
  188. package/five/gaussian-splatting/gpu-sort/shaders/prefixSum.d.ts +2 -0
  189. package/five/gaussian-splatting/gpu-sort/shaders/radixHistogram.d.ts +2 -0
  190. package/five/gaussian-splatting/gpu-sort/shaders/radixReorder.d.ts +2 -0
  191. package/five/gaussian-splatting/gpu-sort/shaders/sortKeygen.d.ts +2 -0
  192. package/five/gaussian-splatting/gpu-sort/sortAdapter.d.ts +234 -0
  193. package/five/gaussian-splatting/pipelines/cpuSortPipeline.d.ts +159 -0
  194. package/five/gaussian-splatting/pipelines/gpuSortPipeline.d.ts +98 -0
  195. package/five/gaussian-splatting/pipelines/gsplatPipeline.d.ts +104 -0
  196. package/five/gaussian-splatting/pipelines/pipelineMode.d.ts +42 -0
  197. package/five/gaussian-splatting/pipelines/sortThrottle.d.ts +45 -0
  198. package/five/index.d.ts +4 -1
  199. package/five/index.js +272 -269
  200. package/five/index.mjs +7183 -4546
  201. package/five/meshes/panoCircleMeshCustom.d.ts +1 -0
  202. package/five/model/index.d.ts +1 -1
  203. package/five/model/materials/nodes/pbmMeshBasicNodeMaterial.d.ts +2 -0
  204. package/five/model/materials/nodes/pbmMeshPanoOnlyNodeMaterial.d.ts +2 -0
  205. package/five/model/materials/nodes/pbmMeshPhongNodeMaterial.d.ts +2 -0
  206. package/five/model/materials/nodes/pbmMeshPhysicalNodeMaterial.d.ts +2 -0
  207. package/five/model/materials/pbmGaussianSplattingNodeMaterial.d.ts +4 -0
  208. package/five/model/materials/pbmMaterial.d.ts +268 -5
  209. package/five/model/materials/tsl/defines.d.ts +8 -2
  210. package/five/model/materials/tsl/outputBuilder.d.ts +8 -15
  211. package/five/model/materials/tsl/panoColor.d.ts +8 -2
  212. package/five/model/materials/tsl/utils.d.ts +13 -0
  213. package/five/model/objects/pbmGaussianSplattingObject.d.ts +9 -0
  214. package/five/model/objects/pbmGaussianSplattingRenderMesh.d.ts +67 -101
  215. package/five/model/parameter.d.ts +13 -1
  216. package/five/model/tile3d/index.d.ts +2 -0
  217. package/five/model/tile3d/tileset.d.ts +5 -0
  218. package/five/model/tile3d/trajectory-content.d.ts +53 -0
  219. package/five/texture/loader.d.ts +6 -0
  220. package/five/types/cube.d.ts +0 -1
  221. package/five/utils/detector.d.ts +11 -1
  222. package/five/utils/error.d.ts +1 -0
  223. package/five/utils/event.d.ts +17 -1
  224. package/five/utils/gainmap-data.d.ts +23 -0
  225. package/five/work/index.d.ts +1 -1
  226. package/five/work/looseWorkType.d.ts +2 -1
  227. package/five/work/work.d.ts +30 -7
  228. package/five/work/workJsonType.d.ts +2 -1
  229. package/gltf-loader/gltf-object.d.ts +17 -0
  230. package/gltf-loader/index.d.ts +45 -0
  231. package/gltf-loader/index.js +255 -0
  232. package/gltf-loader/index.mjs +302 -0
  233. package/package.json +6 -1
  234. package/plugins/BackgroundPlugin/Controller.d.ts +20 -0
  235. package/plugins/BackgroundPlugin/index.d.ts +5 -0
  236. package/plugins/BackgroundPlugin/typings.d.ts +44 -0
  237. package/plugins/CSS2DPlugin/Controller.d.ts +59 -0
  238. package/plugins/CSS2DPlugin/index.d.ts +5 -0
  239. package/plugins/CSS2DPlugin/typing.d.ts +31 -0
  240. package/plugins/CSS3DPlugin/Controller.d.ts +64 -0
  241. package/plugins/CSS3DPlugin/index.d.ts +5 -0
  242. package/plugins/CSS3DPlugin/typing.d.ts +33 -0
  243. package/plugins/FloorplanPlugin/Controller.d.ts +100 -0
  244. package/plugins/FloorplanPlugin/index.d.ts +5 -0
  245. package/plugins/FloorplanPlugin/render/assets.d.ts +9 -0
  246. package/plugins/FloorplanPlugin/render/index.d.ts +35 -0
  247. package/plugins/FloorplanPlugin/render/isPointInPolygon.d.ts +5 -0
  248. package/plugins/FloorplanPlugin/render/renderFloor.d.ts +22 -0
  249. package/plugins/FloorplanPlugin/render/roomLabelVisibility.d.ts +10 -0
  250. package/plugins/FloorplanPlugin/typing.d.ts +156 -0
  251. package/plugins/FloorplanPlugin/typings/floorplanData.d.ts +112 -0
  252. package/plugins/FloorplanPlugin/typings/floorplanServerData.d.ts +78 -0
  253. package/plugins/FloorplanPlugin/typings/index.d.ts +2 -0
  254. package/plugins/FloorplanPlugin/utils/changeMode.d.ts +5 -0
  255. package/plugins/FloorplanPlugin/utils/changeModelCanvasOpacity.d.ts +6 -0
  256. package/plugins/FloorplanPlugin/utils/correctFiveState.d.ts +11 -0
  257. package/plugins/FloorplanPlugin/utils/equal.d.ts +9 -0
  258. package/plugins/FloorplanPlugin/utils/filter.d.ts +8 -0
  259. package/plugins/FloorplanPlugin/utils/fiveModelLoad.d.ts +6 -0
  260. package/plugins/FloorplanPlugin/utils/formatData.d.ts +6 -0
  261. package/plugins/FloorplanPlugin/utils/formatPosition.d.ts +33 -0
  262. package/plugins/FloorplanPlugin/utils/getDistanceFromModel.d.ts +6 -0
  263. package/plugins/FloorplanPlugin/utils/getPxmm.d.ts +19 -0
  264. package/plugins/FloorplanPlugin/utils/isTruelyObject.d.ts +4 -0
  265. package/plugins/FloorplanPlugin/utils/nearlyEqual.d.ts +8 -0
  266. package/plugins/FloorplanPlugin/utils/to.d.ts +5 -0
  267. package/plugins/Object3DHelperPlugin/Controller.d.ts +99 -0
  268. package/plugins/Object3DHelperPlugin/Controllers/BaseController.d.ts +142 -0
  269. package/plugins/Object3DHelperPlugin/Controllers/BoundingBoxController.d.ts +16 -0
  270. package/plugins/Object3DHelperPlugin/Controllers/MoveController.d.ts +66 -0
  271. package/plugins/Object3DHelperPlugin/Controllers/RotateController.d.ts +61 -0
  272. package/plugins/Object3DHelperPlugin/FiveControllerWrapper.d.ts +17 -0
  273. package/plugins/Object3DHelperPlugin/Helper/BaseHelper.d.ts +97 -0
  274. package/plugins/Object3DHelperPlugin/Helper/BoundingBoxHelper.d.ts +16 -0
  275. package/plugins/Object3DHelperPlugin/Helper/MoveHelper.d.ts +37 -0
  276. package/plugins/Object3DHelperPlugin/Helper/RotateHelper.d.ts +93 -0
  277. package/plugins/Object3DHelperPlugin/constant.d.ts +27 -0
  278. package/plugins/Object3DHelperPlugin/index.d.ts +6 -0
  279. package/plugins/Object3DHelperPlugin/typing.d.ts +143 -0
  280. package/plugins/Object3DHelperPlugin/utils/ArrowGroup.d.ts +22 -0
  281. package/plugins/Object3DHelperPlugin/utils/CenterHandle.d.ts +23 -0
  282. package/plugins/Object3DHelperPlugin/utils/PlaneHandle.d.ts +19 -0
  283. package/plugins/Object3DHelperPlugin/utils/calculateScaleByCamera.d.ts +5 -0
  284. package/plugins/Object3DHelperPlugin/utils/cameraHooks.d.ts +3 -0
  285. package/plugins/Object3DHelperPlugin/utils/direction.d.ts +14 -0
  286. package/plugins/Object3DHelperPlugin/utils/getMouseRaycaster.d.ts +5 -0
  287. package/plugins/Object3DHelperPlugin/utils/getOrthographicCameraDirection.d.ts +8 -0
  288. package/plugins/Object3DHelperPlugin/utils/setObjectQuaternion.d.ts +8 -0
  289. package/plugins/Object3DHelperPlugin/utils/solidGuide.d.ts +27 -0
  290. package/plugins/Object3DHelperPlugin/utils/tipsDom.d.ts +8 -0
  291. package/plugins/PanoAnimePlugin/Controller.d.ts +49 -0
  292. package/plugins/PanoAnimePlugin/index.d.ts +5 -0
  293. package/plugins/PanoAnimePlugin/typing.d.ts +37 -0
  294. package/plugins/index.d.ts +6 -0
  295. package/plugins/index.js +393 -3
  296. package/plugins/index.mjs +3421 -92
  297. package/plugins/thirdParty/CSS2DRenderer.d.ts +37 -0
  298. package/plugins/thirdParty/CSS3DRenderer.d.ts +45 -0
  299. package/plugins/thirdParty/OrbitControls.d.ts +78 -0
  300. package/plugins/thirdParty/domevents.d.ts +36 -0
  301. package/plugins/utils/clamp.d.ts +2 -0
  302. package/plugins/utils/uuid.d.ts +2 -0
  303. package/react/index.js +2 -2
  304. package/react/index.mjs +2 -2
  305. package/umd/five-gltf-loader.js +255 -0
  306. package/umd/five-plugins.js +461 -3
  307. package/umd/five-react.js +2 -2
  308. package/umd/five.js +350 -347
  309. package/docs/interfaces/index.PBMHDRConfig.html +0 -12
  310. package/five/gaussian-splatting/worker/dataWorker.d.ts +0 -1
  311. package/five/three-version-check.d.ts +0 -1
  312. package/five/utils/hdr-data.d.ts +0 -13
  313. package/five/utils/shaderContentFix.d.ts +0 -7
@@ -0,0 +1,49 @@
1
+ import { Five } from '@realsee/five-webgpu';
2
+ import { BasePlugin } from '../BasePlugin';
3
+ import type * as PluginType from './typing';
4
+ export declare class Controller extends BasePlugin.Controller<PluginType.State, PluginType.EventMap, PluginType.ServerData, PluginType.PluginData> {
5
+ /** 当前使用的数据 */
6
+ data?: PluginType.PluginData;
7
+ /** 插件当前状态 */
8
+ state: PluginType.State;
9
+ /** config 的原始值 */
10
+ private _config;
11
+ get config(): {
12
+ maxOpacity: number;
13
+ };
14
+ private group;
15
+ private canvas?;
16
+ private ctx?;
17
+ private canvasTexture?;
18
+ private startTime?;
19
+ private updateState;
20
+ /**
21
+ * 更改插件 Config
22
+ * @param config - 插件属性 `config` 的子集。
23
+ * @param options - 参数
24
+ */
25
+ updateConfig(config: Partial<PluginType.Config>, options?: BasePlugin.BaseOptions): void;
26
+ /** 光柱材质及其 uniform 节点集合(等价于 five 版本的 ShaderMaterial.uniforms) */
27
+ private materialUniforms;
28
+ private mesh;
29
+ private panoMesh;
30
+ constructor(five: Five, params?: PluginType.Params);
31
+ load(data: PluginType.ServerData): Promise<void>;
32
+ private stop;
33
+ private drawLine;
34
+ private anime;
35
+ private _enable;
36
+ private _disable;
37
+ /**
38
+ * 启用插件,让插件能够响应交互
39
+ */
40
+ enable(options?: BasePlugin.BaseOptions): void;
41
+ /**
42
+ * 禁用插件,让插件停止响应交互
43
+ */
44
+ disable(options?: BasePlugin.BaseOptions): void;
45
+ /** 更改插件 State */
46
+ setState(state: Partial<PluginType.State>, options?: BasePlugin.BaseOptions): void;
47
+ /** 销毁插件,移除所有副作用,销毁后将不响应任何 API */
48
+ dispose: () => void;
49
+ }
@@ -0,0 +1,5 @@
1
+ import type { Five } from '@realsee/five-webgpu';
2
+ import type * as PanoAnimePluginType from './typing';
3
+ import { Controller } from './Controller';
4
+ export declare const PanoAnimePlugin: (five: Five, params?: PanoAnimePluginType.Params) => Controller;
5
+ export type { PanoAnimePluginType, Controller as PanoAnimeController };
@@ -0,0 +1,37 @@
1
+ import { BasePlugin } from '../BasePlugin';
2
+ export type PluginData = {};
3
+ export type ServerData = {};
4
+ /** 插件配置 */
5
+ export interface Config {
6
+ maxOpacity: number;
7
+ }
8
+ /** 插件初始化参数 */
9
+ export interface Params {
10
+ config?: Partial<Config>;
11
+ initialState?: Partial<State>;
12
+ }
13
+ /** 插件状态 */
14
+ export interface State extends BasePlugin.State {
15
+ /** 插件是否启用 */
16
+ enabled: boolean;
17
+ /** 插件整体是否可见 */
18
+ visible: boolean;
19
+ }
20
+ export interface ConfigChangeEvent {
21
+ /** 变更前的 config */
22
+ prevConfig: Config;
23
+ /** 变更后的 config */
24
+ config: Config;
25
+ /** 是否是用户操作 */
26
+ userAction: boolean;
27
+ }
28
+ /** 插件事件 */
29
+ export interface EventMap extends BasePlugin.EventMap<State, PluginData> {
30
+ drawingChange: (drawing: boolean) => void;
31
+ /** config 变更的回调 */
32
+ configChange: (event: {
33
+ prevConfig: Config;
34
+ config: Config;
35
+ userAction: boolean;
36
+ }) => void;
37
+ }
@@ -1,2 +1,8 @@
1
+ export * from './BackgroundPlugin';
2
+ export * from './Object3DHelperPlugin';
3
+ export * from './PanoAnimePlugin';
4
+ export * from './CSS2DPlugin';
5
+ export * from './CSS3DPlugin';
6
+ export * from './FloorplanPlugin';
1
7
  export { GaussianSplattingEntranceAnimationPlugin, type GaussianSplattingEntranceAnimationPluginType, type GaussianSplattingEntranceAnimationController, } from './GaussianSplattingEntranceAnimationPlugin';
2
8
  export { BasePlugin } from './BasePlugin';