@realsee/dnalogel 2.3.9-alpha.8 → 2.4.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 (482) hide show
  1. package/dist/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
  2. package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +5 -5
  3. package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +5 -6
  4. package/dist/PanoMeasurePlugin/Controller/MixedController.d.ts +7 -9
  5. package/dist/PanoMeasurePlugin/Controller/ViewController.d.ts +6 -10
  6. package/dist/PanoMeasurePlugin/Controller/WatchController.d.ts +3 -3
  7. package/dist/PanoMeasurePlugin/Controller/index.d.ts +27 -9
  8. package/dist/PanoMeasurePlugin/Model/index.d.ts +17 -17
  9. package/dist/PanoMeasurePlugin/Model/line.d.ts +6 -4
  10. package/dist/PanoMeasurePlugin/Model/point.d.ts +2 -4
  11. package/dist/PanoMeasurePlugin/Model/polyline.d.ts +37 -12
  12. package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +2 -0
  13. package/dist/PanoMeasurePlugin/Modules/Magnifier.d.ts +29 -16
  14. package/dist/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +3 -4
  15. package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -2
  16. package/dist/PanoMeasurePlugin/index.d.ts +6 -2
  17. package/dist/PanoMeasurePlugin/typings/data.d.ts +6 -16
  18. package/dist/PanoMeasurePlugin/typings/event.type.d.ts +18 -14
  19. package/dist/PanoMeasurePlugin/typings/index.d.ts +4 -2
  20. package/dist/PanoMeasurePlugin/utils/distanceDom.d.ts +5 -3
  21. package/dist/PanoTagPlugin/Assets/Icon.d.ts +2 -3
  22. package/dist/PanoTagPlugin/controller/TagCacheController.d.ts +2 -1
  23. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +22 -19
  24. package/dist/PanoTagPlugin/controller/index.d.ts +14 -25
  25. package/dist/PanoTagPlugin/index.d.ts +1 -1
  26. package/dist/PanoTagPlugin/typings/controller.d.ts +17 -23
  27. package/dist/PanoTagPlugin/typings/index.d.ts +1 -5
  28. package/dist/PanoTagPlugin/typings/tag.d.ts +247 -0
  29. package/dist/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +0 -1
  30. package/dist/index.cjs.js +114 -112
  31. package/dist/index.js +7169 -8282
  32. package/dist/index.umd.js +106 -104
  33. package/docs/assets/search.js +1 -1
  34. package/docs/classes/CSS3DRender.html +31 -31
  35. package/docs/classes/CruisePluginController.html +24 -24
  36. package/docs/classes/Magnifier.html +90 -40
  37. package/docs/classes/ModelRoomLabelController.html +11 -11
  38. package/docs/classes/Object3DHelperController.html +24 -24
  39. package/docs/classes/PaintBrush.html +15 -15
  40. package/docs/classes/PanoMeasurePluginLine.html +318 -0
  41. package/docs/classes/PanoMeasurePluginModel.html +275 -0
  42. package/docs/classes/PanoMeasurePluginPoint.html +160 -0
  43. package/docs/classes/PanoMeasurePluginPolyline.html +306 -0
  44. package/docs/classes/PanoTagPluginController.html +176 -223
  45. package/docs/classes/Util.BetterTween.html +8 -8
  46. package/docs/classes/Util.FivePointSelector.html +12 -12
  47. package/docs/classes/Util.Interval.html +12 -12
  48. package/docs/classes/Util.Magnifier.html +17 -17
  49. package/docs/classes/Util.PointDomHelper.html +11 -11
  50. package/docs/classes/Util.PointHelper.html +11 -11
  51. package/docs/classes/Util.Rectangle.html +13 -13
  52. package/docs/enums/CameraMovementEffect.html +7 -7
  53. package/docs/enums/ContentType.html +35 -75
  54. package/docs/enums/DIRECTION.html +9 -9
  55. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  56. package/docs/enums/DimensionType.html +15 -19
  57. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  58. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  59. package/docs/enums/LinkType.html +67 -0
  60. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  61. package/docs/enums/PointType.html +15 -19
  62. package/docs/enums/Rotation.html +8 -8
  63. package/docs/functions/CSS3DRenderPlugin.html +21 -42
  64. package/docs/functions/CameraMovementPlugin.html +21 -42
  65. package/docs/functions/CruisePlugin.html +21 -42
  66. package/docs/functions/GuideLinePlugin.html +22 -43
  67. package/docs/functions/ItemLabelPlugin.html +21 -42
  68. package/docs/functions/MapviewFloorplanPlugin.html +21 -42
  69. package/docs/functions/ModelChassisCompassPlugin.html +21 -42
  70. package/docs/functions/ModelEntryDoorGuidePlugin.html +21 -42
  71. package/docs/functions/ModelFloorplanPlugin.html +21 -42
  72. package/docs/functions/ModelItemLabelPlugin.html +21 -42
  73. package/docs/functions/ModelRoomLabelPlugin.html +21 -42
  74. package/docs/functions/ModelTVVideoPlugin.html +21 -42
  75. package/docs/functions/ModelViewPlugin.html +21 -42
  76. package/docs/functions/Object3DHelperPlugin.html +21 -42
  77. package/docs/functions/PanoCompassPlugin.html +21 -42
  78. package/docs/functions/PanoCursorRaycasterPlugin.html +21 -42
  79. package/docs/functions/PanoDoorLabelPlugin.html +21 -42
  80. package/docs/functions/PanoFloorplanRadarPlugin.html +21 -42
  81. package/docs/functions/PanoMeasurePlugin.html +21 -42
  82. package/docs/functions/PanoRulerPlugin.html +21 -42
  83. package/docs/functions/PanoRulerProPlugin.html +21 -42
  84. package/docs/functions/PanoSpatialTagPlugin.html +21 -42
  85. package/docs/functions/PanoTagPlugin.html +31 -48
  86. package/docs/functions/TopviewFloorplanPlugin.html +21 -42
  87. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  88. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  89. package/docs/functions/Util.getFrameTime.html +5 -5
  90. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  91. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  92. package/docs/functions/Util.isNil.html +5 -5
  93. package/docs/functions/Util.nextFrame.html +5 -5
  94. package/docs/functions/Util.notNil.html +5 -5
  95. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  96. package/docs/functions/Util.tweenProgress.html +5 -5
  97. package/docs/functions/pluginFlag.html +22 -43
  98. package/docs/index.html +21 -42
  99. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  100. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  101. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  102. package/docs/interfaces/ContentTypeMap.html +212 -0
  103. package/docs/interfaces/FloorplanBounding.html +8 -8
  104. package/docs/interfaces/FloorplanData.html +10 -10
  105. package/docs/interfaces/FloorplanEntrance.html +11 -11
  106. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  107. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  108. package/docs/interfaces/FloorplanFloorData.html +9 -9
  109. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  110. package/docs/interfaces/FloorplanObserver.html +9 -9
  111. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  112. package/docs/interfaces/FloorplanPosition.html +7 -7
  113. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  114. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  115. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  116. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  117. package/docs/interfaces/FloorplanServerData.html +7 -7
  118. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  119. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  120. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  121. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  122. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  123. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  124. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  125. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  126. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  127. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  128. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  129. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  130. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  131. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  132. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  133. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  134. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  135. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  136. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  137. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  138. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  139. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  140. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  141. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  142. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  143. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  144. package/docs/interfaces/Object3DHelperState.html +8 -8
  145. package/docs/interfaces/PaintBrushAction.html +12 -12
  146. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  147. package/docs/interfaces/PaintBrushState.html +10 -10
  148. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  149. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +22 -43
  150. package/docs/interfaces/PanoMeasureParameterType.html +24 -14
  151. package/docs/interfaces/{PointJson.html → PanoMeasurePluginLineJson.html} +24 -24
  152. package/docs/interfaces/{OpenParameter.html → PanoMeasurePluginOpenParameter.html} +15 -15
  153. package/docs/interfaces/{LineJson.html → PanoMeasurePluginPointJson.html} +18 -18
  154. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +80 -0
  155. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  156. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  157. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  158. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  159. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  160. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  161. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  162. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +22 -43
  163. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +22 -43
  164. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  165. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  166. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  167. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  168. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  169. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  170. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  171. package/docs/interfaces/Point.html +8 -8
  172. package/docs/interfaces/Room.html +9 -9
  173. package/docs/interfaces/RoomInfo.html +7 -7
  174. package/docs/interfaces/RoomLabel.html +14 -14
  175. package/docs/interfaces/RoomRules.html +22 -43
  176. package/docs/interfaces/Rooms.html +22 -43
  177. package/docs/interfaces/Scissor.html +9 -9
  178. package/docs/interfaces/TagConfig.html +19 -15
  179. package/docs/interfaces/Tags.html +12 -14
  180. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  181. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  182. package/docs/modules/Util.html +5 -5
  183. package/docs/modules.html +37 -79
  184. package/docs/types/ArrayPosition.html +23 -44
  185. package/docs/types/CSS3DRenderExportType.html +22 -43
  186. package/docs/types/CSS3DRenderPluginExportType.html +22 -43
  187. package/docs/types/CSS3DRenderPluginParameterType.html +22 -43
  188. package/docs/types/Color.html +22 -43
  189. package/docs/types/ContentTypeConfigKey.html +23 -44
  190. package/docs/types/{PanoIndex.html → ContentTypeConfigKeyArray.html} +25 -46
  191. package/docs/types/Create3DDomContainerReturnType.html +22 -43
  192. package/docs/types/Create3DElementReturnType.html +22 -43
  193. package/docs/types/CruisePluginExportType.html +22 -43
  194. package/docs/types/Direction-1.html +22 -43
  195. package/docs/types/Direction4.html +22 -43
  196. package/docs/types/FloorplanRuleLabels.html +22 -43
  197. package/docs/types/FloorplanServerRuleLabels.html +22 -43
  198. package/docs/types/GuideLinePluginExportType.html +22 -43
  199. package/docs/types/HelperEventMap.html +22 -43
  200. package/docs/types/MapviewFloorplanPluginParameterType.html +22 -43
  201. package/docs/types/MapviewFloorplanPluginReturnType.html +22 -43
  202. package/docs/types/MediaData.html +22 -43
  203. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +22 -43
  204. package/docs/types/ModelFloorplanPluginParameterType.html +22 -43
  205. package/docs/types/ModelFloorplanPluginReturnType.html +22 -43
  206. package/docs/types/ModelRoomLabelPluginParameters.html +22 -43
  207. package/docs/types/ModelRoomLabelPluginReturnType.html +22 -43
  208. package/docs/types/MoveArgs.html +22 -43
  209. package/docs/types/MoveOpts.html +22 -43
  210. package/docs/types/Object3DHelperEventMap.html +22 -43
  211. package/docs/types/ObjectFit.html +22 -43
  212. package/docs/types/PaintBrushEventMap.html +22 -43
  213. package/docs/types/PanoCompassPluginData.html +22 -43
  214. package/docs/types/PanoCompassPluginExportType.html +22 -43
  215. package/docs/types/PanoCompassPluginParameterType.html +22 -43
  216. package/docs/types/PanoFloorplanRadarPluginParameterType.html +22 -43
  217. package/docs/types/PanoFloorplanRadarPluginReturnType.html +22 -43
  218. package/docs/types/PanoMeasurePluginEvent.html +22 -43
  219. package/docs/types/PanoMeasureReturnType.html +22 -43
  220. package/docs/types/PanoSpatialTagPluginId.html +22 -43
  221. package/docs/types/PanoTagPluginExportInterface.html +22 -43
  222. package/docs/types/PanoTagPluginParamsInterface.html +22 -43
  223. package/docs/types/PlaneTag.html +27 -46
  224. package/docs/types/PointTag.html +31 -46
  225. package/docs/types/Position.html +22 -43
  226. package/docs/types/RotateArgs.html +22 -43
  227. package/docs/types/RotateOpts.html +22 -43
  228. package/docs/types/RuleLabelsKey.html +22 -43
  229. package/docs/types/RuleLabelsValue.html +22 -43
  230. package/docs/types/Tag.html +30 -47
  231. package/docs/types/Tag2D.html +28 -48
  232. package/docs/types/Tag3D.html +28 -48
  233. package/docs/types/TagId.html +22 -43
  234. package/docs/types/TopviewFloorplanPluginParameterType.html +22 -43
  235. package/docs/types/TopviewFloorplanPluginReturnType.html +22 -43
  236. package/docs/variables/FLOOR_TYPE_MAP.html +22 -43
  237. package/docs/variables/PLUGIN.html +22 -43
  238. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +22 -43
  239. package/docs/variables/ROOM_TYPE_MAP.html +22 -43
  240. package/docs/variables/VERSION.html +22 -43
  241. package/docs/variables/itemLabelPluginServerParams.html +22 -43
  242. package/docs/variables/modelItemLabelPluginServerParams.html +22 -43
  243. package/docs/variables/modelRoomLabelPluginServerParams.html +22 -43
  244. package/libs/CSS3DRenderPlugin/CSS3DRender.js +1 -1
  245. package/libs/CSS3DRenderPlugin/Controller.js +2 -2
  246. package/libs/CSS3DRenderPlugin/utils/createResizeObserver.js +1 -1
  247. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +1 -1
  248. package/libs/CSS3DRenderPlugin/utils/getAllCSS3DObject.js +4 -4
  249. package/libs/CSS3DRenderPlugin/utils/index.js +0 -12
  250. package/libs/CSS3DRenderPlugin/utils/positionToVector3.d.ts +2 -2
  251. package/libs/CSS3DRenderPlugin/utils/positionToVector3.js +3 -4
  252. package/libs/CSS3DRenderPlugin/utils/random.js +1 -6
  253. package/libs/CSS3DRenderPlugin/utils/three/CSS3DGroup.js +2 -3
  254. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +1 -2
  255. package/libs/CSS3DRenderPlugin/utils/three/CSS3DRenderer.js +4 -6
  256. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +1 -1
  257. package/libs/CSS3DRenderPlugin/utils/three/OpacityMesh.js +6 -6
  258. package/libs/CSS3DRenderPlugin/utils/waitFiveModelLoaded.js +13 -13
  259. package/libs/CruisePlugin/Controller.js +2 -2
  260. package/libs/CruisePlugin/utils/coordinatesAngle.js +2 -3
  261. package/libs/CruisePlugin/utils/linerValue.js +4 -4
  262. package/libs/GuideLinePlugin/Controller.js +1 -1
  263. package/libs/GuideLinePlugin/utils/getLineGeometries.js +1 -1
  264. package/libs/Object3DHelperPlugin/Controller.js +36 -38
  265. package/libs/PanoCompassPlugin/Controller.js +3 -8
  266. package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +5 -5
  267. package/libs/PanoMeasurePlugin/Controller/BaseController.js +18 -28
  268. package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +5 -6
  269. package/libs/PanoMeasurePlugin/Controller/EditController.js +57 -70
  270. package/libs/PanoMeasurePlugin/Controller/MixedController.d.ts +7 -9
  271. package/libs/PanoMeasurePlugin/Controller/MixedController.js +43 -54
  272. package/libs/PanoMeasurePlugin/Controller/ViewController.d.ts +6 -10
  273. package/libs/PanoMeasurePlugin/Controller/ViewController.js +43 -84
  274. package/libs/PanoMeasurePlugin/Controller/WatchController.d.ts +3 -3
  275. package/libs/PanoMeasurePlugin/Controller/WatchController.js +51 -68
  276. package/libs/PanoMeasurePlugin/Controller/index.d.ts +27 -9
  277. package/libs/PanoMeasurePlugin/Controller/index.js +118 -130
  278. package/libs/PanoMeasurePlugin/Model/index.d.ts +17 -17
  279. package/libs/PanoMeasurePlugin/Model/index.js +47 -77
  280. package/libs/PanoMeasurePlugin/Model/line.d.ts +6 -4
  281. package/libs/PanoMeasurePlugin/Model/line.js +29 -29
  282. package/libs/PanoMeasurePlugin/Model/point.d.ts +2 -4
  283. package/libs/PanoMeasurePlugin/Model/point.js +7 -7
  284. package/libs/PanoMeasurePlugin/Model/polyline.d.ts +37 -12
  285. package/libs/PanoMeasurePlugin/Model/polyline.js +90 -37
  286. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete.svg.js +1 -1
  287. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_bg.png.js +1 -1
  288. package/libs/PanoMeasurePlugin/Modules/DeleteDom/_Assets/delete_hover_bg.png.js +1 -1
  289. package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +5 -5
  290. package/libs/PanoMeasurePlugin/Modules/FiveHelper.js +3 -3
  291. package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +2 -0
  292. package/libs/PanoMeasurePlugin/Modules/GuideController.js +16 -11
  293. package/libs/PanoMeasurePlugin/Modules/Magnifier.d.ts +29 -16
  294. package/libs/PanoMeasurePlugin/Modules/Magnifier.js +114 -63
  295. package/libs/PanoMeasurePlugin/Modules/UIController/HTML.js +3 -3
  296. package/libs/PanoMeasurePlugin/Modules/UIController/MainBtnController.js +5 -4
  297. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.d.ts +3 -4
  298. package/libs/PanoMeasurePlugin/Modules/UIController/Revoke/index.js +21 -21
  299. package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +1 -2
  300. package/libs/PanoMeasurePlugin/Modules/UIController/index.js +24 -24
  301. package/libs/PanoMeasurePlugin/Modules/UIController/mobileHTML.js +2 -2
  302. package/libs/PanoMeasurePlugin/Modules/UIController/mobileMainBtnController.js +5 -4
  303. package/libs/PanoMeasurePlugin/Modules/UIController/style.js +18 -26
  304. package/libs/PanoMeasurePlugin/Modules/rangePiece/html.js +3 -4
  305. package/libs/PanoMeasurePlugin/Modules/rangePiece/index.js +5 -8
  306. package/libs/PanoMeasurePlugin/index.d.ts +6 -2
  307. package/libs/PanoMeasurePlugin/index.js +33 -29
  308. package/libs/PanoMeasurePlugin/typings/data.d.ts +6 -16
  309. package/libs/PanoMeasurePlugin/typings/event.type.d.ts +18 -14
  310. package/libs/PanoMeasurePlugin/typings/index.d.ts +4 -2
  311. package/libs/PanoMeasurePlugin/utils/calculateThreeMouse.js +1 -1
  312. package/libs/PanoMeasurePlugin/utils/constants.js +16 -15
  313. package/libs/PanoMeasurePlugin/utils/distanceDom.d.ts +5 -3
  314. package/libs/PanoMeasurePlugin/utils/distanceDom.js +65 -41
  315. package/libs/PanoMeasurePlugin/utils/findClosestPoint.js +6 -7
  316. package/libs/PanoMeasurePlugin/utils/isNDCPointInScreen.js +3 -3
  317. package/libs/PanoMeasurePlugin/utils/line.js +0 -1
  318. package/libs/PanoMeasurePlugin/utils/math.js +1 -2
  319. package/libs/PanoMeasurePlugin/utils/ndc2Screen.js +2 -2
  320. package/libs/PanoSpatialTagPlugin/Components/origins.js +2 -3
  321. package/libs/PanoSpatialTagPlugin/Components/tag.js +2 -3
  322. package/libs/PanoSpatialTagPlugin/Plugin.js +2 -2
  323. package/libs/PanoTagPlugin/Assets/Icon.d.ts +2 -3
  324. package/libs/PanoTagPlugin/Assets/Icon.js +3 -4
  325. package/libs/PanoTagPlugin/Components/Common/Arrow.js +11 -11
  326. package/libs/PanoTagPlugin/Components/Common/Audio.js +140 -103
  327. package/libs/PanoTagPlugin/Components/Common/Line/Polyline.js +30 -30
  328. package/libs/PanoTagPlugin/Components/Common/Line/Straight.js +59 -95
  329. package/libs/PanoTagPlugin/Components/Common/Media.js +249 -275
  330. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +79 -143
  331. package/libs/PanoTagPlugin/Components/Common/MultiLineText.js +170 -0
  332. package/libs/PanoTagPlugin/Components/Common/Point/CustomPoint.js +50 -0
  333. package/libs/PanoTagPlugin/Components/Common/Point/DefaultPoint.js +50 -0
  334. package/libs/PanoTagPlugin/Components/Common/Point/PointSwitch.js +166 -0
  335. package/libs/PanoTagPlugin/Components/Common/Shadow.js +10 -11
  336. package/libs/PanoTagPlugin/Components/Common/Text.js +130 -0
  337. package/libs/PanoTagPlugin/Components/Tag/AudioTag.js +131 -0
  338. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +22 -22
  339. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +131 -126
  340. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +97 -75
  341. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +143 -166
  342. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +45 -75
  343. package/libs/PanoTagPlugin/Components/Tag/TextTag.js +122 -0
  344. package/libs/PanoTagPlugin/Components/Tag/index.js +157 -264
  345. package/libs/PanoTagPlugin/Components/TagContainer.js +109 -164
  346. package/libs/PanoTagPlugin/Components/TagWrapper.js +152 -0
  347. package/libs/PanoTagPlugin/controller/TagCacheController.d.ts +2 -1
  348. package/libs/PanoTagPlugin/controller/TagCacheController.js +2 -3
  349. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +22 -19
  350. package/libs/PanoTagPlugin/controller/TagComputer.js +151 -186
  351. package/libs/PanoTagPlugin/controller/index.d.ts +14 -25
  352. package/libs/PanoTagPlugin/controller/index.js +170 -265
  353. package/libs/PanoTagPlugin/index.d.ts +1 -1
  354. package/libs/PanoTagPlugin/index.js +35 -51
  355. package/libs/PanoTagPlugin/tag.config.js +16 -31
  356. package/libs/PanoTagPlugin/typings/controller.d.ts +17 -23
  357. package/libs/PanoTagPlugin/typings/index.d.ts +1 -5
  358. package/libs/PanoTagPlugin/typings/index.js +1 -7
  359. package/libs/PanoTagPlugin/typings/tag.d.ts +247 -0
  360. package/libs/PanoTagPlugin/typings/tag.js +7 -0
  361. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.d.ts +0 -1
  362. package/libs/PanoTagPlugin/utils/actionAfterFiveModelLoad.js +1 -7
  363. package/libs/PanoTagPlugin/utils/constants.js +1 -2
  364. package/libs/PanoTagPlugin/utils/doUtil.js +6 -6
  365. package/libs/PanoTagPlugin/utils/index.js +0 -36
  366. package/libs/PanoTagPlugin/utils/search.js +9 -27
  367. package/libs/PanoTagPlugin/utils/tagPosition.js +2 -2
  368. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Camera.js +1 -1
  369. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/CurrentFloor.js +6 -10
  370. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/CurrentFloor/ExtraObjects.js +20 -20
  371. package/libs/floorplan/PanoFloorplanRadarPlugin/Components/Main.js +74 -83
  372. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +1 -1
  373. package/libs/index.js +120 -128
  374. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +39 -29
  375. package/libs/vendor/svelte/internal/index.js +338 -382
  376. package/package.json +3 -3
  377. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +0 -53
  378. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -88
  379. package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +0 -155
  380. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +0 -53
  381. package/dist/PanoTagPlugin/utils/audio/SharedAudio.d.ts +0 -16
  382. package/dist/PanoTagPlugin/utils/color.d.ts +0 -7
  383. package/dist/PanoTagPlugin/utils/getImageInfo.d.ts +0 -16
  384. package/dist/PanoTagPlugin/utils/px2rem.d.ts +0 -1
  385. package/dist/PanoTagPlugin/utils/tag/format.d.ts +0 -2
  386. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +0 -7
  387. package/dist/PanoTagPlugin/utils/timeToString.d.ts +0 -1
  388. package/dist/shared-utils/audio.d.ts +0 -31
  389. package/docs/interfaces/AddTagConfig.html +0 -64
  390. package/docs/interfaces/EventMap.html +0 -298
  391. package/docs/interfaces/MinMax.html +0 -71
  392. package/docs/interfaces/State.html +0 -89
  393. package/docs/interfaces/TagCache.html +0 -92
  394. package/docs/interfaces/TagIconUrl.html +0 -91
  395. package/docs/interfaces/TemporaryState.html +0 -64
  396. package/docs/types/AudioAppearance.html +0 -251
  397. package/docs/types/AudioTagTypeConfigKey.html +0 -251
  398. package/docs/types/ContentTypeConfigKeySplit.html +0 -251
  399. package/docs/types/ContentTypeMap.html +0 -251
  400. package/docs/types/LoadTagConfig.html +0 -251
  401. package/docs/types/MediaStore.html +0 -251
  402. package/docs/types/PlaneTagElement.html +0 -256
  403. package/docs/types/Point2DElement.html +0 -256
  404. package/docs/types/Point2DTag.html +0 -258
  405. package/docs/types/Point3DElement.html +0 -256
  406. package/docs/types/Point3DTag.html +0 -258
  407. package/docs/types/PointTagElement.html +0 -256
  408. package/docs/types/StickType.html +0 -251
  409. package/docs/types/TagContentType.html +0 -251
  410. package/docs/types/TagDimensionType.html +0 -251
  411. package/docs/types/TagElement.html +0 -258
  412. package/docs/types/TagEvents.html +0 -286
  413. package/docs/types/TagHooks.html +0 -251
  414. package/docs/types/TagIconSize.html +0 -254
  415. package/docs/types/TagPointType.html +0 -254
  416. package/docs/types/WorkCode.html +0 -251
  417. package/libs/GuideLinePlugin/utils/getPoint.d.ts +0 -3
  418. package/libs/GuideLinePlugin/utils/getPoint.js +0 -18
  419. package/libs/PanoMeasurePlugin/typings/data.js +0 -1
  420. package/libs/PanoMeasurePlugin/typings/event.type.js +0 -1
  421. package/libs/PanoMeasurePlugin/typings/index.js +0 -1
  422. package/libs/PanoMeasurePlugin/typings/utils.type.d.ts +0 -1
  423. package/libs/PanoMeasurePlugin/typings/utils.type.js +0 -1
  424. package/libs/PanoMeasurePlugin/utils/clearGroup.d.ts +0 -2
  425. package/libs/PanoMeasurePlugin/utils/clearGroup.js +0 -6
  426. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +0 -198
  427. package/libs/PanoTagPlugin/Components/Common/Icon/audioIcon.js +0 -108
  428. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +0 -81
  429. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +0 -145
  430. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +0 -195
  431. package/libs/PanoTagPlugin/Components/Common/Text/MText.js +0 -166
  432. package/libs/PanoTagPlugin/Components/Common/TextItem.js +0 -106
  433. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +0 -172
  434. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +0 -223
  435. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +0 -123
  436. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +0 -102
  437. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +0 -134
  438. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +0 -115
  439. package/libs/PanoTagPlugin/Components/TagItem.js +0 -253
  440. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +0 -4
  441. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +0 -6
  442. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +0 -93
  443. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +0 -5622
  444. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +0 -1325
  445. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +0 -173
  446. package/libs/PanoTagPlugin/mocks/v1/mock1.js +0 -122
  447. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +0 -233
  448. package/libs/PanoTagPlugin/mocks/v1/mock2.js +0 -296
  449. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +0 -22
  450. package/libs/PanoTagPlugin/mocks/v1/mock3.js +0 -32
  451. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +0 -56
  452. package/libs/PanoTagPlugin/mocks/v1/mock4.js +0 -60
  453. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +0 -13
  454. package/libs/PanoTagPlugin/mocks/v1/mock5.js +0 -17
  455. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +0 -16
  456. package/libs/PanoTagPlugin/mocks/v1/mock6.js +0 -27
  457. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +0 -22
  458. package/libs/PanoTagPlugin/mocks/v1/mock7.js +0 -228
  459. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +0 -53
  460. package/libs/PanoTagPlugin/typings/tag/Tag.js +0 -4
  461. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +0 -88
  462. package/libs/PanoTagPlugin/typings/tag/TagConfig.js +0 -1
  463. package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +0 -155
  464. package/libs/PanoTagPlugin/typings/tag/TagData.js +0 -4
  465. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +0 -53
  466. package/libs/PanoTagPlugin/typings/tag/Utils.js +0 -5
  467. package/libs/PanoTagPlugin/utils/audio/SharedAudio.d.ts +0 -16
  468. package/libs/PanoTagPlugin/utils/audio/SharedAudio.js +0 -107
  469. package/libs/PanoTagPlugin/utils/color.d.ts +0 -7
  470. package/libs/PanoTagPlugin/utils/color.js +0 -17
  471. package/libs/PanoTagPlugin/utils/getImageInfo.d.ts +0 -16
  472. package/libs/PanoTagPlugin/utils/getImageInfo.js +0 -51
  473. package/libs/PanoTagPlugin/utils/px2rem.d.ts +0 -1
  474. package/libs/PanoTagPlugin/utils/px2rem.js +0 -6
  475. package/libs/PanoTagPlugin/utils/tag/format.d.ts +0 -2
  476. package/libs/PanoTagPlugin/utils/tag/format.js +0 -18
  477. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +0 -7
  478. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +0 -26
  479. package/libs/PanoTagPlugin/utils/timeToString.d.ts +0 -1
  480. package/libs/PanoTagPlugin/utils/timeToString.js +0 -7
  481. package/libs/shared-utils/audio.d.ts +0 -31
  482. package/libs/shared-utils/audio.js +0 -81
