@realsee/five-webgpu 1.0.0-alpha.12 → 1.0.0-alpha.14

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 (431) hide show
  1. package/_virtual/_rolldown/runtime.js +3 -3
  2. package/docs/assets/hierarchy.js +1 -1
  3. package/docs/assets/navigation.js +1 -1
  4. package/docs/assets/search.js +1 -1
  5. package/docs/classes/index.AdaptiveLuminancePass.html +1 -1
  6. package/docs/classes/index.BoundingMesh.html +1 -1
  7. package/docs/classes/index.Camera.html +1 -1
  8. package/docs/classes/index.EyeDomeLightingPass.html +1 -1
  9. package/docs/classes/index.Five.html +41 -32
  10. package/docs/classes/index.FivePass.html +1 -1
  11. package/docs/classes/index.FiveRenderer.html +7 -2
  12. package/docs/classes/index.FlowingFireworks3DPass.html +1 -1
  13. package/docs/classes/index.FlowingLight2DPass.html +1 -1
  14. package/docs/classes/index.FlowingLight3DPass.html +1 -1
  15. package/docs/classes/index.GaussianBlurPass.html +1 -1
  16. package/docs/classes/index.InternalWebGPURenderer.html +4 -5
  17. package/docs/classes/index.Model.html +1 -1
  18. package/docs/classes/index.ModelScene.html +1 -1
  19. package/docs/classes/index.NetworkSubscribe.html +1 -1
  20. package/docs/classes/index.PBMCustomNode.html +1 -1
  21. package/docs/classes/index.PBMGaussianSplattingNodeMaterial.html +9 -9
  22. package/docs/classes/index.PBMGaussianSplattingObject.html +49 -11
  23. package/docs/classes/index.PBMGaussianSplattingRenderMesh.html +71 -16
  24. package/docs/classes/index.PBMGroup.html +1 -1
  25. package/docs/classes/index.PBMMesh.html +1 -1
  26. package/docs/classes/index.PBMMeshBasicMaterial.html +1 -1
  27. package/docs/classes/index.PBMMeshBasicNodeMaterial.html +1 -1
  28. package/docs/classes/index.PBMMeshPanoOnlyMaterial.html +1 -1
  29. package/docs/classes/index.PBMMeshPanoOnlyNodeMaterial.html +1 -1
  30. package/docs/classes/index.PBMMeshPhongMaterial.html +1 -1
  31. package/docs/classes/index.PBMMeshPhongNodeMaterial.html +1 -1
  32. package/docs/classes/index.PBMMeshPhysicalMaterial.html +1 -1
  33. package/docs/classes/index.PBMMeshPhysicalNodeMaterial.html +1 -1
  34. package/docs/classes/index.PBMPanoFilter.html +1 -1
  35. package/docs/classes/index.PBMPointCloud.html +1 -1
  36. package/docs/classes/index.PBMPointCloudMaterial.html +1 -1
  37. package/docs/classes/index.PBMSkinnedMesh.html +1 -1
  38. package/docs/classes/index.PBMUpdateable.html +1 -1
  39. package/docs/classes/index.PanoCircleMesh.html +1 -1
  40. package/docs/classes/index.PanoCircleMeshCustom.html +1 -1
  41. package/docs/classes/index.PanoCircleMeshSolid.html +1 -1
  42. package/docs/classes/index.Parameter.html +24 -22
  43. package/docs/classes/index.Scene.html +1 -1
  44. package/docs/classes/index.Subscribe.html +1 -1
  45. package/docs/classes/index.Tile3D.html +22 -22
  46. package/docs/classes/index.TileNode.html +2 -2
  47. package/docs/classes/index.TrajectoryNode.html +1 -1
  48. package/docs/classes/index.Work.html +15 -22
  49. package/docs/classes/index.WorkResolvedObserver.html +22 -22
  50. package/docs/functions/index.createWorks.html +1 -1
  51. package/docs/functions/index.parseWork.html +1 -1
  52. package/docs/hierarchy.html +1 -1
  53. package/docs/interfaces/index.AddableObject.html +1 -1
  54. package/docs/interfaces/index.AjaxOptions.html +1 -1
  55. package/docs/interfaces/index.BaseEvent.html +1 -1
  56. package/docs/interfaces/index.Clock.html +1 -1
  57. package/docs/interfaces/index.DeviceProfile.html +2 -2
  58. package/docs/interfaces/index.EventCallback.html +3 -3
  59. package/docs/interfaces/index.GestureEvent.html +1 -1
  60. package/docs/interfaces/index.IPBMMaterial.html +1 -1
  61. package/docs/interfaces/index.ImageOptions.html +1 -1
  62. package/docs/interfaces/index.IntersectEvent.html +1 -1
  63. package/docs/interfaces/index.IntersectMesh.html +1 -1
  64. package/docs/interfaces/index.IntersectMeshInterface.html +1 -1
  65. package/docs/interfaces/index.Intersection.html +1 -1
  66. package/docs/interfaces/index.LooseWorkWithExtrinsics.html +8 -8
  67. package/docs/interfaces/index.ModeChangeEvent.html +1 -1
  68. package/docs/interfaces/index.ModelControllerCustomInitArgs.html +1 -1
  69. package/docs/interfaces/index.ModelEvent.html +1 -1
  70. package/docs/interfaces/index.ModelSceneEvent.html +1 -1
  71. package/docs/interfaces/index.ModelTileEvent.html +1 -1
  72. package/docs/interfaces/index.MovePanoOptions.html +1 -1
  73. package/docs/interfaces/index.NetworkAbortError.html +1 -1
  74. package/docs/interfaces/index.NetworkFirbiddenError.html +1 -1
  75. package/docs/interfaces/index.NetworkOptions.html +1 -1
  76. package/docs/interfaces/index.NetworkProxyError.html +1 -1
  77. package/docs/interfaces/index.NetworkResourceEvent.html +1 -1
  78. package/docs/interfaces/index.NetworkResponseError.html +1 -1
  79. package/docs/interfaces/index.NetworkTimeoutError.html +1 -1
  80. package/docs/interfaces/index.ObjectEvent.html +1 -1
  81. package/docs/interfaces/index.PBMGaussianSplattingNodeMaterialOptions.html +3 -3
  82. package/docs/interfaces/index.PanoCircleMeshInterface.html +1 -1
  83. package/docs/interfaces/index.PanoEvent.html +1 -1
  84. package/docs/interfaces/index.PanoPrepareEvent.html +1 -1
  85. package/docs/interfaces/index.PanoTextureEvent.html +1 -1
  86. package/docs/interfaces/index.PanoramaControllerCustomInitArgs.html +1 -1
  87. package/docs/interfaces/index.PanoramaLikeControllerCustomInitArgs.html +1 -1
  88. package/docs/interfaces/index.ParameterMaterialValue.html +8 -6
  89. package/docs/interfaces/index.ParameterTilesetValue.html +15 -15
  90. package/docs/interfaces/index.ParameterValue.html +21 -19
  91. package/docs/interfaces/index.Pose.html +1 -1
  92. package/docs/interfaces/index.RenderEvent.html +1 -1
  93. package/docs/interfaces/index.ResolvedParameterValue.html +22 -20
  94. package/docs/interfaces/index.SplatData.html +10 -6
  95. package/docs/interfaces/index.State.html +1 -1
  96. package/docs/interfaces/index.StateEvent.html +1 -1
  97. package/docs/interfaces/index.TextureOptions.html +1 -1
  98. package/docs/interfaces/index.Tile3DOptions.html +2 -2
  99. package/docs/interfaces/index.TopviewControllerCustomInitArgs.html +1 -1
  100. package/docs/interfaces/index.VRPanoramaControllerCustomInitArgs.html +1 -1
  101. package/docs/interfaces/index.ViewLayer.html +22 -22
  102. package/docs/interfaces/index.WorkCubeHdrGainmapImage.html +2 -2
  103. package/docs/interfaces/index.WorkCubeImage.html +2 -2
  104. package/docs/interfaces/index.WorkImage.html +5 -5
  105. package/docs/interfaces/index.WorkInitial.html +8 -8
  106. package/docs/interfaces/index.WorkInitialJson.html +2 -2
  107. package/docs/interfaces/index.WorkJson.html +2 -4
  108. package/docs/interfaces/index.WorkModel.html +8 -8
  109. package/docs/interfaces/index.WorkModelJson.html +2 -2
  110. package/docs/interfaces/index.WorkModelLayer.html +6 -6
  111. package/docs/interfaces/index.WorkModelLayerJson.html +2 -2
  112. package/docs/interfaces/index.WorkObserver.html +23 -23
  113. package/docs/interfaces/index.WorkObserverJson.html +2 -2
  114. package/docs/interfaces/index.WorkPanoramaJson.html +2 -2
  115. package/docs/interfaces/index.WorkPanoramasJson.html +2 -2
  116. package/docs/interfaces/index.WorkTile.html +5 -5
  117. package/docs/interfaces/index.WorkVideo.html +4 -4
  118. package/docs/interfaces/index.WorksEvent.html +1 -1
  119. package/docs/interfaces/index.XRControllerEvent.html +1 -1
  120. package/docs/interfaces/index.XRGestureEvent.html +2 -2
  121. package/docs/interfaces/index.XRPanoramaControllerCustomInitArgs.html +1 -1
  122. package/docs/interfaces/index.XRSessionEvent.html +1 -1
  123. package/docs/modules/index.html +1 -1
  124. package/docs/types/index.LegacyEventType.html +3 -3
  125. package/docs/types/index.OutputTextureDataType.html +1 -1
  126. package/docs/types/index.ParseOptions.html +8 -8
  127. package/docs/types/index.PointCloudTransparencyMode.html +2 -0
  128. package/docs/types/index.Works.html +1 -1
  129. package/docs/variables/index.loadAt3d.html +2 -0
  130. package/docs/variables/index.loadDome.html +2 -0
  131. package/docs/variables/index.loadDomez.html +2 -0
  132. package/docs/variables/index.loadGltf.html +2 -0
  133. package/docs/variables/index.loadPbm.html +2 -0
  134. package/docs/variables/index.loadPly.html +2 -0
  135. package/five/application/five.d.ts +13 -0
  136. package/five/chunks/at3d.js +338 -0
  137. package/five/chunks/at3d.mjs +338 -0
  138. package/five/chunks/dome.js +338 -0
  139. package/five/chunks/dome.mjs +338 -0
  140. package/five/chunks/domez.js +338 -0
  141. package/five/chunks/domez.mjs +338 -0
  142. package/five/chunks/fbx.js +338 -0
  143. package/five/chunks/fbx.mjs +338 -0
  144. package/five/chunks/fflate.js +338 -0
  145. package/five/chunks/fflate.mjs +338 -0
  146. package/five/chunks/glTF-helpers.js +804 -0
  147. package/five/chunks/glTF-helpers.mjs +804 -0
  148. package/five/chunks/gltf.js +338 -0
  149. package/five/chunks/gltf.mjs +338 -0
  150. package/five/chunks/imageBitmap.js +338 -0
  151. package/five/chunks/imageBitmap.mjs +338 -0
  152. package/five/chunks/imageSupport.js +338 -0
  153. package/five/chunks/imageSupport.mjs +338 -0
  154. package/five/chunks/lzma.js +383 -0
  155. package/five/chunks/lzma.mjs +383 -0
  156. package/five/chunks/memoryUsage.js +339 -0
  157. package/five/chunks/memoryUsage.mjs +339 -0
  158. package/five/chunks/minimal.js +338 -0
  159. package/five/chunks/minimal.mjs +338 -0
  160. package/five/chunks/pbm.js +338 -0
  161. package/five/chunks/pbm.mjs +338 -0
  162. package/five/chunks/pbmGaussianSplattingObject.js +338 -0
  163. package/five/chunks/pbmGaussianSplattingObject.mjs +338 -0
  164. package/five/chunks/pbmMeshMaterial.js +338 -0
  165. package/five/chunks/pbmMeshMaterial.mjs +338 -0
  166. package/five/chunks/pick.js +338 -0
  167. package/five/chunks/pick.mjs +338 -0
  168. package/five/chunks/ply.js +339 -0
  169. package/five/chunks/ply.mjs +339 -0
  170. package/five/chunks/spz.js +364 -0
  171. package/five/chunks/spz.mjs +364 -0
  172. package/five/controllers/xrPanorama.d.ts +13 -0
  173. package/five/core/internalWebGPURenderer.d.ts +0 -3
  174. package/five/core/panoVideo.d.ts +2 -0
  175. package/five/core/webglBlendEquationFix.d.ts +41 -0
  176. package/five/gaussian-splatting/arena/splatArena.d.ts +227 -0
  177. package/five/gaussian-splatting/cullConstants.d.ts +68 -0
  178. package/five/gaussian-splatting/hybridConstants.d.ts +60 -0
  179. package/five/gaussian-splatting/instancePacking.d.ts +46 -0
  180. package/five/gaussian-splatting/mirrors/layoutMirror.d.ts +44 -0
  181. package/five/gaussian-splatting/mirrors/mirrorBuffer.d.ts +72 -0
  182. package/five/gaussian-splatting/mirrors/mirrorSet.d.ts +17 -0
  183. package/five/gaussian-splatting/mirrors/objectParamsMirror.d.ts +35 -0
  184. package/five/gaussian-splatting/mirrors/transformMirror.d.ts +26 -0
  185. package/five/gaussian-splatting/pipelines/gpuSortPipeline.d.ts +5 -31
  186. package/five/gaussian-splatting/pipelines/pipelineMode.d.ts +1 -2
  187. package/five/gaussian-splatting/sh-core/codec.d.ts +13 -0
  188. package/five/gaussian-splatting/sh-core/constants.d.ts +29 -0
  189. package/five/gaussian-splatting/sh-core/index.d.ts +4 -0
  190. package/five/gaussian-splatting/sh-core/rebakePolicy.d.ts +20 -0
  191. package/five/gaussian-splatting/sh-core/texelRange.d.ts +18 -0
  192. package/five/gaussian-splatting/shAssembler.d.ts +14 -0
  193. package/five/gaussian-splatting/shBakeScheduler.d.ts +26 -0
  194. package/five/gaussian-splatting/shBaker.d.ts +44 -0
  195. package/five/gaussian-splatting/shTileResource.d.ts +22 -0
  196. package/five/gaussian-splatting/splatAssembler.d.ts +1 -1
  197. package/five/gaussian-splatting/transformStore.d.ts +2 -2
  198. package/five/gaussian-splatting/worker/decodeWorker.d.ts +72 -0
  199. package/five/index.d.ts +0 -1
  200. package/five/index.js +138 -640
  201. package/five/index.mjs +229 -29261
  202. package/five/model/index.d.ts +18 -6
  203. package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz.d.ts +1 -1
  204. package/five/model/loaders/glTF-helpers/extensions/KHR_gaussian_splatting_compression_spz_2.d.ts +1 -1
  205. package/five/model/loaders/ply.d.ts +22 -6
  206. package/five/model/loaders/spz.d.ts +9 -49
  207. package/five/model/loaders/spz.worker.d.ts +37 -0
  208. package/five/model/materials/pbmGaussianSplattingNodeMaterial.d.ts +6 -12
  209. package/five/model/objects/pbmGaussianSplattingObject.d.ts +91 -6
  210. package/five/model/objects/pbmGaussianSplattingRenderMesh.d.ts +357 -15
  211. package/five/model/parameter.d.ts +4 -0
  212. package/five/renderer/compute-renderers/binned/binned-core.d.ts +45 -2
  213. package/five/renderer/compute-renderers/binned/binned-pipelines.d.ts +82 -1
  214. package/five/renderer/compute-renderers/color-space.d.ts +13 -0
  215. package/five/renderer/compute-renderers/composite-pipelines.d.ts +36 -0
  216. package/five/renderer/compute-renderers/frame-plan.d.ts +166 -0
  217. package/five/renderer/compute-renderers/gsplat-hybrid-renderer.d.ts +386 -0
  218. package/five/renderer/compute-renderers/pointcloud-compute-renderer.d.ts +101 -16
  219. package/five/renderer/compute-renderers/shaders/composite-blend.d.ts +2 -0
  220. package/five/renderer/compute-renderers/shaders/gsplatHybridIndirect.d.ts +2 -0
  221. package/five/renderer/compute-renderers/shaders/gsplatProjector.d.ts +2 -0
  222. package/five/renderer/compute-renderers/shaders/gsplatQuad.d.ts +2 -0
  223. package/five/renderer/compute-renderers/shaders/lib/write-additive.d.ts +2 -0
  224. package/five/renderer/compute-renderers/shaders/lib/write-blend.d.ts +2 -0
  225. package/five/renderer/compute-renderers/shaders/lib/write-opaque.d.ts +2 -0
  226. package/five/renderer/compute-renderers/tile-uniform-writer.d.ts +70 -0
  227. package/five/renderer/compute-renderers/transparency-buffers.d.ts +59 -0
  228. package/five/renderer/compute-renderers/transparency-math.d.ts +70 -0
  229. package/five/renderer/compute-renderers/transparency-settings.d.ts +24 -0
  230. package/five/renderer/compute-renderers/uniform-layout.d.ts +11 -2
  231. package/five/renderer/five-renderer.d.ts +28 -3
  232. package/five/renderer/index.d.ts +1 -1
  233. package/five/renderer/postprocessing/passes/pass.js +3 -3
  234. package/five/renderer/postprocessing/passes/pass.mjs +3 -3
  235. package/five/renderer/tools/full-screen-quad.js +3 -3
  236. package/five/renderer/tools/full-screen-quad.mjs +3 -3
  237. package/five/texture/videoTextureBridge.d.ts +152 -0
  238. package/five/thirdparty/sha256.d.ts +149 -0
  239. package/five/utils/calculateThreeMouse.js +3 -3
  240. package/five/utils/calculateThreeMouse.mjs +3 -3
  241. package/five/utils/distance.js +3 -3
  242. package/five/utils/distance.mjs +3 -3
  243. package/five/utils/isNil.js +3 -3
  244. package/five/utils/isNil.mjs +3 -3
  245. package/five/utils/memoryUsage.d.ts +1 -1
  246. package/five/utils/uuid.js +3 -3
  247. package/five/utils/uuid.mjs +3 -3
  248. package/five/work/work.d.ts +0 -7
  249. package/five/work/workJsonType.d.ts +0 -2
  250. package/gltf-loader/index.js +3 -3
  251. package/gltf-loader/index.mjs +3 -50
  252. package/line/index.js +3 -3
  253. package/line/index.mjs +3 -88
  254. package/package.json +1 -1
  255. package/plugins/BackgroundPlugin/Controller.js +4 -4
  256. package/plugins/BackgroundPlugin/Controller.mjs +4 -4
  257. package/plugins/BackgroundPlugin/index.js +3 -3
  258. package/plugins/BackgroundPlugin/index.mjs +3 -3
  259. package/plugins/BasePlugin/index.js +3 -3
  260. package/plugins/BasePlugin/index.mjs +3 -3
  261. package/plugins/CSS2DPlugin/Controller.js +3 -3
  262. package/plugins/CSS2DPlugin/Controller.mjs +3 -3
  263. package/plugins/CSS2DPlugin/index.js +3 -3
  264. package/plugins/CSS2DPlugin/index.mjs +3 -3
  265. package/plugins/CSS2DPlugin/style.css_raw.js +4 -4
  266. package/plugins/CSS2DPlugin/style.css_raw.mjs +4 -4
  267. package/plugins/CSS3DPlugin/Controller.js +3 -3
  268. package/plugins/CSS3DPlugin/Controller.mjs +3 -3
  269. package/plugins/CSS3DPlugin/index.js +3 -3
  270. package/plugins/CSS3DPlugin/index.mjs +3 -3
  271. package/plugins/CSS3DPlugin/style.css_raw.js +4 -4
  272. package/plugins/CSS3DPlugin/style.css_raw.mjs +4 -4
  273. package/plugins/FloorplanPlugin/Controller.js +3 -3
  274. package/plugins/FloorplanPlugin/Controller.mjs +3 -3
  275. package/plugins/FloorplanPlugin/index.js +3 -3
  276. package/plugins/FloorplanPlugin/index.mjs +3 -3
  277. package/plugins/FloorplanPlugin/render/assets.js +3 -3
  278. package/plugins/FloorplanPlugin/render/assets.mjs +3 -3
  279. package/plugins/FloorplanPlugin/render/index.js +3 -3
  280. package/plugins/FloorplanPlugin/render/index.mjs +3 -3
  281. package/plugins/FloorplanPlugin/render/isPointInPolygon.js +3 -3
  282. package/plugins/FloorplanPlugin/render/isPointInPolygon.mjs +3 -3
  283. package/plugins/FloorplanPlugin/render/renderFloor.js +3 -3
  284. package/plugins/FloorplanPlugin/render/renderFloor.mjs +3 -3
  285. package/plugins/FloorplanPlugin/render/roomLabelVisibility.js +3 -3
  286. package/plugins/FloorplanPlugin/render/roomLabelVisibility.mjs +3 -3
  287. package/plugins/FloorplanPlugin/render/style.css_raw.js +4 -4
  288. package/plugins/FloorplanPlugin/render/style.css_raw.mjs +4 -4
  289. package/plugins/FloorplanPlugin/utils/changeMode.js +3 -3
  290. package/plugins/FloorplanPlugin/utils/changeMode.mjs +3 -3
  291. package/plugins/FloorplanPlugin/utils/changeModelCanvasOpacity.js +3 -3
  292. package/plugins/FloorplanPlugin/utils/changeModelCanvasOpacity.mjs +3 -3
  293. package/plugins/FloorplanPlugin/utils/correctFiveState.js +3 -3
  294. package/plugins/FloorplanPlugin/utils/correctFiveState.mjs +3 -3
  295. package/plugins/FloorplanPlugin/utils/equal.js +3 -3
  296. package/plugins/FloorplanPlugin/utils/equal.mjs +3 -3
  297. package/plugins/FloorplanPlugin/utils/filter.js +3 -3
  298. package/plugins/FloorplanPlugin/utils/filter.mjs +3 -3
  299. package/plugins/FloorplanPlugin/utils/fiveModelLoad.js +3 -3
  300. package/plugins/FloorplanPlugin/utils/fiveModelLoad.mjs +3 -3
  301. package/plugins/FloorplanPlugin/utils/formatData.js +3 -3
  302. package/plugins/FloorplanPlugin/utils/formatData.mjs +3 -3
  303. package/plugins/FloorplanPlugin/utils/formatFloorplanJson.js +3 -3
  304. package/plugins/FloorplanPlugin/utils/formatFloorplanJson.mjs +3 -3
  305. package/plugins/FloorplanPlugin/utils/formatPosition.js +3 -3
  306. package/plugins/FloorplanPlugin/utils/formatPosition.mjs +3 -3
  307. package/plugins/FloorplanPlugin/utils/getDistanceFromModel.js +3 -3
  308. package/plugins/FloorplanPlugin/utils/getDistanceFromModel.mjs +3 -3
  309. package/plugins/FloorplanPlugin/utils/getPxmm.js +3 -3
  310. package/plugins/FloorplanPlugin/utils/getPxmm.mjs +3 -3
  311. package/plugins/FloorplanPlugin/utils/isTruelyObject.js +3 -3
  312. package/plugins/FloorplanPlugin/utils/isTruelyObject.mjs +3 -3
  313. package/plugins/FloorplanPlugin/utils/nearlyEqual.js +3 -3
  314. package/plugins/FloorplanPlugin/utils/nearlyEqual.mjs +3 -3
  315. package/plugins/FloorplanPlugin/utils/polylabel.js +3 -3
  316. package/plugins/FloorplanPlugin/utils/polylabel.mjs +3 -3
  317. package/plugins/FloorplanPlugin/utils/to.js +3 -3
  318. package/plugins/FloorplanPlugin/utils/to.mjs +3 -3
  319. package/plugins/GaussianSplattingEntranceAnimationPlugin/Controller.d.ts +6 -0
  320. package/plugins/GaussianSplattingEntranceAnimationPlugin/Controller.js +3 -3
  321. package/plugins/GaussianSplattingEntranceAnimationPlugin/Controller.mjs +3 -3
  322. package/plugins/GaussianSplattingEntranceAnimationPlugin/index.js +3 -3
  323. package/plugins/GaussianSplattingEntranceAnimationPlugin/index.mjs +3 -3
  324. package/plugins/Object3DHelperPlugin/Controller.js +3 -3
  325. package/plugins/Object3DHelperPlugin/Controller.mjs +3 -3
  326. package/plugins/Object3DHelperPlugin/Controllers/BaseController.js +3 -3
  327. package/plugins/Object3DHelperPlugin/Controllers/BaseController.mjs +3 -3
  328. package/plugins/Object3DHelperPlugin/Controllers/BoundingBoxController.js +3 -3
  329. package/plugins/Object3DHelperPlugin/Controllers/BoundingBoxController.mjs +3 -3
  330. package/plugins/Object3DHelperPlugin/Controllers/MoveController.js +3 -3
  331. package/plugins/Object3DHelperPlugin/Controllers/MoveController.mjs +3 -3
  332. package/plugins/Object3DHelperPlugin/Controllers/RotateController.js +3 -3
  333. package/plugins/Object3DHelperPlugin/Controllers/RotateController.mjs +3 -3
  334. package/plugins/Object3DHelperPlugin/FiveControllerWrapper.js +3 -3
  335. package/plugins/Object3DHelperPlugin/FiveControllerWrapper.mjs +3 -3
  336. package/plugins/Object3DHelperPlugin/Helper/BaseHelper.js +3 -3
  337. package/plugins/Object3DHelperPlugin/Helper/BaseHelper.mjs +3 -3
  338. package/plugins/Object3DHelperPlugin/Helper/BoundingBoxHelper.js +3 -3
  339. package/plugins/Object3DHelperPlugin/Helper/BoundingBoxHelper.mjs +3 -3
  340. package/plugins/Object3DHelperPlugin/Helper/MoveHelper.js +3 -3
  341. package/plugins/Object3DHelperPlugin/Helper/MoveHelper.mjs +3 -3
  342. package/plugins/Object3DHelperPlugin/Helper/RotateHelper.js +3 -3
  343. package/plugins/Object3DHelperPlugin/Helper/RotateHelper.mjs +3 -3
  344. package/plugins/Object3DHelperPlugin/constant.js +3 -3
  345. package/plugins/Object3DHelperPlugin/constant.mjs +3 -3
  346. package/plugins/Object3DHelperPlugin/index.js +3 -3
  347. package/plugins/Object3DHelperPlugin/index.mjs +3 -3
  348. package/plugins/Object3DHelperPlugin/utils/ArrowGroup.js +3 -3
  349. package/plugins/Object3DHelperPlugin/utils/ArrowGroup.mjs +3 -3
  350. package/plugins/Object3DHelperPlugin/utils/CenterHandle.js +3 -3
  351. package/plugins/Object3DHelperPlugin/utils/CenterHandle.mjs +3 -3
  352. package/plugins/Object3DHelperPlugin/utils/PlaneHandle.js +3 -3
  353. package/plugins/Object3DHelperPlugin/utils/PlaneHandle.mjs +3 -3
  354. package/plugins/Object3DHelperPlugin/utils/calculateScaleByCamera.js +3 -3
  355. package/plugins/Object3DHelperPlugin/utils/calculateScaleByCamera.mjs +3 -3
  356. package/plugins/Object3DHelperPlugin/utils/cameraHooks.js +3 -3
  357. package/plugins/Object3DHelperPlugin/utils/cameraHooks.mjs +3 -3
  358. package/plugins/Object3DHelperPlugin/utils/direction.js +3 -3
  359. package/plugins/Object3DHelperPlugin/utils/direction.mjs +3 -3
  360. package/plugins/Object3DHelperPlugin/utils/getMouseRaycaster.js +3 -3
  361. package/plugins/Object3DHelperPlugin/utils/getMouseRaycaster.mjs +3 -3
  362. package/plugins/Object3DHelperPlugin/utils/getOrthographicCameraDirection.js +3 -3
  363. package/plugins/Object3DHelperPlugin/utils/getOrthographicCameraDirection.mjs +3 -3
  364. package/plugins/Object3DHelperPlugin/utils/setObjectQuaternion.js +3 -3
  365. package/plugins/Object3DHelperPlugin/utils/setObjectQuaternion.mjs +3 -3
  366. package/plugins/Object3DHelperPlugin/utils/solidGuide.js +3 -3
  367. package/plugins/Object3DHelperPlugin/utils/solidGuide.mjs +3 -3
  368. package/plugins/Object3DHelperPlugin/utils/tipsDom.js +3 -3
  369. package/plugins/Object3DHelperPlugin/utils/tipsDom.mjs +3 -3
  370. package/plugins/PanoAnimePlugin/Controller.js +3 -3
  371. package/plugins/PanoAnimePlugin/Controller.mjs +3 -3
  372. package/plugins/PanoAnimePlugin/index.js +3 -3
  373. package/plugins/PanoAnimePlugin/index.mjs +3 -3
  374. package/plugins/WordPassPlugin/Controller.js +3 -3
  375. package/plugins/WordPassPlugin/Controller.mjs +3 -3
  376. package/plugins/WordPassPlugin/hersheyFont.js +3 -3
  377. package/plugins/WordPassPlugin/hersheyFont.mjs +3 -3
  378. package/plugins/WordPassPlugin/index.js +3 -3
  379. package/plugins/WordPassPlugin/index.mjs +3 -3
  380. package/plugins/WordPassPlugin/textToStrokeOrderStrokes.js +4 -4
  381. package/plugins/WordPassPlugin/textToStrokeOrderStrokes.mjs +4 -4
  382. package/plugins/WordPassPlugin/word-pass.js +3 -3
  383. package/plugins/WordPassPlugin/word-pass.mjs +3 -3
  384. package/plugins/index.js +3 -3
  385. package/plugins/index.mjs +3 -3
  386. package/plugins/thirdParty/CSS2DRenderer.js +3 -3
  387. package/plugins/thirdParty/CSS2DRenderer.mjs +3 -3
  388. package/plugins/thirdParty/CSS3DRenderer.js +3 -3
  389. package/plugins/thirdParty/CSS3DRenderer.mjs +3 -3
  390. package/plugins/thirdParty/doctorstrange-model.js +75 -75
  391. package/plugins/thirdParty/doctorstrange-model.mjs +75 -75
  392. package/plugins/thirdParty/domevents.js +3 -3
  393. package/plugins/thirdParty/domevents.mjs +3 -3
  394. package/plugins/utils/absoluteUrl.js +3 -3
  395. package/plugins/utils/absoluteUrl.mjs +3 -3
  396. package/plugins/utils/calculatePath.js +3 -3
  397. package/plugins/utils/calculatePath.mjs +3 -3
  398. package/plugins/utils/clamp.js +3 -3
  399. package/plugins/utils/clamp.mjs +3 -3
  400. package/plugins/utils/uuid.js +3 -3
  401. package/plugins/utils/uuid.mjs +3 -3
  402. package/react/hooks/useFiveModelReadyState.d.ts +1 -1
  403. package/react/index.js +3 -3
  404. package/react/index.mjs +3 -644
  405. package/sticker/index.d.ts +7 -0
  406. package/sticker/index.js +46 -3
  407. package/sticker/index.mjs +43 -103
  408. package/umd/five-gltf-loader.js +3 -3
  409. package/umd/five-line.js +3 -3
  410. package/umd/five-plugins.js +3 -3
  411. package/umd/five-react.js +2 -2
  412. package/umd/five-sticker.js +46 -3
  413. package/umd/five-vfx.js +2 -2
  414. package/umd/five.js +216 -179
  415. package/vfx/index.js +3 -3
  416. package/vfx/index.mjs +3 -486
  417. package/work-downloader/index.js +3 -3
  418. package/work-downloader/index.mjs +3 -315
  419. package/docs/functions/index.loadAt3d.html +0 -1
  420. package/docs/functions/index.loadDome.html +0 -1
  421. package/docs/functions/index.loadDomez.html +0 -1
  422. package/docs/functions/index.loadGltf.html +0 -1
  423. package/docs/functions/index.loadPbm.html +0 -1
  424. package/docs/functions/index.loadPly.html +0 -1
  425. package/five/certificates/hardware.d.ts +0 -1
  426. package/five/gaussian-splatting/shStore.d.ts +0 -22
  427. package/five/thirdparty/jsrsasign.d.ts +0 -753
  428. package/five/work/keychain.d.ts +0 -5
  429. package/five/work/verify.d.ts +0 -7
  430. package/five/work/workVerify.d.ts +0 -2
  431. /package/five/{work/_ALLOW_HOST.d.ts → renderer/compute-renderers/shaders/composite-additive.d.ts} +0 -0
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five-webgpu
4
- * Generated: 2026/10/29
5
- * Version: 1.0.0-alpha.12
4
+ * Generated: 2026/11/3
5
+ * Version: 1.0.0-alpha.14
6
6
  * License:
