@realsee/five 6.0.0-alpha.63 → 6.0.0-alpha.65

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 (305) hide show
  1. package/docs/assets/highlight.css +20 -20
  2. package/docs/assets/main.js +59 -52
  3. package/docs/assets/navigation.js +1 -0
  4. package/docs/assets/search.js +1 -1
  5. package/docs/assets/style.css +805 -825
  6. package/docs/classes/five.AnimationFrameLoop.html +16 -15
  7. package/docs/classes/five.BoxBoundingVolume.html +18 -1
  8. package/docs/classes/five.Camera.html +37 -11
  9. package/docs/classes/five.CullingVolume.html +10 -1
  10. package/docs/classes/five.Fetcher.html +5 -1
  11. package/docs/classes/five.Five.html +237 -288
  12. package/docs/classes/five.InternalWebGLRenderer.html +2 -1
  13. package/docs/classes/five.IntersectMesh.html +4 -1
  14. package/docs/classes/five.Model.html +62 -65
  15. package/docs/classes/five.NetworkAbortError.html +2 -1
  16. package/docs/classes/five.NetworkFirbiddenError.html +2 -1
  17. package/docs/classes/five.NetworkResponseError.html +3 -1
  18. package/docs/classes/five.NetworkSubscribe.html +42 -56
  19. package/docs/classes/five.NetworkTimeoutError.html +2 -1
  20. package/docs/classes/five.PBMContainer.html +12 -11
  21. package/docs/classes/five.PBMGroup.html +3 -3
  22. package/docs/classes/five.PBMMesh.html +4 -3
  23. package/docs/classes/five.PBMMeshMaterial.html +50 -47
  24. package/docs/classes/five.PanoCircleMesh.html +30 -7
  25. package/docs/classes/five.PanoCircleMeshCustom.html +30 -7
  26. package/docs/classes/five.PanoCircleMeshSolid.html +30 -7
  27. package/docs/classes/five.RegionBoundingVolume.html +21 -1
  28. package/docs/classes/five.RequestScheduler.html +13 -12
  29. package/docs/classes/five.Scene.html +5 -3
  30. package/docs/classes/five.SphereBoundingVolume.html +17 -1
  31. package/docs/classes/five.Subscribe.html +43 -62
  32. package/docs/classes/five.TextureLoader.html +5 -1
  33. package/docs/classes/five.Tile.html +30 -1
  34. package/docs/classes/five.Tile3DModel.html +28 -1
  35. package/docs/classes/five.TileCubeTextureTarget.html +9 -1
  36. package/docs/classes/five.TileNode.html +4 -1
  37. package/docs/classes/five.Tileset.html +31 -5
  38. package/docs/classes/five.TilesetCache.html +8 -1
  39. package/docs/classes/five.TilesetTraverser.html +19 -1
  40. package/docs/classes/five.Work.html +28 -28
  41. package/docs/classes/five.XRButton.html +3 -1
  42. package/docs/classes/gltf_loader.DDSLoader.html +3 -1
  43. package/docs/classes/gltf_loader.DRACOLoader.html +8 -1
  44. package/docs/classes/gltf_loader.GLTFLoader.html +18 -17
  45. package/docs/classes/gltf_loader.GLTFObject.html +8 -6
  46. package/docs/classes/gltf_loader.GLTFParser.html +6 -1
  47. package/docs/classes/gltf_loader.THREEGLTFLoader.html +8 -1
  48. package/docs/classes/line.Line.html +10 -1
  49. package/docs/classes/line.LineGeometry.html +14 -1
  50. package/docs/classes/line.LineMaterial.html +8 -1
  51. package/docs/classes/line.LineSegmentsGeometry.html +12 -1
  52. package/docs/classes/line.THREE_Line2.html +4 -1
  53. package/docs/classes/line.THREE_LineSegments2.html +4 -1
  54. package/docs/classes/react.Store.html +23 -29
  55. package/docs/classes/sticker.Sticker.html +25 -32
  56. package/docs/classes/vfx.Airflow.html +8 -1
  57. package/docs/classes/vfx.Flame.html +10 -1
  58. package/docs/classes/vfx.Particle.html +79 -82
  59. package/docs/classes/vfx.SpotLight.html +7 -1
  60. package/docs/enums/five.VolumePlaneIntersect.html +4 -1
  61. package/docs/functions/five.defaultImageURLTransform.html +5 -0
  62. package/docs/functions/five.getViewportScale.html +1 -0
  63. package/docs/functions/five.imageSupport.html +1 -0
  64. package/docs/functions/five.isPanoId.html +1 -0
  65. package/docs/functions/five.loadAt3d.html +1 -0
  66. package/docs/functions/five.loadB3dm.html +1 -0
  67. package/docs/functions/five.loadDome.html +1 -0
  68. package/docs/functions/five.loadDomez.html +1 -0
  69. package/docs/functions/five.loadPbm.html +1 -0
  70. package/docs/functions/five.loadPnts.html +1 -0
  71. package/docs/functions/five.panoEqual.html +1 -0
  72. package/docs/functions/five.panoParse.html +1 -0
  73. package/docs/functions/five.panoStringify.html +1 -0
  74. package/docs/functions/five.parseWork.html +7 -0
  75. package/docs/functions/react.FiveCanvas-1.html +6 -0
  76. package/docs/functions/react.createFiveFeature.html +1 -0
  77. package/docs/functions/react.createFiveProvider.html +9 -0
  78. package/docs/functions/react.createStore.html +15 -0
  79. package/docs/functions/react.unsafe__useFiveInstance.html +5 -0
  80. package/docs/functions/react.useFiveAction.html +19 -0
  81. package/docs/functions/react.useFiveCameraDirection.html +3 -0
  82. package/docs/functions/react.useFiveCameraRaycaster.html +3 -0
  83. package/docs/functions/react.useFiveCurrentObserver.html +5 -0
  84. package/docs/functions/react.useFiveCurrentState.html +5 -0
  85. package/docs/functions/react.useFiveEventCallback.html +5 -0
  86. package/docs/functions/react.useFiveFloor.html +5 -0
  87. package/docs/functions/react.useFiveHelper.html +5 -0
  88. package/docs/functions/react.useFiveModelIntersectRaycaster.html +7 -0
  89. package/docs/functions/react.useFiveModelReadyState.html +4 -0
  90. package/docs/functions/react.useFiveProject2d.html +7 -0
  91. package/docs/functions/react.useFiveScene.html +2 -0
  92. package/docs/functions/react.useFiveSceneEffect.html +5 -0
  93. package/docs/functions/react.useFiveState.html +1 -0
  94. package/docs/functions/react.useFiveWork.html +8 -0
  95. package/docs/functions/react.withFive.html +1 -0
  96. package/docs/functions/vue.unsafe__useFiveInject.html +5 -0
  97. package/docs/functions/vue.useFiveAction.html +25 -0
  98. package/docs/functions/vue.useFiveCameraDirection.html +3 -0
  99. package/docs/functions/vue.useFiveCameraRaycaster.html +3 -0
  100. package/docs/functions/vue.useFiveCurrentObserver.html +5 -0
  101. package/docs/functions/vue.useFiveCurrentState.html +5 -0
  102. package/docs/functions/vue.useFiveEventCallback.html +5 -0
  103. package/docs/functions/vue.useFiveFloor.html +5 -0
  104. package/docs/functions/vue.useFiveHelper.html +5 -0
  105. package/docs/functions/vue.useFiveModel.html +2 -0
  106. package/docs/functions/vue.useFiveModelBounding.html +2 -0
  107. package/docs/functions/vue.useFiveModelIntersectRaycaster.html +7 -0
  108. package/docs/functions/vue.useFiveModelReadyState.html +4 -0
  109. package/docs/functions/vue.useFiveProject2d.html +7 -0
  110. package/docs/functions/vue.useFiveScene.html +2 -0
  111. package/docs/functions/vue.useFiveState.html +5 -0
  112. package/docs/functions/vue.useFiveWorks.html +8 -0
  113. package/docs/index.html +35 -79
  114. package/docs/interfaces/five.AddableObject.html +9 -9
  115. package/docs/interfaces/five.AjaxOptions.html +11 -11
  116. package/docs/interfaces/five.AnimationFrame.html +5 -1
  117. package/docs/interfaces/five.BaseEvent.html +5 -1
  118. package/docs/interfaces/five.BoundingVolume.html +14 -1
  119. package/docs/interfaces/five.CameraPose.html +6 -1
  120. package/docs/interfaces/five.ClipperParameter.html +3 -1
  121. package/docs/interfaces/five.DepthPanoramaControllerCustomInitArgs.html +25 -25
  122. package/docs/interfaces/five.EventCallback.html +355 -466
  123. package/docs/interfaces/five.FiveInitArgs.html +84 -86
  124. package/docs/interfaces/five.FloorplanControllerCustomInitArgs.html +17 -17
  125. package/docs/interfaces/five.GestureEvent.html +19 -1
  126. package/docs/interfaces/five.ImageOptions.html +16 -18
  127. package/docs/interfaces/five.ImageURLMappings.html +1 -1
  128. package/docs/interfaces/five.ImageURLOptions.html +15 -15
  129. package/docs/interfaces/five.IntersectEvent.html +8 -1
  130. package/docs/interfaces/five.IntersectMeshInterface.html +3 -3
  131. package/docs/interfaces/five.Intersection.html +3 -3
  132. package/docs/interfaces/five.MapviewControllerCustomInitArgs.html +13 -13
  133. package/docs/interfaces/five.ModeChangeEvent.html +9 -1
  134. package/docs/interfaces/five.ModelControllerCustomInitArgs.html +18 -18
  135. package/docs/interfaces/five.ModelEvent.html +8 -1
  136. package/docs/interfaces/five.ModelLodOptions.html +2 -1
  137. package/docs/interfaces/five.ModelsEvent.html +6 -1
  138. package/docs/interfaces/five.MotionKeyframe.html +4 -1
  139. package/docs/interfaces/five.MovePanoOptions.html +29 -30
  140. package/docs/interfaces/five.NetworkOptions.html +9 -9
  141. package/docs/interfaces/five.NetworkResourceEvent.html +9 -1
  142. package/docs/interfaces/five.ObjectEvent.html +6 -1
  143. package/docs/interfaces/five.PBMPanoPicture.html +7 -7
  144. package/docs/interfaces/five.PBMParameters.html +42 -43
  145. package/docs/interfaces/five.PanoCircleMeshCustomOptions.html +9 -1
  146. package/docs/interfaces/five.PanoCircleMeshInterface.html +21 -10
  147. package/docs/interfaces/five.PanoCircleMeshOptions.html +3 -1
  148. package/docs/interfaces/five.PanoCircleMeshSolidOptions.html +3 -1
  149. package/docs/interfaces/five.PanoEvent.html +11 -1
  150. package/docs/interfaces/five.PanoTextureEvent.html +9 -1
  151. package/docs/interfaces/five.PanoramaControllerCustomInitArgs.html +32 -32
  152. package/docs/interfaces/five.PanoramaLikeControllerCustomInitArgs.html +18 -18
  153. package/docs/interfaces/five.Pose.html +15 -32
  154. package/docs/interfaces/five.RenderEvent.html +7 -1
  155. package/docs/interfaces/five.Scissor.html +11 -12
  156. package/docs/interfaces/five.State.html +20 -21
  157. package/docs/interfaces/five.StateEvent.html +7 -1
  158. package/docs/interfaces/five.SubscribeMixinType.emit.html +1 -1
  159. package/docs/interfaces/five.SubscribeMixinType.hasListener.html +1 -1
  160. package/docs/interfaces/five.SubscribeMixinType.off.html +1 -1
  161. package/docs/interfaces/five.SubscribeMixinType.on.html +1 -1
  162. package/docs/interfaces/five.SubscribeMixinType.once.html +1 -1
  163. package/docs/interfaces/five.SubscribeMixinType.waitUnitl.html +1 -1
  164. package/docs/interfaces/five.TextureOptions.html +18 -20
  165. package/docs/interfaces/five.Tile3DModelLoaderOptions.html +6 -3
  166. package/docs/interfaces/five.TileCubeNode.html +7 -1
  167. package/docs/interfaces/five.TileCubeTree.html +2 -1
  168. package/docs/interfaces/five.TileHeader.html +9 -1
  169. package/docs/interfaces/five.TilesetHeader.html +5 -1
  170. package/docs/interfaces/five.TilesetOptions.html +5 -1
  171. package/docs/interfaces/five.TopviewControllerCustomInitArgs.html +9 -9
  172. package/docs/interfaces/five.VRPanoramaControllerCustomInitArgs.html +28 -28
  173. package/docs/interfaces/five.WebXRAxesParams.html +4 -1
  174. package/docs/interfaces/five.WebXRControllerParams.html +2 -1
  175. package/docs/interfaces/five.WorkCubeImage.html +13 -13
  176. package/docs/interfaces/five.WorkImage.html +20 -21
  177. package/docs/interfaces/five.WorkInitial.html +17 -17
  178. package/docs/interfaces/five.WorkModel.html +12 -13
  179. package/docs/interfaces/five.WorkObserver.html +40 -41
  180. package/docs/interfaces/five.WorkOptions.html +17 -17
  181. package/docs/interfaces/five.WorkResolvedObserver.html +41 -39
  182. package/docs/interfaces/five.WorkTile.html +9 -1
  183. package/docs/interfaces/five.WorkVideo.html +8 -9
  184. package/docs/interfaces/five.WorksEvent.html +9 -1
  185. package/docs/interfaces/five.XRControllerEvent.html +8 -1
  186. package/docs/interfaces/five.XRGestureEvent.html +11 -1
  187. package/docs/interfaces/five.XRPanoramaControllerCustomInitArgs.html +29 -28
  188. package/docs/interfaces/five.XRSessionEvent.html +7 -1
  189. package/docs/interfaces/gltf_loader.DDS.html +7 -1
  190. package/docs/interfaces/gltf_loader.GLTF.html +10 -4
  191. package/docs/interfaces/gltf_loader.GLTFReference.html +3 -1
  192. package/docs/interfaces/gltf_loader.THREEGLTF.html +8 -1
  193. package/docs/interfaces/react.FiveActionReactCallbacks.html +27 -37
  194. package/docs/interfaces/react.FiveInjectionTypes.html +113 -138
  195. package/docs/interfaces/react.PropTypeOfFiveFeatures.html +2 -1
  196. package/docs/interfaces/sticker.IntersectionLike.html +7 -8
  197. package/docs/interfaces/vfx.ParticleArgs.html +67 -68
  198. package/docs/interfaces/vfx.ParticleTweenKeyframe.html +3 -1
  199. package/docs/interfaces/vue.FiveActionVueCallbacks.html +31 -42
  200. package/docs/modules/five.SubscribeMixinType.html +7 -1
  201. package/docs/modules/five.html +171 -647
  202. package/docs/modules/gltf_loader.html +11 -1
  203. package/docs/modules/line.html +8 -1
  204. package/docs/modules/react.FiveCanvas.html +8 -0
  205. package/docs/modules/react.html +37 -130
  206. package/docs/modules/sticker.html +3 -1
  207. package/docs/modules/vfx.html +8 -1
  208. package/docs/modules/vue.html +24 -115
  209. package/docs/types/five.AjaxResponseType.html +1 -0
  210. package/docs/types/five.AjaxResponseTypeMapping.html +1 -0
  211. package/docs/types/five.BoundingVolumeJson.html +1 -0
  212. package/docs/types/five.BoxBoundingVolumeJson.html +1 -0
  213. package/docs/types/five.ControllerCustomInitTypes.html +1 -0
  214. package/docs/types/five.ControllerEventTypes.html +32 -0
  215. package/docs/types/five.CoordinatesSystemTransformer.html +1 -0
  216. package/docs/types/five.EventTypes.html +26 -0
  217. package/docs/types/five.FivePlugin.html +71 -0
  218. package/docs/types/five.FivePluginInit.html +3 -0
  219. package/docs/types/five.FivePluginInstance.html +3 -0
  220. package/docs/types/five.GestureTypes.html +1 -0
  221. package/docs/types/five.LegacyEventType.html +203 -0
  222. package/docs/types/five.LooseWork.html +1 -0
  223. package/docs/types/five.LooseWorkInitial.html +1 -0
  224. package/docs/types/five.LooseWorkModel.html +1 -0
  225. package/docs/types/five.LooseWorkObserver.html +1 -0
  226. package/docs/types/five.LooseWorkPanorama.html +1 -0
  227. package/docs/types/five.LooseWorkVideo.html +1 -0
  228. package/docs/types/five.LooseWorkWithExtrinsics.html +8 -0
  229. package/docs/types/five.Mirror.html +1 -0
  230. package/docs/types/five.Mode.html +11 -0
  231. package/docs/types/five.ModelMaterialValues.html +1 -0
  232. package/docs/types/five.Models.html +12 -0
  233. package/docs/types/five.MotionValue.html +1 -0
  234. package/docs/types/five.NetWorkMeta.html +1 -0
  235. package/docs/types/five.NetworkError.html +1 -0
  236. package/docs/types/five.NetworkErrorCallback.html +1 -0
  237. package/docs/types/five.NetworkProgressCallback.html +1 -0
  238. package/docs/types/five.NetworkResponse.html +1 -0
  239. package/docs/types/five.NetworkState.html +1 -0
  240. package/docs/types/five.NetworkSuccessCallback.html +1 -0
  241. package/docs/types/five.NetworkType.html +1 -0
  242. package/docs/types/five.Pano.html +1 -0
  243. package/docs/types/five.PanoId.html +1 -0
  244. package/docs/types/five.ParseWorkOptions.html +13 -0
  245. package/docs/types/five.ParsedResultType.html +1 -0
  246. package/docs/types/five.PostProcessingType.html +1 -0
  247. package/docs/types/five.RegionBoundingVolumeJson.html +1 -0
  248. package/docs/types/five.RequestResult.html +1 -0
  249. package/docs/types/five.SphereBoundingVolumeJson.html +1 -0
  250. package/docs/types/five.SubscribeEventMap.html +1 -0
  251. package/docs/types/five.TileContentData.html +1 -0
  252. package/docs/types/five.TilesetFrameState.html +1 -0
  253. package/docs/types/five.WebXRControllerKey.html +1 -0
  254. package/docs/types/five.WebXRControllerType.html +1 -0
  255. package/docs/types/five.Works.html +1 -0
  256. package/docs/types/line.LineMaterialParameters.html +1 -0
  257. package/docs/types/react.FiveInjectionActionFeature.html +1 -0
  258. package/docs/types/react.FiveInjectionDataFeature.html +1 -0
  259. package/docs/types/react.FiveInjectionFeature.html +1 -0
  260. package/docs/types/react.FiveProviderPropTypes.html +1 -0
  261. package/docs/types/react.FiveProviderType.html +1 -0
  262. package/docs/types/react.StoreActionMapHanlder.html +1 -0
  263. package/docs/types/react.StoreActionMapType.html +1 -0
  264. package/docs/types/react.StoreProviderType.html +1 -0
  265. package/docs/types/react.StoreValueMapType.html +1 -0
  266. package/docs/types/vfx.ParticleType.html +1 -0
  267. package/docs/types/vue.FiveModelIntersectRaycaster.html +1 -0
  268. package/docs/types/vue.FiveProviderComponent.html +1 -0
  269. package/docs/types/vue.Project2d.html +1 -0
  270. package/docs/variables/five.PROXY_CONTROLLER_EVENT_NAMES.html +1 -0
  271. package/docs/variables/five.defaultPbmParameters.html +1 -0
  272. package/docs/variables/react.INJECTION_PROPNAME.html +1 -0
  273. package/docs/variables/vue.FiveCanvas.html +8 -0
  274. package/docs/variables/vue.FiveProvider.html +8 -0
  275. package/five/index.d.ts +15 -1
  276. package/five/index.js +85 -85
  277. package/five/index.mjs +3515 -3525
  278. package/gltf-loader/index.js +5 -5
  279. package/gltf-loader/index.mjs +70 -70
  280. package/line/index.js +3 -3
  281. package/line/index.mjs +66 -65
  282. package/package.json +3 -3
  283. package/react/index.js +3 -3
  284. package/react/index.mjs +2 -2
  285. package/sticker/index.js +3 -3
  286. package/sticker/index.mjs +49 -49
  287. package/umd/five-gltf-loader.js +4 -4
  288. package/umd/five-line.js +4 -4
  289. package/umd/five-react.js +3 -3
  290. package/umd/five-sticker.js +3 -3
  291. package/umd/five-vfx.js +8 -8
  292. package/umd/five-vue.js +3 -3
  293. package/umd/five.js +40 -40
  294. package/vfx/index.js +2 -2
  295. package/vfx/index.mjs +2 -2
  296. package/vue/index.d.ts +1 -1
  297. package/vue/index.js +3 -3
  298. package/vue/index.mjs +93 -92
  299. package/docs/assets/icons.css +0 -1043
  300. package/docs/assets/icons.png +0 -0
  301. package/docs/assets/icons@2x.png +0 -0
  302. package/docs/assets/widgets.png +0 -0
  303. package/docs/assets/widgets@2x.png +0 -0
  304. package/docs/modules.html +0 -1
  305. package/umd/five.js.LICENSE.txt +0 -100
