@realsee/dnalogel 2.3.8 → 2.3.9-alpha.1

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