7
7
  * Realsee SDK License Agreement
8
8
 
@@ -335,4 +335,4 @@
335
335
  * writing and signed by Realsee. You and Realsee hereto confirm that this
336
336
  * Agreement and all related documents shall be drafted in English.
337
337
 
338
- */var e=class{constructor(e,t,n,r,i,a,o,s,c){this.onFiveWantsTapGesture=e=>{if(!this.helperController)return;if(this.helperController.preventTapDefaultEvent)return!1;let t=this.helperController.onWantsTapGesture(e);return this.five.needsRender=!0,t},this.onFiveWantsGesture=(...e)=>{if(!this.helperController)return;let t=this.helperController.onWantsGesture(...e);return this.five.needsRender=!0,t},this.onFiveIntersectionOnModelUpdate=(...e)=>{this.helperController&&this.helperController.onIntersectionOnModelUpdate(...e)};let{camera:l,model:u,scene:d}=e,f=e.getElement();if(this.five=e,!l||!u||!f||!d)return;let p=c==null?d:c,m=()=>{e.needsRender=!0};this.helperController=new n({camera:l,model:u,domEvents:t,originObject3D:r,helperObject3D:i,container:f,scene:p,onRender:m,sharedHooks:o,sharedInternalHooks:s},a),e.on(`wantsTapGesture`,this.onFiveWantsTapGesture),e.on(`wantsGesture`,this.onFiveWantsGesture),e.on(`intersectionOnModelUpdate`,this.onFiveIntersectionOnModelUpdate)}dispose(){var e;this.five.off(`wantsTapGesture`,this.onFiveWantsTapGesture),this.five.off(`wantsGesture`,this.onFiveWantsGesture),this.five.off(`intersectionOnModelUpdate`,this.onFiveIntersectionOnModelUpdate),(e=this.helperController)==null||e.dispose()}};exports.ControllerWrapper=e,exports.FiveControllerWrapper=e;
338
+ */var ControllerWrapper=class{constructor(five,donEvents,HelperController,object,helperObject3D,HelperControllerConfig,hooks,internalHooks,helperGroup){this.onFiveWantsTapGesture=params=>{if(!this.helperController)return;if(this.helperController.preventTapDefaultEvent)return!1;let result=this.helperController.onWantsTapGesture(params);return this.five.needsRender=!0,result},this.onFiveWantsGesture=(...params)=>{if(!this.helperController)return;let result=this.helperController.onWantsGesture(...params);return this.five.needsRender=!0,result},this.onFiveIntersectionOnModelUpdate=(...params)=>{this.helperController&&this.helperController.onIntersectionOnModelUpdate(...params)};let{camera,model,scene}=five,container=five.getElement();if(this.five=five,!camera||!model||!container||!scene)return;let targetScene=helperGroup==null?scene:helperGroup,onRender=()=>{five.needsRender=!0};this.helperController=new HelperController({camera,model,domEvents:donEvents,originObject3D:object,helperObject3D,container,scene:targetScene,onRender,sharedHooks:hooks,sharedInternalHooks:internalHooks},HelperControllerConfig),five.on(`wantsTapGesture`,this.onFiveWantsTapGesture),five.on(`wantsGesture`,this.onFiveWantsGesture),five.on(`intersectionOnModelUpdate`,this.onFiveIntersectionOnModelUpdate)}dispose(){var _a;this.five.off(`wantsTapGesture`,this.onFiveWantsTapGesture),this.five.off(`wantsGesture`,this.onFiveWantsGesture),this.five.off(`intersectionOnModelUpdate`,this.onFiveIntersectionOnModelUpdate),(_a=this.helperController)==null||_a.dispose()}};exports.ControllerWrapper=ControllerWrapper,exports.FiveControllerWrapper=ControllerWrapper;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five-webgpu
4
- * Generated: 2026/10/29
5
- * Version: 1.0.0-alpha.12
4
+ * Generated: 2026/11/3
5
+ * Version: 1.0.0-alpha.14
6
6
  * License:
7
7
  * Realsee SDK License Agreement
8
8
 
@@ -335,4 +335,4 @@
335
335
  * writing and signed by Realsee. You and Realsee hereto confirm that this
336
336
  * Agreement and all related documents shall be drafted in English.
337
337
 
