@realsee/dnalogel 2.12.0 → 2.13.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 (346) hide show
  1. package/dist/CSS3DRenderPlugin/utils/index.d.ts +0 -1
  2. package/{libs/PanoTagPlugin/controller/TagCacheController.d.ts → dist/PanoTagPlugin/controller/TagCache.d.ts} +7 -7
  3. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +3 -36
  4. package/dist/PanoTagPlugin/controller/TagRender.d.ts +58 -0
  5. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +56 -0
  6. package/dist/PanoTagPlugin/controller/index.d.ts +16 -72
  7. package/dist/PanoTagPlugin/typings/controller.d.ts +15 -16
  8. package/dist/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -0
  9. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +16 -0
  10. package/dist/PanoTagPlugin/utils/device.d.ts +1 -0
  11. package/dist/PanoTagPlugin/utils/model/imageModel.d.ts +8 -0
  12. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -7
  13. package/dist/index.cjs.js +46 -46
  14. package/dist/index.js +4599 -4535
  15. package/dist/index.umd.js +46 -46
  16. package/docs/assets/search.js +1 -1
  17. package/docs/classes/CSS3DRender.html +31 -31
  18. package/docs/classes/CruisePluginController.html +25 -25
  19. package/docs/classes/Magnifier.html +20 -20
  20. package/docs/classes/ModelRoomLabelController.html +11 -11
  21. package/docs/classes/Object3DHelperController.html +25 -25
  22. package/docs/classes/PaintBrush.html +15 -15
  23. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  24. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  25. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  26. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  27. package/docs/classes/PanoTagPluginController.html +112 -229
  28. package/docs/classes/Util.BetterTween.html +8 -8
  29. package/docs/classes/Util.FivePointSelector.html +12 -12
  30. package/docs/classes/Util.Interval.html +12 -12
  31. package/docs/classes/Util.Magnifier.html +17 -17
  32. package/docs/classes/Util.PointDomHelper.html +11 -11
  33. package/docs/classes/Util.PointHelper.html +11 -11
  34. package/docs/classes/Util.Rectangle.html +13 -13
  35. package/docs/enums/CameraMovementEffect.html +7 -7
  36. package/docs/enums/ContentType.html +19 -19
  37. package/docs/enums/DIRECTION.html +9 -9
  38. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  39. package/docs/enums/DimensionType.html +7 -7
  40. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  41. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  42. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  43. package/docs/enums/PointType.html +7 -7
  44. package/docs/enums/Rotation.html +8 -8
  45. package/docs/functions/CSS3DRenderPlugin.html +9 -6
  46. package/docs/functions/CameraMovementPlugin.html +9 -6
  47. package/docs/functions/CruisePlugin.html +9 -6
  48. package/docs/functions/GuideLinePlugin.html +9 -6
  49. package/docs/functions/ItemLabelPlugin.html +9 -6
  50. package/docs/functions/MapviewFloorplanPlugin.html +9 -6
  51. package/docs/functions/ModelChassisCompassPlugin.html +9 -6
  52. package/docs/functions/ModelEntryDoorGuidePlugin.html +9 -6
  53. package/docs/functions/ModelFloorplanPlugin.html +9 -6
  54. package/docs/functions/ModelItemLabelPlugin.html +9 -6
  55. package/docs/functions/ModelRoomLabelPlugin.html +9 -6
  56. package/docs/functions/ModelTVVideoPlugin.html +9 -6
  57. package/docs/functions/ModelViewPlugin.html +9 -6
  58. package/docs/functions/Object3DHelperPlugin.html +9 -6
  59. package/docs/functions/PanoCompassPlugin.html +9 -6
  60. package/docs/functions/PanoCursorRaycasterPlugin.html +9 -6
  61. package/docs/functions/PanoDoorLabelPlugin.html +9 -6
  62. package/docs/functions/PanoFloorplanRadarPlugin.html +9 -6
  63. package/docs/functions/PanoMeasurePlugin.html +9 -6
  64. package/docs/functions/PanoRulerPlugin.html +9 -6
  65. package/docs/functions/PanoRulerProPlugin.html +9 -6
  66. package/docs/functions/PanoSpatialTagPlugin.html +9 -6
  67. package/docs/functions/PanoTagPlugin.html +12 -14
  68. package/docs/functions/PanoVideoPlugin.html +9 -6
  69. package/docs/functions/TopviewFloorplanPlugin.html +9 -6
  70. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  71. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  72. package/docs/functions/Util.getFrameTime.html +5 -5
  73. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  74. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  75. package/docs/functions/Util.isNil.html +5 -5
  76. package/docs/functions/Util.nextFrame.html +5 -5
  77. package/docs/functions/Util.notNil.html +5 -5
  78. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  79. package/docs/functions/Util.tweenProgress.html +5 -5
  80. package/docs/functions/pluginFlag.html +9 -6
  81. package/docs/index.html +8 -5
  82. package/docs/interfaces/AddTagConfig.html +6 -6
  83. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  84. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  85. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  86. package/docs/interfaces/EventMap.html +15 -15
  87. package/docs/interfaces/FloorplanBounding.html +8 -8
  88. package/docs/interfaces/FloorplanData.html +10 -10
  89. package/docs/interfaces/FloorplanEntrance.html +11 -11
  90. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  91. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  92. package/docs/interfaces/FloorplanFloorData.html +9 -9
  93. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  94. package/docs/interfaces/FloorplanObserver.html +9 -9
  95. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  96. package/docs/interfaces/FloorplanPosition.html +7 -7
  97. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  98. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  99. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  100. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  101. package/docs/interfaces/FloorplanServerData.html +7 -7
  102. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  103. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  104. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  105. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  106. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  107. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  108. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  109. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  110. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  111. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  112. package/docs/interfaces/HelperOffset.html +8 -8
  113. package/docs/interfaces/ImagePlaneGroup.html +68 -0
  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/MinMax.html +7 -7
  118. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  119. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  120. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  121. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  122. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  123. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  124. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  125. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  126. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  127. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  128. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  129. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  130. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  131. package/docs/interfaces/Object3DHelperState.html +8 -8
  132. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  133. package/docs/interfaces/PaintBrushAction.html +12 -12
  134. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  135. package/docs/interfaces/PaintBrushState.html +10 -10
  136. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  137. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +9 -6
  138. package/docs/interfaces/PanoMeasureParameterType.html +14 -14
  139. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  140. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  141. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  142. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  143. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  144. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  145. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  146. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  147. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  148. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  149. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  150. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +9 -6
  151. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +9 -6
  152. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  153. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  154. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  155. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  156. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  157. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  158. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  159. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
  160. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
  161. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
  162. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
  163. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
  164. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
  165. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
  166. package/docs/interfaces/Point.html +8 -8
  167. package/docs/interfaces/Room.html +9 -9
  168. package/docs/interfaces/RoomInfo.html +7 -7
  169. package/docs/interfaces/RoomLabel.html +14 -14
  170. package/docs/interfaces/RoomRules.html +9 -6
  171. package/docs/interfaces/Rooms.html +9 -6
  172. package/docs/interfaces/Scissor.html +9 -9
  173. package/docs/interfaces/State.html +8 -8
  174. package/docs/interfaces/{TagCache.html → TagCacheInterface.html} +30 -30
  175. package/docs/interfaces/TagConfig.html +19 -10
  176. package/docs/interfaces/TagGLTFObjectGroup.html +68 -0
  177. package/docs/interfaces/TagIconUrl.html +11 -11
  178. package/docs/interfaces/TagObjectGroup.html +68 -0
  179. package/docs/interfaces/TagStyle.html +6 -6
  180. package/docs/interfaces/Tags.html +9 -9
  181. package/docs/interfaces/TemporaryState.html +6 -6
  182. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  183. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  184. package/docs/modules/PanoVideoPluginType.html +5 -5
  185. package/docs/modules/Util.html +5 -5
  186. package/docs/modules.html +12 -6
  187. package/docs/types/ArrayPosition.html +9 -6
  188. package/docs/types/AudioAppearance.html +9 -6
  189. package/docs/types/AudioTagTypeConfigKey.html +9 -6
  190. package/docs/types/CSS3DRenderExportType.html +9 -6
  191. package/docs/types/CSS3DRenderPluginExportType.html +9 -6
  192. package/docs/types/CSS3DRenderPluginParameterType.html +9 -6
  193. package/docs/types/ClassFunctionParameters.html +9 -6
  194. package/docs/types/Color.html +9 -6
  195. package/docs/types/ContentTypeConfigKey.html +9 -6
  196. package/docs/types/ContentTypeConfigKeySplit.html +9 -6
  197. package/docs/types/ContentTypeMap.html +9 -6
  198. package/docs/types/Create3DDomContainerReturnType.html +9 -6
  199. package/docs/types/Create3DElementReturnType.html +9 -6
  200. package/docs/types/CruisePluginExportType.html +9 -6
  201. package/docs/types/Direction-1.html +9 -6
  202. package/docs/types/Direction4.html +9 -6
  203. package/docs/types/FloorplanRuleLabels.html +9 -6
  204. package/docs/types/FloorplanServerRuleLabels.html +9 -6
  205. package/docs/types/GuideLinePluginExportType.html +9 -6
  206. package/docs/types/HelperEventMap.html +9 -6
  207. package/docs/types/LoadTagConfig.html +9 -6
  208. package/docs/types/MapviewFloorplanPluginParameterType.html +9 -6
  209. package/docs/types/MapviewFloorplanPluginReturnType.html +9 -6
  210. package/docs/types/MediaData.html +9 -6
  211. package/docs/types/MediaStore.html +9 -6
  212. package/docs/types/ModelElement.html +9 -6
  213. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +9 -6
  214. package/docs/types/ModelFloorplanPluginParameterType.html +9 -6
  215. package/docs/types/ModelFloorplanPluginReturnType.html +9 -6
  216. package/docs/types/ModelRoomLabelPluginParameters.html +9 -6
  217. package/docs/types/ModelRoomLabelPluginReturnType.html +9 -6
  218. package/docs/types/MoveArgs.html +9 -6
  219. package/docs/types/MoveOpts.html +9 -6
  220. package/docs/types/Object3DHelperEventMap.html +9 -6
  221. package/docs/types/ObjectFit.html +9 -6
  222. package/docs/types/PaintBrushEventMap.html +9 -6
  223. package/docs/types/PanoCompassPluginData.html +9 -6
  224. package/docs/types/PanoCompassPluginExportType.html +9 -6
  225. package/docs/types/PanoCompassPluginParameterType.html +9 -6
  226. package/docs/types/PanoFloorplanRadarPluginParameterType.html +9 -6
  227. package/docs/types/PanoFloorplanRadarPluginReturnType.html +9 -6
  228. package/docs/types/PanoIndex.html +9 -6
  229. package/docs/types/PanoMeasurePluginEvent.html +9 -6
  230. package/docs/types/PanoMeasureReturnType.html +9 -6
  231. package/docs/types/PanoSpatialTagPluginId.html +9 -6
  232. package/docs/types/PanoTagPluginExportInterface.html +9 -6
  233. package/docs/types/PanoTagPluginParamsInterface.html +9 -6
  234. package/docs/types/PanoVideoPluginParameterType.html +9 -6
  235. package/docs/types/PanoVideoPluginReturnType.html +9 -6
  236. package/docs/types/PlaneTag.html +9 -6
  237. package/docs/types/PlaneTagElement.html +9 -6
  238. package/docs/types/Point2DElement.html +9 -6
  239. package/docs/types/Point2DTag.html +9 -6
  240. package/docs/types/Point3DElement.html +9 -6
  241. package/docs/types/Point3DTag.html +9 -6
  242. package/docs/types/PointTag.html +9 -6
  243. package/docs/types/PointTagElement.html +9 -6
  244. package/docs/types/Position.html +9 -6
  245. package/docs/types/RotateArgs.html +9 -6
  246. package/docs/types/RotateOpts.html +9 -6
  247. package/docs/types/RuleLabelsKey.html +9 -6
  248. package/docs/types/RuleLabelsValue.html +9 -6
  249. package/docs/types/StickType.html +9 -6
  250. package/docs/types/Tag.html +9 -6
  251. package/docs/types/Tag2D.html +9 -6
  252. package/docs/types/Tag3D.html +9 -6
  253. package/docs/types/TagContentType.html +9 -6
  254. package/docs/types/TagDimensionType.html +9 -6
  255. package/docs/types/TagElement.html +10 -7
  256. package/docs/types/TagEvents.html +9 -6
  257. package/docs/types/TagGLTFObject.html +9 -6
  258. package/docs/types/TagHooks.html +9 -6
  259. package/docs/types/TagIconSize.html +9 -6
  260. package/docs/types/TagId.html +9 -6
  261. package/docs/types/TagPointType.html +9 -6
  262. package/docs/types/TopviewFloorplanPluginParameterType.html +9 -6
  263. package/docs/types/TopviewFloorplanPluginReturnType.html +9 -6
  264. package/docs/types/WorkCode.html +9 -6
  265. package/docs/variables/FLOOR_TYPE_MAP.html +9 -6
  266. package/docs/variables/PLUGIN.html +9 -6
  267. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +9 -6
  268. package/docs/variables/ROOM_TYPE_MAP.html +9 -6
  269. package/docs/variables/VERSION.html +9 -6
  270. package/docs/variables/itemLabelPluginServerParams.html +9 -6
  271. package/docs/variables/modelItemLabelPluginServerParams.html +9 -6
  272. package/docs/variables/modelRoomLabelPluginServerParams.html +9 -6
  273. package/libs/CSS3DRenderPlugin/CSS3DRender.js +2 -2
  274. package/libs/CSS3DRenderPlugin/Controller.js +2 -2
  275. package/libs/CSS3DRenderPlugin/index.js +2 -2
  276. package/libs/CSS3DRenderPlugin/utils/index.d.ts +0 -1
  277. package/libs/CSS3DRenderPlugin/utils/index.js +8 -10
  278. package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +6 -6
  279. package/libs/GuideLinePlugin/utils/getArrowMaterial.js +5 -5
  280. package/libs/ModelTVVideoPlugin/Plugin.js +1 -1
  281. package/libs/ModelTVVideoPlugin/index.js +1 -1
  282. package/libs/Object3DHelperPlugin/Controller.js +1 -1
  283. package/libs/Object3DHelperPlugin/index.js +1 -1
  284. package/libs/PanoCompassPlugin/Controller.js +1 -1
  285. package/libs/PanoCompassPlugin/index.js +1 -1
  286. package/libs/PanoMeasurePlugin/utils/mouseGroup.js +21 -21
  287. package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
  288. package/libs/PanoSpatialTagPlugin/index.js +1 -1
  289. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +1 -1
  290. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
  291. package/libs/PanoTagPlugin/Components/Tag/index.js +16 -16
  292. package/libs/PanoTagPlugin/Components/TagContainer.js +1 -1
  293. package/libs/PanoTagPlugin/Components/TagItem.js +20 -20
  294. package/{dist/PanoTagPlugin/controller/TagCacheController.d.ts → libs/PanoTagPlugin/controller/TagCache.d.ts} +7 -7
  295. package/libs/PanoTagPlugin/controller/{TagCacheController.js → TagCache.js} +11 -11
  296. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +3 -36
  297. package/libs/PanoTagPlugin/controller/TagComputer.js +168 -289
  298. package/libs/PanoTagPlugin/controller/TagRender.d.ts +58 -0
  299. package/libs/PanoTagPlugin/controller/TagRender.js +314 -0
  300. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +56 -0
  301. package/libs/PanoTagPlugin/controller/TagUtil.js +172 -0
  302. package/libs/PanoTagPlugin/controller/index.d.ts +16 -72
  303. package/libs/PanoTagPlugin/controller/index.js +170 -330
  304. package/libs/PanoTagPlugin/index.js +51 -46
  305. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +4 -0
  306. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +6 -0
  307. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +93 -0
  308. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +5622 -0
  309. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +1325 -0
  310. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +173 -0
  311. package/libs/PanoTagPlugin/mocks/v1/mock1.js +121 -0
  312. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +233 -0
  313. package/libs/PanoTagPlugin/mocks/v1/mock2.js +296 -0
  314. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +22 -0
  315. package/libs/PanoTagPlugin/mocks/v1/mock3.js +32 -0
  316. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +56 -0
  317. package/libs/PanoTagPlugin/mocks/v1/mock4.js +60 -0
  318. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +13 -0
  319. package/libs/PanoTagPlugin/mocks/v1/mock5.js +17 -0
  320. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +16 -0
  321. package/libs/PanoTagPlugin/mocks/v1/mock6.js +27 -0
  322. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +22 -0
  323. package/libs/PanoTagPlugin/mocks/v1/mock7.js +228 -0
  324. package/libs/PanoTagPlugin/typings/controller.d.ts +15 -16
  325. package/libs/PanoTagPlugin/typings/tag/TagConfig.d.ts +2 -0
  326. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +16 -0
  327. package/libs/PanoTagPlugin/utils/addDebugPoints.js +1 -1
  328. package/libs/PanoTagPlugin/utils/device.d.ts +1 -0
  329. package/libs/PanoTagPlugin/utils/device.js +4 -0
  330. package/libs/PanoTagPlugin/utils/index.js +32 -33
  331. package/libs/PanoTagPlugin/utils/model/imageModel.d.ts +8 -0
  332. package/libs/PanoTagPlugin/utils/model/imageModel.js +31 -0
  333. package/libs/PanoTagPlugin/utils/planeNormal.js +1 -1
  334. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +7 -7
  335. package/libs/PanoTagPlugin/utils/tagPosition.js +1 -1
  336. package/libs/PanoVideoPlugin/Controller.js +1 -1
  337. package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
  338. package/libs/PanoVideoPlugin/index.js +1 -1
  339. package/libs/base/BasePlugin.js +1 -1
  340. package/libs/index.js +123 -119
  341. package/libs/shared-utils/three/PointHelper.js +1 -1
  342. package/libs/shared-utils/three/loadTexture.js +19 -19
  343. package/package.json +1 -1
  344. /package/dist/{CSS3DRenderPlugin/utils → shared-utils/three}/centerPoint.d.ts +0 -0
  345. /package/libs/{CSS3DRenderPlugin/utils → shared-utils/three}/centerPoint.d.ts +0 -0
  346. /package/libs/{CSS3DRenderPlugin/utils → shared-utils/three}/centerPoint.js +0 -0
