@realsee/dnalogel 3.41.6 → 3.42.0-alpha-tag.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 (371) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/README.md +116 -0
  3. package/dist/PanoTagPlugin/controller/TagRender.d.ts +1 -1
  4. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +2 -0
  5. package/dist/PanoTagPlugin/typings/controller.d.ts +17 -16
  6. package/dist/PanoTagPlugin/typings/tag/TagInstance.d.ts +2 -2
  7. package/dist/base/BasePlugin.d.ts +1 -0
  8. package/dist/index.cjs.js +30 -30
  9. package/dist/index.js +740 -766
  10. package/dist/index.umd.js +33 -33
  11. package/docs/.nojekyll +1 -0
  12. package/docs/assets/custom.css +0 -0
  13. package/docs/assets/highlight.css +127 -0
  14. package/docs/assets/main.js +58 -0
  15. package/docs/assets/search.js +1 -0
  16. package/docs/assets/style.css +1367 -0
  17. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +731 -0
  18. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +694 -0
  19. package/docs/classes/CSS3DRender.html +778 -0
  20. package/docs/classes/GuideLineItem.GuideLineItem.html +481 -0
  21. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +894 -0
  22. package/docs/classes/Magnifier.html +485 -0
  23. package/docs/classes/ModelRoomLabelController.html +403 -0
  24. package/docs/classes/MoveController.html +681 -0
  25. package/docs/classes/Object3DHelperController.html +645 -0
  26. package/docs/classes/PaintBrush.html +507 -0
  27. package/docs/classes/PanoMeasurePluginLine.html +527 -0
  28. package/docs/classes/PanoMeasurePluginModel.html +576 -0
  29. package/docs/classes/PanoMeasurePluginPoint.html +367 -0
  30. package/docs/classes/PanoMeasurePluginPolyline.html +572 -0
  31. package/docs/classes/PanoTagPluginController.html +1132 -0
  32. package/docs/classes/Util.BetterTween.html +421 -0
  33. package/docs/classes/Util.Interval.html +437 -0
  34. package/docs/classes/Util.LineSegments.html +389 -0
  35. package/docs/classes/Util.Magnifier.html +508 -0
  36. package/docs/classes/Util.Object3D.html +411 -0
  37. package/docs/classes/Util.PointDomHelper.html +412 -0
  38. package/docs/classes/Util.PointHelper.html +403 -0
  39. package/docs/classes/Util.PointSelectorHelper.html +459 -0
  40. package/docs/classes/Util.Rectangle.html +460 -0
  41. package/docs/classes/WalkController.html +700 -0
  42. package/docs/enums/CameraMovementEffect.html +315 -0
  43. package/docs/enums/ContentType.html +461 -0
  44. package/docs/enums/DIRECTION.html +325 -0
  45. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +325 -0
  46. package/docs/enums/DimensionType.html +315 -0
  47. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +318 -0
  48. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +325 -0
  49. package/docs/enums/PaintBrushTypeEnum.html +318 -0
  50. package/docs/enums/PointType.html +315 -0
  51. package/docs/enums/Rotation.html +322 -0
  52. package/docs/functions/AreaMakerPlugin.html +295 -0
  53. package/docs/functions/CSS3DRenderPlugin.html +293 -0
  54. package/docs/functions/CameraMovementPlugin.html +298 -0
  55. package/docs/functions/CruisePlugin.html +295 -0
  56. package/docs/functions/CurrentPanoImagePlugin.html +295 -0
  57. package/docs/functions/GuideLinePlugin.html +295 -0
  58. package/docs/functions/ItemLabelPlugin.html +295 -0
  59. package/docs/functions/MapviewFloorplanPlugin.html +295 -0
  60. package/docs/functions/ModelChassisCompassPlugin.html +298 -0
  61. package/docs/functions/ModelEntryDoorGuidePlugin.html +298 -0
  62. package/docs/functions/ModelFloorplanPlugin.html +295 -0
  63. package/docs/functions/ModelItemLabelPlugin.html +295 -0
  64. package/docs/functions/ModelRoomLabelPlugin.html +293 -0
  65. package/docs/functions/ModelTVVideoPlugin.html +295 -0
  66. package/docs/functions/ModelViewPlugin.html +298 -0
  67. package/docs/functions/MovePlugin.html +295 -0
  68. package/docs/functions/Object3DHelperPlugin.html +293 -0
  69. package/docs/functions/PanoCompassPlugin.html +295 -0
  70. package/docs/functions/PanoCursorRaycasterPlugin.html +299 -0
  71. package/docs/functions/PanoDoorLabelPlugin.html +295 -0
  72. package/docs/functions/PanoFloorplanRadarPlugin.html +295 -0
  73. package/docs/functions/PanoMeasurePlugin.html +295 -0
  74. package/docs/functions/PanoRulerPlugin.html +298 -0
  75. package/docs/functions/PanoRulerProPlugin.html +298 -0
  76. package/docs/functions/PanoSpatialTagPlugin.html +298 -0
  77. package/docs/functions/PanoTagPlugin.html +300 -0
  78. package/docs/functions/PanoVideoPlugin.html +304 -0
  79. package/docs/functions/PipelinePlugin.html +293 -0
  80. package/docs/functions/TopviewFloorplanPlugin.html +295 -0
  81. package/docs/functions/Util.absoluteUrl.html +331 -0
  82. package/docs/functions/Util.checkFiveModelLoaded.html +334 -0
  83. package/docs/functions/Util.equal.html +343 -0
  84. package/docs/functions/Util.getCoordsFromClient.html +333 -0
  85. package/docs/functions/Util.getCoordsFromElement.html +333 -0
  86. package/docs/functions/Util.getFrameTime.html +325 -0
  87. package/docs/functions/Util.getIntersectFromRelativePosition.html +333 -0
  88. package/docs/functions/Util.getRaycasterFromFivePointer.html +333 -0
  89. package/docs/functions/Util.isAbsoluteURL.html +326 -0
  90. package/docs/functions/Util.isModelLike.html +326 -0
  91. package/docs/functions/Util.isNil.html +334 -0
  92. package/docs/functions/Util.isPanoramaLike.html +326 -0
  93. package/docs/functions/Util.nextFrame.html +339 -0
  94. package/docs/functions/Util.notNil.html +334 -0
  95. package/docs/functions/Util.requestAnimationFrameInterval.html +355 -0
  96. package/docs/functions/Util.tweenProgress.html +328 -0
  97. package/docs/functions/Util.uuid.html +324 -0
  98. package/docs/functions/pluginFlag.html +293 -0
  99. package/docs/index.html +358 -0
  100. package/docs/interfaces/AddTagConfig.html +308 -0
  101. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +335 -0
  102. package/docs/interfaces/AreaMakerPluginType.Config.html +340 -0
  103. package/docs/interfaces/AreaMakerPluginType.EventMap.html +626 -0
  104. package/docs/interfaces/AreaMakerPluginType.Params.html +339 -0
  105. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +397 -0
  106. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +382 -0
  107. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +339 -0
  108. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +332 -0
  109. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +331 -0
  110. package/docs/interfaces/AreaMakerPluginType.State.html +360 -0
  111. package/docs/interfaces/CSS3DRenderPluginEventMap.html +454 -0
  112. package/docs/interfaces/CSS3DRenderPluginState.html +330 -0
  113. package/docs/interfaces/CameraMovementPluginExportType.html +363 -0
  114. package/docs/interfaces/CruisePluginTypes.Config.html +364 -0
  115. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +366 -0
  116. package/docs/interfaces/CruisePluginTypes.EventMap.html +724 -0
  117. package/docs/interfaces/CruisePluginTypes.MoveAction.html +390 -0
  118. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +426 -0
  119. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +416 -0
  120. package/docs/interfaces/CruisePluginTypes.PluginData.html +356 -0
  121. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +324 -0
  122. package/docs/interfaces/CruisePluginTypes.PluginState.html +392 -0
  123. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +387 -0
  124. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +526 -0
  125. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +328 -0
  126. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +320 -0
  127. package/docs/interfaces/CurrentPanoImagePluginType.State.html +342 -0
  128. package/docs/interfaces/EventMap.html +547 -0
  129. package/docs/interfaces/FloorplanBounding.html +337 -0
  130. package/docs/interfaces/FloorplanData.html +340 -0
  131. package/docs/interfaces/FloorplanEntrance.html +365 -0
  132. package/docs/interfaces/FloorplanExtraObject.html +355 -0
  133. package/docs/interfaces/FloorplanExtraObject3D.html +344 -0
  134. package/docs/interfaces/FloorplanFloorData.html +333 -0
  135. package/docs/interfaces/FloorplanImagePosition.html +319 -0
  136. package/docs/interfaces/FloorplanObserver.html +337 -0
  137. package/docs/interfaces/FloorplanOutlineItem.html +333 -0
  138. package/docs/interfaces/FloorplanPosition.html +319 -0
  139. package/docs/interfaces/FloorplanRoomItem.html +407 -0
  140. package/docs/interfaces/FloorplanRoomLabelItem.html +325 -0
  141. package/docs/interfaces/FloorplanServerBounding.html +337 -0
  142. package/docs/interfaces/FloorplanServerComputedData.html +336 -0
  143. package/docs/interfaces/FloorplanServerData.html +319 -0
  144. package/docs/interfaces/FloorplanServerDoorItem.html +336 -0
  145. package/docs/interfaces/FloorplanServerDoorPosition.html +322 -0
  146. package/docs/interfaces/FloorplanServerEntrance.html +365 -0
  147. package/docs/interfaces/FloorplanServerFloorData.html +333 -0
  148. package/docs/interfaces/FloorplanServerImagePosition.html +319 -0
  149. package/docs/interfaces/FloorplanServerObserver.html +337 -0
  150. package/docs/interfaces/FloorplanServerOutlineItem.html +333 -0
  151. package/docs/interfaces/FloorplanServerPosition.html +319 -0
  152. package/docs/interfaces/FloorplanServerRoomItem.html +419 -0
  153. package/docs/interfaces/FloorplanServerRoomLabelItem.html +325 -0
  154. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +328 -0
  155. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +367 -0
  156. package/docs/interfaces/GuideLinePluginType.EventMap.html +531 -0
  157. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +362 -0
  158. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +353 -0
  159. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +452 -0
  160. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +342 -0
  161. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +352 -0
  162. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +522 -0
  163. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +349 -0
  164. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +532 -0
  165. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +314 -0
  166. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +335 -0
  167. package/docs/interfaces/GuideLinePluginType.PluginState.html +360 -0
  168. package/docs/interfaces/GuideLinePluginType.Route.html +376 -0
  169. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +358 -0
  170. package/docs/interfaces/HelperOffset.html +337 -0
  171. package/docs/interfaces/ImagePlaneGroup.html +311 -0
  172. package/docs/interfaces/ItemLabelPluginData.html +308 -0
  173. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +393 -0
  174. package/docs/interfaces/ItemLabelPluginParametersType.html +329 -0
  175. package/docs/interfaces/MinMax.html +315 -0
  176. package/docs/interfaces/ModelChassisCompassPluginData.html +315 -0
  177. package/docs/interfaces/ModelChassisCompassPluginExportType.html +351 -0
  178. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +315 -0
  179. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +322 -0
  180. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +359 -0
  181. package/docs/interfaces/ModelItemLabelPluginData.html +308 -0
  182. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +393 -0
  183. package/docs/interfaces/ModelItemLabelPluginParametersType.html +315 -0
  184. package/docs/interfaces/ModelRoomLabelPluginData.html +308 -0
  185. package/docs/interfaces/ModelTVVideoPluginData.html +329 -0
  186. package/docs/interfaces/ModelTVVideoPluginExportType.html +353 -0
  187. package/docs/interfaces/ModelTVVideoPluginParameterType.html +308 -0
  188. package/docs/interfaces/ModelViewPluginExportType.html +421 -0
  189. package/docs/interfaces/Object3DHelperState.html +322 -0
  190. package/docs/interfaces/ObjectHelperControllers.html +329 -0
  191. package/docs/interfaces/PaintBrushAction.html +368 -0
  192. package/docs/interfaces/PaintBrushConfigs.html +366 -0
  193. package/docs/interfaces/PaintBrushState.html +350 -0
  194. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +430 -0
  195. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +287 -0
  196. package/docs/interfaces/PanoMeasureParameterType.html +454 -0
  197. package/docs/interfaces/PanoMeasurePluginLineJson.html +322 -0
  198. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +319 -0
  199. package/docs/interfaces/PanoMeasurePluginPointJson.html +315 -0
  200. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +325 -0
  201. package/docs/interfaces/PanoRulerPluginExportType.html +382 -0
  202. package/docs/interfaces/PanoRulerPluginOptions.html +331 -0
  203. package/docs/interfaces/PanoRulerPluginParameterType.html +322 -0
  204. package/docs/interfaces/PanoRulerProPluginExportType.html +358 -0
  205. package/docs/interfaces/PanoRulerProPluginOptions.html +328 -0
  206. package/docs/interfaces/PanoRulerProPluginParameterType.html +315 -0
  207. package/docs/interfaces/PanoRulerProPluginState.html +322 -0
  208. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +301 -0
  209. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +290 -0
  210. package/docs/interfaces/PanoSpatialTagPluginData.html +358 -0
  211. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +340 -0
  212. package/docs/interfaces/PanoSpatialTagPluginExportType.html +436 -0
  213. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +336 -0
  214. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +357 -0
  215. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +343 -0
  216. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +336 -0
  217. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +328 -0
  218. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +346 -0
  219. package/docs/interfaces/PanoVideoPluginType.PluginData.html +319 -0
  220. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +425 -0
  221. package/docs/interfaces/PanoVideoPluginType.PluginState.html +319 -0
  222. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +354 -0
  223. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +373 -0
  224. package/docs/interfaces/Point.html +322 -0
  225. package/docs/interfaces/Room.html +329 -0
  226. package/docs/interfaces/RoomInfo.html +315 -0
  227. package/docs/interfaces/RoomLabel.html +391 -0
  228. package/docs/interfaces/RoomRules.html +290 -0
  229. package/docs/interfaces/Rooms.html +290 -0
  230. package/docs/interfaces/Scissor.html +349 -0
  231. package/docs/interfaces/State.html +336 -0
  232. package/docs/interfaces/TagCacheInterface.html +367 -0
  233. package/docs/interfaces/TagConfig.html +570 -0
  234. package/docs/interfaces/TagGLTFObjectGroup.html +311 -0
  235. package/docs/interfaces/TagIconUrl.html +368 -0
  236. package/docs/interfaces/TagObjectGroup.html +311 -0
  237. package/docs/interfaces/TagStyle.html +321 -0
  238. package/docs/interfaces/Tags.html +2825 -0
  239. package/docs/interfaces/TemporaryState.html +308 -0
  240. package/docs/interfaces/Util.MagnifierParameter.html +396 -0
  241. package/docs/interfaces/Util.MouseGroupParameter.html +355 -0
  242. package/docs/interfaces/Util.PointIntersection.html +370 -0
  243. package/docs/modules/AreaMakerPluginType.html +330 -0
  244. package/docs/modules/CruisePluginTypes.html +333 -0
  245. package/docs/modules/CurrentPanoImagePluginType.html +302 -0
  246. package/docs/modules/GuideLineItem.html +294 -0
  247. package/docs/modules/GuideLineModeItem.html +299 -0
  248. package/docs/modules/GuideLinePluginType.html +355 -0
  249. package/docs/modules/PanoVideoPluginType.html +306 -0
  250. package/docs/modules/Util.html +356 -0
  251. package/docs/modules.html +564 -0
  252. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +359 -0
  253. package/docs/types/AreaMakerPluginType.ItemRenderer.html +325 -0
  254. package/docs/types/AreaMakerPluginType.PluginData.html +307 -0
  255. package/docs/types/AreaMakerPluginType.ServerData.html +307 -0
  256. package/docs/types/ArrayPosition.html +284 -0
  257. package/docs/types/AudioAppearance.html +284 -0
  258. package/docs/types/AudioTagTypeConfigKey.html +284 -0
  259. package/docs/types/CSS3DRenderExportType.html +284 -0
  260. package/docs/types/CSS3DRenderPluginExportType.html +284 -0
  261. package/docs/types/CSS3DRenderPluginParameterType.html +284 -0
  262. package/docs/types/ClassFunctionParameters.html +291 -0
  263. package/docs/types/Color.html +284 -0
  264. package/docs/types/ContentTypeConfigKey.html +284 -0
  265. package/docs/types/ContentTypeConfigKeySplit.html +284 -0
  266. package/docs/types/ContentTypeMap.html +284 -0
  267. package/docs/types/Create3DDomContainerReturnType.html +284 -0
  268. package/docs/types/Create3DElementReturnType.html +284 -0
  269. package/docs/types/CruisePluginExportType.html +284 -0
  270. package/docs/types/CruisePluginTypes.CruiseData.html +323 -0
  271. package/docs/types/CruisePluginTypes.MoveEffect.html +300 -0
  272. package/docs/types/CurrentPanoImagePluginExportType.html +284 -0
  273. package/docs/types/DeprecatedMediaPlaneProperty.html +296 -0
  274. package/docs/types/DeprecatedTagProperty.html +299 -0
  275. package/docs/types/Direction-1.html +284 -0
  276. package/docs/types/Direction4.html +284 -0
  277. package/docs/types/ElementRenderer.html +308 -0
  278. package/docs/types/FloorplanRuleLabels.html +287 -0
  279. package/docs/types/FloorplanServerRuleLabels.html +284 -0
  280. package/docs/types/GuideLinePluginExportType.html +284 -0
  281. package/docs/types/GuideLinePluginType.GuideLineItem.html +357 -0
  282. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +378 -0
  283. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +311 -0
  284. package/docs/types/GuideLinePluginType.GuideLineStyle.html +314 -0
  285. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +314 -0
  286. package/docs/types/GuideLinePluginType.PathItem.html +314 -0
  287. package/docs/types/GuideLinePluginType.PluginData.html +323 -0
  288. package/docs/types/HelperEventMap.html +429 -0
  289. package/docs/types/InternalHelperEventMap.html +380 -0
  290. package/docs/types/LoadTagConfig.html +284 -0
  291. package/docs/types/MapviewFloorplanPluginParameterType.html +284 -0
  292. package/docs/types/MapviewFloorplanPluginReturnType.html +284 -0
  293. package/docs/types/MediaData.html +305 -0
  294. package/docs/types/MediaStore.html +289 -0
  295. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +291 -0
  296. package/docs/types/ModelFloorplanPluginParameterType.html +284 -0
  297. package/docs/types/ModelFloorplanPluginReturnType.html +284 -0
  298. package/docs/types/ModelId.html +284 -0
  299. package/docs/types/ModelRoomLabelPluginParameters.html +284 -0
  300. package/docs/types/ModelRoomLabelPluginReturnType.html +284 -0
  301. package/docs/types/MoveArgs.html +294 -0
  302. package/docs/types/MoveOpts.html +292 -0
  303. package/docs/types/Object3DHelperEventMap.html +377 -0
  304. package/docs/types/ObjectFit.html +284 -0
  305. package/docs/types/PaintBrushEventMap.html +315 -0
  306. package/docs/types/PanoCompassPluginData.html +284 -0
  307. package/docs/types/PanoCompassPluginExportType.html +284 -0
  308. package/docs/types/PanoCompassPluginParameterType.html +284 -0
  309. package/docs/types/PanoFloorplanRadarPluginParameterType.html +284 -0
  310. package/docs/types/PanoFloorplanRadarPluginReturnType.html +284 -0
  311. package/docs/types/PanoIndex.html +284 -0
  312. package/docs/types/PanoMeasurePluginEvent.html +284 -0
  313. package/docs/types/PanoMeasureReturnType.html +284 -0
  314. package/docs/types/PanoSpatialTagPluginId.html +284 -0
  315. package/docs/types/PanoTagPluginExportInterface.html +284 -0
  316. package/docs/types/PanoTagPluginParamsInterface.html +284 -0
  317. package/docs/types/PanoVideoPluginParameterType.html +284 -0
  318. package/docs/types/PanoVideoPluginReturnType.html +284 -0
  319. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +292 -0
  320. package/docs/types/PipelinePluginParameterType.html +284 -0
  321. package/docs/types/PipelinePluginReturnType.html +284 -0
  322. package/docs/types/PlaneTag.html +292 -0
  323. package/docs/types/Point2DTag.html +292 -0
  324. package/docs/types/Point3DTag.html +292 -0
  325. package/docs/types/PointTag.html +289 -0
  326. package/docs/types/PointTagInstance.html +289 -0
  327. package/docs/types/Position.html +284 -0
  328. package/docs/types/RotateArgs.html +296 -0
  329. package/docs/types/RotateOpts.html +292 -0
  330. package/docs/types/RuleLabelsKey.html +284 -0
  331. package/docs/types/RuleLabelsValue.html +284 -0
  332. package/docs/types/StickType.html +284 -0
  333. package/docs/types/Tag.html +350 -0
  334. package/docs/types/Tag2D.html +292 -0
  335. package/docs/types/Tag3D.html +292 -0
  336. package/docs/types/TagConfigByKey.html +289 -0
  337. package/docs/types/TagContentType.html +284 -0
  338. package/docs/types/TagContentTypeMapping.html +284 -0
  339. package/docs/types/TagDimensionType.html +286 -0
  340. package/docs/types/TagElement.html +294 -0
  341. package/docs/types/TagEvents.html +337 -0
  342. package/docs/types/TagGLTFObject.html +307 -0
  343. package/docs/types/TagHooks.html +284 -0
  344. package/docs/types/TagId.html +284 -0
  345. package/docs/types/TagInstance.html +362 -0
  346. package/docs/types/TagPointType.html +287 -0
  347. package/docs/types/TagRendererMap.html +291 -0
  348. package/docs/types/TopviewFloorplanPluginParameterType.html +284 -0
  349. package/docs/types/TopviewFloorplanPluginReturnType.html +284 -0
  350. package/docs/types/WorkCode.html +284 -0
  351. package/docs/variables/FLOOR_TYPE_MAP.html +294 -0
  352. package/docs/variables/PLUGIN.html +284 -0
  353. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +287 -0
  354. package/docs/variables/ROOM_TYPE_MAP.html +294 -0
  355. package/docs/variables/defaultGlobalConfig.html +284 -0
  356. package/docs/variables/itemLabelPluginServerParams.html +291 -0
  357. package/docs/variables/modelItemLabelPluginServerParams.html +291 -0
  358. package/docs/variables/modelRoomLabelPluginServerParams.html +291 -0
  359. package/libs/PanoTagPlugin/Components/TagItem.js +246 -286
  360. package/libs/PanoTagPlugin/controller/TagRender.d.ts +1 -1
  361. package/libs/PanoTagPlugin/controller/TagRender.js +61 -58
  362. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +2 -0
  363. package/libs/PanoTagPlugin/controller/TagUtil.js +22 -20
  364. package/libs/PanoTagPlugin/controller/index.js +57 -56
  365. package/libs/PanoTagPlugin/tag.config.js +5 -0
  366. package/libs/PanoTagPlugin/typings/controller.d.ts +17 -16
  367. package/libs/PanoTagPlugin/typings/tag/TagInstance.d.ts +2 -2
  368. package/libs/base/BasePlugin.d.ts +1 -0
  369. package/libs/base/BasePlugin.js +7 -4
  370. package/libs/shared-utils/logger.js +1 -1
  371. package/package.json +1 -1