338
- */var e=class{constructor(e,t,n,r,i,a,o,s,c){this.onFiveWantsTapGesture=e=>{if(!this.helperController)return;if(this.helperController.preventTapDefaultEvent)return!1;let t=this.helperController.onWantsTapGesture(e);return this.five.needsRender=!0,t},this.onFiveWantsGesture=(...e)=>{if(!this.helperController)return;let t=this.helperController.onWantsGesture(...e);return this.five.needsRender=!0,t},this.onFiveIntersectionOnModelUpdate=(...e)=>{this.helperController&&this.helperController.onIntersectionOnModelUpdate(...e)};let{camera:l,model:u,scene:d}=e,f=e.getElement();if(this.five=e,!l||!u||!f||!d)return;let p=c==null?d:c,m=()=>{e.needsRender=!0};this.helperController=new n({camera:l,model:u,domEvents:t,originObject3D:r,helperObject3D:i,container:f,scene:p,onRender:m,sharedHooks:o,sharedInternalHooks:s},a),e.on(`wantsTapGesture`,this.onFiveWantsTapGesture),e.on(`wantsGesture`,this.onFiveWantsGesture),e.on(`intersectionOnModelUpdate`,this.onFiveIntersectionOnModelUpdate)}dispose(){var e;this.five.off(`wantsTapGesture`,this.onFiveWantsTapGesture),this.five.off(`wantsGesture`,this.onFiveWantsGesture),this.five.off(`intersectionOnModelUpdate`,this.onFiveIntersectionOnModelUpdate),(e=this.helperController)==null||e.dispose()}};export{e as ControllerWrapper,e as FiveControllerWrapper};
338
+ */var ControllerWrapper=class{constructor(five,donEvents,HelperController,object,helperObject3D,HelperControllerConfig,hooks,internalHooks,helperGroup){this.onFiveWantsTapGesture=params=>{if(!this.helperController)return;if(this.helperController.preventTapDefaultEvent)return!1;let result=this.helperController.onWantsTapGesture(params);return this.five.needsRender=!0,result},this.onFiveWantsGesture=(...params)=>{if(!this.helperController)return;let result=this.helperController.onWantsGesture(...params);return this.five.needsRender=!0,result},this.onFiveIntersectionOnModelUpdate=(...params)=>{this.helperController&&this.helperController.onIntersectionOnModelUpdate(...params)};let{camera,model,scene}=five,container=five.getElement();if(this.five=five,!camera||!model||!container||!scene)return;let targetScene=helperGroup==null?scene:helperGroup,onRender=()=>{five.needsRender=!0};this.helperController=new HelperController({camera,model,domEvents:donEvents,originObject3D:object,helperObject3D,container,scene:targetScene,onRender,sharedHooks:hooks,sharedInternalHooks:internalHooks},HelperControllerConfig),five.on(`wantsTapGesture`,this.onFiveWantsTapGesture),five.on(`wantsGesture`,this.onFiveWantsGesture),five.on(`intersectionOnModelUpdate`,this.onFiveIntersectionOnModelUpdate)}dispose(){var _a;this.five.off(`wantsTapGesture`,this.onFiveWantsTapGesture),this.five.off(`wantsGesture`,this.onFiveWantsGesture),this.five.off(`intersectionOnModelUpdate`,this.onFiveIntersectionOnModelUpdate),(_a=this.helperController)==null||_a.dispose()}};export{ControllerWrapper,ControllerWrapper as FiveControllerWrapper};
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five-webgpu
4
- * Generated: 2026/10/29
5
- * Version: 1.0.0-alpha.12
4
+ * Generated: 2026/11/3
5
+ * Version: 1.0.0-alpha.14
6
6
  * License:
7
7
  * Realsee SDK License Agreement
8
8
 
@@ -335,4 +335,4 @@
335
335
  * writing and signed by Realsee. You and Realsee hereto confirm that this
336
336
  * Agreement and all related documents shall be drafted in English.
337
337
 
338
- */const e=require("../../../_virtual/_rolldown/runtime.js"),t=require("../utils/setObjectQuaternion.js"),n=require("../../../five/utils/isNil.js");let r=require("three/webgpu");r=e.__toESM(r,1);var i=class extends r.Object3D{removeChildren(){for(;this.children.length>0;)this.remove(this.children[0]);return this}add(...e){let t=e.filter(Boolean);return t.length===0?this:super.add(...t)}addIfNotExists(...e){return e.forEach(e=>{this.children.includes(e)||this.add(e)}),this}remove(...e){if(e.length===0)return this;let t=e.filter(Boolean);return super.remove(...t)}removeFromParent(){let e=this.parent;return e!==null&&e.remove(this),this}get helperObject(){return this}constructor(e,t){var n,r;super(),this.originObject3D=e,this.onRender=(n=t==null?void 0:t.onRender)==null?(()=>{}):n,this.positionFrom=(r=t==null?void 0:t.positionFrom)==null?`objectPosition`:r}render(){this.onRender()}enable(){this.parent&&(this.parent.children.includes(this)||this.parent.add(this))}disable(){this.removeFromParent()}show(){this.visible=!0,this.render()}hide(){this.visible=!1,this.render()}raycasterIntersectObject(e,t=[]){return e.intersectObject(this,!0,t)}initialPosition(e){this.positionFrom===`objectPosition`?this.position.copy(this.originObject3D.position):this.positionFrom===`boundingBox`||this.positionFrom===`boundingSphere`?this.position.copy(new r.Box3().expandByObject(this.originObject3D).getCenter(new r.Vector3)):this.positionFrom instanceof r.Vector3?this.position.copy(this.positionFrom):this.positionFrom instanceof Function&&this.position.copy(this.positionFrom(this.originObject3D)),e&&this.position.add(e)}setScaleByCamera(e){}initQuaternion(e){if(this.quaternion.set(0,0,0,1),e&&(e.xAxis||e.yAxis||e.zAxis)){let t=e.xAxis instanceof Function?e.xAxis():e.xAxis,i=e.yAxis instanceof Function?e.yAxis():e.yAxis,a=e.zAxis instanceof Function?e.zAxis():e.zAxis,o=t==null?void 0:t.clone(),s=i==null?void 0:i.clone(),c=a==null?void 0:a.clone();if(o&&!s&&!s){let e=new r.Quaternion().setFromUnitVectors(new r.Vector3(1,0,0),o.normalize());this.applyQuaternion(e)}if(s&&!o&&!c){let e=new r.Quaternion().setFromUnitVectors(new r.Vector3(0,1,0),s.normalize());this.applyQuaternion(e)}if(c&&!o&&!s){let e=new r.Quaternion().setFromUnitVectors(new r.Vector3(0,0,1),c.normalize());this.applyQuaternion(e)}if([o,s,c].filter(e=>!n.isNil(e)).length>=2){o||(o=new r.Vector3().crossVectors(s,c).normalize()),s||(s=new r.Vector3().crossVectors(o,c).normalize()),c||(c=new r.Vector3().crossVectors(o,s).normalize()),o.applyQuaternion(this.quaternion),s.applyQuaternion(this.quaternion),c.applyQuaternion(this.quaternion);let e=new r.Matrix4().makeBasis(o,s,c),t=new r.Quaternion().setFromRotationMatrix(e);this.quaternion.copy(t)}}}applyHelperScaleMatrix4(e,t){this.scale.applyMatrix4(e)}setHelperQuaternion(e,n){this.initQuaternion(),n?t.default(this,this.quaternion.clone().premultiply(e),n):this.quaternion.premultiply(e)}applyHelperQuaternion(e,t){if(t){let n=new r.Vector3().subVectors(this.position,t).applyQuaternion(e).add(t);this.position.copy(n)}this.applyQuaternion(e)}dispose(){this.removeFromParent()}},a=class extends i{},o=class extends i{},s=class extends i{};exports.BaseHelper=i,exports.BoundingBoxHelperAbstract=o,exports.MoveHelperAbstract=a,exports.RotateHelperAbstract=s;
338
+ */const require_runtime=require("../../../_virtual/_rolldown/runtime.js"),require_setObjectQuaternion=require("../utils/setObjectQuaternion.js"),require_isNil=require("../../../five/utils/isNil.js");let three_webgpu=require("three/webgpu");three_webgpu=require_runtime.__toESM(three_webgpu,1);var BaseHelper=class extends three_webgpu.Object3D{removeChildren(){for(;this.children.length>0;)this.remove(this.children[0]);return this}add(...objects){let notNilObjects=objects.filter(Boolean);return notNilObjects.length===0?this:super.add(...notNilObjects)}addIfNotExists(...objects){return objects.forEach(object=>{this.children.includes(object)||this.add(object)}),this}remove(...objects){if(objects.length===0)return this;let notNilObjects=objects.filter(Boolean);return super.remove(...notNilObjects)}removeFromParent(){let parent=this.parent;return parent!==null&&parent.remove(this),this}get helperObject(){return this}constructor(originObject3D,config){var _a,_b;super(),this.originObject3D=originObject3D,this.onRender=(_a=config==null?void 0:config.onRender)==null?(()=>{}):_a,this.positionFrom=(_b=config==null?void 0:config.positionFrom)==null?`objectPosition`:_b}render(){this.onRender()}enable(){this.parent&&(this.parent.children.includes(this)||this.parent.add(this))}disable(){this.removeFromParent()}show(){this.visible=!0,this.render()}hide(){this.visible=!1,this.render()}raycasterIntersectObject(raycaster,intersection=[]){return raycaster.intersectObject(this,!0,intersection)}initialPosition(offset){this.positionFrom===`objectPosition`?this.position.copy(this.originObject3D.position):this.positionFrom===`boundingBox`||this.positionFrom===`boundingSphere`?this.position.copy(new three_webgpu.Box3().expandByObject(this.originObject3D).getCenter(new three_webgpu.Vector3)):this.positionFrom instanceof three_webgpu.Vector3?this.position.copy(this.positionFrom):this.positionFrom instanceof Function&&this.position.copy(this.positionFrom(this.originObject3D)),offset&&this.position.add(offset)}setScaleByCamera(camera){}initQuaternion(config){if(this.quaternion.set(0,0,0,1),config&&(config.xAxis||config.yAxis||config.zAxis)){let xAxis=config.xAxis instanceof Function?config.xAxis():config.xAxis,yAxis=config.yAxis instanceof Function?config.yAxis():config.yAxis,zAxis=config.zAxis instanceof Function?config.zAxis():config.zAxis,newX=xAxis==null?void 0:xAxis.clone(),newY=yAxis==null?void 0:yAxis.clone(),newZ=zAxis==null?void 0:zAxis.clone();if(newX&&!newY&&!newY){let quaternionX=new three_webgpu.Quaternion().setFromUnitVectors(new three_webgpu.Vector3(1,0,0),newX.normalize());this.applyQuaternion(quaternionX)}if(newY&&!newX&&!newZ){let quaternionY=new three_webgpu.Quaternion().setFromUnitVectors(new three_webgpu.Vector3(0,1,0),newY.normalize());this.applyQuaternion(quaternionY)}if(newZ&&!newX&&!newY){let quaternionZ=new three_webgpu.Quaternion().setFromUnitVectors(new three_webgpu.Vector3(0,0,1),newZ.normalize());this.applyQuaternion(quaternionZ)}if([newX,newY,newZ].filter(v=>!require_isNil.isNil(v)).length>=2){newX||(newX=new three_webgpu.Vector3().crossVectors(newY,newZ).normalize()),newY||(newY=new three_webgpu.Vector3().crossVectors(newX,newZ).normalize()),newZ||(newZ=new three_webgpu.Vector3().crossVectors(newX,newY).normalize()),newX.applyQuaternion(this.quaternion),newY.applyQuaternion(this.quaternion),newZ.applyQuaternion(this.quaternion);let newMatrix=new three_webgpu.Matrix4().makeBasis(newX,newY,newZ),quaternion=new three_webgpu.Quaternion().setFromRotationMatrix(newMatrix);this.quaternion.copy(quaternion)}}}applyHelperScaleMatrix4(matrix,origin){this.scale.applyMatrix4(matrix)}setHelperQuaternion(quaternion,origin){this.initQuaternion(),origin?require_setObjectQuaternion.default(this,this.quaternion.clone().premultiply(quaternion),origin):this.quaternion.premultiply(quaternion)}applyHelperQuaternion(quaternion,origin){if(origin){let v=new three_webgpu.Vector3().subVectors(this.position,origin).applyQuaternion(quaternion).add(origin);this.position.copy(v)}this.applyQuaternion(quaternion)}dispose(){this.removeFromParent()}},MoveHelperAbstract=class extends BaseHelper{},BoundingBoxHelperAbstract=class extends BaseHelper{},RotateHelperAbstract=class extends BaseHelper{};exports.BaseHelper=BaseHelper,exports.BoundingBoxHelperAbstract=BoundingBoxHelperAbstract,exports.MoveHelperAbstract=MoveHelperAbstract,exports.RotateHelperAbstract=RotateHelperAbstract;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five-webgpu
4
- * Generated: 2026/10/29
5
- * Version: 1.0.0-alpha.12
4
+ * Generated: 2026/11/3
5
+ * Version: 1.0.0-alpha.14
6
6
  * License:
7
7
  * Realsee SDK License Agreement
8
8
 
@@ -335,4 +335,4 @@
335
335
  * writing and signed by Realsee. You and Realsee hereto confirm that this
336
336
  * Agreement and all related documents shall be drafted in English.
337
337
 
338
- */import e from"../utils/setObjectQuaternion.mjs";import{isNil as t}from"../../../five/utils/isNil.mjs";import*as n from"three/webgpu";import{Vector3 as r}from"three/webgpu";var i=class extends n.Object3D{removeChildren(){for(;this.children.length>0;)this.remove(this.children[0]);return this}add(...e){let t=e.filter(Boolean);return t.length===0?this:super.add(...t)}addIfNotExists(...e){return e.forEach(e=>{this.children.includes(e)||this.add(e)}),this}remove(...e){if(e.length===0)return this;let t=e.filter(Boolean);return super.remove(...t)}removeFromParent(){let e=this.parent;return e!==null&&e.remove(this),this}get helperObject(){return this}constructor(e,t){var n,r;super(),this.originObject3D=e,this.onRender=(n=t==null?void 0:t.onRender)==null?(()=>{}):n,this.positionFrom=(r=t==null?void 0:t.positionFrom)==null?`objectPosition`:r}render(){this.onRender()}enable(){this.parent&&(this.parent.children.includes(this)||this.parent.add(this))}disable(){this.removeFromParent()}show(){this.visible=!0,this.render()}hide(){this.visible=!1,this.render()}raycasterIntersectObject(e,t=[]){return e.intersectObject(this,!0,t)}initialPosition(e){this.positionFrom===`objectPosition`?this.position.copy(this.originObject3D.position):this.positionFrom===`boundingBox`||this.positionFrom===`boundingSphere`?this.position.copy(new n.Box3().expandByObject(this.originObject3D).getCenter(new n.Vector3)):this.positionFrom instanceof r?this.position.copy(this.positionFrom):this.positionFrom instanceof Function&&this.position.copy(this.positionFrom(this.originObject3D)),e&&this.position.add(e)}setScaleByCamera(e){}initQuaternion(e){if(this.quaternion.set(0,0,0,1),e&&(e.xAxis||e.yAxis||e.zAxis)){let r=e.xAxis instanceof Function?e.xAxis():e.xAxis,i=e.yAxis instanceof Function?e.yAxis():e.yAxis,a=e.zAxis instanceof Function?e.zAxis():e.zAxis,o=r==null?void 0:r.clone(),s=i==null?void 0:i.clone(),c=a==null?void 0:a.clone();if(o&&!s&&!s){let e=new n.Quaternion().setFromUnitVectors(new n.Vector3(1,0,0),o.normalize());this.applyQuaternion(e)}if(s&&!o&&!c){let e=new n.Quaternion().setFromUnitVectors(new n.Vector3(0,1,0),s.normalize());this.applyQuaternion(e)}if(c&&!o&&!s){let e=new n.Quaternion().setFromUnitVectors(new n.Vector3(0,0,1),c.normalize());this.applyQuaternion(e)}if([o,s,c].filter(e=>!t(e)).length>=2){o||(o=new n.Vector3().crossVectors(s,c).normalize()),s||(s=new n.Vector3().crossVectors(o,c).normalize()),c||(c=new n.Vector3().crossVectors(o,s).normalize()),o.applyQuaternion(this.quaternion),s.applyQuaternion(this.quaternion),c.applyQuaternion(this.quaternion);let e=new n.Matrix4().makeBasis(o,s,c),t=new n.Quaternion().setFromRotationMatrix(e);this.quaternion.copy(t)}}}applyHelperScaleMatrix4(e,t){this.scale.applyMatrix4(e)}setHelperQuaternion(t,n){this.initQuaternion(),n?e(this,this.quaternion.clone().premultiply(t),n):this.quaternion.premultiply(t)}applyHelperQuaternion(e,t){if(t){let n=new r().subVectors(this.position,t).applyQuaternion(e).add(t);this.position.copy(n)}this.applyQuaternion(e)}dispose(){this.removeFromParent()}},a=class extends i{},o=class extends i{},s=class extends i{};export{i as BaseHelper,o as BoundingBoxHelperAbstract,a as MoveHelperAbstract,s as RotateHelperAbstract};
338
+ */import setObjectQuaternion from"../utils/setObjectQuaternion.mjs";import{isNil}from"../../../five/utils/isNil.mjs";import*as THREE from"three/webgpu";import{Vector3}from"three/webgpu";var BaseHelper=class extends THREE.Object3D{removeChildren(){for(;this.children.length>0;)this.remove(this.children[0]);return this}add(...objects){let notNilObjects=objects.filter(Boolean);return notNilObjects.length===0?this:super.add(...notNilObjects)}addIfNotExists(...objects){return objects.forEach(object=>{this.children.includes(object)||this.add(object)}),this}remove(...objects){if(objects.length===0)return this;let notNilObjects=objects.filter(Boolean);return super.remove(...notNilObjects)}removeFromParent(){let parent=this.parent;return parent!==null&&parent.remove(this),this}get helperObject(){return this}constructor(originObject3D,config){var _a,_b;super(),this.originObject3D=originObject3D,this.onRender=(_a=config==null?void 0:config.onRender)==null?(()=>{}):_a,this.positionFrom=(_b=config==null?void 0:config.positionFrom)==null?`objectPosition`:_b}render(){this.onRender()}enable(){this.parent&&(this.parent.children.includes(this)||this.parent.add(this))}disable(){this.removeFromParent()}show(){this.visible=!0,this.render()}hide(){this.visible=!1,this.render()}raycasterIntersectObject(raycaster,intersection=[]){return raycaster.intersectObject(this,!0,intersection)}initialPosition(offset){this.positionFrom===`objectPosition`?this.position.copy(this.originObject3D.position):this.positionFrom===`boundingBox`||this.positionFrom===`boundingSphere`?this.position.copy(new THREE.Box3().expandByObject(this.originObject3D).getCenter(new THREE.Vector3)):this.positionFrom instanceof Vector3?this.position.copy(this.positionFrom):this.positionFrom instanceof Function&&this.position.copy(this.positionFrom(this.originObject3D)),offset&&this.position.add(offset)}setScaleByCamera(camera){}initQuaternion(config){if(this.quaternion.set(0,0,0,1),config&&(config.xAxis||config.yAxis||config.zAxis)){let xAxis=config.xAxis instanceof Function?config.xAxis():config.xAxis,yAxis=config.yAxis instanceof Function?config.yAxis():config.yAxis,zAxis=config.zAxis instanceof Function?config.zAxis():config.zAxis,newX=xAxis==null?void 0:xAxis.clone(),newY=yAxis==null?void 0:yAxis.clone(),newZ=zAxis==null?void 0:zAxis.clone();if(newX&&!newY&&!newY){let quaternionX=new THREE.Quaternion().setFromUnitVectors(new THREE.Vector3(1,0,0),newX.normalize());this.applyQuaternion(quaternionX)}if(newY&&!newX&&!newZ){let quaternionY=new THREE.Quaternion().setFromUnitVectors(new THREE.Vector3(0,1,0),newY.normalize());this.applyQuaternion(quaternionY)}if(newZ&&!newX&&!newY){let quaternionZ=new THREE.Quaternion().setFromUnitVectors(new THREE.Vector3(0,0,1),newZ.normalize());this.applyQuaternion(quaternionZ)}if([newX,newY,newZ].filter(v=>!isNil(v)).length>=2){newX||(newX=new THREE.Vector3().crossVectors(newY,newZ).normalize()),newY||(newY=new THREE.Vector3().crossVectors(newX,newZ).normalize()),newZ||(newZ=new THREE.Vector3().crossVectors(newX,newY).normalize()),newX.applyQuaternion(this.quaternion),newY.applyQuaternion(this.quaternion),newZ.applyQuaternion(this.quaternion);let newMatrix=new THREE.Matrix4().makeBasis(newX,newY,newZ),quaternion=new THREE.Quaternion().setFromRotationMatrix(newMatrix);this.quaternion.copy(quaternion)}}}applyHelperScaleMatrix4(matrix,origin){this.scale.applyMatrix4(matrix)}setHelperQuaternion(quaternion,origin){this.initQuaternion(),origin?setObjectQuaternion(this,this.quaternion.clone().premultiply(quaternion),origin):this.quaternion.premultiply(quaternion)}applyHelperQuaternion(quaternion,origin){if(origin){let v=new Vector3().subVectors(this.position,origin).applyQuaternion(quaternion).add(origin);this.position.copy(v)}this.applyQuaternion(quaternion)}dispose(){this.removeFromParent()}},MoveHelperAbstract=class extends BaseHelper{},BoundingBoxHelperAbstract=class extends BaseHelper{},RotateHelperAbstract=class extends BaseHelper{};export{BaseHelper,BoundingBoxHelperAbstract,MoveHelperAbstract,RotateHelperAbstract};
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five-webgpu
4
- * Generated: 2026/10/29
5
- * Version: 1.0.0-alpha.12
4
+ * Generated: 2026/11/3
5
+ * Version: 1.0.0-alpha.14
6
6
  * License:
7
7
  * Realsee SDK License Agreement
8
8
 
@@ -335,4 +335,4 @@
335
335
  * writing and signed by Realsee. You and Realsee hereto confirm that this
336
336
  * Agreement and all related documents shall be drafted in English.
337
337
 
338
- */const e=require("../../../_virtual/_rolldown/runtime.js"),t=require("../utils/setObjectQuaternion.js"),n=require("./BaseHelper.js");let r=require("three/webgpu");r=e.__toESM(r,1);var i=class extends n.BoundingBoxHelperAbstract{constructor(e){super(e),this.name=`BoundingBoxHelper`,this.positionAttribute=new r.BufferAttribute(new Float32Array(24),3),this.box=this.createBox(),this.outline=this.createOutline(),this.add(this.box,this.outline),this.update()}initQuaternion(){this.quaternion.copy(this.originObject3D.quaternion),this.scale.copy(this.originObject3D.scale)}setHelperQuaternion(e,n){t.default(this,e,n)}raycasterIntersectObject(e,t){return e.intersectObject(this,!1,t)}raycast(e,t){this.box.raycast(e,t)}update(){let e=new r.Box3,t=new r.Matrix4().copy(this.originObject3D.matrixWorld).invert(),n=new r.Vector3;if(this.originObject3D.updateMatrixWorld(!0),this.originObject3D.traverse(i=>{let a=i.geometry;if(!a)return;i.updateMatrixWorld(!0);let o=new r.Matrix4().multiplyMatrices(t,i.matrixWorld);if(a.isBufferGeometry){let t=a,r=t.attributes.position;if(r)for(let t=0,i=r.count;t<i;t++)n.fromBufferAttribute(r,t).applyMatrix4(o),e.expandByPoint(n);let i=t.attributes.instanceStart,s=t.attributes.instanceEnd;if(i)for(let t=0,r=i.count;t<r;t++)n.fromBufferAttribute(i,t).applyMatrix4(o),e.expandByPoint(n);if(s)for(let t=0,r=s.count;t<r;t++)n.fromBufferAttribute(s,t).applyMatrix4(o),e.expandByPoint(n)}else if(a.vertices){let t=a.vertices;for(let r of t)n.copy(r).applyMatrix4(o),e.expandByPoint(n)}}),e.isEmpty())return;let{min:i,max:a}=e;this.positionAttribute.setXYZ(0,a.x,a.y,a.z),this.positionAttribute.setXYZ(1,i.x,a.y,a.z),this.positionAttribute.setXYZ(2,i.x,i.y,a.z),this.positionAttribute.setXYZ(3,a.x,i.y,a.z),this.positionAttribute.setXYZ(4,a.x,a.y,i.z),this.positionAttribute.setXYZ(5,i.x,a.y,i.z),this.positionAttribute.setXYZ(6,i.x,i.y,i.z),this.positionAttribute.setXYZ(7,a.x,i.y,i.z),this.positionAttribute.needsUpdate=!0}createOutline(){let e=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),t=new r.BufferGeometry;t.setIndex(new r.BufferAttribute(e,1)),t.setAttribute(`position`,this.positionAttribute);let n=new r.LineBasicMaterial({color:64767,linewidth:1,opacity:1,toneMapped:!1}),i=new r.LineSegments(t,n);return i.matrixAutoUpdate=!1,i}createBox(){let e=new Uint16Array([0,1,2,0,2,3,0,3,7,0,7,4,0,4,5,0,5,1,6,1,5,6,2,1,6,5,4,6,4,7,6,3,2,6,7,3]),t=new r.BufferGeometry;t.setIndex(new r.BufferAttribute(e,1)),t.setAttribute(`position`,this.positionAttribute);let n=new r.MeshBasicMaterial({color:64767,opacity:.1,depthTest:!1,transparent:!0});return new r.Mesh(t,n)}};exports.BoundingBoxHelper=i;
338
+ */const require_runtime=require("../../../_virtual/_rolldown/runtime.js"),require_setObjectQuaternion=require("../utils/setObjectQuaternion.js"),require_BaseHelper=require("./BaseHelper.js");let three_webgpu=require("three/webgpu");three_webgpu=require_runtime.__toESM(three_webgpu,1);var BoundingBoxHelper=class extends require_BaseHelper.BoundingBoxHelperAbstract{constructor(originObject){super(originObject),this.name=`BoundingBoxHelper`,this.positionAttribute=new three_webgpu.BufferAttribute(new Float32Array(24),3),this.box=this.createBox(),this.outline=this.createOutline(),this.add(this.box,this.outline),this.update()}initQuaternion(){this.quaternion.copy(this.originObject3D.quaternion),this.scale.copy(this.originObject3D.scale)}setHelperQuaternion(quaternion,origin){require_setObjectQuaternion.default(this,quaternion,origin)}raycasterIntersectObject(raycaster,intersection){return raycaster.intersectObject(this,!1,intersection)}raycast(raycaster,intersects){this.box.raycast(raycaster,intersects)}update(){let localBox=new three_webgpu.Box3,inverseMatrix=new three_webgpu.Matrix4().copy(this.originObject3D.matrixWorld).invert(),vertex=new three_webgpu.Vector3;if(this.originObject3D.updateMatrixWorld(!0),this.originObject3D.traverse(child=>{let geometry=child.geometry;if(!geometry)return;child.updateMatrixWorld(!0);let toLocal=new three_webgpu.Matrix4().multiplyMatrices(inverseMatrix,child.matrixWorld);if(geometry.isBufferGeometry){let bufGeom=geometry,position=bufGeom.attributes.position;if(position)for(let i=0,l=position.count;i<l;i++)vertex.fromBufferAttribute(position,i).applyMatrix4(toLocal),localBox.expandByPoint(vertex);let instanceStart=bufGeom.attributes.instanceStart,instanceEnd=bufGeom.attributes.instanceEnd;if(instanceStart)for(let i=0,l=instanceStart.count;i<l;i++)vertex.fromBufferAttribute(instanceStart,i).applyMatrix4(toLocal),localBox.expandByPoint(vertex);if(instanceEnd)for(let i=0,l=instanceEnd.count;i<l;i++)vertex.fromBufferAttribute(instanceEnd,i).applyMatrix4(toLocal),localBox.expandByPoint(vertex)}else if(geometry.vertices){let vertices=geometry.vertices;for(let v of vertices)vertex.copy(v).applyMatrix4(toLocal),localBox.expandByPoint(vertex)}}),localBox.isEmpty())return;let{min,max}=localBox;this.positionAttribute.setXYZ(0,max.x,max.y,max.z),this.positionAttribute.setXYZ(1,min.x,max.y,max.z),this.positionAttribute.setXYZ(2,min.x,min.y,max.z),this.positionAttribute.setXYZ(3,max.x,min.y,max.z),this.positionAttribute.setXYZ(4,max.x,max.y,min.z),this.positionAttribute.setXYZ(5,min.x,max.y,min.z),this.positionAttribute.setXYZ(6,min.x,min.y,min.z),this.positionAttribute.setXYZ(7,max.x,min.y,min.z),this.positionAttribute.needsUpdate=!0}createOutline(){let lineIndices=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),lineGeometry=new three_webgpu.BufferGeometry;lineGeometry.setIndex(new three_webgpu.BufferAttribute(lineIndices,1)),lineGeometry.setAttribute(`position`,this.positionAttribute);let lineMaterial=new three_webgpu.LineBasicMaterial({color:64767,linewidth:1,opacity:1,toneMapped:!1}),lineSegments=new three_webgpu.LineSegments(lineGeometry,lineMaterial);return lineSegments.matrixAutoUpdate=!1,lineSegments}createBox(){let boxIndices=new Uint16Array([0,1,2,0,2,3,0,3,7,0,7,4,0,4,5,0,5,1,6,1,5,6,2,1,6,5,4,6,4,7,6,3,2,6,7,3]),boxGeometry=new three_webgpu.BufferGeometry;boxGeometry.setIndex(new three_webgpu.BufferAttribute(boxIndices,1)),boxGeometry.setAttribute(`position`,this.positionAttribute);let boxMaterial=new three_webgpu.MeshBasicMaterial({color:64767,opacity:.1,depthTest:!1,transparent:!0});return new three_webgpu.Mesh(boxGeometry,boxMaterial)}};exports.BoundingBoxHelper=BoundingBoxHelper;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five-webgpu
4
- * Generated: 2026/10/29
5
- * Version: 1.0.0-alpha.12
4
+ * Generated: 2026/11/3
5
+ * Version: 1.0.0-alpha.14
6
6
  * License:
7
7
  * Realsee SDK License Agreement
8
8
 
@@ -335,4 +335,4 @@
335
335
  * writing and signed by Realsee. You and Realsee hereto confirm that this
336
336
  * Agreement and all related documents shall be drafted in English.
337
337
 
338
- */import e from"../utils/setObjectQuaternion.mjs";import{BoundingBoxHelperAbstract as t}from"./BaseHelper.mjs";import*as n from"three/webgpu";var r=class extends t{constructor(e){super(e),this.name=`BoundingBoxHelper`,this.positionAttribute=new n.BufferAttribute(new Float32Array(24),3),this.box=this.createBox(),this.outline=this.createOutline(),this.add(this.box,this.outline),this.update()}initQuaternion(){this.quaternion.copy(this.originObject3D.quaternion),this.scale.copy(this.originObject3D.scale)}setHelperQuaternion(t,n){e(this,t,n)}raycasterIntersectObject(e,t){return e.intersectObject(this,!1,t)}raycast(e,t){this.box.raycast(e,t)}update(){let e=new n.Box3,t=new n.Matrix4().copy(this.originObject3D.matrixWorld).invert(),r=new n.Vector3;if(this.originObject3D.updateMatrixWorld(!0),this.originObject3D.traverse(i=>{let a=i.geometry;if(!a)return;i.updateMatrixWorld(!0);let o=new n.Matrix4().multiplyMatrices(t,i.matrixWorld);if(a.isBufferGeometry){let t=a,n=t.attributes.position;if(n)for(let t=0,i=n.count;t<i;t++)r.fromBufferAttribute(n,t).applyMatrix4(o),e.expandByPoint(r);let i=t.attributes.instanceStart,s=t.attributes.instanceEnd;if(i)for(let t=0,n=i.count;t<n;t++)r.fromBufferAttribute(i,t).applyMatrix4(o),e.expandByPoint(r);if(s)for(let t=0,n=s.count;t<n;t++)r.fromBufferAttribute(s,t).applyMatrix4(o),e.expandByPoint(r)}else if(a.vertices){let t=a.vertices;for(let n of t)r.copy(n).applyMatrix4(o),e.expandByPoint(r)}}),e.isEmpty())return;let{min:i,max:a}=e;this.positionAttribute.setXYZ(0,a.x,a.y,a.z),this.positionAttribute.setXYZ(1,i.x,a.y,a.z),this.positionAttribute.setXYZ(2,i.x,i.y,a.z),this.positionAttribute.setXYZ(3,a.x,i.y,a.z),this.positionAttribute.setXYZ(4,a.x,a.y,i.z),this.positionAttribute.setXYZ(5,i.x,a.y,i.z),this.positionAttribute.setXYZ(6,i.x,i.y,i.z),this.positionAttribute.setXYZ(7,a.x,i.y,i.z),this.positionAttribute.needsUpdate=!0}createOutline(){let e=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),t=new n.BufferGeometry;t.setIndex(new n.BufferAttribute(e,1)),t.setAttribute(`position`,this.positionAttribute);let r=new n.LineBasicMaterial({color:64767,linewidth:1,opacity:1,toneMapped:!1}),i=new n.LineSegments(t,r);return i.matrixAutoUpdate=!1,i}createBox(){let e=new Uint16Array([0,1,2,0,2,3,0,3,7,0,7,4,0,4,5,0,5,1,6,1,5,6,2,1,6,5,4,6,4,7,6,3,2,6,7,3]),t=new n.BufferGeometry;t.setIndex(new n.BufferAttribute(e,1)),t.setAttribute(`position`,this.positionAttribute);let r=new n.MeshBasicMaterial({color:64767,opacity:.1,depthTest:!1,transparent:!0});return new n.Mesh(t,r)}};export{r as BoundingBoxHelper};
338
+ */import setObjectQuaternion from"../utils/setObjectQuaternion.mjs";import{BoundingBoxHelperAbstract}from"./BaseHelper.mjs";import*as THREE from"three/webgpu";var BoundingBoxHelper=class extends BoundingBoxHelperAbstract{constructor(originObject){super(originObject),this.name=`BoundingBoxHelper`,this.positionAttribute=new THREE.BufferAttribute(new Float32Array(24),3),this.box=this.createBox(),this.outline=this.createOutline(),this.add(this.box,this.outline),this.update()}initQuaternion(){this.quaternion.copy(this.originObject3D.quaternion),this.scale.copy(this.originObject3D.scale)}setHelperQuaternion(quaternion,origin){setObjectQuaternion(this,quaternion,origin)}raycasterIntersectObject(raycaster,intersection){return raycaster.intersectObject(this,!1,intersection)}raycast(raycaster,intersects){this.box.raycast(raycaster,intersects)}update(){let localBox=new THREE.Box3,inverseMatrix=new THREE.Matrix4().copy(this.originObject3D.matrixWorld).invert(),vertex=new THREE.Vector3;if(this.originObject3D.updateMatrixWorld(!0),this.originObject3D.traverse(child=>{let geometry=child.geometry;if(!geometry)return;child.updateMatrixWorld(!0);let toLocal=new THREE.Matrix4().multiplyMatrices(inverseMatrix,child.matrixWorld);if(geometry.isBufferGeometry){let bufGeom=geometry,position=bufGeom.attributes.position;if(position)for(let i=0,l=position.count;i<l;i++)vertex.fromBufferAttribute(position,i).applyMatrix4(toLocal),localBox.expandByPoint(vertex);let instanceStart=bufGeom.attributes.instanceStart,instanceEnd=bufGeom.attributes.instanceEnd;if(instanceStart)for(let i=0,l=instanceStart.count;i<l;i++)vertex.fromBufferAttribute(instanceStart,i).applyMatrix4(toLocal),localBox.expandByPoint(vertex);if(instanceEnd)for(let i=0,l=instanceEnd.count;i<l;i++)vertex.fromBufferAttribute(instanceEnd,i).applyMatrix4(toLocal),localBox.expandByPoint(vertex)}else if(geometry.vertices){let vertices=geometry.vertices;for(let v of vertices)vertex.copy(v).applyMatrix4(toLocal),localBox.expandByPoint(vertex)}}),localBox.isEmpty())return;let{min,max}=localBox;this.positionAttribute.setXYZ(0,max.x,max.y,max.z),this.positionAttribute.setXYZ(1,min.x,max.y,max.z),this.positionAttribute.setXYZ(2,min.x,min.y,max.z),this.positionAttribute.setXYZ(3,max.x,min.y,max.z),this.positionAttribute.setXYZ(4,max.x,max.y,min.z),this.positionAttribute.setXYZ(5,min.x,max.y,min.z),this.positionAttribute.setXYZ(6,min.x,min.y,min.z),this.positionAttribute.setXYZ(7,max.x,min.y,min.z),this.positionAttribute.needsUpdate=!0}createOutline(){let lineIndices=new Uint16Array([0,1,1,2,2,3,3,0,4,5,5,6,6,7,7,4,0,4,1,5,2,6,3,7]),lineGeometry=new THREE.BufferGeometry;lineGeometry.setIndex(new THREE.BufferAttribute(lineIndices,1)),lineGeometry.setAttribute(`position`,this.positionAttribute);let lineMaterial=new THREE.LineBasicMaterial({color:64767,linewidth:1,opacity:1,toneMapped:!1}),lineSegments=new THREE.LineSegments(lineGeometry,lineMaterial);return lineSegments.matrixAutoUpdate=!1,lineSegments}createBox(){let boxIndices=new Uint16Array([0,1,2,0,2,3,0,3,7,0,7,4,0,4,5,0,5,1,6,1,5,6,2,1,6,5,4,6,4,7,6,3,2,6,7,3]),boxGeometry=new THREE.BufferGeometry;boxGeometry.setIndex(new THREE.BufferAttribute(boxIndices,1)),boxGeometry.setAttribute(`position`,this.positionAttribute);let boxMaterial=new THREE.MeshBasicMaterial({color:64767,opacity:.1,depthTest:!1,transparent:!0});return new THREE.Mesh(boxGeometry,boxMaterial)}};export{BoundingBoxHelper};
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five-webgpu
4
- * Generated: 2026/10/29
5
- * Version: 1.0.0-alpha.12
4
+ * Generated: 2026/11/3
5
+ * Version: 1.0.0-alpha.14
6
6
  * License:
7
7
  * Realsee SDK License Agreement
8
8
 
@@ -335,4 +335,4 @@
335
335
  * writing and signed by Realsee. You and Realsee hereto confirm that this
336
336
  * Agreement and all related documents shall be drafted in English.
337
337
 
