@realsee/dnalogel 3.1.2 → 3.2.0-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (350) hide show
  1. package/dist/index.cjs.js +10 -10
  2. package/dist/index.js +90 -93
  3. package/dist/index.umd.js +16 -16
  4. package/docs/.nojekyll +1 -0
  5. package/docs/assets/highlight.css +120 -0
  6. package/docs/assets/main.js +58 -0
  7. package/docs/assets/search.js +1 -0
  8. package/docs/assets/style.css +1367 -0
  9. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +725 -0
  10. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +678 -0
  11. package/docs/classes/CSS3DRender.html +773 -0
  12. package/docs/classes/CruisePluginController.html +672 -0
  13. package/docs/classes/GuideLineItem.GuideLineItem.html +491 -0
  14. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +792 -0
  15. package/docs/classes/Magnifier.html +480 -0
  16. package/docs/classes/ModelRoomLabelController.html +398 -0
  17. package/docs/classes/Object3DHelperController.html +640 -0
  18. package/docs/classes/PaintBrush.html +502 -0
  19. package/docs/classes/PanoMeasurePluginLine.html +522 -0
  20. package/docs/classes/PanoMeasurePluginModel.html +571 -0
  21. package/docs/classes/PanoMeasurePluginPoint.html +362 -0
  22. package/docs/classes/PanoMeasurePluginPolyline.html +567 -0
  23. package/docs/classes/PanoTagPluginController.html +1050 -0
  24. package/docs/classes/Util.BetterTween.html +416 -0
  25. package/docs/classes/Util.Interval.html +432 -0
  26. package/docs/classes/Util.LineSegments.html +384 -0
  27. package/docs/classes/Util.Magnifier.html +503 -0
  28. package/docs/classes/Util.Object3D.html +406 -0
  29. package/docs/classes/Util.PointDomHelper.html +407 -0
  30. package/docs/classes/Util.PointHelper.html +398 -0
  31. package/docs/classes/Util.PointSelectorHelper.html +454 -0
  32. package/docs/classes/Util.Rectangle.html +455 -0
  33. package/docs/enums/CameraMovementEffect.html +310 -0
  34. package/docs/enums/ContentType.html +446 -0
  35. package/docs/enums/DIRECTION.html +320 -0
  36. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +320 -0
  37. package/docs/enums/DimensionType.html +310 -0
  38. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +313 -0
  39. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +320 -0
  40. package/docs/enums/PaintBrushTypeEnum.html +313 -0
  41. package/docs/enums/PointType.html +310 -0
  42. package/docs/enums/Rotation.html +317 -0
  43. package/docs/functions/AreaMakerPlugin.html +290 -0
  44. package/docs/functions/CSS3DRenderPlugin.html +288 -0
  45. package/docs/functions/CameraMovementPlugin.html +293 -0
  46. package/docs/functions/CruisePlugin.html +290 -0
  47. package/docs/functions/CurrentPanoImagePlugin.html +290 -0
  48. package/docs/functions/GuideLinePlugin.html +290 -0
  49. package/docs/functions/ItemLabelPlugin.html +290 -0
  50. package/docs/functions/MapviewFloorplanPlugin.html +290 -0
  51. package/docs/functions/ModelChassisCompassPlugin.html +293 -0
  52. package/docs/functions/ModelEntryDoorGuidePlugin.html +293 -0
  53. package/docs/functions/ModelFloorplanPlugin.html +290 -0
  54. package/docs/functions/ModelItemLabelPlugin.html +290 -0
  55. package/docs/functions/ModelRoomLabelPlugin.html +288 -0
  56. package/docs/functions/ModelTVVideoPlugin.html +290 -0
  57. package/docs/functions/ModelViewPlugin.html +293 -0
  58. package/docs/functions/Object3DHelperPlugin.html +288 -0
  59. package/docs/functions/PanoCompassPlugin.html +290 -0
  60. package/docs/functions/PanoCursorRaycasterPlugin.html +294 -0
  61. package/docs/functions/PanoDoorLabelPlugin.html +290 -0
  62. package/docs/functions/PanoFloorplanRadarPlugin.html +290 -0
  63. package/docs/functions/PanoMeasurePlugin.html +290 -0
  64. package/docs/functions/PanoRulerPlugin.html +293 -0
  65. package/docs/functions/PanoRulerProPlugin.html +293 -0
  66. package/docs/functions/PanoSpatialTagPlugin.html +293 -0
  67. package/docs/functions/PanoTagPlugin.html +295 -0
  68. package/docs/functions/PanoVideoPlugin.html +299 -0
  69. package/docs/functions/PipelinePlugin.html +288 -0
  70. package/docs/functions/TopviewFloorplanPlugin.html +290 -0
  71. package/docs/functions/Util.absoluteUrl.html +326 -0
  72. package/docs/functions/Util.checkFiveModelLoaded.html +329 -0
  73. package/docs/functions/Util.equal.html +338 -0
  74. package/docs/functions/Util.getCoordsFromClient.html +328 -0
  75. package/docs/functions/Util.getCoordsFromElement.html +328 -0
  76. package/docs/functions/Util.getFrameTime.html +320 -0
  77. package/docs/functions/Util.getIntersectFromRelativePosition.html +328 -0
  78. package/docs/functions/Util.getRaycasterFromFivePointer.html +328 -0
  79. package/docs/functions/Util.isAbsoluteURL.html +321 -0
  80. package/docs/functions/Util.isModelLike.html +321 -0
  81. package/docs/functions/Util.isNil.html +329 -0
  82. package/docs/functions/Util.isPanoramaLike.html +321 -0
  83. package/docs/functions/Util.nextFrame.html +334 -0
  84. package/docs/functions/Util.notNil.html +329 -0
  85. package/docs/functions/Util.requestAnimationFrameInterval.html +350 -0
  86. package/docs/functions/Util.tweenProgress.html +323 -0
  87. package/docs/functions/Util.uuid.html +319 -0
  88. package/docs/functions/pluginFlag.html +288 -0
  89. package/docs/index.html +354 -0
  90. package/docs/interfaces/AddTagConfig.html +303 -0
  91. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +329 -0
  92. package/docs/interfaces/AreaMakerPluginType.Config.html +334 -0
  93. package/docs/interfaces/AreaMakerPluginType.EventMap.html +620 -0
  94. package/docs/interfaces/AreaMakerPluginType.Params.html +333 -0
  95. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +383 -0
  96. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +368 -0
  97. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +333 -0
  98. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +326 -0
  99. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +325 -0
  100. package/docs/interfaces/AreaMakerPluginType.State.html +354 -0
  101. package/docs/interfaces/CSS3DRenderPluginEventMap.html +449 -0
  102. package/docs/interfaces/CSS3DRenderPluginState.html +325 -0
  103. package/docs/interfaces/CameraMovementPluginExportType.html +358 -0
  104. package/docs/interfaces/CruisePluginTypes.Config.html +359 -0
  105. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +361 -0
  106. package/docs/interfaces/CruisePluginTypes.EventMap.html +696 -0
  107. package/docs/interfaces/CruisePluginTypes.MoveAction.html +385 -0
  108. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +421 -0
  109. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +411 -0
  110. package/docs/interfaces/CruisePluginTypes.PluginData.html +351 -0
  111. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +319 -0
  112. package/docs/interfaces/CruisePluginTypes.PluginState.html +408 -0
  113. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +382 -0
  114. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +521 -0
  115. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +323 -0
  116. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +315 -0
  117. package/docs/interfaces/CurrentPanoImagePluginType.State.html +337 -0
  118. package/docs/interfaces/EventMap.html +542 -0
  119. package/docs/interfaces/FloorplanBounding.html +332 -0
  120. package/docs/interfaces/FloorplanData.html +335 -0
  121. package/docs/interfaces/FloorplanEntrance.html +360 -0
  122. package/docs/interfaces/FloorplanExtraObject.html +350 -0
  123. package/docs/interfaces/FloorplanExtraObject3D.html +339 -0
  124. package/docs/interfaces/FloorplanFloorData.html +328 -0
  125. package/docs/interfaces/FloorplanImagePosition.html +314 -0
  126. package/docs/interfaces/FloorplanObserver.html +332 -0
  127. package/docs/interfaces/FloorplanOutlineItem.html +328 -0
  128. package/docs/interfaces/FloorplanPosition.html +314 -0
  129. package/docs/interfaces/FloorplanRoomItem.html +379 -0
  130. package/docs/interfaces/FloorplanRoomLabelItem.html +320 -0
  131. package/docs/interfaces/FloorplanServerBounding.html +332 -0
  132. package/docs/interfaces/FloorplanServerComputedData.html +331 -0
  133. package/docs/interfaces/FloorplanServerData.html +314 -0
  134. package/docs/interfaces/FloorplanServerDoorItem.html +331 -0
  135. package/docs/interfaces/FloorplanServerDoorPosition.html +317 -0
  136. package/docs/interfaces/FloorplanServerEntrance.html +360 -0
  137. package/docs/interfaces/FloorplanServerFloorData.html +328 -0
  138. package/docs/interfaces/FloorplanServerImagePosition.html +314 -0
  139. package/docs/interfaces/FloorplanServerObserver.html +332 -0
  140. package/docs/interfaces/FloorplanServerOutlineItem.html +328 -0
  141. package/docs/interfaces/FloorplanServerPosition.html +314 -0
  142. package/docs/interfaces/FloorplanServerRoomItem.html +391 -0
  143. package/docs/interfaces/FloorplanServerRoomLabelItem.html +320 -0
  144. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +323 -0
  145. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +361 -0
  146. package/docs/interfaces/GuideLinePluginType.EventMap.html +525 -0
  147. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +356 -0
  148. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +347 -0
  149. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +414 -0
  150. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +346 -0
  151. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +471 -0
  152. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +343 -0
  153. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +471 -0
  154. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +308 -0
  155. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +329 -0
  156. package/docs/interfaces/GuideLinePluginType.PluginState.html +354 -0
  157. package/docs/interfaces/GuideLinePluginType.Route.html +370 -0
  158. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +352 -0
  159. package/docs/interfaces/HelperOffset.html +332 -0
  160. package/docs/interfaces/ImagePlaneGroup.html +306 -0
  161. package/docs/interfaces/ItemLabelPluginData.html +303 -0
  162. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +388 -0
  163. package/docs/interfaces/ItemLabelPluginParametersType.html +324 -0
  164. package/docs/interfaces/MinMax.html +310 -0
  165. package/docs/interfaces/ModelChassisCompassPluginData.html +310 -0
  166. package/docs/interfaces/ModelChassisCompassPluginExportType.html +346 -0
  167. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +310 -0
  168. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +317 -0
  169. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +354 -0
  170. package/docs/interfaces/ModelItemLabelPluginData.html +303 -0
  171. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +388 -0
  172. package/docs/interfaces/ModelItemLabelPluginParametersType.html +310 -0
  173. package/docs/interfaces/ModelRoomLabelPluginData.html +303 -0
  174. package/docs/interfaces/ModelTVVideoPluginData.html +324 -0
  175. package/docs/interfaces/ModelTVVideoPluginExportType.html +348 -0
  176. package/docs/interfaces/ModelTVVideoPluginParameterType.html +303 -0
  177. package/docs/interfaces/ModelViewPluginExportType.html +416 -0
  178. package/docs/interfaces/Object3DHelperState.html +317 -0
  179. package/docs/interfaces/ObjectHelperControllers.html +324 -0
  180. package/docs/interfaces/PaintBrushAction.html +363 -0
  181. package/docs/interfaces/PaintBrushConfigs.html +361 -0
  182. package/docs/interfaces/PaintBrushState.html +345 -0
  183. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +425 -0
  184. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +282 -0
  185. package/docs/interfaces/PanoMeasureParameterType.html +449 -0
  186. package/docs/interfaces/PanoMeasurePluginLineJson.html +317 -0
  187. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +314 -0
  188. package/docs/interfaces/PanoMeasurePluginPointJson.html +310 -0
  189. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +320 -0
  190. package/docs/interfaces/PanoRulerPluginExportType.html +377 -0
  191. package/docs/interfaces/PanoRulerPluginOptions.html +326 -0
  192. package/docs/interfaces/PanoRulerPluginParameterType.html +317 -0
  193. package/docs/interfaces/PanoRulerProPluginExportType.html +353 -0
  194. package/docs/interfaces/PanoRulerProPluginOptions.html +323 -0
  195. package/docs/interfaces/PanoRulerProPluginParameterType.html +310 -0
  196. package/docs/interfaces/PanoRulerProPluginState.html +317 -0
  197. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +296 -0
  198. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +285 -0
  199. package/docs/interfaces/PanoSpatialTagPluginData.html +353 -0
  200. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +335 -0
  201. package/docs/interfaces/PanoSpatialTagPluginExportType.html +431 -0
  202. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +331 -0
  203. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +352 -0
  204. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +338 -0
  205. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +331 -0
  206. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +323 -0
  207. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +341 -0
  208. package/docs/interfaces/PanoVideoPluginType.PluginData.html +314 -0
  209. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +420 -0
  210. package/docs/interfaces/PanoVideoPluginType.PluginState.html +314 -0
  211. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +349 -0
  212. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +368 -0
  213. package/docs/interfaces/Point.html +317 -0
  214. package/docs/interfaces/Room.html +324 -0
  215. package/docs/interfaces/RoomInfo.html +310 -0
  216. package/docs/interfaces/RoomLabel.html +386 -0
  217. package/docs/interfaces/RoomRules.html +285 -0
  218. package/docs/interfaces/Rooms.html +285 -0
  219. package/docs/interfaces/Scissor.html +344 -0
  220. package/docs/interfaces/State.html +331 -0
  221. package/docs/interfaces/TagCacheInterface.html +362 -0
  222. package/docs/interfaces/TagConfig.html +565 -0
  223. package/docs/interfaces/TagGLTFObjectGroup.html +306 -0
  224. package/docs/interfaces/TagIconUrl.html +363 -0
  225. package/docs/interfaces/TagObjectGroup.html +306 -0
  226. package/docs/interfaces/TagStyle.html +316 -0
  227. package/docs/interfaces/Tags.html +2688 -0
  228. package/docs/interfaces/TemporaryState.html +303 -0
  229. package/docs/interfaces/Util.MagnifierParameter.html +391 -0
  230. package/docs/interfaces/Util.MouseGroupParameter.html +350 -0
  231. package/docs/interfaces/Util.PointIntersection.html +365 -0
  232. package/docs/modules/AreaMakerPluginType.html +323 -0
  233. package/docs/modules/CruisePluginTypes.html +328 -0
  234. package/docs/modules/CurrentPanoImagePluginType.html +297 -0
  235. package/docs/modules/GuideLineItem.html +289 -0
  236. package/docs/modules/GuideLineModeItem.html +294 -0
  237. package/docs/modules/GuideLinePluginType.html +348 -0
  238. package/docs/modules/PanoVideoPluginType.html +301 -0
  239. package/docs/modules/Util.html +351 -0
  240. package/docs/modules.html +540 -0
  241. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +331 -0
  242. package/docs/types/AreaMakerPluginType.PluginData.html +301 -0
  243. package/docs/types/AreaMakerPluginType.ServerData.html +301 -0
  244. package/docs/types/ArrayPosition.html +279 -0
  245. package/docs/types/AudioAppearance.html +279 -0
  246. package/docs/types/AudioTagTypeConfigKey.html +279 -0
  247. package/docs/types/CSS3DRenderExportType.html +279 -0
  248. package/docs/types/CSS3DRenderPluginExportType.html +279 -0
  249. package/docs/types/CSS3DRenderPluginParameterType.html +279 -0
  250. package/docs/types/ClassFunctionParameters.html +286 -0
  251. package/docs/types/Color.html +279 -0
  252. package/docs/types/ContentTypeConfigKey.html +279 -0
  253. package/docs/types/ContentTypeConfigKeySplit.html +279 -0
  254. package/docs/types/ContentTypeMap.html +279 -0
  255. package/docs/types/Create3DDomContainerReturnType.html +279 -0
  256. package/docs/types/Create3DElementReturnType.html +279 -0
  257. package/docs/types/CruisePluginExportType.html +279 -0
  258. package/docs/types/CruisePluginTypes.CruiseData.html +318 -0
  259. package/docs/types/CruisePluginTypes.MoveEffect.html +295 -0
  260. package/docs/types/CurrentPanoImagePluginExportType.html +279 -0
  261. package/docs/types/DeprecatedMediaPlaneProperty.html +291 -0
  262. package/docs/types/DeprecatedTagProperty.html +294 -0
  263. package/docs/types/Direction-1.html +279 -0
  264. package/docs/types/Direction4.html +279 -0
  265. package/docs/types/ElementRenderer.html +303 -0
  266. package/docs/types/FloorplanRuleLabels.html +282 -0
  267. package/docs/types/FloorplanServerRuleLabels.html +279 -0
  268. package/docs/types/GuideLinePluginExportType.html +279 -0
  269. package/docs/types/GuideLinePluginType.GuideLineItem.html +351 -0
  270. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +372 -0
  271. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +305 -0
  272. package/docs/types/GuideLinePluginType.GuideLineStyle.html +308 -0
  273. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +308 -0
  274. package/docs/types/GuideLinePluginType.PathItem.html +308 -0
  275. package/docs/types/GuideLinePluginType.PluginData.html +317 -0
  276. package/docs/types/HelperEventMap.html +517 -0
  277. package/docs/types/LoadTagConfig.html +279 -0
  278. package/docs/types/MapviewFloorplanPluginParameterType.html +279 -0
  279. package/docs/types/MapviewFloorplanPluginReturnType.html +279 -0
  280. package/docs/types/MediaData.html +295 -0
  281. package/docs/types/MediaStore.html +284 -0
  282. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +286 -0
  283. package/docs/types/ModelFloorplanPluginParameterType.html +279 -0
  284. package/docs/types/ModelFloorplanPluginReturnType.html +279 -0
  285. package/docs/types/ModelId.html +279 -0
  286. package/docs/types/ModelRoomLabelPluginParameters.html +279 -0
  287. package/docs/types/ModelRoomLabelPluginReturnType.html +279 -0
  288. package/docs/types/MoveArgs.html +289 -0
  289. package/docs/types/MoveOpts.html +287 -0
  290. package/docs/types/Object3DHelperEventMap.html +372 -0
  291. package/docs/types/ObjectFit.html +279 -0
  292. package/docs/types/PaintBrushEventMap.html +310 -0
  293. package/docs/types/PanoCompassPluginData.html +279 -0
  294. package/docs/types/PanoCompassPluginExportType.html +279 -0
  295. package/docs/types/PanoCompassPluginParameterType.html +279 -0
  296. package/docs/types/PanoFloorplanRadarPluginParameterType.html +279 -0
  297. package/docs/types/PanoFloorplanRadarPluginReturnType.html +279 -0
  298. package/docs/types/PanoIndex.html +279 -0
  299. package/docs/types/PanoMeasurePluginEvent.html +279 -0
  300. package/docs/types/PanoMeasureReturnType.html +279 -0
  301. package/docs/types/PanoSpatialTagPluginId.html +279 -0
  302. package/docs/types/PanoTagPluginExportInterface.html +279 -0
  303. package/docs/types/PanoTagPluginParamsInterface.html +279 -0
  304. package/docs/types/PanoVideoPluginParameterType.html +279 -0
  305. package/docs/types/PanoVideoPluginReturnType.html +279 -0
  306. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +287 -0
  307. package/docs/types/PipelinePluginParameterType.html +279 -0
  308. package/docs/types/PipelinePluginReturnType.html +279 -0
  309. package/docs/types/PlaneTag.html +287 -0
  310. package/docs/types/Point2DTag.html +287 -0
  311. package/docs/types/Point3DTag.html +287 -0
  312. package/docs/types/PointTag.html +284 -0
  313. package/docs/types/PointTagInstance.html +284 -0
  314. package/docs/types/Position.html +279 -0
  315. package/docs/types/RotateArgs.html +291 -0
  316. package/docs/types/RotateOpts.html +287 -0
  317. package/docs/types/RuleLabelsKey.html +279 -0
  318. package/docs/types/RuleLabelsValue.html +279 -0
  319. package/docs/types/StickType.html +279 -0
  320. package/docs/types/Tag.html +345 -0
  321. package/docs/types/Tag2D.html +287 -0
  322. package/docs/types/Tag3D.html +287 -0
  323. package/docs/types/TagConfigByKey.html +284 -0
  324. package/docs/types/TagContentType.html +279 -0
  325. package/docs/types/TagDimensionType.html +281 -0
  326. package/docs/types/TagElement.html +289 -0
  327. package/docs/types/TagEvents.html +332 -0
  328. package/docs/types/TagGLTFObject.html +302 -0
  329. package/docs/types/TagHooks.html +279 -0
  330. package/docs/types/TagId.html +279 -0
  331. package/docs/types/TagInstance.html +353 -0
  332. package/docs/types/TagPointType.html +282 -0
  333. package/docs/types/TagRendererMap.html +284 -0
  334. package/docs/types/TopviewFloorplanPluginParameterType.html +279 -0
  335. package/docs/types/TopviewFloorplanPluginReturnType.html +279 -0
  336. package/docs/types/WorkCode.html +279 -0
  337. package/docs/variables/FLOOR_TYPE_MAP.html +289 -0
  338. package/docs/variables/PLUGIN.html +279 -0
  339. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +282 -0
  340. package/docs/variables/ROOM_TYPE_MAP.html +289 -0
  341. package/docs/variables/defaultGlobalConfig.html +279 -0
  342. package/docs/variables/itemLabelPluginServerParams.html +286 -0
  343. package/docs/variables/modelItemLabelPluginServerParams.html +286 -0
  344. package/docs/variables/modelRoomLabelPluginServerParams.html +286 -0
  345. package/libs/PanoTagPlugin/controller/TagComputer.js +73 -77
  346. package/libs/PanoTagPlugin/controller/TagRender.js +81 -82
  347. package/libs/PanoTagPlugin/controller/index.js +32 -30
  348. package/libs/base/BasePlugin.js +1 -1
  349. package/libs/shared-utils/logger.js +1 -1
  350. package/package.json +1 -1