@@ -1,77 +1,95 @@
1
- var I = Object.defineProperty, L = Object.defineProperties;
2
- var V = Object.getOwnPropertyDescriptors;
3
- var F = Object.getOwnPropertySymbols;
4
- var B = Object.prototype.hasOwnProperty, x = Object.prototype.propertyIsEnumerable;
5
- var P = (h, a, e) => a in h ? I(h, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[a] = e, p = (h, a) => {
1
+ var S = Object.defineProperty, P = Object.defineProperties;
2
+ var w = Object.getOwnPropertyDescriptors;
3
+ var T = Object.getOwnPropertySymbols;
4
+ var U = Object.prototype.hasOwnProperty, F = Object.prototype.propertyIsEnumerable;
5
+ var m = (d, a, e) => a in d ? S(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, h = (d, a) => {
6
6
  for (var e in a || (a = {}))
7
- B.call(a, e) && P(h, e, a[e]);
8
- if (F)
9
- for (var e of F(a))
10
- x.call(a, e) && P(h, e, a[e]);
11
- return h;
12
- }, T = (h, a) => L(h, V(a));
13
- var l = (h, a, e) => (P(h, typeof a != "symbol" ? a + "" : a, e), e);
14
- var c = (h, a, e) => new Promise((t, i) => {
7
+ U.call(a, e) && m(d, e, a[e]);
8
+ if (T)
9
+ for (var e of T(a))
10
+ F.call(a, e) && m(d, e, a[e]);
11
+ return d;
12
+ }, g = (d, a) => P(d, w(a));
13
+ var p = (d, a, e) => (m(d, typeof a != "symbol" ? a + "" : a, e), e);
14
+ var f = (d, a, e) => new Promise((t, i) => {
15
15
  var s = (n) => {
16
16
  try {
17
17
  r(e.next(n));
18
- } catch (d) {
19
- i(d);
18
+ } catch (l) {
19
+ i(l);
20
20
  }
21
21
  }, o = (n) => {
22
22
  try {
23
23
  r(e.throw(n));
24
- } catch (d) {
25
- i(d);
24
+ } catch (l) {
25
+ i(l);
26
26
  }
27
27
  }, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, o);
28
- r((e = e.apply(h, a)).next());
28
+ r((e = e.apply(d, a)).next());
29
29
  });
30
- import { Subscribe as G } from "@realsee/five";
31
- import { Group as E, Vector3 as A, Matrix4 as S, Quaternion as N } from "three";
32
- import v from "object-assign-deep";
33
- import { writable as W } from "../../vendor/svelte/store/index.js";
34
- import z from "../Components/TagContainer.js";
35
- import _ from "../Components/Tag/index.js";
36
- import { arrayPositionToVector3 as C } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
37
- import { addDebugPoints as $ } from "../utils/addDebugPoints.js";
38
- import { planeNormal as k } from "../utils/planeNormal.js";
39
- import { isMediaModelTag as m } from "../utils/tag/tagCheck.js";
40
- import { waitFiveModelLoaded as q } from "../utils/actionAfterFiveModelLoad.js";
41
- import { normalPositionToPositions as H } from "../utils/normalPositionToPositions.js";
42
- import { debounce as j } from "../utils/debounce.js";
43
- import { throttle as J } from "../utils/throttle.js";
44
- import { resizeObserver as U } from "../utils/resizeObserver.js";
45
- import { TagComputer as Q } from "./TagComputer.js";
46
- import { CSS3DRenderPlugin as X } from "../../CSS3DRenderPlugin/index.js";
47
- import K from "../utils/tag/format.js";
48
- import { generateBlankAudio as Y, AudioNamespace as Z } from "../../shared-utils/audio.js";
49
- import { loadGLTF as ee } from "../../shared-utils/three/GLTFLoader.js";
30
+ import { Subscribe as E } from "@realsee/five";
31
+ import c from "object-assign-deep";
32
+ import { arrayPositionToVector3 as A } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
33
+ import { addDebugPoints as M } from "../utils/addDebugPoints.js";
34
+ import "three";
35
+ import { isMediaModelTag as u } from "../utils/tag/tagCheck.js";
36
+ import { waitFiveModelLoaded as I } from "../utils/actionAfterFiveModelLoad.js";
37
+ import { debounce as C } from "../utils/debounce.js";
38
+ import { throttle as R } from "../utils/throttle.js";
39
+ import { resizeObserver as y } from "../utils/resizeObserver.js";
40
+ import B from "../utils/tag/format.js";
41
+ import { generateBlankAudio as O, AudioNamespace as _ } from "../../shared-utils/audio.js";
42
+ import { TagRender as k } from "./TagRender.js";
43
+ import "./TagComputer.js";
44
+ import "../utils/tagPosition.js";
45
+ import "../../shared-utils/three/centerPoint.js";
46
+ import "../utils/checkRange.js";
47
+ import "hammerjs";
48
+ import "@tweenjs/tween.js";
49
+ import "../../CSS3DRenderPlugin/CSS3DRender.js";
50
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
51
+ import "three/examples/jsm/renderers/CSS3DRenderer";
52
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
53
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
54
+ import "../../CSS3DRenderPlugin/utils/even.js";
55
+ import "../../shared-utils/Subscribe.js";
56
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
57
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
58
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
59
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
60
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
61
+ import "../../shared-utils/isNil.js";
62
+ import "../../shared-utils/animationFrame/BetterTween.js";
63
+ import "../../shared-utils/animationFrame/index.js";
64
+ import "./TagUtil.js";
65
+ import "../tag.config.js";
66
+ import "../utils/planeNormal.js";
67
+ import "./TagCache.js";
68
+ import "../../base/BasePlugin.js";
69
+ import "../../vendor/svelte/store/index.js";
50
70
  import "../../vendor/svelte/internal/index.js";
71
+ import "../utils/device.js";
72
+ import "../Components/TagContainer.js";
51
73
  import "../Components/TagItem.js";
52
- import "../utils/noTypecheck.js";
53
- import "../Components/Common/TagPoint.js";
54
- import "../Components/Common/Shadow.js";
55
- import "../../vendor/svelte/transition/index.js";
56
- import "../../vendor/svelte/easing/index.js";
57
- import "../Components/Common/Icon/Icon.js";
58
- import "../utils/getImageInfo.js";
59
- import "../utils/px2rem.js";
60
- import "../Assets/Icon.js";
74
+ import "../Components/Tag/index.js";
61
75
  import "../Components/Tag/TextTag/index.js";
62
76
  import "../Components/Tag/TextTag/TextTag.js";
63
77
  import "../Components/Common/Line/Straight.js";
78
+ import "../../vendor/svelte/transition/index.js";
79
+ import "../../vendor/svelte/easing/index.js";
64
80
  import "../../shared-utils/uuid.js";
81
+ import "../Components/Common/Shadow.js";
65
82
  import "../Components/Common/Text/FlyMText.js";
66
83
  import "../Components/Common/Text/FlyText.js";
67
84
  import "animejs";
68
- import "../../shared-utils/isNil.js";
69
85
  import "../utils/search.js";
70
86
  import "../utils/constants.js";
71
87
  import "../Components/Common/Arrow.js";
88
+ import "../Assets/Icon.js";
72
89
  import "../utils/doUtil.js";
73
90
  import "../Components/Tag/TextTag/TextPlaneTag.js";
74
91
  import "../Components/Common/Text/MText.js";
92
+ import "../utils/px2rem.js";
75
93
  import "../Components/Tag/ImageTextTag.js";
76
94
  import "../Components/Common/Line/Polyline.js";
77
95
  import "../Components/Common/Media.js";
@@ -106,23 +124,7 @@ import "../../vendor/svelte-carousel/src/utils/ProgressManager.js";
106
124
  import "../../vendor/svelte-carousel/src/utils/interval.js";
107
125
  import "../Components/Common/MediaItem.js";
108
126
  import "../Components/Tag/MarketingTag.js";
109
- import "hammerjs";
110
- import "@tweenjs/tween.js";
111
- import "../../CSS3DRenderPlugin/CSS3DRender.js";
112
- import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
113
- import "three/examples/jsm/renderers/CSS3DRenderer";
114
- import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
115
- import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
116
- import "../../CSS3DRenderPlugin/utils/even.js";
117
- import "../../shared-utils/Subscribe.js";
118
- import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
119
- import "../../CSS3DRenderPlugin/utils/centerPoint.js";
120
- import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
121
- import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
122
- import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
123
- import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
124
- import "../../shared-utils/animationFrame/BetterTween.js";
125
- import "../../shared-utils/animationFrame/index.js";
127
+ import "../utils/noTypecheck.js";
126
128
  import "../Components/Tag/AudioTag/index.js";
127
129
  import "../Components/Tag/AudioTag/AudioTag.js";
128
130
  import "../Components/Common/Audio.js";
@@ -131,82 +133,56 @@ import "../Components/Common/Icon/audioIcon.js";
131
133
  import "../Components/Tag/AudioTag/AudioPlaneTag.js";
132
134
  import "../Components/Tag/MediaPlane.js";
133
135
  import "../Components/Tag/LinkTag.js";
136
+ import "../Components/Common/Icon/Icon.js";
137
+ import "../utils/getImageInfo.js";
134
138
  import "../Components/Tag/CustomTag.js";
135
- import "../tag.config.js";
136
- import "../utils/tagPosition.js";
137
- import "../utils/checkRange.js";
138
- import "./TagCacheController.js";
139
- import "../../base/BasePlugin.js";
139
+ import "../Components/Common/TagPoint.js";
140
+ import "../utils/normalPositionToPositions.js";
141
+ import "../../CSS3DRenderPlugin/index.js";
140
142
  import "../../CSS3DRenderPlugin/Controller.js";
141
143
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
144
+ import "../../shared-utils/three/GLTFLoader.js";
142
145
  import "@realsee/five/gltf-loader";
143
- const M = "DnalogelPlugin-PanoTagPlugin", te = !1, di = (h) => `${M}--${h}`;
144
- class li extends Q {
146
+ import "../utils/model/imageModel.js";
147
+ import "../../shared-utils/three/loadTexture.js";
148
+ const D = "Dnalogel-PanoTagPlugin", qt = (d) => `${D}--${d}`;
149
+ class Kt extends k {
145
150
  constructor(e, t) {
146
151
  super(e);
147
- l(this, "state", { enabled: !0, visible: !0 });
148
- l(this, "params");
149
- l(this, "debug");
150
- l(this, "css3DRenderPlugin");
151
- l(this, "TagContainerSvelte");
152
- l(this, "temporaryState", { visible: !0 });
153
- l(this, "mediaStore", W({
154
- currentMediaElement: null
152
+ p(this, "state", { enabled: !0, visible: !0 });
153
+ p(this, "params");
154
+ p(this, "debug");
155
+ p(this, "changeTagModel", (e, t) => f(this, null, function* () {
156
+ e.data = c({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
155
157
  }));
156
- l(this, "group", new E());
157
- l(this, "gltfObjectGroup", new E());
158
- l(this, "isIOSWX", navigator.userAgent.toLowerCase().indexOf("micromessenger") !== -1 && navigator.userAgent.toLowerCase().indexOf("iphone") !== -1);
159
- l(this, "store", {
160
- disposers: [],
161
- disposed: !1,
162
- resizeObserverDisposerAdding: !1,
163
- css3DRenderDisposer: /* @__PURE__ */ new Map()
164
- });
165
- l(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
166
- l(this, "changeTagModel", (e, t) => c(this, null, function* () {
167
- e.data = v({}, e.data, t), yield this.loadModel(e), this.updateRenderAllTags();
168
- }));
169
- l(this, "disposedErrorLog", () => {
170
- console.error(`${M} is disposed`);
171
- });
172
- l(this, "handleFiveInitAnimationEnded", () => {
158
+ p(this, "handleFiveInitAnimationEnded", () => {
173
159
  const e = this.five.getCurrentState().mode;
174
160
  this.tags.forEach((t) => {
175
- m(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
161
+ u(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
176
162
  }), this.updateRenderAllTags(), this.updateRenderAllTags();
177
163
  });
178
- l(this, "handleFiveModelShownFloorChange", () => {
164
+ p(this, "handleFiveModelShownFloorChange", () => {
179
165
  this.tags.forEach((e) => {
180
- !m(e) || (e.state.visible = this.getVisible(e));
166
+ !u(e) || (e.state.visible = this.getVisible(e));
181
167
  }), this.updateRenderAllTags();
182
168
  });
183
- l(this, "loadModel", (e) => c(this, null, function* () {
184
- var n;
185
- const t = e.data.modelUrl;
186
- if (!t)
187
- return;
188
- const i = ee(t).then((d) => Object.assign(d.scene, { customID: e.id, isTagModel: !0 }));
189
- e.model = { promise: i };
190
- const s = yield i;
191
- if (((n = e.model) == null ? void 0 : n.promise) !== i || (e.model.object = s, !this.tags.includes(e)))
192
- return;
193
- s.visible = e.state.visible, new S().fromArray(e.matrix).decompose(s.position, s.quaternion, s.scale), s.updateWorldMatrix(!0, !0), this.getVisibleByFloorIndex(e) || (s.visible = !1);
194
- const r = this.gltfObjectGroup.children.find((d) => d.customID === e.id);
195
- return r && this.gltfObjectGroup.remove(r), this.gltfObjectGroup.add(s), this.updateTagCss3DObjectMatrix(e, s), s;
196
- }));
197
- this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup), this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, Y(1, { namespace: Z.PlayAudio }), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this }), this.state.enabled && this.five.scene.add(this.group);
169
+ this.params = h({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, O(1, { namespace: _.PlayAudio });
170
+ try {
171
+ Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ = this;
172
+ } catch (i) {
173
+ }
198
174
  }
199
175
  load(e, t) {
200
- return c(this, null, function* () {
176
+ return f(this, null, function* () {
201
177
  var s, o;
202
- this.clearTags(), console.info(M, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = v({}, this.config, {
178
+ this.clearTags(), console.info(D, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = c({}, this.config, {
203
179
  globalConfig: (s = e.globalConfig) != null ? s : {},
204
180
  contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
205
181
  });
206
182
  const i = yield this.addTag(e.tagList, t);
207
183
  if (this.debug)
208
184
  try {
209
- $(this.five, this.tags);
185
+ M(this.five, this.tags);
210
186
  } catch (r) {
211
187
  console.error(r);
212
188
  }
@@ -214,97 +190,107 @@ class li extends Q {
214
190
  });
215
191
  }
216
192
  addTag(e, t) {
217
- return c(this, null, function* () {
193
+ return f(this, null, function* () {
218
194
  const s = (Array.isArray(e) ? e : [e]).map((o) => {
219
195
  const r = this.getTagConfig(o);
220
- return T(p({}, o), {
221
- state: p({ visible: void 0, unfolded: te }, r.initialState),
222
- hooks: new G(),
223
- clickable: r.clickable,
224
- mergedConfig: r
196
+ return g(h({}, o), {
197
+ state: h({ visible: void 0, unfolded: this.can("fold", o) ? !1 : void 0 }, r.initialState),
198
+ hooks: new E(),
199
+ mergedConfig: r,
200
+ unfold: () => this.changeUnfoldedById(o.id, !0),
201
+ fold: () => this.changeUnfoldedById(o.id, !1),
202
+ enable: () => this.changeEnabledById(o.id, !0),
203
+ disable: () => this.changeEnabledById(o.id, !1),
204
+ destroy: () => this.destroyTagById(o.id)
225
205
  });
226
206
  }).filter((o) => o.position);
227
- return s.forEach(K), this.tags.push(...s), q(this.five).then(() => {
207
+ return s.forEach(B), this.tags.push(...s), I(this.five).then(() => f(this, null, function* () {
228
208
  var o, r, n;
229
- return 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(), this.addMediaModelTag(s);
230
- });
209
+ this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (n = t == null ? void 0 : t.withAnimation) != null ? n : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), yield this.addMediaModelTag(s);
210
+ }));
231
211
  });
232
212
  }
233
213
  changeConfig(e, t = !0) {
234
- t ? this.config = v({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
214
+ t ? this.config = c({}, this.config, e) : this.config = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
235
215
  }
236
216
  changeGlobalConfig(e, t = !0) {
237
- t ? this.config.globalConfig = v({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
217
+ t ? this.config.globalConfig = c({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig({ force: !0 }), this.updateRenderAllTags();
238
218
  }
239
- clearTags() {
240
- this.tags = [], this.enabledModelTagSet.clear(), this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
219
+ changeContentTypeConfig(e, t, i = !0) {
220
+ this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = c({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.clearCache(), this.updateRenderAllTags();
241
221
  }
242
222
  show(e) {
243
- return c(this, null, function* () {
223
+ return f(this, null, function* () {
224
+ if (this.checkDisposed())
225
+ return;
244
226
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
245
- if (this.store.disposed)
246
- return this.disposedErrorLog();
247
227
  this.setState({ visible: !0 }, { userAction: t, visibleWithAnimation: i }), this.hooks.emit("show", { userAction: t, withAnimation: i });
248
228
  });
249
229
  }
250
230
  hide(e) {
251
- return c(this, null, function* () {
231
+ return f(this, null, function* () {
232
+ if (this.checkDisposed())
233
+ return;
252
234
  const { userAction: t = !0, withAnimation: i = !1 } = e != null ? e : {};
253
- if (this.store.disposed)
254
- return this.disposedErrorLog();
255
235
  this.setState({ visible: !1 }, { userAction: t, visibleWithAnimation: i }), this.hooks.emit("hide", { userAction: t, withAnimation: i });
256
236
  });
257
237
  }
258
238
  enable(e) {
239
+ if (this.checkDisposed())
240
+ return;
259
241
  const { userAction: t = !0 } = e != null ? e : {};
260
- if (this.store.disposed)
261
- return this.disposedErrorLog();
262
- this.five.scene.children.includes(this.group) || this.five.scene.add(this.group), this.setState({ enabled: !0 }, { userAction: t }), this.hooks.emit("enable", { userAction: t }), this.five.needsRender = !0;
242
+ this.setState({ enabled: !0 }, { userAction: t }), this.hooks.emit("enable", { userAction: t });
263
243
  }
264
244
  disable(e) {
245
+ if (this.checkDisposed())
246
+ return;
265
247
  const { userAction: t = !0 } = e != null ? e : {};
266
- if (this.store.disposed)
267
- return this.disposedErrorLog();
268
- this.setState({ enabled: !1 }, { userAction: t }), this.five.scene.remove(this.group), this.hooks.emit("disable", { userAction: t }), this.five.needsRender = !0;
269
- }
270
- dispose() {
271
- var e, t, i, s, o, r;
272
- this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag().forEach((n) => {
273
- var d;
274
- return (d = n.tag3DContentSvelte) == null ? void 0 : d.svelteApp.$destroy();
275
- }), this.tags = [], (t = this.store.disposers) == null || t.forEach((n) => n == null ? void 0 : n()), this.store.disposers = [], this.store.disposed = !0, (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (r = (o = this.store).resizeObserverDisposer) == null || r.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.gltfObjectGroup.remove(...this.gltfObjectGroup.children), this.clearCache(), this.five.needsRender = !0, this.hooks.emit("dispose");
248
+ this.setState({ enabled: !1 }, { userAction: t }), this.hooks.emit("disable", { userAction: t });
276
249
  }
277
250
  setState(e, t) {
278
- if (this.store.disposed)
279
- return this.disposedErrorLog();
280
- const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = p({}, this.state);
251
+ if (this.checkDisposed())
252
+ return;
253
+ const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = h({}, this.state);
281
254
  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 });
282
255
  }
256
+ dispose() {
257
+ var e, t, i, s, o, r;
258
+ this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag.forEach((n) => {
259
+ var l;
260
+ return (l = n.tag3DContentSvelte) == null ? void 0 : l.svelteApp.$destroy();
261
+ }), this.tags = [], (t = this.store.disposers) == null || t.forEach((n) => n == null ? void 0 : n()), this.store.disposers = [], (s = (i = this.store).eventListenerDisposer) == null || s.call(i), this.store.eventListenerDisposer = void 0, (r = (o = this.store).resizeObserverDisposer) == null || r.call(o), this.store.resizeObserverDisposer = void 0, this.store.resizeObserverDisposerAdding = !1, this.five.scene.remove(this.group), this.group.remove(...this.group.children), this.gltfObjectGroup.remove(...this.gltfObjectGroup.children), this.clearCache(), this.five.needsRender = !0, this.store.disposed = !0, this.hooks.emit("dispose");
262
+ }
283
263
  changeUnfoldedById(e, t) {
284
- var o;
264
+ var r;
285
265
  const i = this.getTagById(e);
286
266
  if (!i)
287
267
  return;
288
- let s = !1;
289
- if (t && this.can("unfold", i) && (i.state.unfolded = !0, s = !0), t && (this.can("unfold", i) ? (i.state.unfolded = !0, s = !0) : console.warn(`tag ${e} cannot be unfolded`)), t || (this.can("fold", i) ? (i.state.unfolded = !1, s = !0) : console.warn(`tag ${e} cannot be folded`)), s) {
290
- const r = this.filterPointTag();
291
- (o = this.TagContainerSvelte) == null || o.$set({ tags: r });
292
- }
268
+ const s = this.can("fold", i), o = this.can("unfold", i);
269
+ if (s && o) {
270
+ i.state.unfolded = t;
271
+ const n = this.filterPointTag;
272
+ (r = this.TagContainerSvelte) == null || r.$set({ tags: n });
273
+ } else
274
+ console.warn(`tag ${e} cannot be ${t ? "unfolded" : "folded"}}`);
275
+ }
276
+ changeEnabledById(e, t) {
277
+ const i = this.getTagById(e);
278
+ !i || (i.enabled = t, this.updateRenderAllTags());
293
279
  }
294
280
  changeTagNormalById(e, t) {
295
281
  const i = this.getTagById(e);
296
- !i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = C(t), this.updateRenderPlaneTag());
282
+ !i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = A(t), this.updateRenderPlaneTag());
297
283
  }
298
284
  changeDataById(e, t, i = !0) {
299
285
  const s = this.getTagById(e);
300
- !s || (i ? s.data = v({}, s.data, t) : s.data = p(p({}, s.data), t), this.checkPanelTag(), this.updateRenderAllTags());
286
+ !s || (i ? s.data = c({}, s.data, t) : s.data = h(h({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags());
301
287
  }
302
288
  changeStickTypeById(e, t, i = !0) {
303
289
  this.changeTagById(e, t, i);
304
290
  }
305
291
  changeTagById(e, t, i = !0) {
306
292
  const s = this.getTagById(e);
307
- !t || (i ? v(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = C(t.normal)), this.updateRenderAllTags(), this.checkPanelTag());
293
+ !t || (i ? c(s, t) : Object.assign(s, t), (s == null ? void 0 : s.tag3DContentSvelte) && (t == null ? void 0 : t.normal) && (s.tag3DContentSvelte.currentNormal = A(t.normal)), this.updateRenderAllTags(), this.clearUnusedPanelTag());
308
294
  }
309
295
  destroyTagById(e) {
310
296
  (Array.isArray(e) ? e : [e]).forEach((i) => {
@@ -312,29 +298,10 @@ class li extends Q {
312
298
  s !== -1 && this.tags.splice(s, 1);
313
299
  }), this.updateRenderAllTags();
314
300
  }
315
- pauseCurrentMedia() {
316
- this.mediaStore.set({ currentMediaElement: null });
317
- }
318
- updateTagCss3DObjectMatrix(e, t) {
319
- var D, w, R, O;
320
- const i = (R = (w = (D = e.mergedConfig) == null ? void 0 : D.tag3DConfig) == null ? void 0 : w.ratio) != null ? R : 216e-5, s = (O = e.tag3DContentSvelte) == null ? void 0 : O.domContainer.css3DObject;
321
- if (!s)
322
- return;
323
- const o = m(e) ? e.data.mediaPosition : e.position;
324
- t.updateWorldMatrix(!1, !1);
325
- const r = t.matrixWorld, n = new A().fromArray(o[0]), d = new A().fromArray(o[2]), f = new A().lerpVectors(n, d, 0.5).add(new A(0, 0, 5e-4)), g = new S().setPosition(f), y = new S().makeScale(i, i, i), b = new S().multiply(r).multiply(g).multiply(y);
326
- b.decompose(s.position, s.quaternion, s.scale);
327
- const u = s.opacityMesh;
328
- !u || b.decompose(u.position, u.quaternion, u.scale);
329
- }
330
- updateTagCss3DObjectVisible(e) {
331
- var t, i, s, o, r;
332
- (r = (i = (t = e.tag3DContentSvelte) == null ? void 0 : t.domContainer) == null ? void 0 : i.css3DObject) == null || r.setVisible(this.state.visible && ((o = (s = e.state) == null ? void 0 : s.visible) != null ? o : !0)), this.five.needsRender = !0;
333
- }
334
301
  setVisibleAndUnfolded() {
335
- return c(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
302
+ return f(this, arguments, function* ({ withAnimation: e } = { withAnimation: !1 }) {
336
303
  if (!!this.isPanorama)
337
- return this.setVisibleByPanoIndex(), e ? new Promise((t, i) => {
304
+ return this.setVisibleByPanoIndex(), e ? new Promise((t) => {
338
305
  setTimeout(() => {
339
306
  this.setUnfoldedByPanoIndex(), t();
340
307
  }, 10);
@@ -342,30 +309,27 @@ class li extends Q {
342
309
  });
343
310
  }
344
311
  handleShow() {
345
- this.state.visible = !0, this.group.visible = !0, this.updateTagContainerVisible(), this.five.needsRender = !0;
312
+ this.state.visible = !0, this.group.visible = !0, this.updateTagContainerVisible(), this.updateTagModelVisible(), this.five.needsRender = !0;
346
313
  }
347
314
  handleHide() {
348
- this.pauseCurrentMedia(), this.state.visible = !1, this.group.visible = !1, this.updateTagContainerVisible(), this.five.needsRender = !0;
315
+ this.pauseCurrentMedia(), this.state.visible = !1, this.group.visible = !1, this.updateTagContainerVisible(), this.updateTagModelVisible(), this.five.needsRender = !0;
349
316
  }
350
317
  handleEnable() {
351
- this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.updateRenderAllTags();
318
+ this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.five.scene.children.includes(this.group) || this.five.scene.add(this.group), this.updateRenderAllTags(), this.five.needsRender = !0;
352
319
  }
353
320
  handleDisable() {
354
321
  var e, t, i;
355
- 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) => {
322
+ this.pauseCurrentMedia(), this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e), this.five.scene.remove(this.group), (i = this.TagContainerSvelte) == null || i.$set({ tags: [] }), this.filter3DTag.forEach((s) => {
356
323
  var o;
357
324
  (o = s.tag3DContentSvelte) == null || o.svelteApp.$destroy(), s.tag3DContentSvelte = void 0;
358
- });
325
+ }), this.five.needsRender = !0;
359
326
  }
360
327
  addEventListener() {
361
- const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this), d = this.loadVideoFirstFrame.bind(this), f = this.clickhandler.bind(this), g = this.five.currentMode;
362
- return this.handleFiveModeChange(g), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", r), e.on("panoArrived", n), e.on("panoArrived", d), t.on("click", f), () => {
363
- e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", r), e.off("panoArrived", n), e.off("panoArrived", d), t.off("click", f), this.store.eventListenerDisposer = void 0;
328
+ const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this), l = this.loadVideoFirstFrame.bind(this), v = this.clickhandler.bind(this), b = this.five.currentMode;
329
+ return b && this.handleFiveModeChange(b), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", r), e.on("panoArrived", n), e.on("panoArrived", l), t.on("click", v), () => {
330
+ e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", r), e.off("panoArrived", n), e.off("panoArrived", l), t.off("click", v), this.store.eventListenerDisposer = void 0;
364
331
  };
365
332
  }
366
- loadVideoFirstFrame() {
367
- this.isIOSWX && this.hooks.emit("loadVideoFirstFrame");
368
- }
369
333
  addResizeListener() {
370
334
  if (!this.store.resizeObserverDisposer && !this.store.resizeObserverDisposerAdding) {
371
335
  const e = this.addResizeObserver();
@@ -381,13 +345,13 @@ class li extends Q {
381
345
  !this.state.enabled || (this.show(), this.updateRenderAllTags());
382
346
  }, i = () => {
383
347
  !this.state.enabled || this.hide();
384
- }, { observe: s, unobserve: o } = U(
385
- J(() => {
348
+ }, { observe: s, unobserve: o } = y(
349
+ R(() => {
386
350
  !this.store.resizeObserverDisposer || i();
387
351
  }, 500),
388
352
  e
389
- ), { observe: r, unobserve: n } = U(
390
- j(() => t(), 400),
353
+ ), { observe: r, unobserve: n } = y(
354
+ C(() => t(), 400),
391
355
  e
392
356
  );
393
357
  return s(), r(), () => {
@@ -396,21 +360,15 @@ class li extends Q {
396
360
  }
397
361
  handleFiveModeChange(e) {
398
362
  this.setModelMedialVisible(), this.tags.forEach((t) => {
399
- m(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
363
+ u(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
400
364
  }), this.updateRenderAllTags(), this.updateRenderAllTags();
401
365
  }
402
366
  handleFiveWantsMoveToPano() {
403
367
  this.tags.forEach((e) => {
404
368
  const t = this.getTagConfig(e);
405
- typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = T(p({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = T(p({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
369
+ typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = g(h({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = g(h({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
406
370
  }), this.updateTagContainerVisible();
407
371
  }
408
- temporaryShow({ withAnimation: e } = { withAnimation: !1 }) {
409
- this.store.visibleWithAnimation = e, this.temporaryState.visible = !0, this.updateTagContainerVisible();
410
- }
411
- temporaryHide({ withAnimation: e } = { withAnimation: !1 }) {
412
- this.store.visibleWithAnimation = e, this.temporaryState.visible = !1, this.updateTagContainerVisible();
413
- }
414
372
  clickhandler(e) {
415
373
  if (e.target !== "TagPoint")
416
374
  return;
@@ -421,26 +379,8 @@ class li extends Q {
421
379
  s.id !== e.tag.id && s.state && this.can("fold", s) && (s.state.unfolded = !1);
422
380
  }), this.updateRenderAllTags());
423
381
  }
424
- updateRenderAllTags() {
425
- this.enabledModelTagSet.clear(), this.tags.forEach((e) => e.stickType === "Model" && this.enabledModelTagSet.add(e.id)), this.updateRenderPointTag(), this.updateRenderPlaneTag(), this.updateRenderModelTag();
426
- }
427
- updateTagContainerVisible() {
428
- var e;
429
- (e = this.TagContainerSvelte) == null || e.$set({
430
- state: this.state,
431
- temporaryState: this.temporaryState,
432
- withAnimation: this.store.visibleWithAnimation
433
- }), this.filter3DTag().forEach((t) => {
434
- var i, s, o, r;
435
- (o = (s = (i = t.tag3DContentSvelte) == null ? void 0 : i.domContainer) == null ? void 0 : s.css3DObject) == null || o.setVisible(this.state.visible), (r = t.tag3DContentSvelte) == null || r.svelteApp.$set({
436
- state: this.state,
437
- temporaryState: this.temporaryState,
438
- withAnimation: this.store.visibleWithAnimation
439
- });
440
- });
441
- }
442
382
  handleFiveCameraUpdateDebounce() {
443
- return j(() => {
383
+ return C(() => {
444
384
  this.setUnfoldedByCamera(), this.updateRenderAllTags();
445
385
  }, 100);
446
386
  }
@@ -448,9 +388,9 @@ class li extends Q {
448
388
  this.updateRenderPointTag();
449
389
  }
450
390
  handleFivePanoArrived() {
451
- return c(this, null, function* () {
391
+ return f(this, null, function* () {
452
392
  this.setModelMedialVisible(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
453
- e.temporaryState = T(p({}, e.temporaryState), { visible: !0 });
393
+ e.temporaryState = g(h({}, e.temporaryState), { visible: !0 });
454
394
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
455
395
  });
456
396
  }
@@ -464,113 +404,13 @@ class li extends Q {
464
404
  typeof i == "object" && (i.autoUnfold || i.keep) || t.state && (t.state.unfolded = !1);
465
405
  });
466
406
  }
467
- updateRenderPointTag() {
468
- var t;
469
- const e = this.sort(this.filterPointTag());
470
- if (this.setPointTagPosition(), this.TagContainerSvelte)
471
- this.TagContainerSvelte.$set({ tags: e, state: this.state, temporaryState: this.temporaryState });
472
- else {
473
- const i = (t = this.five.getElement()) == null ? void 0 : t.parentElement;
474
- if (!i)
475
- return console.error("updateRenderPlaneTag: tag2DContainer not found");
476
- this.TagContainerSvelte = new z({
477
- target: i,
478
- props: { hooks: this.hooks, tags: e, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
479
- });
480
- }
481
- }
482
- updateRenderPlaneTag() {
483
- this.sort([...this.filterPlaneTag(), ...this.filter3DPointTag(), ...this.filterModelTag()]).forEach((t) => {
484
- var n, d, f;
485
- if (m(t) && ((n = t.model) == null ? void 0 : n.object) && this.updateTagCss3DObjectMatrix(t, (d = t.model) == null ? void 0 : d.object), t.tag3DContentSvelte) {
486
- const { svelteApp: g, domContainer: y, initialNormal: b, currentNormal: u } = t.tag3DContentSvelte;
487
- if (this.updateTagCss3DObjectVisible(t), g.$set({
488
- tag: t,
489
- hooks: this.hooks,
490
- state: this.state,
491
- temporaryState: this.temporaryState
492
- }), !b.equals(u)) {
493
- const D = new N().setFromUnitVectors(b, u);
494
- y.css3DObject.setRotationFromQuaternion(D);
495
- }
496
- return;
497
- }
498
- if (((f = t.state) == null ? void 0 : f.visible) === !1)
499
- return;
500
- if (this.css3DRenderPlugin || (this.css3DRenderPlugin = X(this.five)), t.stickType === "3DPoint" && !t.normal)
501
- return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
502
- const i = (() => t.stickType === "Plane" ? t.position : m(t) ? t.data.mediaPosition : H(
503
- this.five.camera.position,
504
- C(t.position),
505
- C(t.normal)
506
- ))();
507
- if (!i)
508
- return;
509
- const s = function() {
510
- if (t.normal)
511
- return C(t.normal);
512
- if (t.stickType === "Plane")
513
- return k(t.position);
514
- if (t.contentType === "MediaModel")
515
- return k(i);
516
- }();
517
- if (!s)
518
- return;
519
- const o = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(i, o);
520
- !r || (this.updateTagCss3DObjectVisible(t), this.store.css3DRenderDisposer.set(t.id, r.dispose), t.tag3DContentSvelte = {
521
- svelteApp: new _({
522
- target: r.container,
523
- props: {
524
- tag: t,
525
- hooks: this.hooks,
526
- state: this.state,
527
- mediaStore: this.mediaStore,
528
- temporaryState: this.temporaryState
529
- }
530
- }),
531
- domContainer: r,
532
- initialNormal: s,
533
- currentNormal: s
534
- });
535
- }), this.checkPanelTag();
536
- }
537
- updateRenderModelTag() {
538
- const e = (i) => !this.enabledModelTagSet.has(i.customID);
539
- this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(m).forEach((i) => {
540
- var s;
541
- (s = i.model) == null || s.promise.then((o) => {
542
- o.visible = i.state.visible;
543
- });
544
- });
545
- }
546
- disposeAllCSS3DContainer() {
547
- for (const [e, t] of this.store.css3DRenderDisposer)
548
- t == null || t();
549
- this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
550
- }
551
- checkPanelTag() {
552
- this.filter2DPointTag().forEach((e) => {
553
- var t;
554
- (t = e.tag3DContentSvelte) == null || t.domContainer.dispose(), e.tag3DContentSvelte = void 0;
555
- });
556
- for (const [e, t] of this.store.css3DRenderDisposer) {
557
- const i = this.getTagById(e);
558
- (!i || i.stickType === "2DPoint") && (t == null || t(), this.store.css3DRenderDisposer.delete(e));
559
- }
560
- }
561
- addMediaModelTag(e) {
562
- return c(this, null, function* () {
563
- const t = e.filter(m).map(this.loadModel);
564
- yield Promise.all(t), this.setModelMedialVisible(), this.updateRenderAllTags();
565
- });
566
- }
567
407
  changeTagMode(e, t) {
568
408
  var i, s, o, r, n;
569
409
  ((o = (s = (i = e.tag3DContentSvelte) == null ? void 0 : i.domContainer) == null ? void 0 : s.css3DObject) == null ? void 0 : o.mode) !== t && ((r = e.config) != null && r.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (n = this.store.css3DRenderDisposer.get(e.id)) == null || n(), e.tag3DContentSvelte = void 0);
570
410
  }
571
411
  }
572
412
  export {
573
- li as PanoTagPluginController,
574
- li as default,
575
- di as pluginFlag
413
+ Kt as PanoTagPluginController,
414
+ Kt as default,
415
+ qt as pluginFlag
576
416
  };