338
- */const e=require("../../../_virtual/_rolldown/runtime.js"),t=require("./BaseHelper.js"),n=require("../constant.js"),r=require("../utils/ArrowGroup.js"),i=require("../utils/CenterHandle.js"),a=require("../utils/PlaneHandle.js"),o=require("../utils/calculateScaleByCamera.js"),s=require("../utils/getOrthographicCameraDirection.js"),c=require("../utils/tipsDom.js");let l=require("three/webgpu");l=e.__toESM(l,1);var u=class extends t.MoveHelperAbstract{constructor(e,t){super(e,t),this.name=`MoveHelper`,(t==null?void 0:t.xArrowEnable)!==!1&&(this.xArrow=new r.ArrowGroup({direction:`x`,color:n.AXES_THREE_COLOR.X})),(t==null?void 0:t.yArrowEnable)!==!1&&(this.yArrow=new r.ArrowGroup({direction:`y`,color:n.AXES_THREE_COLOR.Y})),(t==null?void 0:t.zArrowEnable)!==!1&&(this.zArrow=new r.ArrowGroup({direction:`z`,color:n.AXES_THREE_COLOR.Z})),(t==null?void 0:t.centerHandleEnable)!==!1&&(this.centerHandle=new i.CenterHandle),(t==null?void 0:t.xyPlaneEnable)!==!1&&(this.xyPlane=new a.PlaneHandle({direction:`xy`,color:n.AXES_THREE_COLOR.Z})),(t==null?void 0:t.xzPlaneEnable)!==!1&&(this.xzPlane=new a.PlaneHandle({direction:`xz`,color:n.AXES_THREE_COLOR.Y})),(t==null?void 0:t.yzPlaneEnable)!==!1&&(this.yzPlane=new a.PlaneHandle({direction:`yz`,color:n.AXES_THREE_COLOR.X})),t!=null&&t.container&&(t==null?void 0:t.moveTipsEnable)!==!1&&(this.container=t.container,this.moveTips=c.tipsDom({display:`none`}),this.container.appendChild(this.moveTips.element)),this.add(...[this.xArrow,this.yArrow,this.zArrow,this.centerHandle,this.xyPlane,this.xzPlane,this.yzPlane].filter(Boolean))}update(e){if(this.xArrow&&(this.xArrow.visible=!0),this.yArrow&&(this.yArrow.visible=!0),this.zArrow&&(this.zArrow.visible=!0),this.centerHandle&&this.centerHandle.update(e),e.type===`OrthographicCamera`){let t=new l.Vector3(1,0,0).applyQuaternion(this.quaternion),n=new l.Vector3(0,1,0).applyQuaternion(this.quaternion),r=new l.Vector3(0,0,1).applyQuaternion(this.quaternion),i=e.pose,a=s.getOrthographicCameraDirection(i),o=.0872665;Math.abs(t.angleTo(a)-0)<o||Math.abs(t.angleTo(a)-Math.PI)<o?this.xArrow&&(this.xArrow.visible=!1):Math.abs(n.angleTo(a)-0)<o||Math.abs(n.angleTo(a)-Math.PI)<o?this.yArrow&&(this.yArrow.visible=!1):(Math.abs(r.angleTo(a)-0)<o||Math.abs(r.angleTo(a)-Math.PI)<o)&&this.zArrow&&(this.zArrow.visible=!1)}}show(){var e;super.show(),this.xArrow&&this.add(this.xArrow),this.yArrow&&this.add(this.yArrow),this.zArrow&&this.add(this.zArrow),this.centerHandle&&this.add(this.centerHandle),this.xyPlane&&this.add(this.xyPlane),this.xzPlane&&this.add(this.xzPlane),this.yzPlane&&this.add(this.yzPlane),(e=this.moveTips)==null||e.hide()}setScaleByCamera(e){this.scale.setScalar(o.default(e,this.position))}showDraggingHelper(e){this.xArrow&&(e.includes(`x`)?this.add(this.xArrow):this.remove(this.xArrow)),this.yArrow&&(e.includes(`y`)?this.add(this.yArrow):this.remove(this.yArrow)),this.zArrow&&(e.includes(`z`)?this.add(this.zArrow):this.remove(this.zArrow)),this.centerHandle&&(e.includes(`plane`)?this.add(this.centerHandle):this.remove(this.centerHandle)),this.xyPlane&&(e.includes(`xy`)?this.add(this.xyPlane):this.remove(this.xyPlane)),this.xzPlane&&(e.includes(`xz`)?this.add(this.xzPlane):this.remove(this.xzPlane)),this.yzPlane&&(e.includes(`yz`)?this.add(this.yzPlane):this.remove(this.yzPlane))}dispose(){var e,t;this.remove(...[this.xArrow,this.yArrow,this.zArrow,this.centerHandle,this.xyPlane,this.xzPlane,this.yzPlane].filter(Boolean)),(t=(e=this.moveTips)==null?void 0:e.element)==null||t.remove(),super.dispose()}};exports.MoveHelper=u;
338
+ */const require_runtime=require("../../../_virtual/_rolldown/runtime.js"),require_BaseHelper=require("./BaseHelper.js"),require_constant=require("../constant.js"),require_ArrowGroup=require("../utils/ArrowGroup.js"),require_CenterHandle=require("../utils/CenterHandle.js"),require_PlaneHandle=require("../utils/PlaneHandle.js"),require_calculateScaleByCamera=require("../utils/calculateScaleByCamera.js"),require_getOrthographicCameraDirection=require("../utils/getOrthographicCameraDirection.js"),require_tipsDom=require("../utils/tipsDom.js");let three_webgpu=require("three/webgpu");three_webgpu=require_runtime.__toESM(three_webgpu,1);var MoveHelper=class extends require_BaseHelper.MoveHelperAbstract{constructor(originObject3D,config){super(originObject3D,config),this.name=`MoveHelper`,(config==null?void 0:config.xArrowEnable)!==!1&&(this.xArrow=new require_ArrowGroup.ArrowGroup({direction:`x`,color:require_constant.AXES_THREE_COLOR.X})),(config==null?void 0:config.yArrowEnable)!==!1&&(this.yArrow=new require_ArrowGroup.ArrowGroup({direction:`y`,color:require_constant.AXES_THREE_COLOR.Y})),(config==null?void 0:config.zArrowEnable)!==!1&&(this.zArrow=new require_ArrowGroup.ArrowGroup({direction:`z`,color:require_constant.AXES_THREE_COLOR.Z})),(config==null?void 0:config.centerHandleEnable)!==!1&&(this.centerHandle=new require_CenterHandle.CenterHandle),(config==null?void 0:config.xyPlaneEnable)!==!1&&(this.xyPlane=new require_PlaneHandle.PlaneHandle({direction:`xy`,color:require_constant.AXES_THREE_COLOR.Z})),(config==null?void 0:config.xzPlaneEnable)!==!1&&(this.xzPlane=new require_PlaneHandle.PlaneHandle({direction:`xz`,color:require_constant.AXES_THREE_COLOR.Y})),(config==null?void 0:config.yzPlaneEnable)!==!1&&(this.yzPlane=new require_PlaneHandle.PlaneHandle({direction:`yz`,color:require_constant.AXES_THREE_COLOR.X})),config!=null&&config.container&&(config==null?void 0:config.moveTipsEnable)!==!1&&(this.container=config.container,this.moveTips=require_tipsDom.tipsDom({display:`none`}),this.container.appendChild(this.moveTips.element)),this.add(...[this.xArrow,this.yArrow,this.zArrow,this.centerHandle,this.xyPlane,this.xzPlane,this.yzPlane].filter(Boolean))}update(camera){if(this.xArrow&&(this.xArrow.visible=!0),this.yArrow&&(this.yArrow.visible=!0),this.zArrow&&(this.zArrow.visible=!0),this.centerHandle&&this.centerHandle.update(camera),camera.type===`OrthographicCamera`){let worldDirectionX=new three_webgpu.Vector3(1,0,0).applyQuaternion(this.quaternion),worldDirectionY=new three_webgpu.Vector3(0,1,0).applyQuaternion(this.quaternion),worldDirectionZ=new three_webgpu.Vector3(0,0,1).applyQuaternion(this.quaternion),pose=camera.pose,orthographicCameraDirection=require_getOrthographicCameraDirection.getOrthographicCameraDirection(pose),hideThreshold=.0872665;Math.abs(worldDirectionX.angleTo(orthographicCameraDirection)-0)<hideThreshold||Math.abs(worldDirectionX.angleTo(orthographicCameraDirection)-Math.PI)<hideThreshold?this.xArrow&&(this.xArrow.visible=!1):Math.abs(worldDirectionY.angleTo(orthographicCameraDirection)-0)<hideThreshold||Math.abs(worldDirectionY.angleTo(orthographicCameraDirection)-Math.PI)<hideThreshold?this.yArrow&&(this.yArrow.visible=!1):(Math.abs(worldDirectionZ.angleTo(orthographicCameraDirection)-0)<hideThreshold||Math.abs(worldDirectionZ.angleTo(orthographicCameraDirection)-Math.PI)<hideThreshold)&&this.zArrow&&(this.zArrow.visible=!1)}}show(){var _a;super.show(),this.xArrow&&this.add(this.xArrow),this.yArrow&&this.add(this.yArrow),this.zArrow&&this.add(this.zArrow),this.centerHandle&&this.add(this.centerHandle),this.xyPlane&&this.add(this.xyPlane),this.xzPlane&&this.add(this.xzPlane),this.yzPlane&&this.add(this.yzPlane),(_a=this.moveTips)==null||_a.hide()}setScaleByCamera(camera){this.scale.setScalar(require_calculateScaleByCamera.default(camera,this.position))}showDraggingHelper(directions){this.xArrow&&(directions.includes(`x`)?this.add(this.xArrow):this.remove(this.xArrow)),this.yArrow&&(directions.includes(`y`)?this.add(this.yArrow):this.remove(this.yArrow)),this.zArrow&&(directions.includes(`z`)?this.add(this.zArrow):this.remove(this.zArrow)),this.centerHandle&&(directions.includes(`plane`)?this.add(this.centerHandle):this.remove(this.centerHandle)),this.xyPlane&&(directions.includes(`xy`)?this.add(this.xyPlane):this.remove(this.xyPlane)),this.xzPlane&&(directions.includes(`xz`)?this.add(this.xzPlane):this.remove(this.xzPlane)),this.yzPlane&&(directions.includes(`yz`)?this.add(this.yzPlane):this.remove(this.yzPlane))}dispose(){var _a,_b;this.remove(...[this.xArrow,this.yArrow,this.zArrow,this.centerHandle,this.xyPlane,this.xzPlane,this.yzPlane].filter(Boolean)),(_b=(_a=this.moveTips)==null?void 0:_a.element)==null||_b.remove(),super.dispose()}};exports.MoveHelper=MoveHelper;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five-webgpu
4
- * Generated: 2026/10/29
5
- * Version: 1.0.0-alpha.12
4
+ * Generated: 2026/11/3
5
+ * Version: 1.0.0-alpha.14
6
6
  * License:
7
7
  * Realsee SDK License Agreement
8
8
 
@@ -335,4 +335,4 @@
335
335
  * writing and signed by Realsee. You and Realsee hereto confirm that this
336
336
  * Agreement and all related documents shall be drafted in English.
337
337
 
338
- */import{MoveHelperAbstract as e}from"./BaseHelper.mjs";import{AXES_THREE_COLOR as t}from"../constant.mjs";import{ArrowGroup as n}from"../utils/ArrowGroup.mjs";import{CenterHandle as r}from"../utils/CenterHandle.mjs";import{PlaneHandle as i}from"../utils/PlaneHandle.mjs";import a from"../utils/calculateScaleByCamera.mjs";import{getOrthographicCameraDirection as o}from"../utils/getOrthographicCameraDirection.mjs";import{tipsDom as s}from"../utils/tipsDom.mjs";import*as c from"three/webgpu";var l=class extends e{constructor(e,a){super(e,a),this.name=`MoveHelper`,(a==null?void 0:a.xArrowEnable)!==!1&&(this.xArrow=new n({direction:`x`,color:t.X})),(a==null?void 0:a.yArrowEnable)!==!1&&(this.yArrow=new n({direction:`y`,color:t.Y})),(a==null?void 0:a.zArrowEnable)!==!1&&(this.zArrow=new n({direction:`z`,color:t.Z})),(a==null?void 0:a.centerHandleEnable)!==!1&&(this.centerHandle=new r),(a==null?void 0:a.xyPlaneEnable)!==!1&&(this.xyPlane=new i({direction:`xy`,color:t.Z})),(a==null?void 0:a.xzPlaneEnable)!==!1&&(this.xzPlane=new i({direction:`xz`,color:t.Y})),(a==null?void 0:a.yzPlaneEnable)!==!1&&(this.yzPlane=new i({direction:`yz`,color:t.X})),a!=null&&a.container&&(a==null?void 0:a.moveTipsEnable)!==!1&&(this.container=a.container,this.moveTips=s({display:`none`}),this.container.appendChild(this.moveTips.element)),this.add(...[this.xArrow,this.yArrow,this.zArrow,this.centerHandle,this.xyPlane,this.xzPlane,this.yzPlane].filter(Boolean))}update(e){if(this.xArrow&&(this.xArrow.visible=!0),this.yArrow&&(this.yArrow.visible=!0),this.zArrow&&(this.zArrow.visible=!0),this.centerHandle&&this.centerHandle.update(e),e.type===`OrthographicCamera`){let t=new c.Vector3(1,0,0).applyQuaternion(this.quaternion),n=new c.Vector3(0,1,0).applyQuaternion(this.quaternion),r=new c.Vector3(0,0,1).applyQuaternion(this.quaternion),i=e.pose,a=o(i),s=.0872665;Math.abs(t.angleTo(a)-0)<s||Math.abs(t.angleTo(a)-Math.PI)<s?this.xArrow&&(this.xArrow.visible=!1):Math.abs(n.angleTo(a)-0)<s||Math.abs(n.angleTo(a)-Math.PI)<s?this.yArrow&&(this.yArrow.visible=!1):(Math.abs(r.angleTo(a)-0)<s||Math.abs(r.angleTo(a)-Math.PI)<s)&&this.zArrow&&(this.zArrow.visible=!1)}}show(){var e;super.show(),this.xArrow&&this.add(this.xArrow),this.yArrow&&this.add(this.yArrow),this.zArrow&&this.add(this.zArrow),this.centerHandle&&this.add(this.centerHandle),this.xyPlane&&this.add(this.xyPlane),this.xzPlane&&this.add(this.xzPlane),this.yzPlane&&this.add(this.yzPlane),(e=this.moveTips)==null||e.hide()}setScaleByCamera(e){this.scale.setScalar(a(e,this.position))}showDraggingHelper(e){this.xArrow&&(e.includes(`x`)?this.add(this.xArrow):this.remove(this.xArrow)),this.yArrow&&(e.includes(`y`)?this.add(this.yArrow):this.remove(this.yArrow)),this.zArrow&&(e.includes(`z`)?this.add(this.zArrow):this.remove(this.zArrow)),this.centerHandle&&(e.includes(`plane`)?this.add(this.centerHandle):this.remove(this.centerHandle)),this.xyPlane&&(e.includes(`xy`)?this.add(this.xyPlane):this.remove(this.xyPlane)),this.xzPlane&&(e.includes(`xz`)?this.add(this.xzPlane):this.remove(this.xzPlane)),this.yzPlane&&(e.includes(`yz`)?this.add(this.yzPlane):this.remove(this.yzPlane))}dispose(){var e,t;this.remove(...[this.xArrow,this.yArrow,this.zArrow,this.centerHandle,this.xyPlane,this.xzPlane,this.yzPlane].filter(Boolean)),(t=(e=this.moveTips)==null?void 0:e.element)==null||t.remove(),super.dispose()}};export{l as MoveHelper};
338
+ */import{MoveHelperAbstract}from"./BaseHelper.mjs";import{AXES_THREE_COLOR}from"../constant.mjs";import{ArrowGroup}from"../utils/ArrowGroup.mjs";import{CenterHandle}from"../utils/CenterHandle.mjs";import{PlaneHandle}from"../utils/PlaneHandle.mjs";import calculateScaleByCamera from"../utils/calculateScaleByCamera.mjs";import{getOrthographicCameraDirection}from"../utils/getOrthographicCameraDirection.mjs";import{tipsDom}from"../utils/tipsDom.mjs";import*as THREE from"three/webgpu";var MoveHelper=class extends MoveHelperAbstract{constructor(originObject3D,config){super(originObject3D,config),this.name=`MoveHelper`,(config==null?void 0:config.xArrowEnable)!==!1&&(this.xArrow=new ArrowGroup({direction:`x`,color:AXES_THREE_COLOR.X})),(config==null?void 0:config.yArrowEnable)!==!1&&(this.yArrow=new ArrowGroup({direction:`y`,color:AXES_THREE_COLOR.Y})),(config==null?void 0:config.zArrowEnable)!==!1&&(this.zArrow=new ArrowGroup({direction:`z`,color:AXES_THREE_COLOR.Z})),(config==null?void 0:config.centerHandleEnable)!==!1&&(this.centerHandle=new CenterHandle),(config==null?void 0:config.xyPlaneEnable)!==!1&&(this.xyPlane=new PlaneHandle({direction:`xy`,color:AXES_THREE_COLOR.Z})),(config==null?void 0:config.xzPlaneEnable)!==!1&&(this.xzPlane=new PlaneHandle({direction:`xz`,color:AXES_THREE_COLOR.Y})),(config==null?void 0:config.yzPlaneEnable)!==!1&&(this.yzPlane=new PlaneHandle({direction:`yz`,color:AXES_THREE_COLOR.X})),config!=null&&config.container&&(config==null?void 0:config.moveTipsEnable)!==!1&&(this.container=config.container,this.moveTips=tipsDom({display:`none`}),this.container.appendChild(this.moveTips.element)),this.add(...[this.xArrow,this.yArrow,this.zArrow,this.centerHandle,this.xyPlane,this.xzPlane,this.yzPlane].filter(Boolean))}update(camera){if(this.xArrow&&(this.xArrow.visible=!0),this.yArrow&&(this.yArrow.visible=!0),this.zArrow&&(this.zArrow.visible=!0),this.centerHandle&&this.centerHandle.update(camera),camera.type===`OrthographicCamera`){let worldDirectionX=new THREE.Vector3(1,0,0).applyQuaternion(this.quaternion),worldDirectionY=new THREE.Vector3(0,1,0).applyQuaternion(this.quaternion),worldDirectionZ=new THREE.Vector3(0,0,1).applyQuaternion(this.quaternion),pose=camera.pose,orthographicCameraDirection=getOrthographicCameraDirection(pose),hideThreshold=.0872665;Math.abs(worldDirectionX.angleTo(orthographicCameraDirection)-0)<hideThreshold||Math.abs(worldDirectionX.angleTo(orthographicCameraDirection)-Math.PI)<hideThreshold?this.xArrow&&(this.xArrow.visible=!1):Math.abs(worldDirectionY.angleTo(orthographicCameraDirection)-0)<hideThreshold||Math.abs(worldDirectionY.angleTo(orthographicCameraDirection)-Math.PI)<hideThreshold?this.yArrow&&(this.yArrow.visible=!1):(Math.abs(worldDirectionZ.angleTo(orthographicCameraDirection)-0)<hideThreshold||Math.abs(worldDirectionZ.angleTo(orthographicCameraDirection)-Math.PI)<hideThreshold)&&this.zArrow&&(this.zArrow.visible=!1)}}show(){var _a;super.show(),this.xArrow&&this.add(this.xArrow),this.yArrow&&this.add(this.yArrow),this.zArrow&&this.add(this.zArrow),this.centerHandle&&this.add(this.centerHandle),this.xyPlane&&this.add(this.xyPlane),this.xzPlane&&this.add(this.xzPlane),this.yzPlane&&this.add(this.yzPlane),(_a=this.moveTips)==null||_a.hide()}setScaleByCamera(camera){this.scale.setScalar(calculateScaleByCamera(camera,this.position))}showDraggingHelper(directions){this.xArrow&&(directions.includes(`x`)?this.add(this.xArrow):this.remove(this.xArrow)),this.yArrow&&(directions.includes(`y`)?this.add(this.yArrow):this.remove(this.yArrow)),this.zArrow&&(directions.includes(`z`)?this.add(this.zArrow):this.remove(this.zArrow)),this.centerHandle&&(directions.includes(`plane`)?this.add(this.centerHandle):this.remove(this.centerHandle)),this.xyPlane&&(directions.includes(`xy`)?this.add(this.xyPlane):this.remove(this.xyPlane)),this.xzPlane&&(directions.includes(`xz`)?this.add(this.xzPlane):this.remove(this.xzPlane)),this.yzPlane&&(directions.includes(`yz`)?this.add(this.yzPlane):this.remove(this.yzPlane))}dispose(){var _a,_b;this.remove(...[this.xArrow,this.yArrow,this.zArrow,this.centerHandle,this.xyPlane,this.xzPlane,this.yzPlane].filter(Boolean)),(_b=(_a=this.moveTips)==null?void 0:_a.element)==null||_b.remove(),super.dispose()}};export{MoveHelper};
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five-webgpu
4
- * Generated: 2026/10/29
5
- * Version: 1.0.0-alpha.12
4
+ * Generated: 2026/11/3
5
+ * Version: 1.0.0-alpha.14
6
6
  * License:
7
7
  * Realsee SDK License Agreement
8
8
 
@@ -335,4 +335,4 @@
335
335
  * writing and signed by Realsee. You and Realsee hereto confirm that this
336
336
  * Agreement and all related documents shall be drafted in English.
337
337
 
338
- */const e=require("../../../_virtual/_rolldown/runtime.js"),t=require("./BaseHelper.js"),n=require("../constant.js"),r=require("../utils/calculateScaleByCamera.js"),i=require("../utils/tipsDom.js");let a=require("three/webgpu");a=e.__toESM(a,1);var o=class extends t.RotateHelperAbstract{constructor(e,t){super(e,t),this.name=`RotateHelper`,this.children=[],(t==null?void 0:t.yzCircleEnable)!==!1&&(this.xCircle=new s({direction:`x`,color:n.AXES_THREE_COLOR.X})),(t==null?void 0:t.xzCircleEnable)!==!1&&(this.yCircle=new s({direction:`y`,color:n.AXES_THREE_COLOR.Y})),(t==null?void 0:t.xyCircleEnable)!==!1&&(this.zCircle=new s({direction:`z`,color:n.AXES_THREE_COLOR.Z})),t!=null&&t.container&&(t==null?void 0:t.angleTipsEnable)!==!1&&(this.container=t==null?void 0:t.container,this.angleTips=i.tipsDom({display:`none`}),this.container.appendChild(this.angleTips.element)),this.add(...[this.xCircle,this.yCircle,this.zCircle].filter(Boolean)),this.show()}hide(){this.children.forEach(e=>e.hide())}show(){var e;this.children.forEach(e=>e.showCircle()),(e=this.angleTips)==null||e.hide()}setScaleByCamera(e){this.scale.setScalar(r.default(e,this.position))}update(e){if(e.type===`OrthographicCamera`)return;let t=this.helperObject.position.clone().sub(e.position).normalize(),n=new a.Vector3(1,0,0).applyQuaternion(this.quaternion),r=new a.Vector3(0,1,0).applyQuaternion(this.quaternion),i=new a.Vector3(0,0,1).applyQuaternion(this.quaternion),o=t.angleTo(n),s=t.angleTo(r),c=t.angleTo(i),l=Math.PI/2,u=s>=l,d=c>=l,f=o>=l;if(this.xCircle){let e=this.xCircle.circle.gapAngle;u&&d?this.xCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,e,Math.PI/2-e*2):u&&!d?this.xCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,Math.PI/2+e,Math.PI/2-e*2):!u&&d?this.xCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,Math.PI/2*3+e,Math.PI/2-e*2):!u&&!d&&(this.xCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,Math.PI+e,Math.PI/2-e*2)),this.xCircle.angleSector&&(this.xCircle.angleSector.offsetAngle=e=>e,u&&d||u&&!d?this.xCircle.angleSector.baseAxes=new a.Vector3(0,0,1):!u&&d?(this.xCircle.angleSector.baseAxes=new a.Vector3(0,-1,0),this.xCircle.angleSector.offsetAngle=e=>e-Math.PI/2):!u&&!d&&(this.xCircle.angleSector.baseAxes=new a.Vector3(0,0,-1),this.xCircle.angleSector.offsetAngle=e=>e-Math.PI))}if(this.yCircle){this.yCircle.angleSector.offsetAngle=e=>e;let e=this.yCircle.circle.gapAngle;f&&d?this.yCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,e,Math.PI/2-e*2):f&&!d?this.yCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,Math.PI/2*3+e,Math.PI/2-e*2):!f&&d?this.yCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,Math.PI/2+e,Math.PI/2-e*2):!f&&!d&&(this.yCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,Math.PI+e,Math.PI/2-e*2)),f&&d?this.yCircle.angleSector.baseAxes=new a.Vector3(1,0,0):f&&!d?(this.yCircle.angleSector.baseAxes=new a.Vector3(0,0,-1),this.yCircle.angleSector.offsetAngle=e=>e-Math.PI/2):!f&&d?(this.yCircle.angleSector.baseAxes=new a.Vector3(0,0,1),this.yCircle.angleSector.offsetAngle=e=>e+Math.PI/2):!f&&!d&&(this.yCircle.angleSector.baseAxes=new a.Vector3(-1,0,0),this.yCircle.angleSector.offsetAngle=e=>e+Math.PI)}if(this.zCircle){this.zCircle.angleSector.offsetAngle=e=>e;let e=this.zCircle.circle.gapAngle;f&&u?this.zCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,e,Math.PI/2-e*2):f&&!u?this.zCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,Math.PI/2*3+e,Math.PI/2-e*2):!f&&u?this.zCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,Math.PI/2+e,Math.PI/2-e*2):!f&&!u&&(this.zCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,Math.PI+e,Math.PI/2-e*2)),this.zCircle.angleSector&&(f&&u?this.zCircle.angleSector.baseAxes=new a.Vector3(1,0,0):f&&!u?(this.zCircle.angleSector.baseAxes=new a.Vector3(0,-1,0),this.zCircle.angleSector.offsetAngle=e=>e-Math.PI/2):!f&&u?(this.zCircle.angleSector.baseAxes=new a.Vector3(0,1,0),this.zCircle.angleSector.offsetAngle=e=>e+Math.PI/2):!f&&!u&&(this.zCircle.angleSector.baseAxes=new a.Vector3(-1,0,0),this.zCircle.angleSector.offsetAngle=e=>e+Math.PI))}}showDraggingHelper(e){var t;this.hide(),this.children.filter(t=>e.includes(t.direction)).forEach(e=>e.showRing()),(t=this.angleTips)==null||t.show()}dispose(){var e,t;this.removeFromParent(),(t=(e=this.angleTips)==null?void 0:e.element)==null||t.remove()}},s=class extends a.Group{constructor(e){super(),this.direction=e.direction,this.circle=new c(e),this.ring=new l(e),this.angleSector=new u(e),this.add(this.circle,this.ring,this.angleSector),this.direction===`y`?this.rotation.x=Math.PI/2:this.direction===`x`&&(this.rotation.y=-Math.PI/2)}showCircle(){this.add(this.circle),this.remove(this.ring,this.angleSector)}showRing(){this.add(this.ring,this.angleSector),this.remove(this.circle)}hide(){this.remove(this.ring,this.angleSector,this.circle)}},c=class extends a.Mesh{constructor(e){var t;super(),this.gapAngle=.02,this.geometry=new a.RingGeometry(.3,.35,20,8,this.gapAngle,Math.PI/2-this.gapAngle*2),this.material=new a.MeshBasicMaterial({opacity:.6,transparent:!0,color:(t=e.color)==null?16777215:t,side:a.DoubleSide,depthTest:!1}),this.direction=e.direction,this.renderOrder=n.RENDER_ORDER.ROTATE_HELPER,this.geometry.name=`RotateHelperCircleGeometry-${this.direction}`}},l=class extends a.Group{constructor(e){super(),this.direction=e.direction;let t=.015,n=Array(8).fill(null).map((e,n)=>{let r=new a.RingGeometry(.3,.35,20,8,Math.PI/4*n+t,Math.PI/4-t*2),i=new a.MeshBasicMaterial({opacity:1,color:16777215,depthTest:!1,depthWrite:!1,transparent:!0,side:a.DoubleSide}),o=new a.Mesh(r,i);return o.name=`AxesDashedRing-${this.direction}-${n}`,o});this.add(...n)}},u=class extends a.Mesh{constructor(e){var t;switch(super(),this.offsetAngle=e=>e,e.direction){case`x`:this.baseAxes=new a.Vector3(0,0,1);break;case`y`:this.baseAxes=new a.Vector3(1,0,0);break;case`z`:this.baseAxes=new a.Vector3(1,0,0);break}this.geometry=new a.CircleGeometry(.3505,48,0,1e-4),this.material=new a.MeshBasicMaterial({opacity:.4,color:(t=e.color)==null?16777215:t,depthTest:!1,depthWrite:!1,transparent:!0,side:a.DoubleSide}),this.direction=e.direction,this.angleDirection=1}setClockwiseDirection(){this.angleDirection=-1}setCounterClockwiseDirection(){this.angleDirection=1}toggleDirection(){this.angleDirection=this.angleDirection===1?-1:1}setBaseAxes(e){this.baseAxes=e.clone().normalize()}getDirection(){return this.angleDirection===-1?`clockwise`:`counterclockwise`}};exports.RotateHelper=o;
338
+ */const require_runtime=require("../../../_virtual/_rolldown/runtime.js"),require_BaseHelper=require("./BaseHelper.js"),require_constant=require("../constant.js"),require_calculateScaleByCamera=require("../utils/calculateScaleByCamera.js"),require_tipsDom=require("../utils/tipsDom.js");let three_webgpu=require("three/webgpu");three_webgpu=require_runtime.__toESM(three_webgpu,1);var RotateHelper=class extends require_BaseHelper.RotateHelperAbstract{constructor(originObject3D,config){super(originObject3D,config),this.name=`RotateHelper`,this.children=[],(config==null?void 0:config.yzCircleEnable)!==!1&&(this.xCircle=new RotateCircleGroup({direction:`x`,color:require_constant.AXES_THREE_COLOR.X})),(config==null?void 0:config.xzCircleEnable)!==!1&&(this.yCircle=new RotateCircleGroup({direction:`y`,color:require_constant.AXES_THREE_COLOR.Y})),(config==null?void 0:config.xyCircleEnable)!==!1&&(this.zCircle=new RotateCircleGroup({direction:`z`,color:require_constant.AXES_THREE_COLOR.Z})),config!=null&&config.container&&(config==null?void 0:config.angleTipsEnable)!==!1&&(this.container=config==null?void 0:config.container,this.angleTips=require_tipsDom.tipsDom({display:`none`}),this.container.appendChild(this.angleTips.element)),this.add(...[this.xCircle,this.yCircle,this.zCircle].filter(Boolean)),this.show()}hide(){this.children.forEach(child=>child.hide())}show(){var _a;this.children.forEach(child=>child.showCircle()),(_a=this.angleTips)==null||_a.hide()}setScaleByCamera(camera){this.scale.setScalar(require_calculateScaleByCamera.default(camera,this.position))}update(camera){if(camera.type===`OrthographicCamera`)return;let cameraDirection=this.helperObject.position.clone().sub(camera.position).normalize(),worldDirectionX=new three_webgpu.Vector3(1,0,0).applyQuaternion(this.quaternion),worldDirectionY=new three_webgpu.Vector3(0,1,0).applyQuaternion(this.quaternion),worldDirectionZ=new three_webgpu.Vector3(0,0,1).applyQuaternion(this.quaternion),angleX=cameraDirection.angleTo(worldDirectionX),angleY=cameraDirection.angleTo(worldDirectionY),angleZ=cameraDirection.angleTo(worldDirectionZ),threshold=Math.PI/2,positiveY=angleY>=threshold,positiveZ=angleZ>=threshold,positiveX=angleX>=threshold;if(this.xCircle){let gapAngle=this.xCircle.circle.gapAngle;positiveY&&positiveZ?this.xCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,gapAngle,Math.PI/2-gapAngle*2):positiveY&&!positiveZ?this.xCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI/2+gapAngle,Math.PI/2-gapAngle*2):!positiveY&&positiveZ?this.xCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI/2*3+gapAngle,Math.PI/2-gapAngle*2):!positiveY&&!positiveZ&&(this.xCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI+gapAngle,Math.PI/2-gapAngle*2)),this.xCircle.angleSector&&(this.xCircle.angleSector.offsetAngle=angle=>angle,positiveY&&positiveZ||positiveY&&!positiveZ?this.xCircle.angleSector.baseAxes=new three_webgpu.Vector3(0,0,1):!positiveY&&positiveZ?(this.xCircle.angleSector.baseAxes=new three_webgpu.Vector3(0,-1,0),this.xCircle.angleSector.offsetAngle=angle=>angle-Math.PI/2):!positiveY&&!positiveZ&&(this.xCircle.angleSector.baseAxes=new three_webgpu.Vector3(0,0,-1),this.xCircle.angleSector.offsetAngle=angle=>angle-Math.PI))}if(this.yCircle){this.yCircle.angleSector.offsetAngle=angle=>angle;let gapAngle=this.yCircle.circle.gapAngle;positiveX&&positiveZ?this.yCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,gapAngle,Math.PI/2-gapAngle*2):positiveX&&!positiveZ?this.yCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI/2*3+gapAngle,Math.PI/2-gapAngle*2):!positiveX&&positiveZ?this.yCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI/2+gapAngle,Math.PI/2-gapAngle*2):!positiveX&&!positiveZ&&(this.yCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI+gapAngle,Math.PI/2-gapAngle*2)),positiveX&&positiveZ?this.yCircle.angleSector.baseAxes=new three_webgpu.Vector3(1,0,0):positiveX&&!positiveZ?(this.yCircle.angleSector.baseAxes=new three_webgpu.Vector3(0,0,-1),this.yCircle.angleSector.offsetAngle=angle=>angle-Math.PI/2):!positiveX&&positiveZ?(this.yCircle.angleSector.baseAxes=new three_webgpu.Vector3(0,0,1),this.yCircle.angleSector.offsetAngle=angle=>angle+Math.PI/2):!positiveX&&!positiveZ&&(this.yCircle.angleSector.baseAxes=new three_webgpu.Vector3(-1,0,0),this.yCircle.angleSector.offsetAngle=angle=>angle+Math.PI)}if(this.zCircle){this.zCircle.angleSector.offsetAngle=angle=>angle;let gapAngle=this.zCircle.circle.gapAngle;positiveX&&positiveY?this.zCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,gapAngle,Math.PI/2-gapAngle*2):positiveX&&!positiveY?this.zCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI/2*3+gapAngle,Math.PI/2-gapAngle*2):!positiveX&&positiveY?this.zCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI/2+gapAngle,Math.PI/2-gapAngle*2):!positiveX&&!positiveY&&(this.zCircle.circle.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI+gapAngle,Math.PI/2-gapAngle*2)),this.zCircle.angleSector&&(positiveX&&positiveY?this.zCircle.angleSector.baseAxes=new three_webgpu.Vector3(1,0,0):positiveX&&!positiveY?(this.zCircle.angleSector.baseAxes=new three_webgpu.Vector3(0,-1,0),this.zCircle.angleSector.offsetAngle=angle=>angle-Math.PI/2):!positiveX&&positiveY?(this.zCircle.angleSector.baseAxes=new three_webgpu.Vector3(0,1,0),this.zCircle.angleSector.offsetAngle=angle=>angle+Math.PI/2):!positiveX&&!positiveY&&(this.zCircle.angleSector.baseAxes=new three_webgpu.Vector3(-1,0,0),this.zCircle.angleSector.offsetAngle=angle=>angle+Math.PI))}}showDraggingHelper(directions){var _a;this.hide(),this.children.filter(child=>directions.includes(child.direction)).forEach(child=>child.showRing()),(_a=this.angleTips)==null||_a.show()}dispose(){var _a,_b;this.removeFromParent(),(_b=(_a=this.angleTips)==null?void 0:_a.element)==null||_b.remove()}},RotateCircleGroup=class extends three_webgpu.Group{constructor(options){super(),this.direction=options.direction,this.circle=new Circle(options),this.ring=new DashedRing(options),this.angleSector=new AngleSector(options),this.add(this.circle,this.ring,this.angleSector),this.direction===`y`?this.rotation.x=Math.PI/2:this.direction===`x`&&(this.rotation.y=-Math.PI/2)}showCircle(){this.add(this.circle),this.remove(this.ring,this.angleSector)}showRing(){this.add(this.ring,this.angleSector),this.remove(this.circle)}hide(){this.remove(this.ring,this.angleSector,this.circle)}},Circle=class extends three_webgpu.Mesh{constructor(options){var _a;super(),this.gapAngle=.02,this.geometry=new three_webgpu.RingGeometry(.3,.35,20,8,this.gapAngle,Math.PI/2-this.gapAngle*2),this.material=new three_webgpu.MeshBasicMaterial({opacity:.6,transparent:!0,color:(_a=options.color)==null?16777215:_a,side:three_webgpu.DoubleSide,depthTest:!1}),this.direction=options.direction,this.renderOrder=require_constant.RENDER_ORDER.ROTATE_HELPER,this.geometry.name=`RotateHelperCircleGeometry-${this.direction}`}},DashedRing=class extends three_webgpu.Group{constructor(options){super(),this.direction=options.direction;let gapAngle=.015,meshes=Array(8).fill(null).map((_,i)=>{let geometry=new three_webgpu.RingGeometry(.3,.35,20,8,Math.PI/4*i+gapAngle,Math.PI/4-gapAngle*2),material=new three_webgpu.MeshBasicMaterial({opacity:1,color:16777215,depthTest:!1,depthWrite:!1,transparent:!0,side:three_webgpu.DoubleSide}),mesh=new three_webgpu.Mesh(geometry,material);return mesh.name=`AxesDashedRing-${this.direction}-${i}`,mesh});this.add(...meshes)}},AngleSector=class extends three_webgpu.Mesh{constructor(options){var _a;switch(super(),this.offsetAngle=angle=>angle,options.direction){case`x`:this.baseAxes=new three_webgpu.Vector3(0,0,1);break;case`y`:this.baseAxes=new three_webgpu.Vector3(1,0,0);break;case`z`:this.baseAxes=new three_webgpu.Vector3(1,0,0);break}this.geometry=new three_webgpu.CircleGeometry(.3505,48,0,1e-4),this.material=new three_webgpu.MeshBasicMaterial({opacity:.4,color:(_a=options.color)==null?16777215:_a,depthTest:!1,depthWrite:!1,transparent:!0,side:three_webgpu.DoubleSide}),this.direction=options.direction,this.angleDirection=1}setClockwiseDirection(){this.angleDirection=-1}setCounterClockwiseDirection(){this.angleDirection=1}toggleDirection(){this.angleDirection=this.angleDirection===1?-1:1}setBaseAxes(axes){this.baseAxes=axes.clone().normalize()}getDirection(){return this.angleDirection===-1?`clockwise`:`counterclockwise`}};exports.RotateHelper=RotateHelper;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five-webgpu
4
- * Generated: 2026/10/29
5
- * Version: 1.0.0-alpha.12
4
+ * Generated: 2026/11/3
5
+ * Version: 1.0.0-alpha.14
6
6
  * License:
7
7
  * Realsee SDK License Agreement
8
8
 
@@ -335,4 +335,4 @@
335
335
  * writing and signed by Realsee. You and Realsee hereto confirm that this
336
336
  * Agreement and all related documents shall be drafted in English.
337
337
 