@@ -1,207 +1,129 @@
1
- var P = Object.defineProperty, w = Object.defineProperties;
2
- var E = Object.getOwnPropertyDescriptors;
1
+ var A = Object.defineProperty, P = Object.defineProperties;
2
+ var R = Object.getOwnPropertyDescriptors;
3
3
  var T = Object.getOwnPropertySymbols;
4
- var R = Object.prototype.hasOwnProperty, k = Object.prototype.propertyIsEnumerable;
5
- var u = (h, a, e) => a in h ? P(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, p = (h, a) => {
4
+ var w = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
5
+ var v = (l, a, e) => a in l ? A(l, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[a] = e, f = (l, a) => {
6
6
  for (var e in a || (a = {}))
7
- R.call(a, e) && u(h, e, a[e]);
7
+ w.call(a, e) && v(l, e, a[e]);
8
8
  if (T)
9
9
  for (var e of T(a))
10
- k.call(a, e) && u(h, e, a[e]);
11
- return h;
12
- }, f = (h, a) => w(h, E(a));
13
- var d = (h, a, e) => (u(h, typeof a != "symbol" ? a + "" : a, e), e);
14
- var m = (h, a, e) => new Promise((t, i) => {
15
- var s = (r) => {
10
+ E.call(a, e) && v(l, e, a[e]);
11
+ return l;
12
+ }, c = (l, a) => P(l, R(a));
13
+ var h = (l, a, e) => (v(l, typeof a != "symbol" ? a + "" : a, e), e);
14
+ var p = (l, a, e) => new Promise((t, s) => {
15
+ var i = (n) => {
16
16
  try {
17
- n(e.next(r));
18
- } catch (l) {
19
- i(l);
17
+ r(e.next(n));
18
+ } catch (d) {
19
+ s(d);
20
20
  }
21
- }, o = (r) => {
21
+ }, o = (n) => {
22
22
  try {
23
- n(e.throw(r));
24
- } catch (l) {
25
- i(l);
23
+ r(e.throw(n));
24
+ } catch (d) {
25
+ s(d);
26
26
  }
27
- }, n = (r) => r.done ? t(r.value) : Promise.resolve(r.value).then(s, o);
28
- n((e = e.apply(h, a)).next());
27
+ }, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(i, o);
28
+ r((e = e.apply(l, a)).next());
29
29
  });
30
- import { Subscribe as F } from "@realsee/five";
31
- import { Quaternion as U } from "three";
32
- import c from "object-assign-deep";
33
- import { writable as L } from "../../vendor/svelte/store/index.js";
34
- import O from "../Components/TagContainer.js";
35
- import I from "../Components/Tag/index.js";
30
+ import { Subscribe as U } from "@realsee/five";
31
+ import { Quaternion as k } from "three";
32
+ import m from "object-assign-deep";
33
+ import { writable as F } from "../../vendor/svelte/store/index.js";
34
+ import { TagContainer as L } from "../Components/TagContainer.js";
35
+ import { Tag as B } from "../Components/Tag/index.js";
36
36
  import { arrayPositionToVector3 as g } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
37
- import { addDebugPoints as B } from "../utils/addDebugPoints.js";
38
- import { planeNormal as M } from "../utils/planeNormal.js";
39
- import { waitFiveModelLoaded as N } from "../utils/actionAfterFiveModelLoad.js";
40
- import { normalPositionToPositions as V } from "../utils/normalPositionToPositions.js";
37
+ import { addDebugPoints as O } from "../utils/addDebugPoints.js";
38
+ import { planeNormal as I } from "../utils/planeNormal.js";
39
+ import { actionAfterFiveModelLoad as z } from "../utils/actionAfterFiveModelLoad.js";
40
+ import { normalPositionToPositions as M } from "../utils/normalPositionToPositions.js";
41
41
  import { debounce as C } from "../utils/debounce.js";
42
- import { throttle as z } from "../utils/throttle.js";
42
+ import { throttle as N } from "../utils/throttle.js";
43
43
  import { resizeObserver as D } from "../utils/resizeObserver.js";
44
- import { TagComputer as W } from "./TagComputer.js";
45
- import { CSS3DRenderPlugin as _ } from "../../CSS3DRenderPlugin/index.js";
46
- import $ from "../utils/tag/format.js";
47
- import { generateBlankAudio as A, AudioNamespace as S } from "../../shared-utils/audio.js";
48
- import "../../vendor/svelte/internal/index.js";
49
- import "../Components/TagItem.js";
50
- import "../utils/noTypecheck.js";
51
- import "../Components/Common/TagPoint.js";
52
- import "../Components/Common/Shadow.js";
53
- import "../../vendor/svelte/transition/index.js";
54
- import "../../vendor/svelte/easing/index.js";
55
- import "../Components/Common/Icon/Icon.js";
56
- import "../utils/getImageInfo.js";
57
- import "../utils/px2rem.js";
58
- import "../Assets/Icon.js";
59
- import "../Components/Tag/TextTag/index.js";
60
- import "../Components/Tag/TextTag/TextTag.js";
61
- import "../Components/Common/Line/Straight.js";
62
- import "../../shared-utils/uuid.js";
63
- import "../Components/Common/Text/FlyMText.js";
64
- import "../Components/Common/Text/FlyText.js";
65
- import "animejs";
66
- import "../../shared-utils/isNil.js";
67
- import "../utils/search.js";
68
- import "../utils/constants.js";
69
- import "../Components/Common/Arrow.js";
70
- import "../utils/doUtil.js";
71
- import "../Components/Tag/TextTag/TextPlaneTag.js";
72
- import "../Components/Common/Text/MText.js";
73
- import "../Components/Tag/ImageTextTag.js";
74
- import "../Components/Common/Line/Polyline.js";
75
- import "../Components/Common/Media.js";
76
- import "../../vendor/swiper/svelte/swiper.js";
77
- import "swiper";
78
- import "../../vendor/swiper/components-shared/get-params.js";
79
- import "../../vendor/swiper/components-shared/utils.js";
80
- import "../../vendor/swiper/components-shared/params-list.js";
81
- import "../../vendor/swiper/components-shared/mount-swiper.js";
82
- import "../../vendor/swiper/components-shared/get-changed-params.js";
83
- import "../../vendor/swiper/components-shared/update-swiper.js";
84
- import "../../vendor/swiper/svelte/swiper-slide.js";
85
- import "swiper/css";
86
- import "swiper/css/autoplay";
87
- import "../Components/Common/MediaItem.js";
88
- import "../Components/Tag/MarketingTag.js";
89
- import "hammerjs";
90
- import "@tweenjs/tween.js";
91
- import "../../CSS3DRenderPlugin/CSS3DRender.js";
92
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
93
- import "three/examples/jsm/renderers/CSS3DRenderer";
94
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
95
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
96
- import "../../CSS3DRenderPlugin/utils/even.js";
97
- import "../../shared-utils/Subscribe.js";
98
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
99
- import "../../CSS3DRenderPlugin/utils/centerPoint.js";
100
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
101
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
102
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
103
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
104
- import "../../shared-utils/animationFrame/BetterTween.js";
105
- import "../../shared-utils/animationFrame/index.js";
106
- import "../Components/Tag/AudioTag/index.js";
107
- import "../Components/Tag/AudioTag/AudioTag.js";
108
- import "../Components/Common/Audio.js";
109
- import "../utils/audio/SharedAudio.js";
110
- import "../Components/Common/Icon/audioIcon.js";
111
- import "../Components/Tag/AudioTag/AudioPlaneTag.js";
112
- import "../utils/color.js";
113
- import "../Components/Tag/MediaPlane.js";
114
- import "../Components/Tag/LinkTag.js";
115
- import "../Components/Tag/CustomTag.js";
116
- import "../tag.config.js";
117
- import "../utils/tag/tagCheck.js";
118
- import "../utils/tagPosition.js";
119
- import "../utils/checkRange.js";
120
- import "./TagCacheController.js";
121
- import "../../base/BasePlugin.js";
122
- import "../../CSS3DRenderPlugin/Controller.js";
123
- import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
124
- const y = "2.0.5", v = `DnalogelPlugin-PanoTagPlugin@${y}`, G = !1, Lt = (h) => `${v}--${h}`;
125
- class Ot extends W {
44
+ import { TagComputer as $ } from "./TagComputer.js";
45
+ import { CSS3DRenderPlugin as j } from "../../CSS3DRenderPlugin/index.js";
46
+ import { PointType as u, DimensionType as y } from "../typings/tag.js";
47
+ const S = "1.2.6", b = `DnalogelPlugin-PanoTagPlugin@${S}`, V = !1, re = (l) => `${b}--${l}`;
48
+ class ae extends $ {
126
49
  constructor(e, t) {
127
50
  super(e);
128
- d(this, "version", y);
129
- d(this, "state", { enabled: !0, visible: !0 });
130
- d(this, "params");
131
- d(this, "debug");
132
- d(this, "css3DRenderPlugin");
133
- d(this, "TagContainerSvelte");
134
- d(this, "temporaryState", { visible: !0 });
135
- d(this, "mediaStore", L({
136
- currentMediaElement: null
51
+ h(this, "version", S);
52
+ h(this, "state", { enabled: !0, visible: !0 });
53
+ h(this, "params");
54
+ h(this, "debug");
55
+ h(this, "css3DRenderPlugin");
56
+ h(this, "TagContainerSvelte");
57
+ h(this, "temporaryState", { visible: !0 });
58
+ h(this, "mediaStore", F({
59
+ currentMediaUrl: ""
137
60
  }));
138
- d(this, "isIOSWX", navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 && navigator.userAgent.toLowerCase().indexOf("iphone") !== -1);
139
- d(this, "store", {
61
+ h(this, "store", {
140
62
  disposers: [],
141
63
  disposed: !1,
142
64
  resizeObserverDisposerAdding: !1,
143
65
  css3DRenderDisposer: /* @__PURE__ */ new Map()
144
66
  });
145
- d(this, "disposedErrorLog", () => {
146
- console.error(`${v} is disposed`);
67
+ h(this, "staticUrl");
68
+ h(this, "disposedErrorLog", () => {
69
+ console.error(`${b} is disposed`);
147
70
  });
148
- this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, A(1, { namespace: S.GetAudioDuration }), A(1, { namespace: S.PlayAudio }), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this });
71
+ this.params = f({
72
+ debug: !1,
73
+ mergePluginDefaultConfigToLoadDataConfig: !1,
74
+ config: this.config,
75
+ staticConfig: {
76
+ host: "vrlab-static.ljcdn.com"
77
+ }
78
+ }, t), this.debug = this.params.debug, this.config = this.params.config, this.staticUrl = (() => {
79
+ var i;
80
+ const s = this.params.staticConfig;
81
+ if (typeof s == "string")
82
+ return s;
83
+ {
84
+ const o = s.protocol ? s.protocol + ":" : "", r = (i = s.host) != null ? i : "vrlab-static.ljcdn.com", n = s.port ? ":" + s.port : "";
85
+ return `${o}//${r}${n}`;
86
+ }
87
+ })(), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this });
149
88
  }
150
89
  load(e, t) {
151
- return m(this, null, function* () {
152
- var i, s;
153
- if (this.clearTags(), console.log(v, " load:", { data: e }), this.config = c({}, this.config, {
154
- globalConfig: (i = e.globalConfig) != null ? i : {},
155
- contentTypeConfig: (s = e.contentTypeConfig) != null ? s : {}
156
- }), this.debug)
157
- try {
158
- B(this.five, this.tags);
159
- } catch (o) {
160
- console.error(o);
161
- }
162
- return this.addTag(e.tagList, t);
163
- });
90
+ var s, i;
91
+ this.clearTags(), console.log(b, "load:", { data: e }), this.params.mergePluginDefaultConfigToLoadDataConfig ? this.config = m({}, this.config, {
92
+ globalConfig: (s = e.globalConfig) != null ? s : {},
93
+ contentTypeConfig: (i = e.contentTypeConfig) != null ? i : {}
94
+ }) : (e.globalConfig && (this.config.globalConfig = e.globalConfig), e.contentTypeConfig && (this.config.contentTypeConfig = e.contentTypeConfig)), this.addTag(e.tagList, t), this.debug && O(this.five, this.tags);
164
95
  }
165
96
  addTag(e, t) {
166
- return m(this, null, function* () {
167
- const s = (Array.isArray(e) ? e : [e]).map((o) => {
168
- const n = this.getTagConfig(o);
169
- return f(p({}, o), {
170
- state: p({ visible: void 0, unfolded: G }, n.initialState),
171
- hooks: new F(),
172
- clickable: n.clickable,
173
- mergedConfig: n
174
- });
175
- }).filter((o) => o.position);
176
- return s.forEach($), this.tags.push(...s), N(this.five).then(() => {
177
- var o, n, r;
178
- return this.store.eventListenerDisposer && ((n = (o = this.store).eventListenerDisposer) == null || n.call(o)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (r = t == null ? void 0 : t.withAnimation) != null ? r : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), !0;
97
+ const i = (Array.isArray(e) ? e : [e]).map((o) => {
98
+ const r = this.getTagConfig(o);
99
+ return c(f({}, o), {
100
+ state: f({ visible: void 0, unfolded: V }, r.initialState),
101
+ hooks: new U(),
102
+ clickable: r.clickable
179
103
  });
104
+ }).filter((o) => o.position);
105
+ this.tags.push(...i), z(this.five, () => {
106
+ var o, r, n;
107
+ this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (n = t == null ? void 0 : t.withAnimation) != null ? n : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags();
180
108
  });
181
109
  }
182
- changeConfig(e, t = !0) {
183
- t ? this.config = c({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
184
- }
185
- changeGlobalConfig(e, t = !0) {
186
- t ? this.config.globalConfig = c({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
187
- }
188
110
  clearTags() {
189
111
  this.tags = [], this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
190
112
  }
191
113
  show(e) {
192
- return m(this, null, function* () {
193
- const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
114
+ return p(this, null, function* () {
115
+ const { userAction: t = !0, withAnimation: s = !1 } = e != null ? e : {};
194
116
  if (this.store.disposed)
195
117
  return this.disposedErrorLog();
196
- this.setState({ visible: !0 }, { userAction: t, visibleWithAnimation: i }), this.hooks.emit("show", { userAction: t, withAnimation: i });
118
+ this.setState({ visible: !0 }, { userAction: t, visibleWithAnimation: s }), this.hooks.emit("show", { userAction: t, withAnimation: s });
197
119
  });
198
120
  }
199
121
  hide(e) {
200
- return m(this, null, function* () {
201
- const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
122
+ return p(this, null, function* () {
123
+ const { userAction: t = !0, withAnimation: s = !1 } = e != null ? e : {};
202
124
  if (this.store.disposed)
203
125
  return this.disposedErrorLog();
204
- this.setState({ visible: !1 }, { userAction: t, visibleWithAnimation: i }), this.hooks.emit("hide", { userAction: t, withAnimation: i });
126
+ this.setState({ visible: !1 }, { userAction: t, visibleWithAnimation: s }), this.hooks.emit("hide", { userAction: t, withAnimation: s });
205
127
  });
206
128
  }
207
129
  enable(e) {
@@ -217,86 +139,70 @@ class Ot extends W {
217
139
  this.setState({ enabled: !1 }, { userAction: t }), this.hooks.emit("disable", { userAction: t });
218
140
  }
219
141
  dispose() {
220
- var e, t, i, s, o, n;
221
- this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((r) => {
222
- var l;
223
- return (l = r.tag3DContentSvelte) == null ? void 0 : l.svelteApp.$destroy();
224
- }), this.tags = [], (t = this.store.disposers) == null || t.forEach((r) => r == null ? void 0 : r()), this.store.disposers = [], this.store.disposed = !0, (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.clearCache(), this.hooks.emit("dispose");
142
+ var e, t, s, i, o, r;
143
+ this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((n) => {
144
+ var d;
145
+ return (d = n.tag3DContentSvelte) == null ? void 0 : d.svelteApp.$destroy();
146
+ }), this.tags = [], (t = this.store.disposers) == null || t.forEach((n) => n == null ? void 0 : n()), this.store.disposers = [], this.store.disposed = !0, (i = (s = this.store).eventListenerDisposer) == null || i.call(s), this.store.eventListenerDisposer = void 0, (r = (o = this.store).resizeObserverDisposer) == null || r.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.clearCache(), this.hooks.emit("dispose");
225
147
  }
226
148
  setState(e, t) {
227
149
  if (this.store.disposed)
228
150
  return this.disposedErrorLog();
229
- const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = p({}, this.state);
230
- this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = s, o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: i });
231
- }
232
- changeUnfoldedById(e, t) {
233
- var o;
234
- const i = this.getTagById(e);
235
- if (!i)
236
- return;
237
- i.state.unfolded = t;
238
- const s = this.filterPointTag();
239
- (o = this.TagContainerSvelte) == null || o.$set({ tags: s });
151
+ const { userAction: s = !0, visibleWithAnimation: i = !1 } = t, o = f({}, this.state);
152
+ this.state = Object.assign(this.state, e), this.store.visibleWithAnimation = i, o.visible !== this.state.visible && (e.visible ? this.handleShow() : this.handleHide()), o.enabled !== this.state.enabled && (e.enabled ? this.handleEnable() : this.handleDisable()), this.hooks.emit("stateChange", { state: this.state, prevState: o, userAction: s });
240
153
  }
241
154
  changeTagNormalById(e, t) {
242
- const i = this.getTagById(e);
243
- !i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = g(t), this.updateRenderPlaneTag());
244
- }
245
- changeDataById(e, t, i = !0) {
246
155
  const s = this.getTagById(e);
247
- !s || (i ? s.data = c({}, s.data, t) : s.data = p(p({}, s.data), t), this.checkPanelTag(), this.updateRenderAllTags());
156
+ !s || !s.tag3DContentSvelte || (s.tag3DContentSvelte.currentNormal = g(t), this.updateRenderPlaneTag());
248
157
  }
249
- changeStickTypeById(e, t, i = !0) {
250
- this.changeTagById(e, t, i);
158
+ changeDataById(e, t, s = !0) {
159
+ const i = this.getTagById(e);
160
+ !i || (s ? i.data = m({}, i.data, t) : Object.assign(i.data, t), this.checkPanelTag(), this.updateRenderAllTags());
251
161
  }
252
- changeTagById(e, t, i = !0) {
253
- const s = this.getTagById(e);
254
- !t || (i ? c(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = g(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
162
+ changeTagById(e, t, s = !0) {
163
+ const i = this.getTagById(e);
164
+ !t || (s ? m(i, t) : Object.assign(i, t), (i == null ? void 0 : i.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (i.tag3DContentSvelte.currentNormal = g(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
255
165
  }
256
166
  destroyTagById(e) {
257
- (Array.isArray(e) ? e : [e]).forEach((i) => {
258
- const s = this.tags.findIndex((o) => o.id === i);
259
- s !== -1 && this.tags.splice(s, 1);
167
+ (Array.isArray(e) ? e : [e]).forEach((s) => {
168
+ const i = this.tags.findIndex((o) => o.id === s);
169
+ i !== -1 && this.tags.splice(i, 1);
260
170
  }), this.updateRenderAllTags();
261
171
  }
262
172
  pauseCurrentMedia() {
263
- this.mediaStore.set({ currentMediaElement: null });
173
+ this.mediaStore.set({ currentMediaUrl: "" });
264
174
  }
265
175
  setVisibleAndUnfolded() {
266
- return m(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
267
- if (!!this.isPanorama)
268
- return this.setVisibleByPanoIndex(), e ? new Promise((t, i) => {
269
- setTimeout(() => {
270
- this.setUnfoldedByPanoIndex(), t();
271
- }, 10);
272
- }) : (this.setUnfoldedByPanoIndex(), Promise.resolve());
176
+ return p(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
177
+ return this.setVisibleByPanoIndex(), e ? new Promise((t, s) => {
178
+ setTimeout(() => {
179
+ this.setUnfoldedByPanoIndex(), t();
180
+ }, 10);
181
+ }) : (this.setUnfoldedByPanoIndex(), Promise.resolve());
273
182
  });
274
183
  }
275
184
  handleShow() {
276
185
  this.state.visible = !0, this.updateTagContainerVisible();
277
186
  }
278
187
  handleHide() {
279
- this.pauseCurrentMedia(), this.state.visible = !1, this.updateTagContainerVisible();
188
+ this.state.visible = !1, this.updateTagContainerVisible();
280
189
  }
281
190
  handleEnable() {
282
191
  this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.updateRenderAllTags();
283
192
  }
284
193
  handleDisable() {
285
- var e, t, i;
286
- this.pauseCurrentMedia(), this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e), (i = this.TagContainerSvelte) == null || i.$set({ tags: [] }), this.filter3DTag().forEach((s) => {
194
+ var e, t, s;
195
+ this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e), (s = this.TagContainerSvelte) == null || s.$set({ tags: [] }), this.filter3DTag().forEach((i) => {
287
196
  var o;
288
- (o = s.tag3DContentSvelte) == null || o.svelteApp.$destroy(), s.tag3DContentSvelte = void 0;
197
+ (o = i.tag3DContentSvelte) == null || o.svelteApp.$destroy(), i.tag3DContentSvelte = void 0;
289
198
  });
290
199
  }
291
200
  addEventListener() {
292
- const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), n = this.handleFiveCameraUpdateDebounce(), r = this.handleFivePanoArrived.bind(this), l = this.loadVideoFirstFrame.bind(this), b = this.clickhandler.bind(this);
293
- return this.five.currentMode && (this.isPanorama ? (this.handleFivePanoArrived(), this.temporaryShow({ withAnimation: !0 })) : this.temporaryHide()), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("cameraUpdate", o), e.on("cameraUpdate", n), e.on("panoArrived", r), e.on("panoArrived", l), t.on("click", b), () => {
294
- e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("cameraUpdate", o), e.off("cameraUpdate", n), e.off("panoArrived", r), e.off("panoArrived", l), t.off("click", b), this.store.eventListenerDisposer = void 0;
201
+ const { five: e, hooks: t } = this, s = this.handleFiveWantsMoveToPano.bind(this), i = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this), d = this.clickhandler.bind(this);
202
+ return e.on("wantsMoveToPano", s), e.on("modeChange", i), e.on("cameraUpdate", o), e.on("cameraUpdate", r), e.on("panoArrived", n), t.on("click", d), () => {
203
+ e.off("wantsMoveToPano", s), e.off("modeChange", i), e.off("cameraUpdate", o), e.off("cameraUpdate", r), e.off("panoArrived", n), t.off("click", d), this.store.eventListenerDisposer = void 0;
295
204
  };
296
205
  }
297
- loadVideoFirstFrame() {
298
- this.isIOSWX && this.hooks.emit("loadVideoFirstFrame");
299
- }
300
206
  addResizeListener() {
301
207
  if (!this.store.resizeObserverDisposer && !this.store.resizeObserverDisposerAdding) {
302
208
  const e = this.addResizeObserver();
@@ -310,44 +216,44 @@ class Ot extends W {
310
216
  return;
311
217
  const e = this.five.getElement(), t = () => {
312
218
  !this.state.enabled || (this.show(), this.updateRenderAllTags());
313
- }, i = () => {
219
+ }, s = () => {
314
220
  !this.state.enabled || this.hide();
315
- }, { observe: s, unobserve: o } = D(
316
- z(() => {
317
- !this.store.resizeObserverDisposer || i();
221
+ }, { observe: i, unobserve: o } = D(
222
+ N(() => {
223
+ !this.store.resizeObserverDisposer || s();
318
224
  }, 500),
319
225
  e
320
- ), { observe: n, unobserve: r } = D(
226
+ ), { observe: r, unobserve: n } = D(
321
227
  C(() => t(), 400),
322
228
  e
323
229
  );
324
- return s(), n(), () => {
325
- o(), r();
230
+ return i(), r(), () => {
231
+ o(), n();
326
232
  };
327
233
  }
328
234
  handleFiveModeChange(e) {
329
- e === "Panorama" ? this.five.once("panoArrived", () => this.temporaryShow({ withAnimation: !0 })) : this.temporaryHide();
235
+ e === "Panorama" ? this.five.once("panoArrived", () => this.temporaryShow()) : this.temporaryHide();
330
236
  }
331
237
  handleFiveWantsMoveToPano() {
332
238
  this.tags.forEach((e) => {
333
239
  const t = this.getTagConfig(e);
334
- typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = f(p({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = f(p({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
335
- }), this.updateTagContainerVisible();
240
+ typeof t.visibleConfig == "object" && t.visibleConfig.keep ? e.temporaryState = c(f({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : typeof t.visibleConfig == "object" && t.visibleConfig.alwaysShowWhenMovePano ? e.temporaryState = c(f({}, e.temporaryState), { visible: !0 }) : e.temporaryState = c(f({}, e.temporaryState), { visible: !1 });
241
+ }), this.updateRenderAllTags();
336
242
  }
337
- temporaryShow({ withAnimation: e } = { withAnimation: !1 }) {
338
- this.store.visibleWithAnimation = e, this.temporaryState.visible = !0, this.updateTagContainerVisible();
243
+ temporaryShow() {
244
+ this.temporaryState.visible = !0;
339
245
  }
340
- temporaryHide({ withAnimation: e } = { withAnimation: !1 }) {
341
- this.store.visibleWithAnimation = e, this.temporaryState.visible = !1, this.updateTagContainerVisible();
246
+ temporaryHide() {
247
+ this.temporaryState.visible = !1;
342
248
  }
343
249
  clickhandler(e) {
344
250
  if (e.target !== "TagPoint")
345
251
  return;
346
252
  if (!e.tag.state)
347
253
  return console.warn("Clickhandler: params.tag.state is undefined");
348
- const t = this.can("fold", e.tag), i = this.can("unfold", e.tag);
349
- t && i && (e.tag.state.unfolded = !e.tag.state.unfolded, e.tag.state.unfolded && this.tags.forEach((s) => {
350
- s.id !== e.tag.id && s.state && this.can("fold", s) && (s.state.unfolded = !1);
254
+ const t = this.canBe("fold", e.tag), s = this.canBe("unfold", e.tag);
255
+ t && s && (e.tag.state.unfolded = !e.tag.state.unfolded, e.tag.state.unfolded && this.tags.forEach((i) => {
256
+ i.id !== e.tag.id && i.state && this.canBe("fold", i) && (i.state.unfolded = !1);
351
257
  }), this.updateRenderAllTags());
352
258
  }
353
259
  updateRenderAllTags() {
@@ -360,8 +266,8 @@ class Ot extends W {
360
266
  temporaryState: this.temporaryState,
361
267
  withAnimation: this.store.visibleWithAnimation
362
268
  }), this.filter3DTag().forEach((t) => {
363
- var i;
364
- (i = t.tag3DContentSvelte) == null || i.svelteApp.$set({
269
+ var s;
270
+ (s = t.tag3DContentSvelte) == null || s.svelteApp.$set({
365
271
  state: this.state,
366
272
  temporaryState: this.temporaryState,
367
273
  withAnimation: this.store.visibleWithAnimation
@@ -377,62 +283,62 @@ class Ot extends W {
377
283
  this.updateRenderPointTag();
378
284
  }
379
285
  handleFivePanoArrived() {
380
- return m(this, null, function* () {
286
+ return p(this, null, function* () {
381
287
  yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
382
- e.temporaryState = f(p({}, e.temporaryState), { visible: !0 });
383
- }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible();
288
+ e.temporaryState = c(f({}, e.temporaryState), { visible: !0 });
289
+ }), this.updateRenderAllTags();
384
290
  });
385
291
  }
386
292
  setUnfoldedByCamera() {
387
293
  let e = !1;
388
294
  this.tags.forEach((t) => {
389
- const i = this.getUnfoldedByCamera(t);
390
- !t.state || i !== void 0 && (i === !0 && (e = !0), t.state.unfolded = i);
295
+ const s = this.getUnfoldedByCamera(t);
296
+ !t.state || s !== void 0 && (s === !0 && (e = !0), t.state.unfolded = s);
391
297
  }), e && this.tags.forEach((t) => {
392
- const i = this.getTagConfig(t).unfoldedConfig;
393
- typeof i == "object" && (i.autoUnfold || i.keep) || t.state && (t.state.unfolded = !1);
298
+ const s = this.getTagConfig(t).unfoldedConfig;
299
+ typeof s == "object" && (s.autoUnfold || s.disableFold || s.keep) || t.state && (t.state.unfolded = !1);
394
300
  });
395
301
  }
396
302
  updateRenderPointTag() {
397
303
  var t;
398
- const e = this.sort(this.filterPointTag());
304
+ const e = this.filterPointTag();
399
305
  if (this.setPointTagPosition(), this.TagContainerSvelte)
400
306
  this.TagContainerSvelte.$set({ tags: e, state: this.state, temporaryState: this.temporaryState });
401
307
  else {
402
- const i = (t = this.five.getElement()) == null ? void 0 : t.parentElement;
403
- if (!i)
308
+ const s = (t = this.five.getElement()) == null ? void 0 : t.parentElement;
309
+ if (!s)
404
310
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
405
- this.TagContainerSvelte = new O({
406
- target: i,
311
+ this.TagContainerSvelte = new L({
312
+ target: s,
407
313
  props: { hooks: this.hooks, tags: e, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
408
314
  });
409
315
  }
410
316
  }
411
317
  updateRenderPlaneTag() {
412
- this.sort([...this.filterPlaneTag(), ...this.filter3DPointTag()]).forEach((t) => {
413
- var i;
318
+ [...this.filterPlaneTag(), ...this.filter3DPointTag()].forEach((t) => {
319
+ var s;
414
320
  if (t.tag3DContentSvelte) {
415
- const { svelteApp: s, domContainer: o, initialNormal: n, currentNormal: r } = t.tag3DContentSvelte;
416
- if (s.$set({
321
+ const { svelteApp: i, domContainer: o, initialNormal: r, currentNormal: n } = t.tag3DContentSvelte;
322
+ if (i.$set({
417
323
  tag: t,
418
324
  hooks: this.hooks,
419
325
  state: this.state,
420
326
  temporaryState: this.temporaryState
421
- }), !n.equals(r)) {
422
- const l = new U().setFromUnitVectors(n, r);
423
- o.css3DObject.setRotationFromQuaternion(l);
327
+ }), !r.equals(n)) {
328
+ const d = new k().setFromUnitVectors(r, n);
329
+ o.css3DObject.setRotationFromQuaternion(d);
424
330
  }
425
331
  } else {
426
- if (((i = t.state) == null ? void 0 : i.visible) === !1)
332
+ if (((s = t.state) == null ? void 0 : s.visible) === !1)
427
333
  return;
428
- if (this.css3DRenderPlugin || (this.css3DRenderPlugin = _(this.five)), t.stickType === "3DPoint" && !t.normal)
334
+ if (this.css3DRenderPlugin || (this.css3DRenderPlugin = j(this.five)), t.pointType === u.PointTag && !t.normal)
429
335
  return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
430
- const s = t.stickType === "Plane" ? t.position : V(this.five.camera.position, g(t.position), g(t.normal)), o = t.stickType === "Plane" ? M(t.position) : g(t.normal), n = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(s, n);
431
- if (!r)
336
+ const i = t.pointType === u.PlaneTag ? t.position : M(this.five.camera.position, g(t.position), g(t.normal)), o = t.pointType === u.PlaneTag ? I(t.position) : g(t.normal), r = this.getTagConfig(t).tag3DConfig, n = this.css3DRenderPlugin.create3DDomContainer(i, r);
337
+ if (!n)
432
338
  return;
433
- this.store.css3DRenderDisposer.set(t.id, r.dispose), t.tag3DContentSvelte = {
434
- svelteApp: new I({
435
- target: r.container,
339
+ this.store.css3DRenderDisposer.set(t.id, n.dispose), t.tag3DContentSvelte = {
340
+ svelteApp: new B({
341
+ target: n.container,
436
342
  props: {
437
343
  tag: t,
438
344
  hooks: this.hooks,
@@ -441,7 +347,7 @@ class Ot extends W {
441
347
  temporaryState: this.temporaryState
442
348
  }
443
349
  }),
444
- domContainer: r,
350
+ domContainer: n,
445
351
  initialNormal: o,
446
352
  currentNormal: o
447
353
  };
@@ -454,18 +360,17 @@ class Ot extends W {
454
360
  this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
455
361
  }
456
362
  checkPanelTag() {
457
- this.filter2DPointTag().forEach((e) => {
363
+ this.tags.forEach((e) => {
458
364
  var t;
459
- (t = e.tag3DContentSvelte) == null || t.domContainer.dispose(), e.tag3DContentSvelte = void 0;
365
+ e.dimensionType === y.Two && e.pointType === u.PointTag && ((t = e.tag3DContentSvelte) == null || t.domContainer.dispose(), e.tag3DContentSvelte = void 0);
460
366
  });
461
367
  for (const [e, t] of this.store.css3DRenderDisposer) {
462
- const i = this.getTagById(e);
463
- (!i || i.stickType === "2DPoint") && (t == null || t(), this.store.css3DRenderDisposer.delete(e));
368
+ const s = this.getTagById(e);
369
+ (!s || s.dimensionType !== y.Three) && (t == null || t(), this.store.css3DRenderDisposer.delete(e));
464
370
  }
465
371
  }
466
372
  }
467
373
  export {
468
- Ot as PanoTagPluginController,
469
- Ot as default,
470
- Lt as pluginFlag
374
+ ae as PanoTagPluginController,
375
+ re as pluginFlag
471
376
  };
@@ -1,7 +1,7 @@
1
1
  import type { FivePlugin } from '@realsee/five';
2
2
  import PanoTagPluginController from './controller';
3
3
  export * from './controller';
4
- export * from './typings';
4
+ export * from './typings/tag';
5
5
  export declare type PanoTagPluginExportInterface = InstanceType<typeof PanoTagPluginController>;
6
6
  export declare type PanoTagPluginParamsInterface = ConstructorParameters<typeof PanoTagPluginController>[1];
7
7
  export declare const PanoTagPlugin: FivePlugin<PanoTagPluginParamsInterface, PanoTagPluginExportInterface>;