@@ -65,7 +65,7 @@ export declare abstract class TagRender extends TagComputer {
65
65
  /**
66
66
  * @description 一个点的标签
67
67
  */
68
- protected setPointTagPosition(tag?: TagInstance | TagInstance[]): void;
68
+ protected setPointTagPosition: (tag?: TagInstance | TagInstance[]) => void;
69
69
  /**
70
70
  * @description 渲染单个点的标签
71
71
  */
@@ -1,15 +1,15 @@
1
- var I = Object.defineProperty;
1
+ var V = Object.defineProperty;
2
2
  var j = Object.getOwnPropertySymbols;
3
- var x = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
4
- var C = (u, l, e) => l in u ? I(u, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[l] = e, k = (u, l) => {
3
+ var I = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
4
+ var C = (u, l, e) => l in u ? V(u, l, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[l] = e, k = (u, l) => {
5
5
  for (var e in l || (l = {}))
6
- x.call(l, e) && C(u, e, l[e]);
6
+ I.call(l, e) && C(u, e, l[e]);
7
7
  if (j)
8
8
  for (var e of j(l))
9
9
  O.call(l, e) && C(u, e, l[e]);
10
10
  return u;
11
11
  };
12
- var h = (u, l, e) => (C(u, typeof l != "symbol" ? l + "" : l, e), e);
12
+ var c = (u, l, e) => (C(u, typeof l != "symbol" ? l + "" : l, e), e);
13
13
  var M = (u, l, e) => new Promise((o, t) => {
14
14
  var i = (s) => {
15
15
  try {
@@ -33,9 +33,9 @@ import _ from "../Components/Tag/index.js";
33
33
  import { loadGLTF as L } from "../../shared-utils/three/GLTFLoader.js";
34
34
  import { isMediaModelTag as y, isStickModelTag as W } from "../utils/tag/tagCheck.js";
35
35
  import { VideoPlane as q, ImagePlane as w } from "../utils/model/mediaPlane.js";
36
- import { centerPoint as $ } from "../../shared-utils/three/centerPoint.js";
36
+ import { centerPoint as U } from "../../shared-utils/three/centerPoint.js";
37
37
  import { arrayPositionToVector3 as S } from "../../shared-utils/positionToVector3.js";
38
- import { debounceByKey as B } from "../utils/debounce.js";
38
+ import { debounceByKey as $ } from "../utils/debounce.js";
39
39
  import { toArray as v } from "../../shared-utils/util.js";
40
40
  import "../utils/tagPosition.js";
41
41
  import "../utils/checkRange.js";
@@ -102,7 +102,6 @@ import "../../vendor/svelte/easing/index.js";
102
102
  import "../Components/Common/Icon/Icon.js";
103
103
  import "../utils/getImageInfo.js";
104
104
  import "../utils/px2rem.js";
105
- import "../../vendor/classnames/index.js";
106
105
  import "../Components/Tag/TextTag/index.js";
107
106
  import "../Components/Tag/TextTag/TextTag.js";
108
107
  import "../Components/Common/Line/Straight.js";
@@ -163,31 +162,32 @@ import "../Components/Tag/MediaPlane.js";
163
162
  import "../Components/Tag/LinkTag.js";
164
163
  import "../Components/Tag/PanoramaTag.js";
165
164
  import "../Components/Tag/CustomTag.js";
165
+ import "../../vendor/classnames/index.js";
166
166
  import "@realsee/five/gltf-loader";
167
- const N = /* @__PURE__ */ new Map(), U = /* @__PURE__ */ new Map();
167
+ const B = /* @__PURE__ */ new Map(), N = /* @__PURE__ */ new Map();
168
168
  class Si extends E {
169
169
  constructor(e) {
170
170
  super(e);
171
- h(this, "rendererMap", /* @__PURE__ */ new Map());
172
- h(this, "contentTypeMap", /* @__PURE__ */ new Map());
173
- h(this, "group", new R());
174
- h(this, "imagePlaneGroup", new R());
175
- h(this, "gltfObjectGroup", new R());
171
+ c(this, "rendererMap", /* @__PURE__ */ new Map());
172
+ c(this, "contentTypeMap", /* @__PURE__ */ new Map());
173
+ c(this, "group", new R());
174
+ c(this, "imagePlaneGroup", new R());
175
+ c(this, "gltfObjectGroup", new R());
176
176
  /** 维护一个可用模型表,用于快速删除不应该在场景中的模型 */
177
- h(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
177
+ c(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
178
178
  /** 临时状态 */
179
- h(this, "temporaryState", { visible: !0 });
179
+ c(this, "temporaryState", { visible: !0 });
180
180
  /** 点标签 */
181
- h(this, "TagContainerSvelte");
181
+ c(this, "TagContainerSvelte");
182
182
  /**
183
183
  * @description 渲染3D贴片
184
184
  */
185
- h(this, "updateRender3DDomTag", (e) => {
185
+ c(this, "updateRender3DDomTag", (e) => {
186
186
  (e ? v(e) : this.filterCSS3DTag).forEach((t) => {
187
187
  var i, r, n, s, a;
188
188
  if (t.tag3DContentSvelte) {
189
- const { svelteApp: c, css3DInstance: m, initialNormal: f, currentNormal: d } = t.tag3DContentSvelte;
190
- if ((r = m == null ? void 0 : m.css3DObject) == null || r.setVisible((this.state.visible && ((i = t.state) == null ? void 0 : i.visible)) !== !1), c.$set({ tag: t, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !f.equals(d)) {
189
+ const { svelteApp: h, css3DInstance: m, initialNormal: f, currentNormal: d } = t.tag3DContentSvelte;
190
+ if ((r = m == null ? void 0 : m.css3DObject) == null || r.setVisible((this.state.visible && ((i = t.state) == null ? void 0 : i.visible)) !== !1), h.$set({ tag: t, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !f.equals(d)) {
191
191
  const p = new G().setFromUnitVectors(f, d);
192
192
  m.css3DObject.setRotationFromQuaternion(p);
193
193
  }
@@ -197,8 +197,8 @@ class Si extends E {
197
197
  return;
198
198
  if (t.stickType === "3DPoint" && !t.normal)
199
199
  return console.error("updateRenderPlaneTag: 三维点标签缺少法向量!");
200
- const c = this.getPositions(t);
201
- if (!c)
200
+ const h = this.getPositions(t);
201
+ if (!h)
202
202
  return;
203
203
  const m = this.getTagNormal(t);
204
204
  if (!m)
@@ -210,14 +210,14 @@ class Si extends E {
210
210
  d.container.style.backgroundColor = P, d.container.style.border = `3px solid ${P}`, this.css3DRenderPlugin.hooks.on("render", () => {
211
211
  var b;
212
212
  if (p.css3DObject.opacityMesh && f.clickable !== !1) {
213
- const A = this.addObjectClickHandler(t, p.css3DObject.opacityMesh, (V) => {
214
- this.hooks.emit("click", { event: V, target: "TagContent", tag: t });
213
+ const A = this.addObjectClickHandler(t, p.css3DObject.opacityMesh, (x) => {
214
+ this.hooks.emit("click", { event: x, target: "TagContent", tag: t });
215
215
  });
216
216
  (b = this.store.css3DRenderDisposer.get(t.id)) == null || b.push(A);
217
217
  }
218
218
  });
219
219
  }
220
- const p = this.css3DRenderPlugin.create3DDomContainer(c, d);
220
+ const p = this.css3DRenderPlugin.create3DDomContainer(h, d);
221
221
  if (!p)
222
222
  return;
223
223
  this.store.css3DRenderDisposer.set(t.id, [p.dispose]);
@@ -245,15 +245,39 @@ class Si extends E {
245
245
  }
246
246
  }), this.clearUnusedPanelTag();
247
247
  });
248
+ /**
249
+ * @description 一个点的标签
250
+ */
251
+ c(this, "setPointTagPosition", (e) => {
252
+ const o = e ? v(e) : this.filterPointTag;
253
+ o.length !== 0 && o.forEach((t) => {
254
+ var s;
255
+ const i = this.getCurrentVisibleState(t), r = (s = t.__Object__) != null ? s : {
256
+ timeoutId: void 0,
257
+ inAnimation: !1
258
+ };
259
+ if (t.__Object__ = r, !i && t.screenPosition ? (r.inAnimation = !0, r.timeoutId = setTimeout(() => {
260
+ requestAnimationFrame(() => {
261
+ this.getCurrentVisibleState(t) || (r.inAnimation = !1, t.screenPosition = null, this.updateDomView());
262
+ });
263
+ }, 1e3)) : r.timeoutId && (clearTimeout(r.timeoutId), r.inAnimation = !1, r.timeoutId = void 0), !i && !r.inAnimation)
264
+ return;
265
+ const n = this.getTagProject(t);
266
+ n ? t.screenPosition = {
267
+ leftPx: (n.x + 1) / 2 * this.renderWidthPx,
268
+ topPx: (-n.y + 1) / 2 * this.renderHeightPx
269
+ } : t.screenPosition = null;
270
+ });
271
+ });
248
272
  /**
249
273
  * @description 渲染单个点的标签
250
274
  */
251
- h(this, "updateRenderPointTag", (e) => {
275
+ c(this, "updateRenderPointTag", (e) => {
252
276
  const o = e ? v(e) : this.filterPointTag;
253
- this.setTagZIndex(o), this.setPointTagPosition(), B("updateDomView", this.updateDomView)();
277
+ this.setTagZIndex(o), this.setPointTagPosition(), $("updateDomView", this.updateDomView)();
254
278
  });
255
279
  /** 加载外部模型 */
256
- h(this, "loadModel", (e) => M(this, null, function* () {
280
+ c(this, "loadModel", (e) => M(this, null, function* () {
257
281
  var n;
258
282
  const o = e.data.modelUrl;
259
283
  if (!o)
@@ -290,7 +314,7 @@ class Si extends E {
290
314
  }
291
315
  return this.gltfObjectGroup.add(i), i;
292
316
  }));
293
- h(this, "updateDomView", (e = {}) => {
317
+ c(this, "updateDomView", (e = {}) => {
294
318
  var t;
295
319
  const o = this.filterPointTag.filter((i) => i.state.visible);
296
320
  if (this.TagContainerSvelte)
@@ -340,7 +364,7 @@ class Si extends E {
340
364
  this.tags.length && (this.tags.forEach((o) => {
341
365
  var t, i;
342
366
  (i = (t = o.mediaPlane) == null ? void 0 : t.parent) == null || i.remove(o.mediaPlane);
343
- }), this.tags = [], (e = this.TagContainerSvelte) == null || e.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer(), this.updateRenderAllTags()), this.enabledModelTagSet.clear(), this.clearCache(), this.tagsLengthWillUpdate = !0;
367
+ }), this.tags = [], this.tagsLengthWillUpdate = !0, (e = this.TagContainerSvelte) == null || e.$destroy(), this.TagContainerSvelte = void 0, this.disposeAllCSS3DContainer(), this.updateRenderAllTags()), this.enabledModelTagSet.clear(), this.clearCache(), this.tagsLengthWillUpdate = !0;
344
368
  }
345
369
  /**
346
370
  * @description 更新所有标签
@@ -366,15 +390,15 @@ class Si extends E {
366
390
  const { url: r } = i;
367
391
  if (!r)
368
392
  return;
369
- const n = this.getCurrentVisibleState(t), s = (() => !!(t.mediaPlane && !n))(), a = (() => !!(!t.mediaPlane && n))(), c = (() => !!(t.mediaPlane && t.mediaPlane.src !== r))();
370
- if ((s || c) && t.mediaPlane && (this.imagePlaneGroup.remove(t.mediaPlane), t.mediaPlane.dispose(), t.mediaPlane.removeFromParent(), t.mediaPlane = void 0), a || c) {
393
+ const n = this.getCurrentVisibleState(t), s = (() => !!(t.mediaPlane && !n))(), a = (() => !!(!t.mediaPlane && n))(), h = (() => !!(t.mediaPlane && t.mediaPlane.src !== r))();
394
+ if ((s || h) && t.mediaPlane && (this.imagePlaneGroup.remove(t.mediaPlane), t.mediaPlane.dispose(), t.mediaPlane.removeFromParent(), t.mediaPlane = void 0), a || h) {
371
395
  const f = t.position.map(S), d = new q(r, f, {
372
396
  videoCoverSrc: i.videoCoverUrl,
373
397
  playButton: t.data.playIcon,
374
398
  paused: !((m = t.data.autoplayConfig) != null && m.autoplayVideo),
375
399
  objectFit: t.data.objectFit,
376
- videoTextureMap: N,
377
- ImageTextureMap: U,
400
+ videoTextureMap: B,
401
+ ImageTextureMap: N,
378
402
  domEvents: this.domEvents
379
403
  });
380
404
  d.onVideoReady = (T) => {
@@ -396,8 +420,8 @@ class Si extends E {
396
420
  const { url: i } = t.data.mediaData[0];
397
421
  if (!i)
398
422
  return;
399
- const r = t.position.map(S), n = this.getCurrentVisibleState(t), s = (() => !!(t.mediaPlane && !n))(), a = (() => !!(!t.mediaPlane && n))(), c = (() => !!(t.mediaPlane && t.mediaPlane.src !== i))();
400
- (s || c) && t.mediaPlane && (this.imagePlaneGroup.remove(t.mediaPlane), t.mediaPlane.dispose(), t.mediaPlane.removeFromParent(), t.mediaPlane = void 0), (a || c) && (t.mediaPlane = new w(i, r, { objectFit: t.data.objectFit }), this.getTagConfig(t).clickable !== !1 && this.domEvents.addAutoBindEventListener(
423
+ const r = t.position.map(S), n = this.getCurrentVisibleState(t), s = (() => !!(t.mediaPlane && !n))(), a = (() => !!(!t.mediaPlane && n))(), h = (() => !!(t.mediaPlane && t.mediaPlane.src !== i))();
424
+ (s || h) && t.mediaPlane && (this.imagePlaneGroup.remove(t.mediaPlane), t.mediaPlane.dispose(), t.mediaPlane.removeFromParent(), t.mediaPlane = void 0), (a || h) && (t.mediaPlane = new w(i, r, { objectFit: t.data.objectFit }), this.getTagConfig(t).clickable !== !1 && this.domEvents.addAutoBindEventListener(
401
425
  t.mediaPlane,
402
426
  "click",
403
427
  (m) => {
@@ -443,7 +467,7 @@ class Si extends E {
443
467
  if (!r || r.length !== 4 || !Array.isArray(r[0]) || !Array.isArray(r[2]))
444
468
  return;
445
469
  o.updateWorldMatrix(!1, !1);
446
- const n = o.matrixWorld, s = new D().fromArray(r[0]), a = new D().fromArray(r[2]), c = $(s, a).add(new D(0, 0, 5e-4)), m = new g().setPosition(c), f = new g().makeScale(t, t, t), d = new g().multiply(n).multiply(m).multiply(f);
470
+ const n = o.matrixWorld, s = new D().fromArray(r[0]), a = new D().fromArray(r[2]), h = U(s, a).add(new D(0, 0, 5e-4)), m = new g().setPosition(h), f = new g().makeScale(t, t, t), d = new g().multiply(n).multiply(m).multiply(f);
447
471
  d.decompose(i.position, i.quaternion, i.scale);
448
472
  const p = i.opacityMesh;
449
473
  p && d.decompose(p.position, p.quaternion, p.scale);
@@ -455,27 +479,6 @@ class Si extends E {
455
479
  yield Promise.all(o), this.setVisible(), this.updateRenderAllTags();
456
480
  });
457
481
  }
458
- /**
459
- * @description 一个点的标签
460
- */
461
- setPointTagPosition(e) {
462
- const o = e ? v(e) : this.filterPointTag;
463
- o.length !== 0 && o.forEach((t) => {
464
- var s;
465
- const i = this.getCurrentVisibleState(t), r = (s = t.__Object__) != null ? s : {
466
- timeoutId: void 0,
467
- inAnimation: !1
468
- };
469
- if (t.__Object__ = r, !i && t.screenPosition ? (r.inAnimation = !0, r.timeoutId = setTimeout(() => {
470
- requestAnimationFrame(() => {
471
- this.getCurrentVisibleState(t) || (r.inAnimation = !1, t.screenPosition = null, this.updateDomView());
472
- });
473
- }, 1e3)) : r.timeoutId && (clearTimeout(r.timeoutId), r.inAnimation = !1, r.timeoutId = void 0), !i && !r.inAnimation)
474
- return;
475
- const n = this.getTagProject(t);
476
- n ? t.screenPosition = { leftPercent: (n.x + 1) / 2 * 100, topPercent: (-n.y + 1) / 2 * 100 } : t.screenPosition = null;
477
- });
478
- }
479
482
  updateTagContainerVisible() {
480
483
  var e;
481
484
  (e = this.TagContainerSvelte) == null || e.$set({
@@ -8,6 +8,8 @@ import type { Mode } from '@realsee/five';
8
8
  import { FiveDomEvents } from '../../shared-utils/five/FiveDomEvents';
9
9
  export declare abstract class TagUtil extends TagCache {
10
10
  tags: TagInstance[];
11
+ renderWidthPx?: number;
12
+ renderHeightPx?: number;
11
13
  get container(): Element;
12
14
  set container(container: Element);
13
15
  config: Pick<Tags, 'globalConfig' | 'contentTypeConfig'>;
@@ -12,10 +12,10 @@ var k = (l, s, e) => s in l ? q(l, s, { enumerable: !0, configurable: !0, writab
12
12
  }, V = (l, s) => K(l, Q(s));
13
13
  var f = (l, s, e) => (k(l, typeof s != "symbol" ? s + "" : s, e), e);
14
14
  import { defaultGlobalConfig as ie } from "../typings/tag/TagConfig.js";
15
- import { objectAssignDeepExports as y } from "../../vendor/object-assign-deep/objectAssignDeep.js";
15
+ import { objectAssignDeepExports as P } from "../../vendor/object-assign-deep/objectAssignDeep.js";
16
16
  import * as U from "three";
17
17
  import { DefaultConfig as te } from "../tag.config.js";
18
- import { anyPositionToVector3 as P } from "../../shared-utils/positionToVector3.js";
18
+ import { anyPositionToVector3 as y } from "../../shared-utils/positionToVector3.js";
19
19
  import { planeNormal as E } from "../utils/planeNormal.js";
20
20
  import { getTagCenterPosition as B } from "../utils/tagPosition.js";
21
21
  import { normalPositionToPositions as oe } from "../utils/normalPositionToPositions.js";
@@ -28,11 +28,11 @@ import { isMediaPlaneTag as ce, isMediaModelTag as N, isPlaneTag as le, isPoint3
28
28
  import { VideoPlane as ue } from "../utils/model/mediaPlane.js";
29
29
  import { FiveDomEvents as me } from "../../shared-utils/five/FiveDomEvents.js";
30
30
  import z from "../utils/tag/adaptConfig.js";
31
- import { isPanoramaLike as S, isModelLike as $ } from "../../shared-utils/five/mode.js";
31
+ import { isPanoramaLike as S, isModelLike as H } from "../../shared-utils/five/mode.js";
32
32
  import "hammerjs";
33
33
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
34
34
  import "animejs";
35
- import { entries as H } from "../../shared-utils/typescript/entries.js";
35
+ import { entries as $ } from "../../shared-utils/typescript/entries.js";
36
36
  import { getUrlExt as J } from "../../shared-utils/url/getUrl.js";
37
37
  import { transformPosition as G } from "../../shared-utils/five/transformPosition.js";
38
38
  import "../../shared-utils/three/centerPoint.js";
@@ -72,6 +72,8 @@ class Ti extends ne {
72
72
  constructor(e) {
73
73
  super(e);
74
74
  f(this, "tags", []);
75
+ f(this, "renderWidthPx");
76
+ f(this, "renderHeightPx");
75
77
  f(this, "config", te);
76
78
  /** 插件参数 */
77
79
  f(this, "params");
@@ -187,7 +189,7 @@ class Ti extends ne {
187
189
  const o = this.getTagConfig(e);
188
190
  if (e.config = o, e.config.initialData) {
189
191
  const n = JSON.parse(JSON.stringify(e.data));
190
- e.data = (t = o.initialData) != null && t.important ? y(e.data, n, o.initialData) : y(e.data, o.initialData, n);
192
+ e.data = (t = o.initialData) != null && t.important ? P(e.data, n, o.initialData) : P(e.data, o.initialData, n);
191
193
  }
192
194
  });
193
195
  }
@@ -245,7 +247,7 @@ class Ti extends ne {
245
247
  const n = this.workUtil.getObserverPosition(o);
246
248
  if (n === void 0)
247
249
  throw new Error(`getAngle(): observerPosition is ${n}`);
248
- const r = (() => e.stickType === "3DPoint" ? P(e.normal) : E(e.position))();
250
+ const r = (() => e.stickType === "3DPoint" ? y(e.normal) : E(e.position))();
249
251
  if (!r)
250
252
  return;
251
253
  const a = B(e);
@@ -272,7 +274,7 @@ class Ti extends ne {
272
274
  const g = d.distanceTo(a);
273
275
  return r && (r.distance = g), g;
274
276
  }
275
- if ($(n))
277
+ if (H(n))
276
278
  return this.five.camera.position.distanceTo(a);
277
279
  }
278
280
  getPositions(e) {
@@ -281,7 +283,7 @@ class Ti extends ne {
281
283
  if (N(e))
282
284
  return e.data.mediaPosition;
283
285
  if (de(e))
284
- return oe(this.five.camera.position, P(e.position), P(e.normal));
286
+ return oe(this.five.camera.position, y(e.position), y(e.normal));
285
287
  }
286
288
  addObjectClickHandler(e, i, o) {
287
289
  if (!i || !this.domEvents)
@@ -299,7 +301,7 @@ class Ti extends ne {
299
301
  }
300
302
  getTagNormal(e) {
301
303
  if (e.normal)
302
- return P(e.normal);
304
+ return y(e.normal);
303
305
  if (e.stickType === "Plane")
304
306
  return E(e.position);
305
307
  if (e.stickType === "Model")
@@ -309,7 +311,7 @@ class Ti extends ne {
309
311
  if (!e)
310
312
  return;
311
313
  const i = this.workUtil.transform;
312
- return Array.isArray(e) && e.length === 4 ? e.map(P).map((o) => G(o, i)) : G(P(e), i);
314
+ return Array.isArray(e) && e.length === 4 ? e.map(y).map((o) => G(o, i)) : G(y(e), i);
313
315
  }
314
316
  getTransformedMatrix(e) {
315
317
  const i = new U.Matrix4().fromArray(e);
@@ -326,20 +328,20 @@ class Ti extends ne {
326
328
  * @description 获取merge后的配置
327
329
  */
328
330
  calculateTagConfig(e, i) {
329
- var w, A, x, O, I;
331
+ var w, x, A, O, I;
330
332
  const o = (w = i == null ? void 0 : i.useCache) != null ? w : !0;
331
333
  if (!e)
332
- return (A = this.config.globalConfig) != null ? A : {};
334
+ return (x = this.config.globalConfig) != null ? x : {};
333
335
  if (o) {
334
- if ((x = e == null ? void 0 : e.computedConfig) != null && x._isMerged)
336
+ if ((A = e == null ? void 0 : e.computedConfig) != null && A._isMerged)
335
337
  return e.computedConfig;
336
338
  if ((O = e == null ? void 0 : e.config) != null && O._isMerged)
337
339
  return e.config;
338
340
  }
339
341
  const t = {}, n = {}, r = {};
340
342
  this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([u, m]) => {
341
- var W, R;
342
- const c = u, _ = c.split("-"), j = u.startsWith("["), T = j ? _[0].slice(1, -1) : void 0, h = j ? _.slice(1) : _, v = T ? ["PanoramaLike", "ModelLike"].includes(T) ? (W = n[T]) != null ? W : n[T] = {} : (R = r[T]) != null ? R : r[T] = {} : t;
343
+ var j, R;
344
+ const c = u, _ = c.split("-"), W = u.startsWith("["), T = W ? _[0].slice(1, -1) : void 0, h = W ? _.slice(1) : _, v = T ? ["PanoramaLike", "ModelLike"].includes(T) ? (j = n[T]) != null ? j : n[T] = {} : (R = r[T]) != null ? R : r[T] = {} : t;
343
345
  if (!v[c]) {
344
346
  if (h.length === 0 && (v[c] = m), h.length === 1) {
345
347
  const [p] = h;
@@ -358,14 +360,14 @@ class Ti extends ne {
358
360
  }
359
361
  }
360
362
  });
361
- const a = (I = e.initialConfig) != null ? I : {}, d = y({}, ie, this.config.globalConfig, ...Object.values(t)), g = y({}, d, a), C = {}, X = Object.values(ae.Mode);
362
- H(n).forEach(([u, m]) => {
363
+ const a = (I = e.initialConfig) != null ? I : {}, d = P({}, ie, this.config.globalConfig, ...Object.values(t)), g = P({}, d, a), C = {}, X = Object.values(ae.Mode);
364
+ $(n).forEach(([u, m]) => {
363
365
  X.forEach((c) => {
364
- (u === "PanoramaLike" && S(c) || u === "ModelLike" && $(c)) && (C[c] = y({}, d, ...Object.values(m), a, { _isMerged: !0 }));
366
+ (u === "PanoramaLike" && S(c) || u === "ModelLike" && H(c)) && (C[c] = P({}, d, ...Object.values(m), a, { _isMerged: !0 }));
365
367
  });
366
- }), H(r).forEach(([u, m]) => {
368
+ }), $(r).forEach(([u, m]) => {
367
369
  const c = C[u];
368
- C[u] = y({}, d, c, ...Object.values(m), a, { _isMerged: !0 });
370
+ C[u] = P({}, d, c, ...Object.values(m), a, { _isMerged: !0 });
369
371
  });
370
372
  const b = V(D({}, g), { configWithFiveMode: C });
371
373
  return z(b), Object.values(C).forEach((u) => z(u)), b._isMerged = !0, b;
@@ -1,31 +1,31 @@
1
- var k = Object.defineProperty, F = Object.defineProperties;
2
- var E = Object.getOwnPropertyDescriptors;
1
+ var V = Object.defineProperty, k = Object.defineProperties;
2
+ var F = Object.getOwnPropertyDescriptors;
3
3
  var P = Object.getOwnPropertySymbols;
4
4
  var M = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
5
- var y = (d, a, e) => a in d ? k(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, c = (d, a) => {
6
- for (var e in a || (a = {}))
7
- M.call(a, e) && y(d, e, a[e]);
5
+ var y = (l, h, e) => h in l ? V(l, h, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[h] = e, c = (l, h) => {
6
+ for (var e in h || (h = {}))
7
+ M.call(h, e) && y(l, e, h[e]);
8
8
  if (P)
9
- for (var e of P(a))
10
- O.call(a, e) && y(d, e, a[e]);
11
- return d;
12
- }, T = (d, a) => F(d, E(a));
13
- var f = (d, a, e) => (y(d, typeof a != "symbol" ? a + "" : a, e), e);
14
- var g = (d, a, e) => new Promise((t, i) => {
9
+ for (var e of P(h))
10
+ O.call(h, e) && y(l, e, h[e]);
11
+ return l;
12
+ }, T = (l, h) => k(l, F(h));
13
+ var f = (l, h, e) => (y(l, typeof h != "symbol" ? h + "" : h, e), e);
14
+ var g = (l, h, e) => new Promise((t, i) => {
15
15
  var s = (r) => {
16
16
  try {
17
17
  n(e.next(r));
18
- } catch (h) {
19
- i(h);
18
+ } catch (a) {
19
+ i(a);
20
20
  }
21
21
  }, o = (r) => {
22
22
  try {
23
23
  n(e.throw(r));
24
- } catch (h) {
25
- i(h);
24
+ } catch (a) {
25
+ i(a);
26
26
  }
27
27
  }, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(s, o);
28
- n((e = e.apply(d, a)).next());
28
+ n((e = e.apply(l, h)).next());
29
29
  });
30
30
  import * as C from "three";
31
31
  import { Subscribe as _ } from "@realsee/five";
@@ -35,21 +35,21 @@ import { arrayPositionToVector3 as w } from "../../shared-utils/positionToVector
35
35
  import { isMediaModelTag as L, isModelTag as G } from "../utils/tag/tagCheck.js";
36
36
  import { debounce as N } from "../utils/debounce.js";
37
37
  import { throttle as S } from "../utils/throttle.js";
38
- import x, { getTagStickType as z } from "../utils/tag/format.js";
39
- import { generateBlankAudio as W, AudioNamespace as $ } from "../../shared-utils/audio.js";
38
+ import x, { getTagStickType as W } from "../utils/tag/format.js";
39
+ import { generateBlankAudio as z, AudioNamespace as $ } from "../../shared-utils/audio.js";
40
40
  import { resizeObserver as U } from "../../shared-utils/dom/resizeObserver.js";
41
- import { TagRender as j } from "./TagRender.js";
42
- import { uuid as J } from "../../shared-utils/uuid.js";
43
- import { isModelLike as q } from "../../shared-utils/five/mode.js";
41
+ import { TagRender as H } from "./TagRender.js";
42
+ import { uuid as j } from "../../shared-utils/uuid.js";
43
+ import { isModelLike as J } from "../../shared-utils/five/mode.js";
44
44
  import "hammerjs";
45
45
  import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
46
46
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
47
47
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
48
- import { waitFiveModelLoaded as H } from "../../shared-utils/five/fiveModelLoad.js";
48
+ import { waitFiveModelLoaded as q } from "../../shared-utils/five/fiveModelLoad.js";
49
49
  import { blink as Q, reblink as Y } from "../../shared-utils/three/blink.js";
50
50
  import { tweenProgress as Z } from "../../shared-utils/animationFrame/BetterTween.js";
51
51
  import { DebugUtil as K } from "../utils/DebugUtil.js";
52
- import { safeObj as I } from "../../shared-utils/safeObj.js";
52
+ import { safeObj as E } from "../../shared-utils/safeObj.js";
53
53
  import { sleep as X } from "../../CruisePlugin/utils/sleep.js";
54
54
  import "./TagComputer.js";
55
55
  import "../utils/tagPosition.js";
@@ -175,8 +175,8 @@ import "../Components/Common/TagPoint.js";
175
175
  import "../../shared-utils/three/GLTFLoader.js";
176
176
  import "@realsee/five/gltf-loader";
177
177
  import "../../shared-utils/animationFrame/index.js";
178
- const B = "Dnalogel-PanoTagPlugin", xi = (d) => `${B}--${d}`;
179
- class zi extends j {
178
+ const I = "Dnalogel-PanoTagPlugin", xi = (l) => `${I}--${l}`;
179
+ class Wi extends H {
180
180
  constructor(e, t) {
181
181
  super(e);
182
182
  /** state */
@@ -256,16 +256,16 @@ class zi extends j {
256
256
  var t;
257
257
  return (t = this.getTagConfig(e).modelConfig) == null ? void 0 : t.autoLookAtEnabled;
258
258
  }).forEach((e) => {
259
- var h;
260
- const t = new C.Mesh(new C.BoxGeometry(), new C.MeshBasicMaterial()), i = (h = e.model) == null ? void 0 : h.object;
259
+ var a;
260
+ const t = new C.Mesh(new C.BoxGeometry(), new C.MeshBasicMaterial()), i = (a = e.model) == null ? void 0 : a.object;
261
261
  if (!i)
262
262
  return;
263
263
  t.position.copy(i.position), t.quaternion.copy(i.quaternion);
264
264
  const s = this.five.camera.position;
265
265
  t.lookAt(s.clone().setY(t.position.y));
266
266
  const o = i.quaternion.clone(), n = t.quaternion.clone(), r = Z();
267
- r.onUpdate(({ progress: l }) => {
268
- i.quaternion.copy(o.clone().slerp(n, l));
267
+ r.onUpdate(({ progress: d }) => {
268
+ i.quaternion.copy(o.clone().slerp(n, d));
269
269
  }), r.play();
270
270
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
271
271
  }));
@@ -274,9 +274,9 @@ class zi extends j {
274
274
  this.setVisible(), this.updateRenderAllTags();
275
275
  });
276
276
  f(this, "onFiveEveryReady", () => {
277
- this.setUnfoldedByCamera(), q(this.five.getCurrentState().mode) && (this.setTagZIndex(this.filterPointTag), this.setVisible(), this.setPointTagPosition()), this.updateDomView({ withAnimation: !0 });
277
+ this.setUnfoldedByCamera(), J(this.five.getCurrentState().mode) && (this.setTagZIndex(this.filterPointTag), this.setVisible(), this.setPointTagPosition()), this.updateDomView({ withAnimation: !0 });
278
278
  });
279
- this.params = m({}, { debug: !1, config: this.config }, c({}, t)), this.debug = this.params.debug, this.config = this.params.config, W(1, { namespace: $.PlayAudio });
279
+ this.params = m({}, { debug: !1, config: this.config }, c({}, t)), this.debug = this.params.debug, this.config = this.params.config, z(1, { namespace: $.PlayAudio });
280
280
  try {
281
281
  Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
282
282
  get: function() {
@@ -298,7 +298,7 @@ class zi extends j {
298
298
  load(e, t) {
299
299
  return g(this, null, function* () {
300
300
  var s, o;
301
- this.clearTags(), console.debug(B, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = m({}, this.config, {
301
+ this.clearTags(), console.debug(I, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = m({}, this.config, {
302
302
  globalConfig: (s = e.globalConfig) != null ? s : {},
303
303
  contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
304
304
  }), this.store.visibleWithAnimation = !0;
@@ -319,29 +319,29 @@ class zi extends j {
319
319
  return g(this, null, function* () {
320
320
  const s = (Array.isArray(e) ? e : [e]).filter((o) => o.position).map((o) => {
321
321
  var b, v, D, A;
322
- o.stickType = z(o);
322
+ o.stickType = W(o);
323
323
  const n = JSON.parse(JSON.stringify(o.data)), r = (b = o.initialConfig) != null ? b : o.config ? JSON.parse(JSON.stringify(o.config)) : {};
324
324
  o.initialConfig = r;
325
- const h = this.calculateTagConfig(o), l = this.getTagConfig(o);
326
- o.config = l;
325
+ const a = this.calculateTagConfig(o), d = this.getTagConfig(o);
326
+ o.config = d;
327
327
  const p = T(c({}, o), {
328
328
  enabled: (v = o.enabled) != null ? v : !0,
329
- id: (D = o.id) != null ? D : J(),
330
- data: (A = l.initialData) != null && A.important ? m(o.data, n, l.initialData) : m(o.data, l.initialData, n),
329
+ id: (D = o.id) != null ? D : j(),
330
+ data: (A = d.initialData) != null && A.important ? m(o.data, n, d.initialData) : m(o.data, d.initialData, n),
331
331
  state: c({
332
332
  visible: void 0,
333
333
  unfolded: !this.can("fold", o)
334
- }, l.initialState),
334
+ }, d.initialState),
335
335
  hooks: new _(),
336
336
  originPosition: o.position,
337
337
  position: (() => {
338
338
  const u = this.getTransformedPostion(o.position);
339
- return Array.isArray(u) ? u.map((V) => V.toArray()) : u.toArray();
339
+ return Array.isArray(u) ? u.map((B) => B.toArray()) : u.toArray();
340
340
  })(),
341
341
  matrix: o.matrix ? this.getTransformedMatrix(o.matrix) : o.matrix,
342
342
  initialConfig: r,
343
- computedConfig: h,
344
- config: l,
343
+ computedConfig: a,
344
+ config: d,
345
345
  unfold: () => this.changeUnfoldedById(p.id, !0),
346
346
  fold: () => this.changeUnfoldedById(p.id, !1),
347
347
  enable: () => this.changeEnabledById(p.id, !0),
@@ -353,9 +353,9 @@ class zi extends j {
353
353
  });
354
354
  return p;
355
355
  });
356
- return s.forEach(x), this.tags.push(...s), this.tagsLengthWillUpdate = !0, H(this.five).then(() => g(this, null, function* () {
357
- var o, n, r;
358
- this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.addMediaModelTag(s), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }), this.updateRenderAllTags();
356
+ return s.forEach(x), this.tags.push(...s), this.tagsLengthWillUpdate = !0, q(this.five).then(() => g(this, null, function* () {
357
+ var o, n, r, a, d;
358
+ this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && this.handleEnable(), this.renderHeightPx || (this.renderHeightPx = (r = this.five.getElement()) == null ? void 0 : r.clientHeight, this.renderWidthPx = (a = this.five.getElement()) == null ? void 0 : a.clientWidth), this.addResizeListener(), this.clearUnusedPanelTag(), this.addMediaModelTag(s), this.setVisibleAndUnfolded({ withAnimation: (d = t == null ? void 0 : t.withAnimation) != null ? d : !0 }), this.updateRenderAllTags();
359
359
  }));
360
360
  });
361
361
  }
@@ -417,8 +417,8 @@ class zi extends j {
417
417
  dispose() {
418
418
  var e, t, i, s, o, n;
419
419
  this.tagsLengthWillUpdate = !0, this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filterCSS3DTag.forEach((r) => {
420
- var h;
421
- return (h = r.tag3DContentSvelte) == null ? void 0 : h.svelteApp.$destroy();
420
+ var a;
421
+ return (a = r.tag3DContentSvelte) == null ? void 0 : a.svelteApp.$destroy();
422
422
  }), this.tags = [], (t = this.store.disposers) == null || t.forEach((r) => r == null ? void 0 : r()), this.store.disposers = [], (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (n = (o = this.store).resizeObserverDisposer) == null || n.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.gltfObjectGroup.remove(...this.gltfObjectGroup.children), this.imagePlaneGroup.remove(...this.imagePlaneGroup.children), this.clearCache(), this.five.needsRender = !0, this.store.disposed = !0, this.hooks.emit("dispose");
423
423
  }
424
424
  /**
@@ -428,11 +428,11 @@ class zi extends j {
428
428
  */
429
429
  blinkTagById(e, t) {
430
430
  return g(this, null, function* () {
431
- var l, p;
431
+ var d, p;
432
432
  const i = this.getTagById(e);
433
433
  if (!i)
434
434
  return;
435
- const s = (l = i.enabled) != null ? l : !0, o = (p = i.state) == null ? void 0 : p.visible, n = s && o;
435
+ const s = (d = i.enabled) != null ? d : !0, o = (p = i.state) == null ? void 0 : p.visible, n = s && o;
436
436
  n === !1 && (i.state.visible = !0, i.enabled = !0, this.setPointTagPosition(), this.updateTag(i), this.updateDomView(), yield X(0), i.dom && (i.dom.style.visibility = "hidden"), i.contentDom && (i.contentDom.style.visibility = "hidden"));
437
437
  const r = (() => {
438
438
  var v;
@@ -585,10 +585,11 @@ class zi extends j {
585
585
  }
586
586
  }
587
587
  addResizeObserver() {
588
- if (!this.store.disposed)
588
+ if (this.store.disposed)
589
589
  return;
590
590
  const e = this.five.getElement(), t = () => {
591
- this.state.enabled && (this.show(), this.updateRenderAllTags());
591
+ var a, d;
592
+ this.state.enabled && (this.renderWidthPx = (a = this.five.getElement()) == null ? void 0 : a.clientWidth, this.renderHeightPx = (d = this.five.getElement()) == null ? void 0 : d.clientHeight, this.show(), this.updateRenderPointTag());
592
593
  }, i = () => {
593
594
  this.state.enabled && this.hide();
594
595
  }, { observe: s, unobserve: o } = U(
@@ -611,22 +612,22 @@ class zi extends j {
611
612
  if (t.state && i !== void 0) {
612
613
  if (i === !0 && t.screenPosition) {
613
614
  const s = this.getTagConfig(t).unfoldedConfig;
614
- I(s).keep !== "unfolded" && (e = !0);
615
+ E(s).keep !== "unfolded" && (e = !0);
615
616
  }
616
617
  t.state.unfolded = i;
617
618
  }
618
619
  }), e && this.filterPointTag.forEach((t) => {
619
620
  const i = this.getTagConfig(t).unfoldedConfig;
620
- typeof i == "object" && (i.autoUnfold || i.autoUnfold === !1 || I(i.autoUnfold).enable === !1 || i.keep) || t.state && (t.state.unfolded = !1);
621
+ typeof i == "object" && (i.autoUnfold || i.autoUnfold === !1 || E(i.autoUnfold).enable === !1 || i.keep) || t.state && (t.state.unfolded = !1);
621
622
  });
622
623
  }
623
624
  changeTagMode(e, t) {
624
- var i, s, o, n, r, h;
625
- ((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : n.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((l) => l == null ? void 0 : l()), e.tag3DContentSvelte = void 0);
625
+ var i, s, o, n, r, a;
626
+ ((i = e.config) == null ? void 0 : i.renderType) !== "Mesh" && ((n = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == null ? void 0 : o.css3DObject) == null ? void 0 : n.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (a = this.store.css3DRenderDisposer.get(e.id)) == null || a.forEach((d) => d == null ? void 0 : d()), e.tag3DContentSvelte = void 0);
626
627
  }
627
628
  }
628
629
  export {
629
- zi as PanoTagPluginController,
630
- zi as default,
630
+ Wi as PanoTagPluginController,
631
+ Wi as default,
631
632
  xi as pluginFlag
632
633
  };