package/vfx/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 12/12/2023
5
- * Version: 6.0.0-alpha.63
4
+ * Generated: 12/14/2023
5
+ * Version: 6.0.0-alpha.65
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
package/vfx/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 12/12/2023
5
- * Version: 6.0.0-alpha.63
4
+ * Generated: 12/14/2023
5
+ * Version: 6.0.0-alpha.65
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
package/vue/index.d.ts CHANGED
@@ -122,7 +122,7 @@ height: {
122
122
  type: PropType<number>;
123
123
  required: true;
124
124
  };
125
- }>>, {}>;
125
+ }>>, {}, {}>;
126
126
 
127
127
  export declare type FiveModelIntersectRaycaster = (raycaster: Ref<THREE_2.Raycaster> | THREE_2.Raycaster) => Ref<Intersection[]>;
128
128
 
package/vue/index.js CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 12/12/2023
5
- * Version: 6.0.0-alpha.63
4
+ * Generated: 12/14/2023
5
+ * Version: 6.0.0-alpha.65
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
@@ -252,4 +252,4 @@
252
252
  * No amendment to or modification of this Agreement will be binding unless in
253
253
  * writing and signed by Realsee. You and Realsee hereto confirm that this
254
254
  * Agreement and all related documents shall be drafted in English.
255
- */"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),g=require("@realsee/five"),R=require("three");function k(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const d=k(R);var s=function(){return s=Object.assign||function(n){for(var r,a=1,o=arguments.length;a<o;a++){r=arguments[a];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(n[f]=r[f])}return n},s.apply(this,arguments)},C=!1;function j(e){C=e}var b=Symbol();function l(){var e=t.inject(b);if(!e)throw new Error("Inject five error!");return e}var O={display:"inline-block",overflow:"hidden"},E=t.defineComponent({props:{width:{type:Number,required:!0},height:{type:Number,required:!0}},setup:function(e){var n=t.toRef(e,"width"),r=t.toRef(e,"height"),a=l(),o=t.ref(null);return t.watch([n,r,o],function(){if(a.renderer&&o.value){if(a.renderer.domElement.parentNode!==null&&a.renderer.domElement.parentNode!==o.value)throw new Error("There are more than 2 fiveCanvas in this context.");a.renderer.domElement.parentNode!==o.value&&o.value.appendChild(a.renderer.domElement),a.camera.aspect=n.value/r.value,a.camera.updateProjectionMatrix(),a.renderer.setSize(n.value,r.value),a.needsRender=!0}}),function(){return t.h("div",{id:"five",style:s({width:"".concat(n.value,"px"),height:"".concat(r.value,"px")},O),ref:o})}}}),h=[];function P(e){var n=e===void 0?{}:e,r=n.backgroundColor,a=r===void 0?1579548:r,o=n.backgroundAlpha,f=o===void 0?1:o,u=n.pixelRatio,v=u===void 0?1:u;if(!(typeof window>"u")){var i=h.shift();return i||(i=new d.WebGLRenderer({antialias:!1,alpha:!0}),i.outputEncoding=d.sRGBEncoding),i.setPixelRatio(v),i.setClearColor(a,f),i.autoClear=!0,i}}function B(e){e&&h.indexOf(e)===-1&&h.push(e)}function U(e,n){var r=Array.isArray(e)?e:[e],a=Array.isArray(n)?n:[n];if(r.length!==a.length)return!1;for(var o=0;o<r.length;o++)if(r[o]!==a[o])return!1;return!0}var x=t.defineComponent({props:{works:Object,initialWorks:Object,initialState:Object,initialUserAction:Boolean,onWorksChange:Function,onStateChange:Function,onCurrentStateChange:Function,onError:Function,fiveInitArgs:{type:Object,default:function(){return{}}},style:Object},setup:function(e){var n,r=t.toRefs(e).works,a=g.getViewportScale(),o=a===1?window.devicePixelRatio:1,f=P({pixelRatio:o}),u=new g.Five(s({renderer:f},e.fiveInitArgs)),v=e.works||e.initialWorks;return v&&u.load(v,e.initialState,void 0,(n=e.initialUserAction)!==null&&n!==void 0?n:!0),j(!!e.works),r&&t.watch(r,function(i,c){i&&!U(i,u.works)&&u.load(i,e.initialState)}),t.onBeforeUnmount(function(){u&&(u.dispose(),B(u.renderer))}),u.on("load",function(){e.onWorksChange&&u.works&&e.onWorksChange(u==null?void 0:u.works)}),u.on("stateChange",function(i,c){e.onStateChange&&e.onStateChange(i,c)}),u.on("currentStateChange",function(i,c){e.onCurrentStateChange&&e.onCurrentStateChange(i,c)}),u.on("error",function(i){e.onError?e.onError(i):console.warn(i.message)}),t.provide(b,u),{five:t.shallowReadonly(u)}},render:function(){return t.h("div",{style:this.$props.style},this.$slots)}});function W(){var e=l(),n=t.ref(e.works),r=t.readonly(n),a=function(f,u,v,i){if(C)throw new Error("props 'work' is set in fiveProvider, if you need modify work internal, use 'initialWork' instead.");return e.load(f,u,v,i)},o=e.on("load",function(){n.value=e.works});return t.onBeforeUnmount(function(){o()}),[r,a]}function _(){var e=l(),n=t.ref(s({},e.state)),r=e.on("stateChange",function(o){Object.assign(n.value,s({},o))});t.onBeforeUnmount(function(){r()});var a=function(o,f,u){f===void 0&&(f=!1),u===void 0&&(u=!0);var v=typeof o=="function"?o(e.getCurrentState()):o;e.setState(v,f,u)};return[n,a]}function A(){var e=l(),n=t.ref(e.getCurrentState()),r=e.on("currentStateChange",function(){Object.assign(n.value,e.getCurrentState())});t.onBeforeUnmount(function(){r()});var a=function(o,f,u){var v=typeof o=="function"?o(e.getCurrentState()):o;e.setState(v,f,u)};return[n,a]}function I(){var e=l(),n=t.reactive(e.getCurrentState()),r=t.ref(e.works.getResolvedObserver(e.pano)),a=e.on("currentStateChange",function(){Object.assign(n,e.getCurrentState()),r.value=e.works.getResolvedObserver({workCode:n.workCode,panoIndex:n.panoIndex})});return t.onBeforeUnmount(function(){a()}),r}function L(e,n){var r=l(),a=r.on(e,n);t.onBeforeUnmount(function(){a()})}function V(){var e=l(),n=function(v,i){return e.updateCamera(v,i)},r=function(v,i,c,y,S){return e.getPixels(v,i,c,y,S)},a=function(v){return e.render(v)},o=function(){return e.needsRender=!0},f=function(v,i){return e.preloadPano(v,i)},u=function(v,i){return i===void 0&&(i=!1),e.project2d(v,i)};return{updateCamera:n,getPixels:r,render:a,needsRender:o,preloadPano:f,project2d:u}}function D(e,n){n===void 0&&(n=!1);var r=l(),a=t.ref(Symbol()),o=t.shallowRef(e?r.project2d(t.isRef(e)?e.value:e,n):null),f=r.on("cameraUpdate",function(){a.value=Symbol()});return t.onBeforeUnmount(function(){f()}),t.watch([a,e],function(){o.value=r.project2d(t.isRef(e)?e.value:e,n)}),o}function H(){return D}function m(e){var n=e.camera.getWorldDirection(new d.Vector3),r=new d.Raycaster(e.camera.position,n);return r}function M(){var e=l(),n=t.shallowRef(m(e)),r=e.on("cameraUpdate",function(){n.value=m(e)});return t.onBeforeUnmount(function(){r()}),n}function w(e){return e.camera.getWorldDirection(new d.Vector3)}function q(){var e=l(),n=t.shallowRef(w(e)),r=e.on("cameraUpdate",function(){n.value=w(e)});return t.onBeforeUnmount(function(){r()}),n}function N(e){var n=l(),r=t.shallowRef([]);return t.watch(e,function(){r.value=n.model.intersectRaycaster(t.isRef(e)?e.value:e)}),r}function T(){return N}function p(e){return e.model.empty?"Empty":"Loaded"}function $(){var e=l(),n=t.ref(p(e)),r=e.on("modelLoaded",function(){n.value=p(e)});return t.onBeforeUnmount(function(){r()}),n}function z(){var e=l(),n=t.ref(e.model.shownFloor),r=t.ref(e.model.floorLength),a=function(f){typeof f=="number"?e.model.show(f):e.model.show()},o=[];return o.push(e.on("modelShownFloorChange",function(){n.value=e.model.shownFloor})),o.push(e.on("modelLoaded",function(){r.value=e.model.floorLength})),t.onBeforeUnmount(function(){for(var f;f=o.shift();)f()}),[n,r,a]}function G(){var e=l(),n=t.ref(e.helperVisible),r=function(o){e.helperVisible=o},a=e.on("helpersVisibleChange",function(o){n.value=o});return t.onBeforeUnmount(function(){a()}),[n,r]}function K(){return l()}function F(e){return e.model.bounding.clone()}function J(){var e=l(),n=t.shallowRef(F(e)),r=e.on("modelLoaded",function(){n.value=F(e)});return t.onBeforeUnmount(function(){r()}),n}function Q(){var e=l();return e.scene}function X(){var e=l(),n=t.shallowRef(e.model),r=e.on("modelLoaded",function(){n.value=e.model});return t.onBeforeUnmount(function(){r()}),n}exports.FiveCanvas=E;exports.FiveProvider=x;exports.unsafe__useFiveInject=K;exports.useFiveAction=V;exports.useFiveCameraDirection=q;exports.useFiveCameraRaycaster=M;exports.useFiveCurrentObserver=I;exports.useFiveCurrentState=A;exports.useFiveEventCallback=L;exports.useFiveFloor=z;exports.useFiveHelper=G;exports.useFiveModel=X;exports.useFiveModelBounding=J;exports.useFiveModelIntersectRaycaster=T;exports.useFiveModelReadyState=$;exports.useFiveProject2d=H;exports.useFiveScene=Q;exports.useFiveState=_;exports.useFiveWorks=W;
255
+ */"use strict";Object.defineProperty(exports,Symbol.toStringTag,{value:"Module"});const t=require("vue"),g=require("@realsee/five"),R=require("three");function k(e){const n=Object.create(null,{[Symbol.toStringTag]:{value:"Module"}});if(e){for(const r in e)if(r!=="default"){const a=Object.getOwnPropertyDescriptor(e,r);Object.defineProperty(n,r,a.get?a:{enumerable:!0,get:()=>e[r]})}}return n.default=e,Object.freeze(n)}const d=k(R);var s=function(){return s=Object.assign||function(n){for(var r,a=1,o=arguments.length;a<o;a++){r=arguments[a];for(var f in r)Object.prototype.hasOwnProperty.call(r,f)&&(n[f]=r[f])}return n},s.apply(this,arguments)};var C=!1;function j(e){C=e}var y=Symbol();function l(){var e=t.inject(y);if(!e)throw new Error("Inject five error!");return e}var E={display:"inline-block",overflow:"hidden"},O=t.defineComponent({props:{width:{type:Number,required:!0},height:{type:Number,required:!0}},setup:function(e){var n=t.toRef(e,"width"),r=t.toRef(e,"height"),a=l(),o=t.ref(null);return t.watch([n,r,o],function(){if(a.renderer&&o.value){if(a.renderer.domElement.parentNode!==null&&a.renderer.domElement.parentNode!==o.value)throw new Error("There are more than 2 fiveCanvas in this context.");a.renderer.domElement.parentNode!==o.value&&o.value.appendChild(a.renderer.domElement),a.camera.aspect=n.value/r.value,a.camera.updateProjectionMatrix(),a.renderer.setSize(n.value,r.value),a.needsRender=!0}}),function(){return t.h("div",{id:"five",style:s({width:"".concat(n.value,"px"),height:"".concat(r.value,"px")},E),ref:o})}}}),h=[];function P(e){var n=e===void 0?{}:e,r=n.backgroundColor,a=r===void 0?1579548:r,o=n.backgroundAlpha,f=o===void 0?1:o,u=n.pixelRatio,v=u===void 0?1:u;if(!(typeof window>"u")){var i=h.shift();return i||(i=new d.WebGLRenderer({antialias:!1,alpha:!0}),i.outputEncoding=d.sRGBEncoding),i.setPixelRatio(v),i.setClearColor(a,f),i.autoClear=!0,i}}function B(e){e&&h.indexOf(e)===-1&&h.push(e)}function U(e,n){var r=Array.isArray(e)?e:[e],a=Array.isArray(n)?n:[n];if(r.length!==a.length)return!1;for(var o=0;o<r.length;o++)if(r[o]!==a[o])return!1;return!0}var x=t.defineComponent({props:{works:Object,initialWorks:Object,initialState:Object,initialUserAction:Boolean,onWorksChange:Function,onStateChange:Function,onCurrentStateChange:Function,onError:Function,fiveInitArgs:{type:Object,default:function(){return{}}},style:Object},setup:function(e){var n,r=t.toRefs(e).works,a=g.getViewportScale(),o=a===1?window.devicePixelRatio:1,f=P({pixelRatio:o}),u=new g.Five(s({renderer:f},e.fiveInitArgs)),v=e.works||e.initialWorks;return v&&u.load(v,e.initialState,void 0,(n=e.initialUserAction)!==null&&n!==void 0?n:!0),j(!!e.works),r&&t.watch(r,function(i,c){i&&!U(i,u.works)&&u.load(i,e.initialState)}),t.onBeforeUnmount(function(){u&&(u.dispose(),B(u.renderer))}),u.on("load",function(){e.onWorksChange&&u.works&&e.onWorksChange(u==null?void 0:u.works)}),u.on("stateChange",function(i,c){e.onStateChange&&e.onStateChange(i,c)}),u.on("currentStateChange",function(i,c){e.onCurrentStateChange&&e.onCurrentStateChange(i,c)}),u.on("error",function(i){e.onError?e.onError(i):console.warn(i.message)}),t.provide(y,u),{five:t.shallowReadonly(u)}},render:function(){return t.h("div",{style:this.$props.style},this.$slots)}});function W(){var e=l(),n=t.ref(e.works),r=t.readonly(n),a=function(f,u,v,i){if(C)throw new Error("props 'work' is set in fiveProvider, if you need modify work internal, use 'initialWork' instead.");return e.load(f,u,v,i)},o=e.on("load",function(){n.value=e.works});return t.onBeforeUnmount(function(){o()}),[r,a]}function _(){var e=l(),n=t.ref(s({},e.state)),r=e.on("stateChange",function(o){Object.assign(n.value,s({},o))});t.onBeforeUnmount(function(){r()});var a=function(o,f,u){f===void 0&&(f=!1),u===void 0&&(u=!0);var v=typeof o=="function"?o(e.getCurrentState()):o;e.setState(v,f,u)};return[n,a]}function A(){var e=l(),n=t.ref(e.getCurrentState()),r=e.on("currentStateChange",function(){Object.assign(n.value,e.getCurrentState())});t.onBeforeUnmount(function(){r()});var a=function(o,f,u){var v=typeof o=="function"?o(e.getCurrentState()):o;e.setState(v,f,u)};return[n,a]}function I(){var e=l(),n=t.reactive(e.getCurrentState()),r=t.ref(e.works.getResolvedObserver(e.pano)),a=e.on("currentStateChange",function(){Object.assign(n,e.getCurrentState()),r.value=e.works.getResolvedObserver({workCode:n.workCode,panoIndex:n.panoIndex})});return t.onBeforeUnmount(function(){a()}),r}function L(e,n){var r=l(),a=r.on(e,n);t.onBeforeUnmount(function(){a()})}function V(){var e=l(),n=function(v,i){return e.updateCamera(v,i)},r=function(v,i,c,S,b){return e.getPixels(v,i,c,S,b)},a=function(v){return e.render(v)},o=function(){return e.needsRender=!0},f=function(v,i){return e.preloadPano(v,i)},u=function(v,i){return i===void 0&&(i=!1),e.project2d(v,i)};return{updateCamera:n,getPixels:r,render:a,needsRender:o,preloadPano:f,project2d:u}}function D(e,n){n===void 0&&(n=!1);var r=l(),a=t.ref(Symbol()),o=t.shallowRef(e?r.project2d(t.isRef(e)?e.value:e,n):null),f=r.on("cameraUpdate",function(){a.value=Symbol()});return t.onBeforeUnmount(function(){f()}),t.watch([a,e],function(){o.value=r.project2d(t.isRef(e)?e.value:e,n)}),o}function H(){return D}function m(e){var n=e.camera.getWorldDirection(new d.Vector3),r=new d.Raycaster(e.camera.position,n);return r}function M(){var e=l(),n=t.shallowRef(m(e)),r=e.on("cameraUpdate",function(){n.value=m(e)});return t.onBeforeUnmount(function(){r()}),n}function p(e){return e.camera.getWorldDirection(new d.Vector3)}function q(){var e=l(),n=t.shallowRef(p(e)),r=e.on("cameraUpdate",function(){n.value=p(e)});return t.onBeforeUnmount(function(){r()}),n}function N(e){var n=l(),r=t.shallowRef([]);return t.watch(e,function(){r.value=n.model.intersectRaycaster(t.isRef(e)?e.value:e)}),r}function T(){return N}function w(e){return e.model.empty?"Empty":"Loaded"}function $(){var e=l(),n=t.ref(w(e)),r=e.on("modelLoaded",function(){n.value=w(e)});return t.onBeforeUnmount(function(){r()}),n}function z(){var e=l(),n=t.ref(e.model.shownFloor),r=t.ref(e.model.floorLength),a=function(f){typeof f=="number"?e.model.show(f):e.model.show()},o=[];return o.push(e.on("modelShownFloorChange",function(){n.value=e.model.shownFloor})),o.push(e.on("modelLoaded",function(){r.value=e.model.floorLength})),t.onBeforeUnmount(function(){for(var f;f=o.shift();)f()}),[n,r,a]}function G(){var e=l(),n=t.ref(e.helperVisible),r=function(o){e.helperVisible=o},a=e.on("helpersVisibleChange",function(o){n.value=o});return t.onBeforeUnmount(function(){a()}),[n,r]}function K(){return l()}function F(e){return e.model.bounding.clone()}function J(){var e=l(),n=t.shallowRef(F(e)),r=e.on("modelLoaded",function(){n.value=F(e)});return t.onBeforeUnmount(function(){r()}),n}function Q(){var e=l();return e.scene}function X(){var e=l(),n=t.shallowRef(e.model),r=e.on("modelLoaded",function(){n.value=e.model});return t.onBeforeUnmount(function(){r()}),n}exports.FiveCanvas=O;exports.FiveProvider=x;exports.unsafe__useFiveInject=K;exports.useFiveAction=V;exports.useFiveCameraDirection=q;exports.useFiveCameraRaycaster=M;exports.useFiveCurrentObserver=I;exports.useFiveCurrentState=A;exports.useFiveEventCallback=L;exports.useFiveFloor=z;exports.useFiveHelper=G;exports.useFiveModel=X;exports.useFiveModelBounding=J;exports.useFiveModelIntersectRaycaster=T;exports.useFiveModelReadyState=$;exports.useFiveProject2d=H;exports.useFiveScene=Q;exports.useFiveState=_;exports.useFiveWorks=W;
package/vue/index.mjs CHANGED
@@ -1,8 +1,8 @@
1
1
  /**
2
2
  * @license
3
3
  * @realsee/five
4
- * Generated: 12/12/2023
5
- * Version: 6.0.0-alpha.63
4
+ * Generated: 12/14/2023
5
+ * Version: 6.0.0-alpha.65
6
6
  * Terms:
7
7
  * Realsee SDK License Agreement
8
8
  * Update: July 28, 2021
@@ -252,25 +252,26 @@
252
252
  * No amendment to or modification of this Agreement will be binding unless in
253
253
  * writing and signed by Realsee. You and Realsee hereto confirm that this
254
254
  * Agreement and all related documents shall be drafted in English.
255
- */import { inject as P, defineComponent as F, toRef as C, ref as c, watch as m, h as R, toRefs as W, onBeforeUnmount as l, provide as A, shallowReadonly as _, readonly as L, reactive as I, shallowRef as h, isRef as p } from "vue";
255
+ */import { inject as P, defineComponent as F, toRef as C, ref as c, watch as p, h as R, toRefs as W, onBeforeUnmount as l, provide as A, shallowReadonly as _, readonly as L, reactive as I, shallowRef as h, isRef as m } from "vue";
256
256
  import { getViewportScale as V, Five as U } from "@realsee/five";