338
- */import{RotateHelperAbstract as e}from"./BaseHelper.mjs";import{AXES_THREE_COLOR as t,RENDER_ORDER as n}from"../constant.mjs";import r from"../utils/calculateScaleByCamera.mjs";import{tipsDom as i}from"../utils/tipsDom.mjs";import*as a from"three/webgpu";var o=class extends e{constructor(e,n){super(e,n),this.name=`RotateHelper`,this.children=[],(n==null?void 0:n.yzCircleEnable)!==!1&&(this.xCircle=new s({direction:`x`,color:t.X})),(n==null?void 0:n.xzCircleEnable)!==!1&&(this.yCircle=new s({direction:`y`,color:t.Y})),(n==null?void 0:n.xyCircleEnable)!==!1&&(this.zCircle=new s({direction:`z`,color:t.Z})),n!=null&&n.container&&(n==null?void 0:n.angleTipsEnable)!==!1&&(this.container=n==null?void 0:n.container,this.angleTips=i({display:`none`}),this.container.appendChild(this.angleTips.element)),this.add(...[this.xCircle,this.yCircle,this.zCircle].filter(Boolean)),this.show()}hide(){this.children.forEach(e=>e.hide())}show(){var e;this.children.forEach(e=>e.showCircle()),(e=this.angleTips)==null||e.hide()}setScaleByCamera(e){this.scale.setScalar(r(e,this.position))}update(e){if(e.type===`OrthographicCamera`)return;let t=this.helperObject.position.clone().sub(e.position).normalize(),n=new a.Vector3(1,0,0).applyQuaternion(this.quaternion),r=new a.Vector3(0,1,0).applyQuaternion(this.quaternion),i=new a.Vector3(0,0,1).applyQuaternion(this.quaternion),o=t.angleTo(n),s=t.angleTo(r),c=t.angleTo(i),l=Math.PI/2,u=s>=l,d=c>=l,f=o>=l;if(this.xCircle){let e=this.xCircle.circle.gapAngle;u&&d?this.xCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,e,Math.PI/2-e*2):u&&!d?this.xCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,Math.PI/2+e,Math.PI/2-e*2):!u&&d?this.xCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,Math.PI/2*3+e,Math.PI/2-e*2):!u&&!d&&(this.xCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,Math.PI+e,Math.PI/2-e*2)),this.xCircle.angleSector&&(this.xCircle.angleSector.offsetAngle=e=>e,u&&d||u&&!d?this.xCircle.angleSector.baseAxes=new a.Vector3(0,0,1):!u&&d?(this.xCircle.angleSector.baseAxes=new a.Vector3(0,-1,0),this.xCircle.angleSector.offsetAngle=e=>e-Math.PI/2):!u&&!d&&(this.xCircle.angleSector.baseAxes=new a.Vector3(0,0,-1),this.xCircle.angleSector.offsetAngle=e=>e-Math.PI))}if(this.yCircle){this.yCircle.angleSector.offsetAngle=e=>e;let e=this.yCircle.circle.gapAngle;f&&d?this.yCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,e,Math.PI/2-e*2):f&&!d?this.yCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,Math.PI/2*3+e,Math.PI/2-e*2):!f&&d?this.yCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,Math.PI/2+e,Math.PI/2-e*2):!f&&!d&&(this.yCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,Math.PI+e,Math.PI/2-e*2)),f&&d?this.yCircle.angleSector.baseAxes=new a.Vector3(1,0,0):f&&!d?(this.yCircle.angleSector.baseAxes=new a.Vector3(0,0,-1),this.yCircle.angleSector.offsetAngle=e=>e-Math.PI/2):!f&&d?(this.yCircle.angleSector.baseAxes=new a.Vector3(0,0,1),this.yCircle.angleSector.offsetAngle=e=>e+Math.PI/2):!f&&!d&&(this.yCircle.angleSector.baseAxes=new a.Vector3(-1,0,0),this.yCircle.angleSector.offsetAngle=e=>e+Math.PI)}if(this.zCircle){this.zCircle.angleSector.offsetAngle=e=>e;let e=this.zCircle.circle.gapAngle;f&&u?this.zCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,e,Math.PI/2-e*2):f&&!u?this.zCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,Math.PI/2*3+e,Math.PI/2-e*2):!f&&u?this.zCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,Math.PI/2+e,Math.PI/2-e*2):!f&&!u&&(this.zCircle.circle.geometry=new a.RingGeometry(.3,.35,20,8,Math.PI+e,Math.PI/2-e*2)),this.zCircle.angleSector&&(f&&u?this.zCircle.angleSector.baseAxes=new a.Vector3(1,0,0):f&&!u?(this.zCircle.angleSector.baseAxes=new a.Vector3(0,-1,0),this.zCircle.angleSector.offsetAngle=e=>e-Math.PI/2):!f&&u?(this.zCircle.angleSector.baseAxes=new a.Vector3(0,1,0),this.zCircle.angleSector.offsetAngle=e=>e+Math.PI/2):!f&&!u&&(this.zCircle.angleSector.baseAxes=new a.Vector3(-1,0,0),this.zCircle.angleSector.offsetAngle=e=>e+Math.PI))}}showDraggingHelper(e){var t;this.hide(),this.children.filter(t=>e.includes(t.direction)).forEach(e=>e.showRing()),(t=this.angleTips)==null||t.show()}dispose(){var e,t;this.removeFromParent(),(t=(e=this.angleTips)==null?void 0:e.element)==null||t.remove()}},s=class extends a.Group{constructor(e){super(),this.direction=e.direction,this.circle=new c(e),this.ring=new l(e),this.angleSector=new u(e),this.add(this.circle,this.ring,this.angleSector),this.direction===`y`?this.rotation.x=Math.PI/2:this.direction===`x`&&(this.rotation.y=-Math.PI/2)}showCircle(){this.add(this.circle),this.remove(this.ring,this.angleSector)}showRing(){this.add(this.ring,this.angleSector),this.remove(this.circle)}hide(){this.remove(this.ring,this.angleSector,this.circle)}},c=class extends a.Mesh{constructor(e){var t;super(),this.gapAngle=.02,this.geometry=new a.RingGeometry(.3,.35,20,8,this.gapAngle,Math.PI/2-this.gapAngle*2),this.material=new a.MeshBasicMaterial({opacity:.6,transparent:!0,color:(t=e.color)==null?16777215:t,side:a.DoubleSide,depthTest:!1}),this.direction=e.direction,this.renderOrder=n.ROTATE_HELPER,this.geometry.name=`RotateHelperCircleGeometry-${this.direction}`}},l=class extends a.Group{constructor(e){super(),this.direction=e.direction;let t=.015,n=Array(8).fill(null).map((e,n)=>{let r=new a.RingGeometry(.3,.35,20,8,Math.PI/4*n+t,Math.PI/4-t*2),i=new a.MeshBasicMaterial({opacity:1,color:16777215,depthTest:!1,depthWrite:!1,transparent:!0,side:a.DoubleSide}),o=new a.Mesh(r,i);return o.name=`AxesDashedRing-${this.direction}-${n}`,o});this.add(...n)}},u=class extends a.Mesh{constructor(e){var t;switch(super(),this.offsetAngle=e=>e,e.direction){case`x`:this.baseAxes=new a.Vector3(0,0,1);break;case`y`:this.baseAxes=new a.Vector3(1,0,0);break;case`z`:this.baseAxes=new a.Vector3(1,0,0);break}this.geometry=new a.CircleGeometry(.3505,48,0,1e-4),this.material=new a.MeshBasicMaterial({opacity:.4,color:(t=e.color)==null?16777215:t,depthTest:!1,depthWrite:!1,transparent:!0,side:a.DoubleSide}),this.direction=e.direction,this.angleDirection=1}setClockwiseDirection(){this.angleDirection=-1}setCounterClockwiseDirection(){this.angleDirection=1}toggleDirection(){this.angleDirection=this.angleDirection===1?-1:1}setBaseAxes(e){this.baseAxes=e.clone().normalize()}getDirection(){return this.angleDirection===-1?`clockwise`:`counterclockwise`}};export{o as RotateHelper};
338
+ */import{RotateHelperAbstract}from"./BaseHelper.mjs";import{AXES_THREE_COLOR,RENDER_ORDER}from"../constant.mjs";import calculateScaleByCamera from"../utils/calculateScaleByCamera.mjs";import{tipsDom}from"../utils/tipsDom.mjs";import*as THREE from"three/webgpu";var RotateHelper=class extends RotateHelperAbstract{constructor(originObject3D,config){super(originObject3D,config),this.name=`RotateHelper`,this.children=[],(config==null?void 0:config.yzCircleEnable)!==!1&&(this.xCircle=new RotateCircleGroup({direction:`x`,color:AXES_THREE_COLOR.X})),(config==null?void 0:config.xzCircleEnable)!==!1&&(this.yCircle=new RotateCircleGroup({direction:`y`,color:AXES_THREE_COLOR.Y})),(config==null?void 0:config.xyCircleEnable)!==!1&&(this.zCircle=new RotateCircleGroup({direction:`z`,color:AXES_THREE_COLOR.Z})),config!=null&&config.container&&(config==null?void 0:config.angleTipsEnable)!==!1&&(this.container=config==null?void 0:config.container,this.angleTips=tipsDom({display:`none`}),this.container.appendChild(this.angleTips.element)),this.add(...[this.xCircle,this.yCircle,this.zCircle].filter(Boolean)),this.show()}hide(){this.children.forEach(child=>child.hide())}show(){var _a;this.children.forEach(child=>child.showCircle()),(_a=this.angleTips)==null||_a.hide()}setScaleByCamera(camera){this.scale.setScalar(calculateScaleByCamera(camera,this.position))}update(camera){if(camera.type===`OrthographicCamera`)return;let cameraDirection=this.helperObject.position.clone().sub(camera.position).normalize(),worldDirectionX=new THREE.Vector3(1,0,0).applyQuaternion(this.quaternion),worldDirectionY=new THREE.Vector3(0,1,0).applyQuaternion(this.quaternion),worldDirectionZ=new THREE.Vector3(0,0,1).applyQuaternion(this.quaternion),angleX=cameraDirection.angleTo(worldDirectionX),angleY=cameraDirection.angleTo(worldDirectionY),angleZ=cameraDirection.angleTo(worldDirectionZ),threshold=Math.PI/2,positiveY=angleY>=threshold,positiveZ=angleZ>=threshold,positiveX=angleX>=threshold;if(this.xCircle){let gapAngle=this.xCircle.circle.gapAngle;positiveY&&positiveZ?this.xCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,gapAngle,Math.PI/2-gapAngle*2):positiveY&&!positiveZ?this.xCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI/2+gapAngle,Math.PI/2-gapAngle*2):!positiveY&&positiveZ?this.xCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI/2*3+gapAngle,Math.PI/2-gapAngle*2):!positiveY&&!positiveZ&&(this.xCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI+gapAngle,Math.PI/2-gapAngle*2)),this.xCircle.angleSector&&(this.xCircle.angleSector.offsetAngle=angle=>angle,positiveY&&positiveZ||positiveY&&!positiveZ?this.xCircle.angleSector.baseAxes=new THREE.Vector3(0,0,1):!positiveY&&positiveZ?(this.xCircle.angleSector.baseAxes=new THREE.Vector3(0,-1,0),this.xCircle.angleSector.offsetAngle=angle=>angle-Math.PI/2):!positiveY&&!positiveZ&&(this.xCircle.angleSector.baseAxes=new THREE.Vector3(0,0,-1),this.xCircle.angleSector.offsetAngle=angle=>angle-Math.PI))}if(this.yCircle){this.yCircle.angleSector.offsetAngle=angle=>angle;let gapAngle=this.yCircle.circle.gapAngle;positiveX&&positiveZ?this.yCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,gapAngle,Math.PI/2-gapAngle*2):positiveX&&!positiveZ?this.yCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI/2*3+gapAngle,Math.PI/2-gapAngle*2):!positiveX&&positiveZ?this.yCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI/2+gapAngle,Math.PI/2-gapAngle*2):!positiveX&&!positiveZ&&(this.yCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI+gapAngle,Math.PI/2-gapAngle*2)),positiveX&&positiveZ?this.yCircle.angleSector.baseAxes=new THREE.Vector3(1,0,0):positiveX&&!positiveZ?(this.yCircle.angleSector.baseAxes=new THREE.Vector3(0,0,-1),this.yCircle.angleSector.offsetAngle=angle=>angle-Math.PI/2):!positiveX&&positiveZ?(this.yCircle.angleSector.baseAxes=new THREE.Vector3(0,0,1),this.yCircle.angleSector.offsetAngle=angle=>angle+Math.PI/2):!positiveX&&!positiveZ&&(this.yCircle.angleSector.baseAxes=new THREE.Vector3(-1,0,0),this.yCircle.angleSector.offsetAngle=angle=>angle+Math.PI)}if(this.zCircle){this.zCircle.angleSector.offsetAngle=angle=>angle;let gapAngle=this.zCircle.circle.gapAngle;positiveX&&positiveY?this.zCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,gapAngle,Math.PI/2-gapAngle*2):positiveX&&!positiveY?this.zCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI/2*3+gapAngle,Math.PI/2-gapAngle*2):!positiveX&&positiveY?this.zCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI/2+gapAngle,Math.PI/2-gapAngle*2):!positiveX&&!positiveY&&(this.zCircle.circle.geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI+gapAngle,Math.PI/2-gapAngle*2)),this.zCircle.angleSector&&(positiveX&&positiveY?this.zCircle.angleSector.baseAxes=new THREE.Vector3(1,0,0):positiveX&&!positiveY?(this.zCircle.angleSector.baseAxes=new THREE.Vector3(0,-1,0),this.zCircle.angleSector.offsetAngle=angle=>angle-Math.PI/2):!positiveX&&positiveY?(this.zCircle.angleSector.baseAxes=new THREE.Vector3(0,1,0),this.zCircle.angleSector.offsetAngle=angle=>angle+Math.PI/2):!positiveX&&!positiveY&&(this.zCircle.angleSector.baseAxes=new THREE.Vector3(-1,0,0),this.zCircle.angleSector.offsetAngle=angle=>angle+Math.PI))}}showDraggingHelper(directions){var _a;this.hide(),this.children.filter(child=>directions.includes(child.direction)).forEach(child=>child.showRing()),(_a=this.angleTips)==null||_a.show()}dispose(){var _a,_b;this.removeFromParent(),(_b=(_a=this.angleTips)==null?void 0:_a.element)==null||_b.remove()}},RotateCircleGroup=class extends THREE.Group{constructor(options){super(),this.direction=options.direction,this.circle=new Circle(options),this.ring=new DashedRing(options),this.angleSector=new AngleSector(options),this.add(this.circle,this.ring,this.angleSector),this.direction===`y`?this.rotation.x=Math.PI/2:this.direction===`x`&&(this.rotation.y=-Math.PI/2)}showCircle(){this.add(this.circle),this.remove(this.ring,this.angleSector)}showRing(){this.add(this.ring,this.angleSector),this.remove(this.circle)}hide(){this.remove(this.ring,this.angleSector,this.circle)}},Circle=class extends THREE.Mesh{constructor(options){var _a;super(),this.gapAngle=.02,this.geometry=new THREE.RingGeometry(.3,.35,20,8,this.gapAngle,Math.PI/2-this.gapAngle*2),this.material=new THREE.MeshBasicMaterial({opacity:.6,transparent:!0,color:(_a=options.color)==null?16777215:_a,side:THREE.DoubleSide,depthTest:!1}),this.direction=options.direction,this.renderOrder=RENDER_ORDER.ROTATE_HELPER,this.geometry.name=`RotateHelperCircleGeometry-${this.direction}`}},DashedRing=class extends THREE.Group{constructor(options){super(),this.direction=options.direction;let gapAngle=.015,meshes=Array(8).fill(null).map((_,i)=>{let geometry=new THREE.RingGeometry(.3,.35,20,8,Math.PI/4*i+gapAngle,Math.PI/4-gapAngle*2),material=new THREE.MeshBasicMaterial({opacity:1,color:16777215,depthTest:!1,depthWrite:!1,transparent:!0,side:THREE.DoubleSide}),mesh=new THREE.Mesh(geometry,material);return mesh.name=`AxesDashedRing-${this.direction}-${i}`,mesh});this.add(...meshes)}},AngleSector=class extends THREE.Mesh{constructor(options){var _a;switch(super(),this.offsetAngle=angle=>angle,options.direction){case`x`:this.baseAxes=new THREE.Vector3(0,0,1);break;case`y`:this.baseAxes=new THREE.Vector3(1,0,0);break;case`z`:this.baseAxes=new THREE.Vector3(1,0,0);break}this.geometry=new THREE.CircleGeometry(.3505,48,0,1e-4),this.material=new THREE.MeshBasicMaterial({opacity:.4,color:(_a=options.color)==null?16777215:_a,depthTest:!1,depthWrite:!1,transparent:!0,side:THREE.DoubleSide}),this.direction=options.direction,this.angleDirection=1}setClockwiseDirection(){this.angleDirection=-1}setCounterClockwiseDirection(){this.angleDirection=1}toggleDirection(){this.angleDirection=this.angleDirection===1?-1:1}setBaseAxes(axes){this.baseAxes=axes.clone().normalize()}getDirection(){return this.angleDirection===-1?`clockwise`:`counterclockwise`}};export{RotateHelper};
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five-webgpu
4
- * Generated: 2026/10/29
5
- * Version: 1.0.0-alpha.12
4
+ * Generated: 2026/11/3
5
+ * Version: 1.0.0-alpha.14
6
6
  * License:
7
7
  * Realsee SDK License Agreement
8
8
 
@@ -335,4 +335,4 @@
335
335
  * writing and signed by Realsee. You and Realsee hereto confirm that this
336
336
  * Agreement and all related documents shall be drafted in English.
337
337
 
338
- */const e=require("../../_virtual/_rolldown/runtime.js");let t=require("three/webgpu");t=e.__toESM(t,1);var n={X:16730698,Y:54927,Z:3368703},r=class{static get X(){return new t.Color(n.X).convertSRGBToLinear().clone()}static get Y(){return new t.Color(n.Y).convertSRGBToLinear().clone()}static get Z(){return new t.Color(n.Z).convertSRGBToLinear().clone()}},i={ROTATE_HELPER:9992,MOVE_HELPER:9993,SCALE_HELPER_LINE:9994,SCALE_HELPER_SPHERE:9995,MOVE_HELPER_ARROW:10001,MOVE_HELPER_CENTER:10002,DRAG_GUIDE_LINE:10003,DRAG_FACE_PATCH:10004};exports.AXES_COLOR=n,exports.AXES_THREE_COLOR=r,exports.RENDER_ORDER=i;
338
+ */const require_runtime=require("../../_virtual/_rolldown/runtime.js");let three_webgpu=require("three/webgpu");three_webgpu=require_runtime.__toESM(three_webgpu,1);var AXES_COLOR={X:16730698,Y:54927,Z:3368703},AXES_THREE_COLOR=class{static get X(){return new three_webgpu.Color(AXES_COLOR.X).convertSRGBToLinear().clone()}static get Y(){return new three_webgpu.Color(AXES_COLOR.Y).convertSRGBToLinear().clone()}static get Z(){return new three_webgpu.Color(AXES_COLOR.Z).convertSRGBToLinear().clone()}},RENDER_ORDER={ROTATE_HELPER:9992,MOVE_HELPER:9993,SCALE_HELPER_LINE:9994,SCALE_HELPER_SPHERE:9995,MOVE_HELPER_ARROW:10001,MOVE_HELPER_CENTER:10002,DRAG_GUIDE_LINE:10003,DRAG_FACE_PATCH:10004};exports.AXES_COLOR=AXES_COLOR,exports.AXES_THREE_COLOR=AXES_THREE_COLOR,exports.RENDER_ORDER=RENDER_ORDER;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five-webgpu
4
- * Generated: 2026/10/29
5
- * Version: 1.0.0-alpha.12
4
+ * Generated: 2026/11/3
5
+ * Version: 1.0.0-alpha.14
6
6
  * License:
7
7
  * Realsee SDK License Agreement