@@ -1,20 +1,20 @@
1
- var E = Object.defineProperty, $ = Object.defineProperties;
2
- var L = Object.getOwnPropertyDescriptors;
1
+ var w = Object.defineProperty, E = Object.defineProperties;
2
+ var $ = Object.getOwnPropertyDescriptors;
3
3
  var k = Object.getOwnPropertySymbols;
4
- var _ = Object.prototype.hasOwnProperty, z = Object.prototype.propertyIsEnumerable;
5
- var M = (p, e, i) => e in p ? E(p, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : p[e] = i, y = (p, e) => {
4
+ var L = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
5
+ var M = (m, e, i) => e in m ? w(m, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : m[e] = i, y = (m, e) => {
6
6
  for (var i in e || (e = {}))
7
- _.call(e, i) && M(p, i, e[i]);
7
+ L.call(e, i) && M(m, i, e[i]);
8
8
  if (k)
9
9
  for (var i of k(e))
10
- z.call(e, i) && M(p, i, e[i]);
11
- return p;
12
- }, D = (p, e) => $(p, L(e));
13
- import * as j from "three";
14
- import { is3DTag as O, isMediaModelTag as R } from "../utils/tag/tagCheck.js";
10
+ O.call(e, i) && M(m, i, e[i]);
11
+ return m;
12
+ }, D = (m, e) => E(m, $(e));
13
+ import * as U from "three";
14
+ import { is3DTag as z, isMediaModelTag as R } from "../utils/tag/tagCheck.js";
15
15
  import { getTagCenterPosition as I, getTagPosition as Z } from "../utils/tagPosition.js";
16
- import { checkRange as h } from "../utils/checkRange.js";
17
- import { isPanoramaLike as b, isModelLike as H } from "../../shared-utils/five/mode.js";
16
+ import { checkRange as b } from "../utils/checkRange.js";
17
+ import { isPanoramaLike as h, isModelLike as H } from "../../shared-utils/five/mode.js";
18
18
  import "hammerjs";
19
19
  import "@realsee/five";
20
20
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
@@ -23,7 +23,7 @@ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
23
23
  import { notNil as N } from "../../shared-utils/isNil.js";
24
24
  import { TagUtil as q } from "./TagUtil.js";
25
25
  import { getFloorIndex as W } from "../../shared-utils/five/getFloorIndex.js";
26
- import { safeObj as U } from "../../shared-utils/safeObj.js";
26
+ import { safeObj as j } from "../../shared-utils/safeObj.js";
27
27
  import { toArray as X } from "../../shared-utils/util.js";
28
28
  import "../../shared-utils/three/centerPoint.js";
29
29
  import "../../shared-utils/positionToVector3.js";
@@ -63,7 +63,7 @@ import "../../shared-utils/five/calculateThreeMouse.js";
63
63
  import "../utils/tag/adaptConfig.js";
64
64
  import "../../shared-utils/typescript/entries.js";
65
65
  import "../../shared-utils/url/getUrl.js";
66
- const T = new j.Raycaster();
66
+ const T = new U.Raycaster();
67
67
  class Je extends q {
68
68
  constructor(e) {
69
69
  super(e);
@@ -72,12 +72,12 @@ class Je extends q {
72
72
  * @description: 获取是否可见
73
73
  */
74
74
  getVisible(e, i) {
75
- const l = y(y({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = l, d = b(n) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
76
- if ((d == null ? void 0 : d.visible) !== void 0)
77
- return d.visible;
75
+ const l = y(y({}, this.five.getCurrentState()), i), { panoIndex: t, mode: n } = l, f = h(n) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
76
+ if ((f == null ? void 0 : f.visible) !== void 0)
77
+ return f.visible;
78
78
  {
79
- const s = [], c = (() => {
80
- var r, f, u;
79
+ const s = [], d = (() => {
80
+ var r, c, u;
81
81
  const o = (r = e.config.visibleConfig) != null ? r : {};
82
82
  if (typeof o == "function")
83
83
  return { value: o(this.five, { tag: e, distance: this.getDistance(e) }), checkedList: s, reason: "config function result" };
@@ -88,7 +88,7 @@ class Je extends q {
88
88
  if (o.visibleFiveMode !== void 0) {
89
89
  const a = typeof o.visibleFiveMode == "function" ? o.visibleFiveMode(e) : o.visibleFiveMode;
90
90
  let v = !1;
91
- if (Array.isArray(a) ? v = a.includes(n) : a === "ModelLike" ? v = H(n) : a === "PanoramaLike" ? v = !b(n) : a === "all" ? v = !0 : typeof a == "string" && (v = a === n), v === !1)
91
+ if (Array.isArray(a) ? v = a.includes(n) : a === "ModelLike" ? v = H(n) : a === "PanoramaLike" ? v = !h(n) : a === "all" ? v = !0 : typeof a == "string" && (v = a === n), v === !1)
92
92
  return {
93
93
  value: !1,
94
94
  checkedList: s,
@@ -99,33 +99,33 @@ class Je extends q {
99
99
  }
100
100
  if (o.followModelVisibility === !0 && (n === "Floorplan" || n === "Mapview") && this.getVisibleByFloorIndex(e) === !1)
101
101
  return { value: !1, checkedList: s, reason: "followModelVisibility check failed" };
102
- if (b(n) && o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && t !== void 0) {
102
+ if (h(n) && o.visiblePanoIndex !== void 0 && o.visiblePanoIndex !== "all" && t !== void 0) {
103
103
  if (s.push("visiblePanoIndex"), Array.isArray(o.visiblePanoIndex) && !o.visiblePanoIndex.includes(t))
104
104
  return {
105
105
  value: !1,
106
106
  checkedList: s,
107
107
  reason: `current panoIndex is not included in visiblePano. currentPanoIndex: ${t}, visiblePanoIndex: ${o.visiblePanoIndex}`
108
108
  };
109
- if (o.visiblePanoIndex === "current" && t !== ((f = e.fiveState) == null ? void 0 : f.panoIndex))
109
+ if (o.visiblePanoIndex === "current" && t !== ((c = e.fiveState) == null ? void 0 : c.panoIndex))
110
110
  return {
111
111
  value: !1,
112
112
  checkedList: s,
113
113
  reason: `current panoIndex is not equal to tag.panoIndex. currentPanoIndex: ${t}, tag.panoIndex: ${(u = e.fiveState) == null ? void 0 : u.panoIndex}`
114
114
  };
115
115
  }
116
- if (b(n) && o.visibleDistance !== void 0 && (s.push("visibleDistance"), o.visibleDistance !== "unLimited")) {
116
+ if (o.visibleDistance !== void 0 && (s.push("visibleDistance"), o.visibleDistance !== "unLimited")) {
117
117
  const a = this.getDistance(e);
118
- if (h(a, o.visibleDistance) === !1)
118
+ if (b(a, o.visibleDistance) === !1)
119
119
  return {
120
120
  value: !1,
121
121
  checkedList: s,
122
122
  reason: `distance is not in visibleDistance. distance: ${a}, visibleDistance: ${o.visibleDistance}`
123
123
  };
124
124
  }
125
- if (b(n) && o.angleRange && O(e)) {
125
+ if (h(n) && o.angleRange && z(e)) {
126
126
  s.push("angleRange");
127
127
  const a = this.getAngle(e);
128
- if (h(a, o.angleRange) === !1)
128
+ if (b(a, o.angleRange) === !1)
129
129
  return { value: !1, checkedList: s, reason: `angle is not in angleRange. angle: ${a}, angleRange: ${o.angleRange}` };
130
130
  }
131
131
  if (o.intersectRaycaster !== !1 && (typeof o.intersectRaycaster != "object" || o.intersectRaycaster.enabled !== !1)) {
@@ -145,7 +145,7 @@ class Je extends q {
145
145
  reason: "all check passed"
146
146
  };
147
147
  })();
148
- return d && (d.visible = c.value, d.__debug_visible_reason__ = c), c.value;
148
+ return f && (f.visible = d.value, f.__debug_visible_reason__ = d), d.value;
149
149
  }
150
150
  }
151
151
  /**
@@ -161,17 +161,17 @@ class Je extends q {
161
161
  const n = this.getTagConfig(e).unfoldedConfig;
162
162
  if (!n)
163
163
  return;
164
- const d = (() => {
164
+ const f = (() => {
165
165
  if (typeof n == "function")
166
166
  return n(this.five, { tag: e, distance: this.getDistance(e) });
167
167
  if (n.keep === "folded")
168
168
  return !1;
169
169
  if (n.keep === "unfolded")
170
170
  return !0;
171
- if (n.unfoldDistance && h(this.getDistance(e), n.unfoldDistance) === !1)
171
+ if (n.unfoldDistance && b(this.getDistance(e), n.unfoldDistance) === !1)
172
172
  return !1;
173
173
  })();
174
- t.unfolded = d;
174
+ t.unfolded = f;
175
175
  const s = this.getUnfoldedByCamera(e);
176
176
  return s !== void 0 ? s : t.unfolded;
177
177
  }
@@ -193,25 +193,25 @@ class Je extends q {
193
193
  if (t.autoUnfold === void 0 || t.autoUnfold === !1 || t.autoUnfold.enable === !1 || !t.autoUnfold.strategy)
194
194
  return;
195
195
  if (t.autoUnfold.strategy === "ScreenPostion") {
196
- const d = this.getTagProject(e);
197
- if (d && h(d.x, t.autoUnfold.autoUnfoldProjectX) === !1)
196
+ const f = this.getTagProject(e);
197
+ if (f && b(f.x, t.autoUnfold.autoUnfoldProjectX) === !1)
198
198
  return !1;
199
199
  }
200
200
  if (t.autoUnfold.strategy === "MinimumDistance") {
201
- const c = this.filterPointTag.filter((r) => this.getCurrentVisibleState(r)).filter((r) => {
202
- const f = this.getTagProject(r);
203
- if (!f)
201
+ const d = this.filterPointTag.filter((r) => this.getCurrentVisibleState(r)).filter((r) => {
202
+ const c = this.getTagProject(r);
203
+ if (!c)
204
204
  return !1;
205
- const { x: u, y: a, z: v } = f;
205
+ const { x: u, y: a, z: v } = c;
206
206
  return !(Math.abs(v) > 1 || Math.abs(u) > 1 || Math.abs(a) > 1);
207
- }).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: f }) => {
207
+ }).map((r) => ({ tag: r, id: r.id, tagConfig: this.getTagConfig(r).unfoldedConfig })).filter(({ tag: r, tagConfig: c }) => {
208
208
  var u, a;
209
- return !(typeof f == "function" || f.keep || f.autoUnfold === !1 || ((u = f.autoUnfold) == null ? void 0 : u.enable) === !1 || ((a = f.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
210
- }).map((r) => D(y({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: f }) => {
211
- const u = f.autoUnfold.distance;
212
- return !(u && h(r, u) === !1);
213
- }).sort((r, f) => r.distance - f.distance).findIndex((r) => r.id === e.id);
214
- if (c === -1 || c <= ((n = t.autoUnfold.maxNumber) != null ? n : 1) - 1 === !1)
209
+ return !(typeof c == "function" || c.keep || c.autoUnfold === !1 || ((u = c.autoUnfold) == null ? void 0 : u.enable) === !1 || ((a = c.autoUnfold) == null ? void 0 : a.strategy) !== "MinimumDistance");
210
+ }).map((r) => D(y({}, r), { distance: this.getDistance(r.tag) })).filter(({ distance: r, tagConfig: c }) => {
211
+ const u = c.autoUnfold.distance;
212
+ return !(u && b(r, u) === !1);
213
+ }).sort((r, c) => r.distance - c.distance).findIndex((r) => r.id === e.id);
214
+ if (d === -1 || d <= ((n = t.autoUnfold.maxNumber) != null ? n : 1) - 1 === !1)
215
215
  return !1;
216
216
  }
217
217
  return !0;
@@ -233,21 +233,17 @@ class Je extends q {
233
233
  setPointTagPosition() {
234
234
  const e = this.filterPointTag;
235
235
  e.length !== 0 && e.forEach((i) => {
236
- const l = this.getCurrentVisibleState(i);
237
- let t;
238
- if (!l) {
239
- t = setTimeout(() => {
240
- l || (i.screenPosition = null);
241
- }, 1e3);
236
+ var f;
237
+ const l = this.getCurrentVisibleState(i), t = (f = i.__Object__) != null ? f : {
238
+ timeoutId: void 0,
239
+ inAnimation: !0
240
+ };
241
+ if (i.__Object__ = t, !l && i.screenPosition ? (t.inAnimation = !0, t.timeoutId = setTimeout(() => {
242
+ this.getCurrentVisibleState(i) || (t.inAnimation = !1, i.screenPosition = null);
243
+ }, 1e3)) : t.timeoutId && (t.inAnimation = !1, clearTimeout(t.timeoutId)), !l && !t.inAnimation)
242
244
  return;
243
- }
244
- clearTimeout(t);
245
245
  const n = this.getTagProject(i);
246
- if (!n) {
247
- i.screenPosition = null;
248
- return;
249
- }
250
- i.screenPosition = { leftPercent: (n.x + 1) / 2 * 100, topPercent: (-n.y + 1) / 2 * 100 };
246
+ n ? i.screenPosition = { leftPercent: (n.x + 1) / 2 * 100, topPercent: (-n.y + 1) / 2 * 100 } : i.screenPosition = null;
251
247
  });
252
248
  }
253
249
  setVisible(e) {
@@ -278,36 +274,36 @@ class Je extends q {
278
274
  }
279
275
  /** 通过射线检测标签可用性 */
280
276
  getTagEnableByIntersect(e, i) {
281
- var o, r, f, u, a, v;
282
- const l = U(U((o = this.getTagConfig(e).visibleConfig) != null ? o : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, n = b(this.five.getCurrentState().mode) ? (r = this.five.work.observers[t]) == null ? void 0 : r.position : this.five.camera.position;
277
+ var o, r, c, u, a, v;
278
+ const l = j(j((o = this.getTagConfig(e).visibleConfig) != null ? o : {}).intersectRaycaster), t = i != null ? i : this.five.getCurrentState().panoIndex, n = h(this.five.getCurrentState().mode) ? (r = this.five.work.observers[t]) == null ? void 0 : r.position : this.five.camera.position;
283
279
  if (n === void 0)
284
280
  return { value: !1, reason: { type: "startPosition is undefined", fivePanoIndex: t } };
285
- const d = X(
281
+ const f = X(
286
282
  (() => {
287
283
  var g;
288
- const m = (g = l.checkPoints) != null ? g : "center";
289
- return m === "center" ? I(e) : m === "corner" ? Z(e) : Array.isArray(m) ? m : [];
284
+ const p = (g = l.checkPoints) != null ? g : "center";
285
+ return p === "center" ? I(e) : p === "corner" ? Z(e) : Array.isArray(p) ? p : [];
290
286
  })()
291
287
  );
292
- let s = 0, c = 0;
293
- for (const m of d) {
294
- const g = new j.Vector3().subVectors(m, n).normalize();
288
+ let s = 0, d = 0;
289
+ for (const p of f) {
290
+ const g = new U.Vector3().subVectors(p, n).normalize();
295
291
  T.set(n, g);
296
- const F = n.distanceTo(m), [P] = this.five.model.intersectRaycaster(T), x = (() => {
292
+ const _ = n.distanceTo(p), [P] = this.five.model.intersectRaycaster(T), x = (() => {
297
293
  if (!R(e))
298
294
  return;
299
- const B = this.tags.filter(R).map((A) => {
295
+ const S = this.tags.filter(R).map((B) => {
300
296
  var C;
301
- return (C = A.model) == null ? void 0 : C.object;
302
- }).filter(N), [w] = T.intersectObjects(B, !0);
303
- return w;
304
- })(), S = (f = l.distanceAccuracy) != null ? f : 0.01;
305
- Math.min((u = P == null ? void 0 : P.distance) != null ? u : 1 / 0, (a = x == null ? void 0 : x.distance) != null ? a : 1 / 0) + S >= F ? s++ : c++;
306
- const V = (v = l.needPassed) != null ? v : 1;
307
- if (s >= V)
297
+ return (C = B.model) == null ? void 0 : C.object;
298
+ }).filter(N), [V] = T.intersectObjects(S, !0);
299
+ return V;
300
+ })(), F = (c = l.distanceAccuracy) != null ? c : 0.01;
301
+ Math.min((u = P == null ? void 0 : P.distance) != null ? u : 1 / 0, (a = x == null ? void 0 : x.distance) != null ? a : 1 / 0) + F >= _ ? s++ : d++;
302
+ const A = (v = l.needPassed) != null ? v : 1;
303
+ if (s >= A)
308
304
  return { value: !0 };
309
305
  }
310
- return c === 0 ? { value: !0 } : {
306
+ return d === 0 ? { value: !0 } : {
311
307
  value: !1,
312
308
  reason: {
313
309
  type: "intersectRaycaster check failed",
@@ -318,12 +314,12 @@ class Je extends q {
318
314
  }
319
315
  /** 检测是否匹配当前楼层 */
320
316
  getVisibleByFloorIndex(e) {
321
- var n, d, s, c, o, r, f;
317
+ var n, f, s, d, o, r, c;
322
318
  let i = 0;
323
319
  const l = (n = e.fiveState) == null ? void 0 : n.panoIndex;
324
- l !== void 0 ? i = (d = this.five.work.observers[l]) == null ? void 0 : d.floorIndex : i = W(
320
+ l !== void 0 ? i = (f = this.five.work.observers[l]) == null ? void 0 : f.floorIndex : i = W(
325
321
  this.five.work.observers,
326
- (f = (r = (c = (s = e.model) == null ? void 0 : s.object) == null ? void 0 : c.position) != null ? r : (o = e.mediaPlane) == null ? void 0 : o.position) != null ? f : I(e)
322
+ (c = (r = (d = (s = e.model) == null ? void 0 : s.object) == null ? void 0 : d.position) != null ? r : (o = e.mediaPlane) == null ? void 0 : o.position) != null ? c : I(e)
327
323
  );
328
324
  const t = this.five.model.shownFloor;
329
325
  return t === null || t === i;
@@ -1,16 +1,16 @@
1
- var V = Object.defineProperty;
2
- var j = Object.getOwnPropertySymbols;
3
- var A = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
4
- var y = (d, p, t) => p in d ? V(d, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[p] = t, w = (d, p) => {
5
- for (var t in p || (p = {}))
6
- A.call(p, t) && y(d, t, p[t]);
7
- if (j)
8
- for (var t of j(p))
9
- x.call(p, t) && y(d, t, p[t]);
10
- return d;
1
+ var E = Object.defineProperty;
2
+ var R = Object.getOwnPropertySymbols;
3
+ var V = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
4
+ var S = (c, l, t) => l in c ? E(c, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : c[l] = t, j = (c, l) => {
5
+ for (var t in l || (l = {}))
6
+ V.call(l, t) && S(c, t, l[t]);
7
+ if (R)
8
+ for (var t of R(l))
9
+ A.call(l, t) && S(c, t, l[t]);
10
+ return c;
11
11
  };
12
- var P = (d, p, t) => (y(d, typeof p != "symbol" ? p + "" : p, t), t);
13
- var M = (d, p, t) => new Promise((e, o) => {
12
+ var P = (c, l, t) => (S(c, typeof l != "symbol" ? l + "" : l, t), t);
13
+ var C = (c, l, t) => new Promise((e, o) => {
14
14
  var i = (r) => {
15
15
  try {
16
16
  a(t.next(r));
@@ -24,18 +24,18 @@ var M = (d, p, t) => new Promise((e, o) => {
24
24
  o(n);
25
25
  }
26
26
  }, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(i, s);
27
- a((t = t.apply(d, p)).next());
27
+ a((t = t.apply(c, l)).next());
28
28
  });
29
- import { TagComputer as O } from "./TagComputer.js";
30
- import { Group as R, Quaternion as I, Vector3 as D, Matrix4 as g } from "three";
31
- import G from "../Components/TagContainer.js";
32
- import F from "../Components/Tag/index.js";
33
- import { CSS3DRenderPlugin as L } from "../../CSS3DRenderPlugin/index.js";
34
- import { loadGLTF as W } from "../../shared-utils/three/GLTFLoader.js";
35
- import { isMediaModelTag as S, isStickModelTag as $ } from "../utils/tag/tagCheck.js";
36
- import { VideoPlane as k, ImagePlane as E } from "../utils/model/mediaPlane.js";
37
- import { centerPoint as q } from "../../shared-utils/three/centerPoint.js";
38
- import { arrayPositionToVector3 as C } from "../../shared-utils/positionToVector3.js";
29
+ import { TagComputer as x } from "./TagComputer.js";
30
+ import { Group as y, Quaternion as O, Vector3 as v, Matrix4 as T } from "three";
31
+ import I from "../Components/TagContainer.js";
32
+ import G from "../Components/Tag/index.js";
33
+ import { CSS3DRenderPlugin as F } from "../../CSS3DRenderPlugin/index.js";
34
+ import { loadGLTF as L } from "../../shared-utils/three/GLTFLoader.js";
35
+ import { isMediaModelTag as D, isStickModelTag as W } from "../utils/tag/tagCheck.js";
36
+ import { VideoPlane as w, ImagePlane as k } from "../utils/model/mediaPlane.js";
37
+ import { centerPoint as $ } from "../../shared-utils/three/centerPoint.js";
38
+ import { arrayPositionToVector3 as g } from "../../shared-utils/positionToVector3.js";
39
39
  import "../utils/tagPosition.js";
40
40
  import "../utils/checkRange.js";
41
41
  import "../../shared-utils/five/mode.js";
@@ -157,14 +157,14 @@ import "../Components/Tag/CustomTag.js";
157
157
  import "../../CSS3DRenderPlugin/Controller.js";
158
158
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
159
159
  import "@realsee/five/gltf-loader";
160
- const B = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map();
161
- class ui extends O {
160
+ const q = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
161
+ class hi extends x {
162
162
  constructor(t) {
163
163
  super(t);
164
- P(this, "group", new R());
164
+ P(this, "group", new y());
165
165
  P(this, "renderMap", /* @__PURE__ */ new Map());
166
- P(this, "imagePlaneGroup", new R());
167
- P(this, "gltfObjectGroup", new R());
166
+ P(this, "imagePlaneGroup", new y());
167
+ P(this, "gltfObjectGroup", new y());
168
168
  /** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
169
169
  P(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
170
170
  /** 临时状态 */
@@ -172,23 +172,23 @@ class ui extends O {
172
172
  /** 点标签 */
173
173
  P(this, "TagContainerSvelte");
174
174
  /** 加载外部模型 */
175
- P(this, "loadModel", (t) => M(this, null, function* () {
175
+ P(this, "loadModel", (t) => C(this, null, function* () {
176
176
  var a;
177
177
  const e = t.data.modelUrl;
178
178
  if (!e)
179
179
  return;
180
180
  t.loading = !0;
181
- const o = W(e).then((r) => {
182
- var m, c;
181
+ const o = L(e).then((r) => {
182
+ var m, h;
183
183
  const n = Object.assign(r.scene, {
184
184
  customID: t.id,
185
185
  isTagModel: !0,
186
186
  removeEventListener: t.config.clickable === !1 ? () => {
187
- } : this.addObjectClickHandler(t, r.scene, (h) => {
188
- this.hooks.emit("click", { target: "TagModel", tag: t, event: h });
187
+ } : this.addObjectClickHandler(t, r.scene, (u) => {
188
+ this.hooks.emit("click", { target: "TagModel", tag: t, event: u });
189
189
  })
190
190
  });
191
- return n.visible = this.getCurrentVisibleState(t), new g().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (c = (m = t.config) == null ? void 0 : m.modelConfig) != null && c.autoLookAtEnabled && n.lookAt(this.five.camera.position.clone().setY(n.position.y)), n;
191
+ return n.visible = this.getCurrentVisibleState(t), new T().fromArray(t.matrix).decompose(n.position, n.quaternion, n.scale), n.updateWorldMatrix(!0, !0), n.visible = this.getVisible(t), (h = (m = t.config) == null ? void 0 : m.modelConfig) != null && h.autoLookAtEnabled && n.lookAt(this.five.camera.position.clone().setY(n.position.y)), n;
192
192
  });
193
193
  t.model = { promise: o };
194
194
  const i = yield o;
@@ -196,13 +196,13 @@ class ui extends O {
196
196
  return;
197
197
  t.model.object = i;
198
198
  const s = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
199
- if (s && (this.gltfObjectGroup.remove(s), s.removeEventListener()), this.updateRender3DDomTag(), S(t)) {
199
+ if (s && (this.gltfObjectGroup.remove(s), s.removeEventListener()), this.updateRender3DDomTag(), D(t)) {
200
200
  if (this.getRenderType(t) === "Mesh" && !t.mediaPlane) {
201
- const r = t.data.mediaPosition.map(C);
202
- t.mediaPlane = new E(t.data.mediaData[0].url, t.data.mediaPosition.map(C), {
201
+ const r = t.data.mediaPosition.map(g);
202
+ t.mediaPlane = new k(t.data.mediaData[0].url, t.data.mediaPosition.map(g), {
203
203
  objectFit: t.data.objectFit
204
204
  });
205
- const n = new D().addVectors(r[0], r[2]).divideScalar(2);
205
+ const n = new v().addVectors(r[0], r[2]).divideScalar(2);
206
206
  t.mediaPlane.position.copy(n), i.add(t.mediaPlane);
207
207
  }
208
208
  this.getRenderType(t) !== "Mesh" && (i.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, i), i.updateTagCss3DObjectMatrix());
@@ -239,30 +239,30 @@ class ui extends O {
239
239
  var o, i;
240
240
  return ((i = (o = e.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : i.type) === "Video";
241
241
  }).forEach((e) => {
242
- var m, c, h, u, b;
242
+ var m, h, u;
243
243
  const o = e.data.mediaData[0];
244
244
  if (!o)
245
245
  return;
246
246
  const { url: i } = o;
247
247
  if (!i)
248
248
  return;
249
- e.mediaPlane && !((c = (m = e.state) == null ? void 0 : m.visible) == null || c) && e.mediaPlane instanceof k && e.mediaPlane.pause();
250
- const s = e.position.map(C), a = this.getCurrentVisibleState(e), r = (() => !!(e.mediaPlane && !a))(), n = (() => !!(!e.mediaPlane && a))(), l = (() => !!(e.mediaPlane && e.mediaPlane.src !== i))();
251
- if ((r || l) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (h = e.mediaPlane) == null || h.dispose(), (u = e.mediaPlane) == null || u.removeFromParent(), e.mediaPlane = void 0), n || l) {
252
- const f = new k(i, s, {
249
+ e.mediaPlane && !((h = (m = e.state) == null ? void 0 : m.visible) == null || h) && e.mediaPlane instanceof w && e.mediaPlane.pause();
250
+ const s = e.position.map(g), a = this.getCurrentVisibleState(e), r = (() => !!(e.mediaPlane && !a))(), n = (() => !!(!e.mediaPlane && a))(), p = (() => !!(e.mediaPlane && e.mediaPlane.src !== i))();
251
+ if ((r || p) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), n || p) {
252
+ const d = new w(i, s, {
253
253
  videoCoverSrc: o.videoCoverUrl,
254
254
  playButton: e.data.playIcon,
255
- paused: !((b = e.data.autoplayConfig) != null && b.autoplayVideo),
255
+ paused: !((u = e.data.autoplayConfig) != null && u.autoplayVideo),
256
256
  objectFit: e.data.objectFit,
257
- videoTextureMap: B,
258
- ImageTextureMap: N,
257
+ videoTextureMap: q,
258
+ ImageTextureMap: B,
259
259
  domEvents: this.domEvents
260
260
  });
261
- f.onVideoReady = (T) => {
262
- T.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: f.videoInstance }));
261
+ d.onVideoReady = (f) => {
262
+ f.addEventListener("play", () => this.mediaStore.set({ currentMediaElement: d.videoInstance }));
263
263
  };
264
- const v = (T) => (this.five.on("renderFrame", T), () => this.five.off("renderFrame", T));
265
- f.initialRenderHooks(v), e.mediaPlane = f, this.imagePlaneGroup.add(e.mediaPlane);
264
+ const b = (f) => (this.five.on("renderFrame", f), () => this.five.off("renderFrame", f));
265
+ d.initialRenderHooks(b), e.mediaPlane = d, this.imagePlaneGroup.add(e.mediaPlane);
266
266
  }
267
267
  });
268
268
  }
@@ -274,13 +274,12 @@ class ui extends O {
274
274
  var o, i;
275
275
  return ((i = (o = e.data.mediaData) == null ? void 0 : o[0]) == null ? void 0 : i.type) === "Image";
276
276
  }).forEach((e) => {
277
- var l, m;
278
277
  const { url: o } = e.data.mediaData[0];
279
278
  if (!o)
280
279
  return;
281
- const i = e.position.map(C), s = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !s))(), r = (() => !!(!e.mediaPlane && s))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== o))();
282
- (a || n) && (e.mediaPlane && this.imagePlaneGroup.remove(e.mediaPlane), (l = e.mediaPlane) == null || l.dispose(), (m = e.mediaPlane) == null || m.removeFromParent(), e.mediaPlane = void 0), (r || n) && (e.mediaPlane = new E(o, i, { objectFit: e.data.objectFit }), e.config.clickable !== !1 && this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (c) => {
283
- this.hooks.emit("click", { tag: e, target: "TagContent", event: c.origDomEvent });
280
+ const i = e.position.map(g), s = this.getCurrentVisibleState(e), a = (() => !!(e.mediaPlane && !s))(), r = (() => !!(!e.mediaPlane && s))(), n = (() => !!(e.mediaPlane && e.mediaPlane.src !== o))();
281
+ (a || n) && e.mediaPlane && (this.imagePlaneGroup.remove(e.mediaPlane), e.mediaPlane.dispose(), e.mediaPlane.removeFromParent(), e.mediaPlane = void 0), (r || n) && (e.mediaPlane = new k(o, i, { objectFit: e.data.objectFit }), e.config.clickable !== !1 && this.domEvents.addAutoBindEventListener(e.mediaPlane, "click", (p) => {
282
+ this.hooks.emit("click", { tag: e, target: "TagContent", event: p.origDomEvent });
284
283
  }), this.imagePlaneGroup.add(e.mediaPlane));
285
284
  });
286
285
  }
@@ -291,16 +290,16 @@ class ui extends O {
291
290
  this.filterCSS3DTag.forEach((e) => {
292
291
  var o, i, s;
293
292
  if (e.tag3DContentSvelte) {
294
- const { svelteApp: a, css3DInstance: r, initialNormal: n, currentNormal: l } = e.tag3DContentSvelte;
295
- if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(l)) {
296
- const m = new I().setFromUnitVectors(n, l);
293
+ const { svelteApp: a, css3DInstance: r, initialNormal: n, currentNormal: p } = e.tag3DContentSvelte;
294
+ if (a.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !n.equals(p)) {
295
+ const m = new O().setFromUnitVectors(n, p);
297
296
  r.css3DObject.setRotationFromQuaternion(m);
298
297
  }
299
298
  return;
300
299
  } else {
301
- if (S(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled)
300
+ if (D(e) && !((o = e.model) != null && o.object) || ((i = e.state) == null ? void 0 : i.visible) === !1 || !this.state.visible || !this.state.enabled)
302
301
  return;
303
- if (this.css3DRenderPlugin || (this.css3DRenderPlugin = L(this.five)), e.stickType === "3DPoint" && !e.normal)
302
+ if (this.css3DRenderPlugin || (this.css3DRenderPlugin = F(this.five)), e.stickType === "3DPoint" && !e.normal)
304
303
  return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
305
304
  const a = this.getPositions(e);
306
305
  if (!a)
@@ -308,25 +307,25 @@ class ui extends O {
308
307
  const r = this.getTagNormal(e);
309
308
  if (!r)
310
309
  return;
311
- const n = this.getTagConfig(e), l = w({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
312
- if (this.getRenderType(e) === "BehindDom" || l.mode === "behind") {
313
- l.mode = "behind", l.container = document.createElement("div");
314
- const h = "black";
315
- l.container.style.backgroundColor = h, l.container.style.border = `3px solid ${h}`, this.css3DRenderPlugin.hooks.on("render", () => {
316
- var u;
310
+ const n = this.getTagConfig(e), p = j({ wrapperStyle: { zIndex: this.calculateTagZIndex(e).toString() } }, n.tag3DConfig);
311
+ if (this.getRenderType(e) === "BehindDom" || p.mode === "behind") {
312
+ p.mode = "behind", p.container = document.createElement("div");
313
+ const u = "black";
314
+ p.container.style.backgroundColor = u, p.container.style.border = `3px solid ${u}`, this.css3DRenderPlugin.hooks.on("render", () => {
315
+ var d;
317
316
  if (m.css3DObject.opacityMesh && n.clickable !== !1) {
318
317
  const b = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (f) => {
319
318
  this.hooks.emit("click", { event: f, target: "TagContent", tag: e });
320
319
  });
321
- (u = this.store.css3DRenderDisposer.get(e.id)) == null || u.push(b);
320
+ (d = this.store.css3DRenderDisposer.get(e.id)) == null || d.push(b);
322
321
  }
323
322
  });
324
323
  }
325
- const m = this.css3DRenderPlugin.create3DDomContainer(a, l);
324
+ const m = this.css3DRenderPlugin.create3DDomContainer(a, p);
326
325
  if (!m)
327
326
  return;
328
327
  this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
329
- const c = new F({
328
+ const h = new G({
330
329
  target: m.container,
331
330
  props: {
332
331
  tag: e,
@@ -338,15 +337,15 @@ class ui extends O {
338
337
  }
339
338
  });
340
339
  e.tag3DContentSvelte = {
341
- svelteApp: c,
340
+ svelteApp: h,
342
341
  domContainer: m,
343
342
  css3DInstance: m,
344
343
  initialNormal: r,
345
344
  currentNormal: r,
346
345
  dispose: () => {
347
- c.$destroy(), m.dispose();
346
+ h.$destroy(), m.dispose();
348
347
  }
349
- }, S(e) && ((s = e.model) != null && s.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
348
+ }, D(e) && ((s = e.model) != null && s.object) && this.updateTagCss3DObjectMatrix(e, e.model.object);
350
349
  }
351
350
  }), this.clearUnusedPanelTag();
352
351
  }
@@ -377,23 +376,23 @@ class ui extends O {
377
376
  * @param model 模型
378
377
  */
379
378
  updateTagCss3DObjectMatrix(t, e) {
380
- var b, f, v;
381
- const o = (f = (b = t.config.tag3DConfig) == null ? void 0 : b.ratio) != null ? f : 216e-5, i = (v = t.tag3DContentSvelte) == null ? void 0 : v.css3DInstance.css3DObject;
379
+ var b, f, M;
380
+ const o = (f = (b = t.config.tag3DConfig) == null ? void 0 : b.ratio) != null ? f : 216e-5, i = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
382
381
  if (!i)
383
382
  return;
384
- const s = S(t) ? t.data.mediaPosition : t.position;
383
+ const s = D(t) ? t.data.mediaPosition : t.position;
385
384
  if (!s || s.length !== 4 || !Array.isArray(s[0]) || !Array.isArray(s[2]))
386
385
  return;
387
386
  e.updateWorldMatrix(!1, !1);
388
- const a = e.matrixWorld, r = new D().fromArray(s[0]), n = new D().fromArray(s[2]), l = q(r, n).add(new D(0, 0, 5e-4)), m = new g().setPosition(l), c = new g().makeScale(o, o, o), h = new g().multiply(a).multiply(m).multiply(c);
389
- h.decompose(i.position, i.quaternion, i.scale);
390
- const u = i.opacityMesh;
391
- u && h.decompose(u.position, u.quaternion, u.scale);
387
+ const a = e.matrixWorld, r = new v().fromArray(s[0]), n = new v().fromArray(s[2]), p = $(r, n).add(new v(0, 0, 5e-4)), m = new T().setPosition(p), h = new T().makeScale(o, o, o), u = new T().multiply(a).multiply(m).multiply(h);
388
+ u.decompose(i.position, i.quaternion, i.scale);
389
+ const d = i.opacityMesh;
390
+ d && u.decompose(d.position, d.quaternion, d.scale);
392
391
  }
393
392
  /** 添加模型标签 */
394
393
  addMediaModelTag(t) {
395
- return M(this, null, function* () {
396
- const e = t.filter($).map((o) => this.loadModel(o));
394
+ return C(this, null, function* () {
395
+ const e = t.filter(W).map((o) => this.loadModel(o));
397
396
  yield Promise.all(e), this.setVisible(), this.updateRenderAllTags();
398
397
  });
399
398
  }
@@ -449,7 +448,7 @@ class ui extends O {
449
448
  const s = (o = this.five.getElement()) == null ? void 0 : o.parentElement;
450
449
  if (!s)
451
450
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
452
- this.TagContainerSvelte = new G({
451
+ this.TagContainerSvelte = new I({
453
452
  target: s,
454
453
  props: {
455
454
  hooks: this.hooks,
@@ -465,5 +464,5 @@ class ui extends O {
465
464
  }
466
465
  }
467
466
  export {
468
- ui as TagRender
467
+ hi as TagRender
469
468
  };