257
257
  import * as g from "three";
258
258
  var s = function() {
259
- return s = Object.assign || function(n) {
260
- for (var r, o = 1, t = arguments.length; o < t; o++) {
261
- r = arguments[o];
262
- for (var u in r)
263
- Object.prototype.hasOwnProperty.call(r, u) && (n[u] = r[u]);
259
+ return s = Object.assign || function(r) {
260
+ for (var n, o = 1, t = arguments.length; o < t; o++) {
261
+ n = arguments[o];
262
+ for (var u in n)
263
+ Object.prototype.hasOwnProperty.call(n, u) && (r[u] = n[u]);
264
264
  }
265
- return n;
265
+ return r;
266
266
  }, s.apply(this, arguments);
267
- }, j = !1;
267
+ };
268
+ var j = !1;
268
269
  function B(e) {
269
270
  j = e;
270
271
  }
271
- var x = Symbol();
272
+ var E = Symbol();
272
273
  function v() {
273
- var e = P(x);
274
+ var e = P(E);
274
275
  if (!e)
275
276
  throw new Error("Inject five error!");
276
277
  return e;
@@ -290,24 +291,24 @@ var H = {
290
291
  }
291
292
  },
292
293
  setup: function(e) {
293
- var n = C(e, "width"), r = C(e, "height"), o = v(), t = c(null);
294
- return m([n, r, t], function() {
294
+ var r = C(e, "width"), n = C(e, "height"), o = v(), t = c(null);
295
+ return p([r, n, t], function() {
295
296
  if (o.renderer && t.value) {
296
297
  if (o.renderer.domElement.parentNode !== null && o.renderer.domElement.parentNode !== t.value)
297
298
  throw new Error("There are more than 2 fiveCanvas in this context.");
298
- o.renderer.domElement.parentNode !== t.value && t.value.appendChild(o.renderer.domElement), o.camera.aspect = n.value / r.value, o.camera.updateProjectionMatrix(), o.renderer.setSize(n.value, r.value), o.needsRender = !0;
299
+ o.renderer.domElement.parentNode !== t.value && t.value.appendChild(o.renderer.domElement), o.camera.aspect = r.value / n.value, o.camera.updateProjectionMatrix(), o.renderer.setSize(r.value, n.value), o.needsRender = !0;
299
300
  }
300
301
  }), function() {
301
302
  return R("div", {
302
303
  id: "five",
303
- style: s({ width: "".concat(n.value, "px"), height: "".concat(r.value, "px") }, H),
304
+ style: s({ width: "".concat(r.value, "px"), height: "".concat(n.value, "px") }, H),
304
305
  ref: t
305
306
  });
306
307
  };
307
308
  }
308
309
  }), w = [];
309
310
  function N(e) {
310
- var n = e === void 0 ? {} : e, r = n.backgroundColor, o = r === void 0 ? 1579548 : r, t = n.backgroundAlpha, u = t === void 0 ? 1 : t, i = n.pixelRatio, f = i === void 0 ? 1 : i;
311
+ var r = e === void 0 ? {} : e, n = r.backgroundColor, o = n === void 0 ? 1579548 : n, t = r.backgroundAlpha, u = t === void 0 ? 1 : t, i = r.pixelRatio, f = i === void 0 ? 1 : i;
311
312
  if (!(typeof window > "u")) {
312
313
  var a = w.shift();
313
314
  return a || (a = new g.WebGLRenderer({ antialias: !1, alpha: !0 }), a.outputEncoding = g.sRGBEncoding), a.setPixelRatio(f), a.setClearColor(o, u), a.autoClear = !0, a;
@@ -316,12 +317,12 @@ function N(e) {
316
317
  function D(e) {
317
318
  e && w.indexOf(e) === -1 && w.push(e);
318
319
  }
319
- function q(e, n) {
320
- var r = Array.isArray(e) ? e : [e], o = Array.isArray(n) ? n : [n];
321
- if (r.length !== o.length)
320
+ function q(e, r) {
321
+ var n = Array.isArray(e) ? e : [e], o = Array.isArray(r) ? r : [r];
322
+ if (n.length !== o.length)
322
323
  return !1;
323
- for (var t = 0; t < r.length; t++)
324
- if (r[t] !== o[t])
324
+ for (var t = 0; t < n.length; t++)
325
+ if (n[t] !== o[t])
325
326
  return !1;
326
327
  return !0;
327
328
  }
@@ -344,8 +345,8 @@ var M = F({
344
345
  style: Object
345
346
  },
346
347
  setup: function(e) {
347
- var n, r = W(e).works, o = V(), t = o === 1 ? window.devicePixelRatio : 1, u = N({ pixelRatio: t }), i = new U(s({ renderer: u }, e.fiveInitArgs)), f = e.works || e.initialWorks;
348
- return f && i.load(f, e.initialState, void 0, (n = e.initialUserAction) !== null && n !== void 0 ? n : !0), B(!!e.works), r && m(r, function(a, d) {
348
+ var r, n = W(e).works, o = V(), t = o === 1 ? window.devicePixelRatio : 1, u = N({ pixelRatio: t }), i = new U(s({ renderer: u }, e.fiveInitArgs)), f = e.works || e.initialWorks;
349
+ return f && i.load(f, e.initialState, void 0, (r = e.initialUserAction) !== null && r !== void 0 ? r : !0), B(!!e.works), n && p(n, function(a, d) {
349
350
  a && !q(a, i.works) && i.load(a, e.initialState);
350
351
  }), l(function() {
351
352
  i && (i.dispose(), D(i.renderer));
@@ -357,7 +358,7 @@ var M = F({
357
358
  e.onCurrentStateChange && e.onCurrentStateChange(a, d);
358
359
  }), i.on("error", function(a) {
359
360
  e.onError ? e.onError(a) : console.warn(a.message);
360
- }), A(x, i), {
361
+ }), A(E, i), {
361
362
  five: _(i)
362
363
  };
363
364
  },
@@ -366,66 +367,66 @@ var M = F({
366
367
  }
367
368
  });
368
369
  function J() {
369
- var e = v(), n = c(e.works), r = L(n), o = function(u, i, f, a) {
370
+ var e = v(), r = c(e.works), n = L(r), o = function(u, i, f, a) {
370
371
  if (j)
371
372
  throw new Error("props 'work' is set in fiveProvider, if you need modify work internal, use 'initialWork' instead.");
372
373
  return e.load(u, i, f, a);
373
374
  }, t = e.on("load", function() {
374
- n.value = e.works;
375
+ r.value = e.works;
375
376
  });
376
377
  return l(function() {
377
378
  t();
378
- }), [r, o];
379
+ }), [n, o];
379
380
  }
380
381
  function Q() {
381
- var e = v(), n = c(s({}, e.state)), r = e.on("stateChange", function(t) {
382
- Object.assign(n.value, s({}, t));
382
+ var e = v(), r = c(s({}, e.state)), n = e.on("stateChange", function(t) {
383
+ Object.assign(r.value, s({}, t));
383
384
  });
384
385
  l(function() {
385
- r();
386
+ n();
386
387
  });
387
388
  var o = function(t, u, i) {
388
389
  u === void 0 && (u = !1), i === void 0 && (i = !0);
389
390
  var f = typeof t == "function" ? t(e.getCurrentState()) : t;
390
391
  e.setState(f, u, i);
391
392
  };
392
- return [n, o];
393
+ return [r, o];
393
394
  }
394
395
  function X() {
395
- var e = v(), n = c(e.getCurrentState()), r = e.on("currentStateChange", function() {
396
- Object.assign(n.value, e.getCurrentState());
396
+ var e = v(), r = c(e.getCurrentState()), n = e.on("currentStateChange", function() {
397
+ Object.assign(r.value, e.getCurrentState());
397
398
  });
398
399
  l(function() {
399
- r();
400
+ n();
400
401
  });
401
402
  var o = function(t, u, i) {
402
403
  var f = typeof t == "function" ? t(e.getCurrentState()) : t;
403
404
  e.setState(f, u, i);
404
405
  };
405
- return [n, o];
406
+ return [r, o];
406
407
  }
407
408
  function Y() {
408
- var e = v(), n = I(e.getCurrentState()), r = c(e.works.getResolvedObserver(e.pano)), o = e.on("currentStateChange", function() {
409
- Object.assign(n, e.getCurrentState()), r.value = e.works.getResolvedObserver({
410
- workCode: n.workCode,
411
- panoIndex: n.panoIndex
409
+ var e = v(), r = I(e.getCurrentState()), n = c(e.works.getResolvedObserver(e.pano)), o = e.on("currentStateChange", function() {
410
+ Object.assign(r, e.getCurrentState()), n.value = e.works.getResolvedObserver({
411
+ workCode: r.workCode,
412
+ panoIndex: r.panoIndex
412
413
  });
413
414
  });
414
415
  return l(function() {
415
416
  o();
416
- }), r;
417
+ }), n;
417
418
  }
418
- function Z(e, n) {
419
- var r = v(), o = r.on(e, n);
419
+ function Z(e, r) {
420
+ var n = v(), o = n.on(e, r);
420
421
  l(function() {
421
422
  o();
422
423
  });
423
424
  }
424
425
  function ee() {
425
- var e = v(), n = function(f, a) {
426
+ var e = v(), r = function(f, a) {
426
427
  return e.updateCamera(f, a);
427
- }, r = function(f, a, d, E, O) {
428
- return e.getPixels(f, a, d, E, O);
428
+ }, n = function(f, a, d, x, O) {
429
+ return e.getPixels(f, a, d, x, O);
429
430
  }, o = function(f) {
430
431
  return e.render(f);
431
432
  }, t = function() {
@@ -436,93 +437,93 @@ function ee() {
436
437
  return a === void 0 && (a = !1), e.project2d(f, a);
437
438
  };
438
439
  return {
439
- updateCamera: n,
440
- getPixels: r,
440
+ updateCamera: r,
441
+ getPixels: n,
441
442
  render: o,
442
443
  needsRender: t,
443
444
  preloadPano: u,
444
445
  project2d: i
445
446
  };
446
447
  }
447
- function G(e, n) {
448
- n === void 0 && (n = !1);
449
- var r = v(), o = c(Symbol()), t = h(e ? r.project2d(p(e) ? e.value : e, n) : null), u = r.on("cameraUpdate", function() {
448
+ function G(e, r) {
449
+ r === void 0 && (r = !1);
450
+ var n = v(), o = c(Symbol()), t = h(e ? n.project2d(m(e) ? e.value : e, r) : null), u = n.on("cameraUpdate", function() {
450
451
  o.value = Symbol();
451
452
  });
452
453
  return l(function() {
453
454
  u();
454
- }), m([o, e], function() {
455
- t.value = r.project2d(p(e) ? e.value : e, n);
455
+ }), p([o, e], function() {
456
+ t.value = n.project2d(m(e) ? e.value : e, r);
456
457
  }), t;
457
458
  }
458
- function ne() {
459
+ function re() {
459
460
  return G;
460
461
  }
461
462
  function y(e) {
462
- var n = e.camera.getWorldDirection(new g.Vector3()), r = new g.Raycaster(e.camera.position, n);
463
- return r;
463
+ var r = e.camera.getWorldDirection(new g.Vector3()), n = new g.Raycaster(e.camera.position, r);
464
+ return n;
464
465
  }
465
- function re() {
466
- var e = v(), n = h(y(e)), r = e.on("cameraUpdate", function() {
467
- n.value = y(e);
466
+ function ne() {
467
+ var e = v(), r = h(y(e)), n = e.on("cameraUpdate", function() {
468
+ r.value = y(e);
468
469
  });
469
470
  return l(function() {
470
- r();
471
- }), n;
471
+ n();
472
+ }), r;
472
473
  }
473
- function b(e) {
474
+ function S(e) {
474
475
  return e.camera.getWorldDirection(new g.Vector3());
475
476
  }
476
477
  function te() {
477
- var e = v(), n = h(b(e)), r = e.on("cameraUpdate", function() {
478
- n.value = b(e);
478
+ var e = v(), r = h(S(e)), n = e.on("cameraUpdate", function() {
479
+ r.value = S(e);
479
480
  });
480
481
  return l(function() {
481
- r();
482
- }), n;
482
+ n();
483
+ }), r;
483
484
  }
484
485
  function T(e) {
485
- var n = v(), r = h([]);
486
- return m(e, function() {
487
- r.value = n.model.intersectRaycaster(p(e) ? e.value : e);
488
- }), r;
486
+ var r = v(), n = h([]);
487
+ return p(e, function() {
488
+ n.value = r.model.intersectRaycaster(m(e) ? e.value : e);
489
+ }), n;
489
490
  }
490
491
  function oe() {
491
492
  return T;
492
493
  }
493
- function S(e) {
494
+ function b(e) {
494
495
  return e.model.empty ? "Empty" : "Loaded";
495
496
  }
496
497
  function ae() {
497
- var e = v(), n = c(S(e)), r = e.on("modelLoaded", function() {
498
- n.value = S(e);
498
+ var e = v(), r = c(b(e)), n = e.on("modelLoaded", function() {
499
+ r.value = b(e);
499
500
  });
500
501
  return l(function() {
501
- r();
502
- }), n;
502
+ n();
503
+ }), r;
503
504
  }
504
505
  function ie() {
505
- var e = v(), n = c(e.model.shownFloor), r = c(e.model.floorLength), o = function(u) {
506
+ var e = v(), r = c(e.model.shownFloor), n = c(e.model.floorLength), o = function(u) {
506
507
  typeof u == "number" ? e.model.show(u) : e.model.show();
507
508
  }, t = [];
508
509
  return t.push(e.on("modelShownFloorChange", function() {
509
- n.value = e.model.shownFloor;
510
+ r.value = e.model.shownFloor;
510
511
  })), t.push(e.on("modelLoaded", function() {
511
- r.value = e.model.floorLength;
512
+ n.value = e.model.floorLength;
512
513
  })), l(function() {
513
514
  for (var u; u = t.shift(); )
514
515
  u();
515
- }), [n, r, o];
516
+ }), [r, n, o];
516
517
  }
517
518
  function ue() {
518
- var e = v(), n = c(e.helperVisible), r = function(t) {
519
+ var e = v(), r = c(e.helperVisible), n = function(t) {
519
520
  e.helperVisible = t;
520
521
  }, o = e.on("helpersVisibleChange", function(t) {
521
- n.value = t;
522
+ r.value = t;
522
523
  });
523
524
  return l(function() {
524
525
  o();
525
- }), [n, r];
526
+ }), [r, n];
526
527
  }
527
528
  function fe() {
528
529
  return v();
@@ -531,24 +532,24 @@ function k(e) {
531
532
  return e.model.bounding.clone();
532
533
  }
533
534
  function ve() {
534
- var e = v(), n = h(k(e)), r = e.on("modelLoaded", function() {
535
- n.value = k(e);
535
+ var e = v(), r = h(k(e)), n = e.on("modelLoaded", function() {
536
+ r.value = k(e);
536
537
  });
537
538
  return l(function() {
538
- r();
539
- }), n;
539
+ n();
540
+ }), r;
540
541
  }
541
542
  function le() {
542
543
  var e = v();
543
544
  return e.scene;
544
545
  }
545
546
  function ce() {
546
- var e = v(), n = h(e.model), r = e.on("modelLoaded", function() {
547
- n.value = e.model;
547
+ var e = v(), r = h(e.model), n = e.on("modelLoaded", function() {
548
+ r.value = e.model;
548
549
  });
549
550
  return l(function() {
550
- r();
551
- }), n;
551
+ n();
552
+ }), r;
552
553
  }
553
554
  export {
554
555
  K as FiveCanvas,
@@ -556,7 +557,7 @@ export {
556
557
  fe as unsafe__useFiveInject,
557
558
  ee as useFiveAction,
558
559
  te as useFiveCameraDirection,
559
- re as useFiveCameraRaycaster,
560
+ ne as useFiveCameraRaycaster,
560
561
  Y as useFiveCurrentObserver,
561
562
  X as useFiveCurrentState,
562
563
  Z as useFiveEventCallback,
@@ -566,7 +567,7 @@ export {
566
567
  ve as useFiveModelBounding,
567
568
  oe as useFiveModelIntersectRaycaster,
568
569
  ae as useFiveModelReadyState,
569
- ne as useFiveProject2d,
570
+ re as useFiveProject2d,
570
571
  le as useFiveScene,
571
572
  Q as useFiveState,
572
573
  J as useFiveWorks