8
8
 
@@ -335,4 +335,4 @@
335
335
  * writing and signed by Realsee. You and Realsee hereto confirm that this
336
336
  * Agreement and all related documents shall be drafted in English.
337
337
 
338
- */import*as e from"three/webgpu";var t={X:16730698,Y:54927,Z:3368703},n=class{static get X(){return new e.Color(t.X).convertSRGBToLinear().clone()}static get Y(){return new e.Color(t.Y).convertSRGBToLinear().clone()}static get Z(){return new e.Color(t.Z).convertSRGBToLinear().clone()}},r={ROTATE_HELPER:9992,MOVE_HELPER:9993,SCALE_HELPER_LINE:9994,SCALE_HELPER_SPHERE:9995,MOVE_HELPER_ARROW:10001,MOVE_HELPER_CENTER:10002,DRAG_GUIDE_LINE:10003,DRAG_FACE_PATCH:10004};export{t as AXES_COLOR,n as AXES_THREE_COLOR,r as RENDER_ORDER};
338
+ */import*as THREE from"three/webgpu";var AXES_COLOR={X:16730698,Y:54927,Z:3368703},AXES_THREE_COLOR=class{static get X(){return new THREE.Color(AXES_COLOR.X).convertSRGBToLinear().clone()}static get Y(){return new THREE.Color(AXES_COLOR.Y).convertSRGBToLinear().clone()}static get Z(){return new THREE.Color(AXES_COLOR.Z).convertSRGBToLinear().clone()}},RENDER_ORDER={ROTATE_HELPER:9992,MOVE_HELPER:9993,SCALE_HELPER_LINE:9994,SCALE_HELPER_SPHERE:9995,MOVE_HELPER_ARROW:10001,MOVE_HELPER_CENTER:10002,DRAG_GUIDE_LINE:10003,DRAG_FACE_PATCH:10004};export{AXES_COLOR,AXES_THREE_COLOR,RENDER_ORDER};
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five-webgpu
4
- * Generated: 2026/10/29
5
- * Version: 1.0.0-alpha.12
4
+ * Generated: 2026/11/3
5
+ * Version: 1.0.0-alpha.14
6
6
  * License:
7
7
  * Realsee SDK License Agreement
8
8
 
@@ -335,4 +335,4 @@
335
335
  * writing and signed by Realsee. You and Realsee hereto confirm that this
336
336
  * Agreement and all related documents shall be drafted in English.
337
337
 
338
- */const e=require("./Controller.js");var t=t=>new e.Controller(t);exports.Object3DHelperController=e.Controller,exports.Object3DHelperPlugin=t;
338
+ */const require_Controller=require("./Controller.js");var Object3DHelperPlugin=five=>new require_Controller.Controller(five);exports.Object3DHelperController=require_Controller.Controller,exports.Object3DHelperPlugin=Object3DHelperPlugin;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five-webgpu
4
- * Generated: 2026/10/29
5
- * Version: 1.0.0-alpha.12
4
+ * Generated: 2026/11/3
5
+ * Version: 1.0.0-alpha.14
6
6
  * License:
7
7
  * Realsee SDK License Agreement
8
8
 
@@ -335,4 +335,4 @@
335
335
  * writing and signed by Realsee. You and Realsee hereto confirm that this
336
336
  * Agreement and all related documents shall be drafted in English.
337
337
 
338
- */import{Controller as e}from"./Controller.mjs";var t=t=>new e(t);export{e as Object3DHelperController,t as Object3DHelperPlugin};
338
+ */import{Controller}from"./Controller.mjs";var Object3DHelperPlugin=five=>new Controller(five);export{Controller as Object3DHelperController,Object3DHelperPlugin};
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five-webgpu
4
- * Generated: 2026/10/29
5
- * Version: 1.0.0-alpha.12
4
+ * Generated: 2026/11/3
5
+ * Version: 1.0.0-alpha.14
6
6
  * License:
7
7
  * Realsee SDK License Agreement
8
8
 
@@ -335,4 +335,4 @@
335
335
  * writing and signed by Realsee. You and Realsee hereto confirm that this
336
336
  * Agreement and all related documents shall be drafted in English.
337
337
 
338
- */const e=require("../../../_virtual/_rolldown/runtime.js"),t=require("./direction.js"),n=require("../constant.js");let r=require("three/webgpu");r=e.__toESM(r,1);var i=class extends t.DirectionGroup{constructor(e){var i;super(e.direction),this.lineHeight=.5,this.arrowHeight=.1,this.name=`ArrowGroup`;let a=new r.Color((i=e.color)==null?16214315:i),o=()=>new r.MeshBasicMaterial({color:a,transparent:!0,opacity:1,depthTest:!1,depthWrite:!1}),s=new r.ConeGeometry(.04,this.arrowHeight,32);this.arrow=new t.DirectionMesh(s,o(),e.direction),this.arrow.name=`arrow-${e.direction}`,this.arrow.renderOrder=n.RENDER_ORDER.MOVE_HELPER_ARROW;let c=new r.ConeGeometry(.04,this.arrowHeight,32);this.arrowNeg=new t.DirectionMesh(c,o(),e.direction),this.arrowNeg.name=`arrow-neg-${e.direction}`,this.arrowNeg.renderOrder=n.RENDER_ORDER.MOVE_HELPER_ARROW;let l=.004,u=new r.CylinderGeometry(l,l,this.lineHeight,32);this.line=new t.DirectionMesh(u,o(),e.direction),this.line.name=`line-${e.direction}`,this.line.renderOrder=n.RENDER_ORDER.MOVE_HELPER_ARROW,this.formatGeometries(),this.add(this.arrow,this.arrowNeg,this.line)}formatGeometries(){let e=this.lineHeight,t=this.arrowHeight;this.arrow.geometry.translate(0,e+t/2,0),this.arrowNeg.geometry.rotateZ(Math.PI),this.arrowNeg.geometry.translate(0,-(e+t/2),0),this.line.geometry.translate(0,e/2,0),this.direction===`x`?(this.arrow.geometry.rotateX(Math.PI/2),this.arrow.geometry.rotateY(Math.PI/2),this.arrowNeg.geometry.rotateX(Math.PI/2),this.arrowNeg.geometry.rotateY(Math.PI/2),this.line.geometry.rotateX(Math.PI/2),this.line.geometry.rotateY(Math.PI/2)):this.direction===`z`&&(this.arrow.geometry.rotateX(Math.PI/2),this.arrowNeg.geometry.rotateX(Math.PI/2),this.line.geometry.rotateX(Math.PI/2))}};exports.ArrowGroup=i;
338
+ */const require_runtime=require("../../../_virtual/_rolldown/runtime.js"),require_direction=require("./direction.js"),require_constant=require("../constant.js");let three_webgpu=require("three/webgpu");three_webgpu=require_runtime.__toESM(three_webgpu,1);var ArrowGroup=class extends require_direction.DirectionGroup{constructor(param){var _a;super(param.direction),this.lineHeight=.5,this.arrowHeight=.1,this.name=`ArrowGroup`;let color=new three_webgpu.Color((_a=param.color)==null?16214315:_a),makeMaterial=()=>new three_webgpu.MeshBasicMaterial({color,transparent:!0,opacity:1,depthTest:!1,depthWrite:!1}),coneGeometry=new three_webgpu.ConeGeometry(.04,this.arrowHeight,32);this.arrow=new require_direction.DirectionMesh(coneGeometry,makeMaterial(),param.direction),this.arrow.name=`arrow-${param.direction}`,this.arrow.renderOrder=require_constant.RENDER_ORDER.MOVE_HELPER_ARROW;let coneGeometryNeg=new three_webgpu.ConeGeometry(.04,this.arrowHeight,32);this.arrowNeg=new require_direction.DirectionMesh(coneGeometryNeg,makeMaterial(),param.direction),this.arrowNeg.name=`arrow-neg-${param.direction}`,this.arrowNeg.renderOrder=require_constant.RENDER_ORDER.MOVE_HELPER_ARROW;let radius=.004,cylinderGeometry=new three_webgpu.CylinderGeometry(radius,radius,this.lineHeight,32);this.line=new require_direction.DirectionMesh(cylinderGeometry,makeMaterial(),param.direction),this.line.name=`line-${param.direction}`,this.line.renderOrder=require_constant.RENDER_ORDER.MOVE_HELPER_ARROW,this.formatGeometries(),this.add(this.arrow,this.arrowNeg,this.line)}formatGeometries(){let h=this.lineHeight,ah=this.arrowHeight;this.arrow.geometry.translate(0,h+ah/2,0),this.arrowNeg.geometry.rotateZ(Math.PI),this.arrowNeg.geometry.translate(0,-(h+ah/2),0),this.line.geometry.translate(0,h/2,0),this.direction===`x`?(this.arrow.geometry.rotateX(Math.PI/2),this.arrow.geometry.rotateY(Math.PI/2),this.arrowNeg.geometry.rotateX(Math.PI/2),this.arrowNeg.geometry.rotateY(Math.PI/2),this.line.geometry.rotateX(Math.PI/2),this.line.geometry.rotateY(Math.PI/2)):this.direction===`z`&&(this.arrow.geometry.rotateX(Math.PI/2),this.arrowNeg.geometry.rotateX(Math.PI/2),this.line.geometry.rotateX(Math.PI/2))}};exports.ArrowGroup=ArrowGroup;
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five-webgpu
4
- * Generated: 2026/10/29
5
- * Version: 1.0.0-alpha.12
4
+ * Generated: 2026/11/3
5
+ * Version: 1.0.0-alpha.14
6
6
  * License:
7
7
  * Realsee SDK License Agreement
8
8
 
@@ -335,4 +335,4 @@
335
335
  * writing and signed by Realsee. You and Realsee hereto confirm that this
336
336
  * Agreement and all related documents shall be drafted in English.
337
337
 
338
- */import{DirectionGroup as e,DirectionMesh as t}from"./direction.mjs";import{RENDER_ORDER as n}from"../constant.mjs";import*as r from"three/webgpu";var i=class extends e{constructor(e){var i;super(e.direction),this.lineHeight=.5,this.arrowHeight=.1,this.name=`ArrowGroup`;let a=new r.Color((i=e.color)==null?16214315:i),o=()=>new r.MeshBasicMaterial({color:a,transparent:!0,opacity:1,depthTest:!1,depthWrite:!1}),s=new r.ConeGeometry(.04,this.arrowHeight,32);this.arrow=new t(s,o(),e.direction),this.arrow.name=`arrow-${e.direction}`,this.arrow.renderOrder=n.MOVE_HELPER_ARROW;let c=new r.ConeGeometry(.04,this.arrowHeight,32);this.arrowNeg=new t(c,o(),e.direction),this.arrowNeg.name=`arrow-neg-${e.direction}`,this.arrowNeg.renderOrder=n.MOVE_HELPER_ARROW;let l=.004,u=new r.CylinderGeometry(l,l,this.lineHeight,32);this.line=new t(u,o(),e.direction),this.line.name=`line-${e.direction}`,this.line.renderOrder=n.MOVE_HELPER_ARROW,this.formatGeometries(),this.add(this.arrow,this.arrowNeg,this.line)}formatGeometries(){let e=this.lineHeight,t=this.arrowHeight;this.arrow.geometry.translate(0,e+t/2,0),this.arrowNeg.geometry.rotateZ(Math.PI),this.arrowNeg.geometry.translate(0,-(e+t/2),0),this.line.geometry.translate(0,e/2,0),this.direction===`x`?(this.arrow.geometry.rotateX(Math.PI/2),this.arrow.geometry.rotateY(Math.PI/2),this.arrowNeg.geometry.rotateX(Math.PI/2),this.arrowNeg.geometry.rotateY(Math.PI/2),this.line.geometry.rotateX(Math.PI/2),this.line.geometry.rotateY(Math.PI/2)):this.direction===`z`&&(this.arrow.geometry.rotateX(Math.PI/2),this.arrowNeg.geometry.rotateX(Math.PI/2),this.line.geometry.rotateX(Math.PI/2))}};export{i as ArrowGroup};
338
+ */import{DirectionGroup,DirectionMesh}from"./direction.mjs";import{RENDER_ORDER}from"../constant.mjs";import*as THREE from"three/webgpu";var ArrowGroup=class extends DirectionGroup{constructor(param){var _a;super(param.direction),this.lineHeight=.5,this.arrowHeight=.1,this.name=`ArrowGroup`;let color=new THREE.Color((_a=param.color)==null?16214315:_a),makeMaterial=()=>new THREE.MeshBasicMaterial({color,transparent:!0,opacity:1,depthTest:!1,depthWrite:!1}),coneGeometry=new THREE.ConeGeometry(.04,this.arrowHeight,32);this.arrow=new DirectionMesh(coneGeometry,makeMaterial(),param.direction),this.arrow.name=`arrow-${param.direction}`,this.arrow.renderOrder=RENDER_ORDER.MOVE_HELPER_ARROW;let coneGeometryNeg=new THREE.ConeGeometry(.04,this.arrowHeight,32);this.arrowNeg=new DirectionMesh(coneGeometryNeg,makeMaterial(),param.direction),this.arrowNeg.name=`arrow-neg-${param.direction}`,this.arrowNeg.renderOrder=RENDER_ORDER.MOVE_HELPER_ARROW;let radius=.004,cylinderGeometry=new THREE.CylinderGeometry(radius,radius,this.lineHeight,32);this.line=new DirectionMesh(cylinderGeometry,makeMaterial(),param.direction),this.line.name=`line-${param.direction}`,this.line.renderOrder=RENDER_ORDER.MOVE_HELPER_ARROW,this.formatGeometries(),this.add(this.arrow,this.arrowNeg,this.line)}formatGeometries(){let h=this.lineHeight,ah=this.arrowHeight;this.arrow.geometry.translate(0,h+ah/2,0),this.arrowNeg.geometry.rotateZ(Math.PI),this.arrowNeg.geometry.translate(0,-(h+ah/2),0),this.line.geometry.translate(0,h/2,0),this.direction===`x`?(this.arrow.geometry.rotateX(Math.PI/2),this.arrow.geometry.rotateY(Math.PI/2),this.arrowNeg.geometry.rotateX(Math.PI/2),this.arrowNeg.geometry.rotateY(Math.PI/2),this.line.geometry.rotateX(Math.PI/2),this.line.geometry.rotateY(Math.PI/2)):this.direction===`z`&&(this.arrow.geometry.rotateX(Math.PI/2),this.arrowNeg.geometry.rotateX(Math.PI/2),this.line.geometry.rotateX(Math.PI/2))}};export{ArrowGroup};
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five-webgpu
4
- * Generated: 2026/10/29
5
- * Version: 1.0.0-alpha.12
4
+ * Generated: 2026/11/3
5
+ * Version: 1.0.0-alpha.14
6
6
  * License:
7
7
  * Realsee SDK License Agreement
8
8
 
@@ -335,4 +335,4 @@
335
335
  * writing and signed by Realsee. You and Realsee hereto confirm that this
336
336
  * Agreement and all related documents shall be drafted in English.
337
337
 
338
- */const e=require("../../../_virtual/_rolldown/runtime.js"),t=require("./direction.js"),n=require("../constant.js");let r=require("three/webgpu");r=e.__toESM(r,1);var i=class extends t.DirectionGroup{constructor(e){var t,i;super(`plane`),this.name=`CenterHandle`,this.faceNormals=[new r.Vector3(1,0,0),new r.Vector3(-1,0,0),new r.Vector3(0,1,0),new r.Vector3(0,-1,0),new r.Vector3(0,0,1),new r.Vector3(0,0,-1)],this.baseColor=new r.Color((t=e==null?void 0:e.color)==null?16419862:t);let a=(i=e==null?void 0:e.size)==null?.05:i,o=new r.Color(16755008).convertSRGBToLinear();this.faceMaterials=Array.from({length:6},()=>new r.MeshBasicMaterial({color:o,transparent:!0,opacity:1,depthTest:!1,depthWrite:!1,side:r.FrontSide}));let s=new r.BoxGeometry(a,a,a),c=new r.Mesh(s,this.faceMaterials);c.direction=`plane`,c.renderOrder=n.RENDER_ORDER.MOVE_HELPER_CENTER,c.name=`center-plane-handle`,this.cube=c,this.add(this.cube)}update(e){let t=new r.Vector3().subVectors(e.position,this.cube.getWorldPosition(new r.Vector3)).normalize(),n=this.cube.getWorldQuaternion(new r.Quaternion),i=this.faceNormals.map((e,r)=>{let i=e.clone().applyQuaternion(n).dot(t);return{index:r,angle:Math.acos(Math.abs(i))}});i.sort((e,t)=>e.angle-t.angle);let a=[new r.Color(16755008).convertSRGBToLinear(),new r.Color(16419862).convertSRGBToLinear(),new r.Color(13921032).convertSRGBToLinear()];i.forEach((e,t)=>{let n=Math.floor(t/2);this.faceMaterials[e.index].color.copy(a[n])})}};exports.CenterHandle=i;
338
+ */const require_runtime=require("../../../_virtual/_rolldown/runtime.js"),require_direction=require("./direction.js"),require_constant=require("../constant.js");let three_webgpu=require("three/webgpu");three_webgpu=require_runtime.__toESM(three_webgpu,1);var CenterHandle=class extends require_direction.DirectionGroup{constructor(param){var _a,_b;super(`plane`),this.name=`CenterHandle`,this.faceNormals=[new three_webgpu.Vector3(1,0,0),new three_webgpu.Vector3(-1,0,0),new three_webgpu.Vector3(0,1,0),new three_webgpu.Vector3(0,-1,0),new three_webgpu.Vector3(0,0,1),new three_webgpu.Vector3(0,0,-1)],this.baseColor=new three_webgpu.Color((_a=param==null?void 0:param.color)==null?16419862:_a);let centerSize=(_b=param==null?void 0:param.size)==null?.05:_b,brightColor=new three_webgpu.Color(16755008).convertSRGBToLinear();this.faceMaterials=Array.from({length:6},()=>new three_webgpu.MeshBasicMaterial({color:brightColor,transparent:!0,opacity:1,depthTest:!1,depthWrite:!1,side:three_webgpu.FrontSide}));let centerGeometry=new three_webgpu.BoxGeometry(centerSize,centerSize,centerSize),cube=new three_webgpu.Mesh(centerGeometry,this.faceMaterials);cube.direction=`plane`,cube.renderOrder=require_constant.RENDER_ORDER.MOVE_HELPER_CENTER,cube.name=`center-plane-handle`,this.cube=cube,this.add(this.cube)}update(camera){let cameraDirection=new three_webgpu.Vector3().subVectors(camera.position,this.cube.getWorldPosition(new three_webgpu.Vector3)).normalize(),worldQuaternion=this.cube.getWorldQuaternion(new three_webgpu.Quaternion),faceAngles=this.faceNormals.map((normal,index)=>{let dotProduct=normal.clone().applyQuaternion(worldQuaternion).dot(cameraDirection);return{index,angle:Math.acos(Math.abs(dotProduct))}});faceAngles.sort((a,b)=>a.angle-b.angle);let colors=[new three_webgpu.Color(16755008).convertSRGBToLinear(),new three_webgpu.Color(16419862).convertSRGBToLinear(),new three_webgpu.Color(13921032).convertSRGBToLinear()];faceAngles.forEach((item,sortedIndex)=>{let colorIndex=Math.floor(sortedIndex/2);this.faceMaterials[item.index].color.copy(colors[colorIndex])})}};exports.CenterHandle=CenterHandle;