@realsee/dnalogel 2.13.2 → 2.14.0-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/dist/CSS3DRenderPlugin/Controller.d.ts +1 -1
  2. package/dist/CSS3DRenderPlugin/index.d.ts +1 -1
  3. package/dist/CSS3DRenderPlugin/typing.d.ts +1 -1
  4. package/dist/CSS3DRenderPlugin/{CSS3DRender.d.ts → utils/three/CSS3DRender.d.ts} +9 -7
  5. package/dist/Object3DHelperPlugin/Controller.d.ts +1 -3
  6. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +9 -4
  7. package/dist/PanoTagPlugin/controller/TagRender.d.ts +5 -4
  8. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +12 -4
  9. package/dist/PanoTagPlugin/typings/controller.d.ts +4 -6
  10. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +3 -3
  11. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -9
  12. package/{libs/PanoTagPlugin/utils/model/imageModel.d.ts → dist/PanoTagPlugin/utils/model/imagePlane.d.ts} +3 -2
  13. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +5 -4
  14. package/dist/index.cjs.js +47 -47
  15. package/dist/index.js +5101 -5083
  16. package/dist/index.umd.js +43 -43
  17. package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -1
  18. package/{libs/shared-utils/Object3DHelper/utils → dist/shared-utils}/threex/domevents/index.d.ts +9 -7
  19. package/docs/assets/search.js +1 -1
  20. package/docs/classes/CSS3DRender.html +31 -31
  21. package/docs/classes/CruisePluginController.html +25 -25
  22. package/docs/classes/Magnifier.html +20 -20
  23. package/docs/classes/ModelRoomLabelController.html +11 -11
  24. package/docs/classes/Object3DHelperController.html +24 -31
  25. package/docs/classes/PaintBrush.html +15 -15
  26. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  27. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  28. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  29. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  30. package/docs/classes/PanoTagPluginController.html +90 -222
  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 +19 -19
  40. package/docs/enums/DIRECTION.html +9 -9
  41. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  42. package/docs/enums/DimensionType.html +7 -7
  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/Rotation.html +8 -8
  47. package/docs/functions/CSS3DRenderPlugin.html +5 -8
  48. package/docs/functions/CameraMovementPlugin.html +5 -8
  49. package/docs/functions/CruisePlugin.html +5 -8
  50. package/docs/functions/GuideLinePlugin.html +5 -8
  51. package/docs/functions/ItemLabelPlugin.html +5 -8
  52. package/docs/functions/MapviewFloorplanPlugin.html +5 -8
  53. package/docs/functions/ModelChassisCompassPlugin.html +5 -8
  54. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -8
  55. package/docs/functions/ModelFloorplanPlugin.html +5 -8
  56. package/docs/functions/ModelItemLabelPlugin.html +5 -8
  57. package/docs/functions/ModelRoomLabelPlugin.html +5 -8
  58. package/docs/functions/ModelTVVideoPlugin.html +5 -8
  59. package/docs/functions/ModelViewPlugin.html +5 -8
  60. package/docs/functions/Object3DHelperPlugin.html +5 -8
  61. package/docs/functions/PanoCompassPlugin.html +5 -8
  62. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -8
  63. package/docs/functions/PanoDoorLabelPlugin.html +5 -8
  64. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -8
  65. package/docs/functions/PanoMeasurePlugin.html +5 -8
  66. package/docs/functions/PanoRulerPlugin.html +5 -8
  67. package/docs/functions/PanoRulerProPlugin.html +5 -8
  68. package/docs/functions/PanoSpatialTagPlugin.html +5 -8
  69. package/docs/functions/PanoTagPlugin.html +5 -8
  70. package/docs/functions/PanoVideoPlugin.html +5 -8
  71. package/docs/functions/TopviewFloorplanPlugin.html +5 -8
  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 +5 -8
  83. package/docs/index.html +4 -7
  84. package/docs/interfaces/AddTagConfig.html +6 -6
  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 +15 -15
  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/HelperOffset.html +8 -8
  115. package/docs/interfaces/ImagePlaneGroup.html +7 -7
  116. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  117. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  118. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  119. package/docs/interfaces/MinMax.html +7 -7
  120. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  121. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  122. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  123. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  124. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  125. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  126. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  127. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  128. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  129. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  130. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  131. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  132. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  133. package/docs/interfaces/Object3DHelperState.html +8 -8
  134. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  135. package/docs/interfaces/PaintBrushAction.html +12 -12
  136. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  137. package/docs/interfaces/PaintBrushState.html +10 -10
  138. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  139. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -8
  140. package/docs/interfaces/PanoMeasureParameterType.html +14 -14
  141. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  142. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  143. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  144. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  145. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  146. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  147. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  148. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  149. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  150. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  151. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  152. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -8
  153. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -8
  154. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  155. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  156. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  157. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  158. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  159. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  160. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  161. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
  162. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
  163. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
  164. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
  165. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
  166. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
  167. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
  168. package/docs/interfaces/Point.html +8 -8
  169. package/docs/interfaces/Room.html +9 -9
  170. package/docs/interfaces/RoomInfo.html +7 -7
  171. package/docs/interfaces/RoomLabel.html +14 -14
  172. package/docs/interfaces/RoomRules.html +5 -8
  173. package/docs/interfaces/Rooms.html +5 -8
  174. package/docs/interfaces/Scissor.html +9 -9
  175. package/docs/interfaces/State.html +8 -8
  176. package/docs/interfaces/TagCacheInterface.html +12 -12
  177. package/docs/interfaces/TagConfig.html +11 -11
  178. package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
  179. package/docs/interfaces/TagIconUrl.html +11 -11
  180. package/docs/interfaces/TagObjectGroup.html +6 -6
  181. package/docs/interfaces/TagStyle.html +6 -6
  182. package/docs/interfaces/Tags.html +10 -10
  183. package/docs/interfaces/TemporaryState.html +6 -6
  184. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  185. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  186. package/docs/modules/PanoVideoPluginType.html +5 -5
  187. package/docs/modules/Util.html +5 -5
  188. package/docs/modules.html +4 -10
  189. package/docs/types/ArrayPosition.html +5 -8
  190. package/docs/types/AudioAppearance.html +5 -8
  191. package/docs/types/AudioTagTypeConfigKey.html +5 -8
  192. package/docs/types/CSS3DRenderExportType.html +5 -8
  193. package/docs/types/CSS3DRenderPluginExportType.html +5 -8
  194. package/docs/types/CSS3DRenderPluginParameterType.html +5 -8
  195. package/docs/types/ClassFunctionParameters.html +5 -8
  196. package/docs/types/Color.html +5 -8
  197. package/docs/types/ContentTypeConfigKey.html +5 -8
  198. package/docs/types/ContentTypeConfigKeySplit.html +5 -8
  199. package/docs/types/ContentTypeMap.html +5 -8
  200. package/docs/types/Create3DDomContainerReturnType.html +5 -8
  201. package/docs/types/Create3DElementReturnType.html +5 -8
  202. package/docs/types/CruisePluginExportType.html +5 -8
  203. package/docs/types/Direction-1.html +5 -8
  204. package/docs/types/Direction4.html +5 -8
  205. package/docs/types/FloorplanRuleLabels.html +5 -8
  206. package/docs/types/FloorplanServerRuleLabels.html +5 -8
  207. package/docs/types/GuideLinePluginExportType.html +5 -8
  208. package/docs/types/HelperEventMap.html +5 -8
  209. package/docs/types/LoadTagConfig.html +5 -8
  210. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -8
  211. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -8
  212. package/docs/types/MediaData.html +5 -8
  213. package/docs/types/MediaStore.html +5 -8
  214. package/docs/types/ModelElement.html +5 -8
  215. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -8
  216. package/docs/types/ModelFloorplanPluginParameterType.html +5 -8
  217. package/docs/types/ModelFloorplanPluginReturnType.html +5 -8
  218. package/docs/types/ModelRoomLabelPluginParameters.html +5 -8
  219. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -8
  220. package/docs/types/MoveArgs.html +5 -8
  221. package/docs/types/MoveOpts.html +5 -8
  222. package/docs/types/Object3DHelperEventMap.html +5 -8
  223. package/docs/types/ObjectFit.html +5 -8
  224. package/docs/types/PaintBrushEventMap.html +5 -8
  225. package/docs/types/PanoCompassPluginData.html +5 -8
  226. package/docs/types/PanoCompassPluginExportType.html +5 -8
  227. package/docs/types/PanoCompassPluginParameterType.html +5 -8
  228. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -8
  229. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -8
  230. package/docs/types/PanoIndex.html +5 -8
  231. package/docs/types/PanoMeasurePluginEvent.html +5 -8
  232. package/docs/types/PanoMeasureReturnType.html +5 -8
  233. package/docs/types/PanoSpatialTagPluginId.html +5 -8
  234. package/docs/types/PanoTagPluginExportInterface.html +5 -8
  235. package/docs/types/PanoTagPluginParamsInterface.html +5 -8
  236. package/docs/types/PanoVideoPluginParameterType.html +5 -8
  237. package/docs/types/PanoVideoPluginReturnType.html +5 -8
  238. package/docs/types/PlaneTag.html +5 -8
  239. package/docs/types/PlaneTagElement.html +5 -8
  240. package/docs/types/Point2DElement.html +5 -8
  241. package/docs/types/Point2DTag.html +5 -8
  242. package/docs/types/Point3DElement.html +5 -8
  243. package/docs/types/Point3DTag.html +5 -8
  244. package/docs/types/PointTag.html +5 -8
  245. package/docs/types/PointTagElement.html +5 -8
  246. package/docs/types/Position.html +5 -8
  247. package/docs/types/RotateArgs.html +5 -8
  248. package/docs/types/RotateOpts.html +5 -8
  249. package/docs/types/RuleLabelsKey.html +5 -8
  250. package/docs/types/RuleLabelsValue.html +5 -8
  251. package/docs/types/StickType.html +5 -8
  252. package/docs/types/Tag.html +6 -9
  253. package/docs/types/Tag2D.html +5 -8
  254. package/docs/types/Tag3D.html +5 -8
  255. package/docs/types/TagContentType.html +5 -8
  256. package/docs/types/TagDimensionType.html +5 -8
  257. package/docs/types/TagElement.html +6 -9
  258. package/docs/types/TagEvents.html +5 -8
  259. package/docs/types/TagGLTFObject.html +5 -8
  260. package/docs/types/TagHooks.html +5 -8
  261. package/docs/types/TagIconSize.html +5 -8
  262. package/docs/types/TagId.html +5 -8
  263. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -8
  264. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -8
  265. package/docs/types/WorkCode.html +5 -8
  266. package/docs/variables/FLOOR_TYPE_MAP.html +5 -8
  267. package/docs/variables/PLUGIN.html +6 -9
  268. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -8
  269. package/docs/variables/ROOM_TYPE_MAP.html +5 -8
  270. package/docs/variables/itemLabelPluginServerParams.html +5 -8
  271. package/docs/variables/modelItemLabelPluginServerParams.html +5 -8
  272. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -8
  273. package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -1
  274. package/libs/CSS3DRenderPlugin/Controller.js +2 -4
  275. package/libs/CSS3DRenderPlugin/index.d.ts +1 -1
  276. package/libs/CSS3DRenderPlugin/index.js +1 -1
  277. package/libs/CSS3DRenderPlugin/typing.d.ts +1 -1
  278. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +21 -21
  279. package/libs/CSS3DRenderPlugin/{CSS3DRender.d.ts → utils/three/CSS3DRender.d.ts} +9 -7
  280. package/libs/CSS3DRenderPlugin/{CSS3DRender.js → utils/three/CSS3DRender.js} +13 -13
  281. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +11 -11
  282. package/libs/ModelTVVideoPlugin/Plugin.js +1 -1
  283. package/libs/ModelTVVideoPlugin/index.js +1 -1
  284. package/libs/Object3DHelperPlugin/Controller.d.ts +1 -3
  285. package/libs/Object3DHelperPlugin/Controller.js +50 -52
  286. package/libs/Object3DHelperPlugin/index.js +3 -4
  287. package/libs/PanoCompassPlugin/Controller.js +1 -1
  288. package/libs/PanoCompassPlugin/index.js +1 -1
  289. package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
  290. package/libs/PanoSpatialTagPlugin/index.js +1 -1
  291. package/libs/PanoTagPlugin/Archive/deprecated.d.ts +7 -0
  292. package/libs/PanoTagPlugin/Archive/deprecated.js +4 -0
  293. package/libs/PanoTagPlugin/Archive/index.d.ts +1 -0
  294. package/libs/PanoTagPlugin/Archive/index.js +4 -0
  295. package/libs/PanoTagPlugin/Components/Common/Audio.js +93 -97
  296. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +206 -205
  297. package/libs/PanoTagPlugin/Components/Common/Media.js +115 -109
  298. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +100 -100
  299. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +66 -68
  300. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +14 -15
  301. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +4 -2
  302. package/libs/PanoTagPlugin/Components/Common/Text/MText.js +45 -45
  303. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +101 -106
  304. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +82 -84
  305. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +62 -61
  306. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +13 -13
  307. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +49 -48
  308. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +52 -51
  309. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +108 -115
  310. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +25 -36
  311. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +49 -50
  312. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +68 -70
  313. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +55 -54
  314. package/libs/PanoTagPlugin/Components/Tag/index.js +153 -163
  315. package/libs/PanoTagPlugin/Components/TagContainer.js +5 -3
  316. package/libs/PanoTagPlugin/Components/TagItem.js +80 -87
  317. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +9 -4
  318. package/libs/PanoTagPlugin/controller/TagComputer.js +80 -58
  319. package/libs/PanoTagPlugin/controller/TagRender.d.ts +5 -4
  320. package/libs/PanoTagPlugin/controller/TagRender.js +161 -153
  321. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +12 -4
  322. package/libs/PanoTagPlugin/controller/TagUtil.js +179 -77
  323. package/libs/PanoTagPlugin/controller/index.js +54 -49
  324. package/libs/PanoTagPlugin/index.js +16 -16
  325. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +4 -0
  326. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +6 -0
  327. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +93 -0
  328. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +5622 -0
  329. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +1325 -0
  330. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +173 -0
  331. package/libs/PanoTagPlugin/mocks/v1/mock1.js +122 -0
  332. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +233 -0
  333. package/libs/PanoTagPlugin/mocks/v1/mock2.js +296 -0
  334. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +22 -0
  335. package/libs/PanoTagPlugin/mocks/v1/mock3.js +32 -0
  336. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +56 -0
  337. package/libs/PanoTagPlugin/mocks/v1/mock4.js +60 -0
  338. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +13 -0
  339. package/libs/PanoTagPlugin/mocks/v1/mock5.js +17 -0
  340. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +16 -0
  341. package/libs/PanoTagPlugin/mocks/v1/mock6.js +27 -0
  342. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +22 -0
  343. package/libs/PanoTagPlugin/mocks/v1/mock7.js +228 -0
  344. package/libs/PanoTagPlugin/typings/controller.d.ts +4 -6
  345. package/libs/PanoTagPlugin/typings/index.js +7 -5
  346. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +3 -3
  347. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -9
  348. package/libs/PanoTagPlugin/typings/tag/Utils.js +5 -3
  349. package/libs/PanoTagPlugin/utils/addDebugPoints.js +6 -4
  350. package/libs/PanoTagPlugin/utils/index.js +35 -33
  351. package/{dist/PanoTagPlugin/utils/model/imageModel.d.ts → libs/PanoTagPlugin/utils/model/imagePlane.d.ts} +3 -2
  352. package/libs/PanoTagPlugin/utils/model/imagePlane.js +33 -0
  353. package/libs/PanoTagPlugin/utils/planeNormal.js +4 -2
  354. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +5 -4
  355. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +8 -4
  356. package/libs/PanoTagPlugin/utils/tagPosition.js +9 -7
  357. package/libs/PanoVideoPlugin/Controller.js +1 -1
  358. package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
  359. package/libs/PanoVideoPlugin/index.js +1 -1
  360. package/libs/base/BasePlugin.js +1 -1
  361. package/libs/index.js +31 -33
  362. package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -1
  363. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
  364. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +1 -1
  365. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -1
  366. package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -1
  367. package/libs/shared-utils/Object3DHelper/typings/index.js +1 -1
  368. package/libs/shared-utils/three/index.js +1 -1
  369. package/{dist/shared-utils/Object3DHelper/utils → libs/shared-utils}/threex/domevents/index.d.ts +9 -7
  370. package/libs/shared-utils/{Object3DHelper/utils/threex → threex}/domevents/index.js +4 -3
  371. package/package.json +1 -1
  372. package/docs/enums/PointType.html +0 -72
  373. package/docs/types/TagPointType.html +0 -272
  374. package/docs/variables/VERSION.html +0 -269
  375. package/libs/PanoTagPlugin/tsconfig.js +0 -9
  376. package/libs/PanoTagPlugin/utils/model/imageModel.js +0 -31
@@ -1,40 +1,40 @@
1
- var R = Object.defineProperty;
2
- var O = (p, m, e) => m in p ? R(p, m, { enumerable: !0, configurable: !0, writable: !0, value: e }) : p[m] = e;
3
- var l = (p, m, e) => (O(p, typeof m != "symbol" ? m + "" : m, e), e);
4
- var C = (p, m, e) => new Promise((t, i) => {
5
- var o = (a) => {
1
+ var j = Object.defineProperty;
2
+ var w = (l, m, t) => m in l ? j(l, m, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[m] = t;
3
+ var d = (l, m, t) => (w(l, typeof m != "symbol" ? m + "" : m, t), t);
4
+ var T = (l, m, t) => new Promise((e, i) => {
5
+ var o = (r) => {
6
6
  try {
7
- r(e.next(a));
8
- } catch (n) {
9
- i(n);
7
+ a(t.next(r));
8
+ } catch (s) {
9
+ i(s);
10
10
  }
11
- }, s = (a) => {
11
+ }, n = (r) => {
12
12
  try {
13
- r(e.throw(a));
14
- } catch (n) {
15
- i(n);
13
+ a(t.throw(r));
14
+ } catch (s) {
15
+ i(s);
16
16
  }
17
- }, r = (a) => a.done ? t(a.value) : Promise.resolve(a.value).then(o, s);
18
- r((e = e.apply(p, m)).next());
17
+ }, a = (r) => r.done ? e(r.value) : Promise.resolve(r.value).then(o, n);
18
+ a((t = t.apply(l, m)).next());
19
19
  });
20
- import { TagComputer as w } from "./TagComputer.js";
21
- import { Group as S, Quaternion as G, Vector3 as T, Matrix4 as b } from "three";
22
- import x from "../Components/TagContainer.js";
23
- import A from "../Components/Tag/index.js";
24
- import { arrayPositionToVector3 as D } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
25
- import { planeNormal as j } from "../utils/planeNormal.js";
26
- import { isMediaModelTag as f } from "../utils/tag/tagCheck.js";
27
- import { normalPositionToPositions as E } from "../utils/normalPositionToPositions.js";
28
- import { CSS3DRenderPlugin as V } from "../../CSS3DRenderPlugin/index.js";
29
- import { loadGLTF as k } from "../../shared-utils/three/GLTFLoader.js";
30
- import I from "../utils/model/imageModel.js";
20
+ import { TagComputer as O } from "./TagComputer.js";
21
+ import { Group as D, Quaternion as x, Vector3 as h, Matrix4 as u } from "three";
22
+ import G from "../Components/TagContainer.js";
23
+ import k from "../Components/Tag/index.js";
24
+ import { arrayPositionToVector3 as P } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
25
+ import { centerPoint as A } from "../../shared-utils/three/centerPoint.js";
26
+ import "@realsee/five/gltf-loader";
27
+ import R from "../utils/model/imagePlane.js";
28
+ import { isMediaModelTag as b } from "../utils/tag/tagCheck.js";
29
+ import { CSS3DRenderPlugin as E } from "../../CSS3DRenderPlugin/index.js";
30
+ import { loadGLTF as V } from "../../shared-utils/three/GLTFLoader.js";
31
+ import "@realsee/five";
31
32
  import "../utils/tagPosition.js";
32
- import "../../shared-utils/three/centerPoint.js";
33
+ import "../../shared-utils/three/loadTexture.js";
33
34
  import "../utils/checkRange.js";
34
35
  import "hammerjs";
35
- import "@realsee/five";
36
36
  import "@tweenjs/tween.js";
37
- import "../../CSS3DRenderPlugin/CSS3DRender.js";
37
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
38
38
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
39
39
  import "three/examples/jsm/renderers/CSS3DRenderer";
40
40
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -52,11 +52,14 @@ import "../../shared-utils/animationFrame/index.js";
52
52
  import "./TagUtil.js";
53
53
  import "object-assign-deep";
54
54
  import "../tag.config.js";
55
+ import "../utils/planeNormal.js";
56
+ import "../utils/normalPositionToPositions.js";
55
57
  import "./TagCache.js";
56
58
  import "../../base/BasePlugin.js";
57
59
  import "../../vendor/svelte/store/index.js";
58
60
  import "../../vendor/svelte/internal/index.js";
59
61
  import "../utils/device.js";
62
+ import "../../shared-utils/threex/domevents/index.js";
60
63
  import "../Components/TagItem.js";
61
64
  import "../utils/noTypecheck.js";
62
65
  import "../Components/Common/TagPoint.js";
@@ -128,163 +131,172 @@ import "../Components/Tag/LinkTag.js";
128
131
  import "../Components/Tag/CustomTag.js";
129
132
  import "../../CSS3DRenderPlugin/Controller.js";
130
133
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
131
- import "@realsee/five/gltf-loader";
132
- import "../../shared-utils/three/loadTexture.js";
133
- class $e extends w {
134
- constructor(e) {
135
- super(e);
136
- l(this, "group", new S());
137
- l(this, "imagePlaneGroup", new S());
138
- l(this, "gltfObjectGroup", new S());
139
- l(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
140
- l(this, "temporaryState", { visible: !0 });
141
- l(this, "TagContainerSvelte");
142
- l(this, "loadModel", (e) => C(this, null, function* () {
143
- var a;
144
- const t = e.data.modelUrl;
145
- if (!t)
134
+ class Ue extends O {
135
+ constructor(t) {
136
+ super(t);
137
+ d(this, "group", new D());
138
+ d(this, "imagePlaneGroup", new D());
139
+ d(this, "gltfObjectGroup", new D());
140
+ d(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
141
+ d(this, "temporaryState", { visible: !0 });
142
+ d(this, "TagContainerSvelte");
143
+ d(this, "loadModel", (t) => T(this, null, function* () {
144
+ var r;
145
+ const e = t.data.modelUrl;
146
+ if (!e)
146
147
  return;
147
- const i = k(t).then((n) => Object.assign(n.scene, { customID: e.id, isTagModel: !0 }));
148
- e.model = { promise: i };
148
+ const i = V(e).then((s) => Object.assign(s.scene, { customID: t.id, isTagModel: !0 }));
149
+ t.model = { promise: i };
149
150
  const o = yield i;
150
- if (((a = e.model) == null ? void 0 : a.promise) !== i || (e.model.object = o, !this.tags.includes(e)))
151
+ if (((r = t.model) == null ? void 0 : r.promise) !== i || (t.model.object = o, !this.tags.includes(t)))
151
152
  return;
152
- o.visible = e.state.visible, new b().fromArray(e.matrix).decompose(o.position, o.quaternion, o.scale), o.updateWorldMatrix(!0, !0), this.getVisibleByFloorIndex(e) || (o.visible = !1);
153
- const r = this.gltfObjectGroup.children.find((n) => n.customID === e.id);
154
- return r && this.gltfObjectGroup.remove(r), this.gltfObjectGroup.add(o), this.updateTagCss3DObjectMatrix(e, o), o;
153
+ o.visible = this.getCurrentVisibleState(t), new u().fromArray(t.matrix).decompose(o.position, o.quaternion, o.scale), o.updateWorldMatrix(!0, !0), o.visible = this.getVisibleByFloorIndex(t);
154
+ const a = this.gltfObjectGroup.children.find((s) => s.customID === t.id);
155
+ if (a && this.gltfObjectGroup.remove(a), this.can("renderByMesh", t)) {
156
+ if (!t.imagePlane) {
157
+ const s = t.data.mediaPosition.map(P);
158
+ t.imagePlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(P));
159
+ const p = new h().addVectors(s[0], s[2]).divideScalar(2);
160
+ t.imagePlane.position.copy(p), o.add(t.imagePlane);
161
+ }
162
+ } else
163
+ this.updateTagCss3DObjectMatrix(t, o);
164
+ return this.gltfObjectGroup.add(o), o;
155
165
  }));
156
166
  this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.imagePlaneGroup.name = "ImagePlaneGroup", this.group.add(this.gltfObjectGroup), this.group.add(this.imagePlaneGroup);
157
167
  }
158
168
  clearTags() {
159
- this.tags.forEach((e) => {
160
- var t, i;
161
- (i = (t = e.imageModel) == null ? void 0 : t.parent) == null || i.remove(e.imageModel);
169
+ this.tags.forEach((t) => {
170
+ var e, i;
171
+ (i = (e = t.imagePlane) == null ? void 0 : e.parent) == null || i.remove(t.imagePlane);
162
172
  }), this.tags = [], this.enabledModelTagSet.clear(), this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
163
173
  }
164
174
  updateRenderAllTags() {
165
- this.enabledModelTagSet.clear(), this.tags.forEach((e) => e.stickType === "Model" && this.enabledModelTagSet.add(e.id)), this.updateRenderPointTag(), this.updateRenderPlaneTag(), this.updateRenderModelTag(), this.updateRenderImageModel();
175
+ this.enabledModelTagSet.clear(), this.tags.forEach((t) => t.stickType === "Model" && this.enabledModelTagSet.add(t.id)), this.updateRenderPointTag(), this.updateRender3DDomTag(), this.updateRenderModelTag(), this.updateRenderImagePlane();
166
176
  }
167
- updateRenderImageModel() {
168
- this.sort([...this.filterImageModel]).forEach((t) => {
169
- var o, s, r, a;
170
- const i = (o = t.data.mediaData[0]) == null ? void 0 : o.url;
171
- !i || (t.imageModel && (t.imageModel.visible = (r = (s = t.state) == null ? void 0 : s.visible) != null ? r : !0), ((a = t.imageModel) == null ? void 0 : a.imageSrc) !== i && (t.imageModel = new I(i, t.position.map(D)), t.imageModel.name = "PanoTagPluginImageModel", this.imagePlaneGroup.add(t.imageModel)));
177
+ updateRenderImagePlane() {
178
+ this.sort(this.filterImagePlane).forEach((e) => {
179
+ var n, a, r, s;
180
+ const i = (n = e.data.mediaData[0]) == null ? void 0 : n.url;
181
+ if (!i || (e.imagePlane && (e.imagePlane.visible = (r = (a = e.state) == null ? void 0 : a.visible) != null ? r : !0), ((s = e.imagePlane) == null ? void 0 : s.imageSrc) === i))
182
+ return;
183
+ const o = e.position.map(P);
184
+ e.imagePlane = new R(i, o), e.imagePlane.setMatrixByCornerPoints(o), this.imagePlaneGroup.add(e.imagePlane);
172
185
  });
173
186
  }
174
- updateRenderPlaneTag() {
175
- this.sort([...this.filter3DTag]).forEach((t) => {
176
- var a, n, u;
177
- if (f(t) && ((a = t.model) == null ? void 0 : a.object) && this.updateTagCss3DObjectMatrix(t, (n = t.model) == null ? void 0 : n.object), t.tag3DContentSvelte) {
178
- const { svelteApp: d, domContainer: M, initialNormal: h, currentNormal: c } = t.tag3DContentSvelte;
179
- if (this.updateTagCss3DObjectVisible(t), d.$set({ tag: t, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !h.equals(c)) {
180
- const g = new G().setFromUnitVectors(h, c);
181
- M.css3DObject.setRotationFromQuaternion(g);
187
+ updateRender3DDomTag() {
188
+ this.sort([...this.filter3DTag]).forEach((e) => {
189
+ var i;
190
+ if (e.tag3DContentSvelte) {
191
+ const { svelteApp: o, domContainer: n, initialNormal: a, currentNormal: r } = e.tag3DContentSvelte;
192
+ if (o.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !a.equals(r)) {
193
+ const s = new x().setFromUnitVectors(a, r);
194
+ n.css3DObject.setRotationFromQuaternion(s);
182
195
  }
183
196
  return;
184
- }
185
- if (((u = t.state) == null ? void 0 : u.visible) === !1)
186
- return;
187
- if (this.css3DRenderPlugin || (this.css3DRenderPlugin = V(this.five)), t.stickType === "3DPoint" && !t.normal)
188
- return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
189
- const i = (() => {
190
- if (t.stickType === "Plane")
191
- return t.position;
192
- if (f(t))
193
- return t.data.mediaPosition;
194
- const d = t;
195
- return E(
196
- this.five.camera.position,
197
- D(d.position),
198
- D(d.normal)
199
- );
200
- })();
201
- if (!i)
202
- return;
203
- const o = function() {
204
- if (t.normal)
205
- return D(t.normal);
206
- if (t.stickType === "Plane")
207
- return j(t.position);
208
- if (t.contentType === "MediaModel")
209
- return j(i);
210
- }();
211
- if (!o)
212
- return;
213
- const s = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(i, s);
214
- !r || (this.updateTagCss3DObjectVisible(t), this.store.css3DRenderDisposer.set(t.id, r.dispose), t.tag3DContentSvelte = {
215
- svelteApp: new A({
216
- target: r.container,
217
- props: {
218
- tag: t,
219
- hooks: this.hooks,
220
- state: this.state,
221
- mediaStore: this.mediaStore,
222
- temporaryState: this.temporaryState
197
+ } else {
198
+ if (((i = e.state) == null ? void 0 : i.visible) === !1)
199
+ return;
200
+ if (this.css3DRenderPlugin || (this.css3DRenderPlugin = E(this.five)), e.stickType === "3DPoint" && !e.normal)
201
+ return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
202
+ const o = this.getPositions(e);
203
+ if (!o)
204
+ return;
205
+ const n = this.getTagNormal(e);
206
+ if (!n)
207
+ return;
208
+ const a = this.getTagConfig(e), r = a.tag3DConfig;
209
+ if (a.renderType === "Mesh" && r) {
210
+ r.mode = "behind", r.container = document.createElement("div");
211
+ const p = "black";
212
+ r.container.style.backgroundColor = p, r.container.style.border = `3px solid ${p}`;
213
+ }
214
+ const s = this.css3DRenderPlugin.create3DDomContainer(o, r);
215
+ if (!s)
216
+ return;
217
+ this.store.css3DRenderDisposer.set(e.id, [s.dispose]), this.css3DRenderPlugin.hooks.on("render", () => {
218
+ var p;
219
+ if (s.css3DObject.opacityMesh) {
220
+ const g = this.addObjectClickHandler(e, s.css3DObject.opacityMesh, (f) => {
221
+ this.hooks.emit("click", { event: f, target: "TagContent", tag: e });
222
+ });
223
+ (p = this.store.css3DRenderDisposer.get(e.id)) == null || p.push(g);
223
224
  }
224
- }),
225
- domContainer: r,
226
- initialNormal: o,
227
- currentNormal: o
228
- });
225
+ }), e.tag3DContentSvelte = {
226
+ svelteApp: new k({
227
+ target: s.container,
228
+ props: {
229
+ tag: e,
230
+ hooks: this.hooks,
231
+ state: this.state,
232
+ mediaStore: this.mediaStore,
233
+ temporaryState: this.temporaryState
234
+ }
235
+ }),
236
+ domContainer: s,
237
+ initialNormal: n,
238
+ currentNormal: n
239
+ };
240
+ }
229
241
  }), this.clearUnusedPanelTag();
230
242
  }
231
243
  updateRenderModelTag() {
232
- const e = (i) => !this.enabledModelTagSet.has(i.customID);
233
- this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(f).forEach((i) => {
244
+ const t = (i) => !this.enabledModelTagSet.has(i.customID);
245
+ this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter(b).forEach((i) => {
234
246
  var o;
235
- (o = i.model) == null || o.promise.then((s) => {
236
- s.visible = i.state.visible;
247
+ (o = i.model) == null || o.promise.then((n) => {
248
+ n.visible = this.getCurrentVisibleState(i);
237
249
  });
238
250
  });
239
251
  }
240
252
  updateTagModelVisible() {
241
- this.tags.forEach((e) => {
242
- var t, i, o;
243
- e.imageModel && (e.imageModel.visible = (o = ((t = e.state) == null ? void 0 : t.visible) && ((i = this.state) == null ? void 0 : i.visible)) != null ? o : !0);
253
+ this.tags.forEach((t) => {
254
+ var e;
255
+ t.imagePlane && (t.imagePlane.visible = this.getCurrentVisibleState(t)), (e = t.model) != null && e.object && (t.model.object.visible = this.getCurrentVisibleState(t));
244
256
  });
245
257
  }
246
- updateTagCss3DObjectMatrix(e, t) {
247
- var g, v, P, y;
248
- const i = (P = (v = (g = e.mergedConfig) == null ? void 0 : g.tag3DConfig) == null ? void 0 : v.ratio) != null ? P : 216e-5, o = (y = e.tag3DContentSvelte) == null ? void 0 : y.domContainer.css3DObject;
258
+ updateTagCss3DObjectMatrix(t, e) {
259
+ var S, v, M, y;
260
+ const i = (M = (v = (S = t.mergedConfig) == null ? void 0 : S.tag3DConfig) == null ? void 0 : v.ratio) != null ? M : 216e-5, o = (y = t.tag3DContentSvelte) == null ? void 0 : y.domContainer.css3DObject;
249
261
  if (!o)
250
262
  return;
251
- const s = f(e) ? e.data.mediaPosition : e.position;
252
- t.updateWorldMatrix(!1, !1);
253
- const r = t.matrixWorld, a = new T().fromArray(s[0]), n = new T().fromArray(s[2]), u = new T().lerpVectors(a, n, 0.5).add(new T(0, 0, 5e-4)), d = new b().setPosition(u), M = new b().makeScale(i, i, i), h = new b().multiply(r).multiply(d).multiply(M);
254
- h.decompose(o.position, o.quaternion, o.scale);
263
+ const n = b(t) ? t.data.mediaPosition : t.position;
264
+ e.updateWorldMatrix(!1, !1);
265
+ const a = e.matrixWorld, r = new h().fromArray(n[0]), s = new h().fromArray(n[2]), p = A(r, s).add(new h(0, 0, 5e-4)), g = new u().setPosition(p), f = new u().makeScale(i, i, i), C = new u().multiply(a).multiply(g).multiply(f);
266
+ C.decompose(o.position, o.quaternion, o.scale);
255
267
  const c = o.opacityMesh;
256
- !c || h.decompose(c.position, c.quaternion, c.scale);
268
+ c && C.decompose(c.position, c.quaternion, c.scale);
257
269
  }
258
- addMediaModelTag(e) {
259
- return C(this, null, function* () {
260
- const t = e.filter(f).map(this.loadModel);
261
- yield Promise.all(t), this.setModelMedialVisible(), this.updateRenderAllTags();
270
+ addMediaModelTag(t) {
271
+ return T(this, null, function* () {
272
+ const e = t.filter(b).map((i) => this.loadModel(i));
273
+ yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
262
274
  });
263
275
  }
264
276
  updateRenderPointTag() {
265
- var t;
266
- const e = this.sort(this.filterPointTag);
277
+ var e;
278
+ const t = this.sort(this.filterPointTag);
267
279
  if (this.setPointTagPosition(), this.TagContainerSvelte)
268
- this.TagContainerSvelte.$set({ tags: e, state: this.state, temporaryState: this.temporaryState });
280
+ this.TagContainerSvelte.$set({ tags: t, state: this.state, temporaryState: this.temporaryState });
269
281
  else {
270
- const i = (t = this.five.getElement()) == null ? void 0 : t.parentElement;
282
+ const i = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
271
283
  if (!i)
272
284
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
273
- this.TagContainerSvelte = new x({
285
+ this.TagContainerSvelte = new G({
274
286
  target: i,
275
- props: { hooks: this.hooks, tags: e, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
287
+ props: { hooks: this.hooks, tags: t, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
276
288
  });
277
289
  }
278
290
  }
279
291
  updateTagContainerVisible() {
280
- var e;
281
- (e = this.TagContainerSvelte) == null || e.$set({
292
+ var t;
293
+ (t = this.TagContainerSvelte) == null || t.$set({
282
294
  state: this.state,
283
295
  temporaryState: this.temporaryState,
284
296
  withAnimation: this.store.visibleWithAnimation
285
- }), this.filter3DTag.forEach((t) => {
286
- var i, o, s, r;
287
- (s = (o = (i = t.tag3DContentSvelte) == null ? void 0 : i.domContainer) == null ? void 0 : o.css3DObject) == null || s.setVisible(this.state.visible), (r = t.tag3DContentSvelte) == null || r.svelteApp.$set({
297
+ }), this.filter3DTag.forEach((e) => {
298
+ var i, o, n, a, r;
299
+ (a = (o = (i = e.tag3DContentSvelte) == null ? void 0 : i.domContainer) == null ? void 0 : o.css3DObject) == null || a.setVisible((this.state.visible && ((n = e.state) == null ? void 0 : n.visible)) !== !1), (r = e.tag3DContentSvelte) == null || r.svelteApp.$set({
288
300
  state: this.state,
289
301
  temporaryState: this.temporaryState,
290
302
  withAnimation: this.store.visibleWithAnimation
@@ -292,25 +304,21 @@ class $e extends w {
292
304
  });
293
305
  }
294
306
  disposeAllCSS3DContainer() {
295
- for (const [e, t] of this.store.css3DRenderDisposer)
296
- t == null || t();
307
+ for (const [t, e] of this.store.css3DRenderDisposer)
308
+ e == null || e.forEach((i) => i == null ? void 0 : i());
297
309
  this.store.css3DRenderDisposer = /* @__PURE__ */ new Map();
298
310
  }
299
311
  clearUnusedPanelTag() {
300
- this.filter2DPointTag.forEach((e) => {
301
- var t;
302
- (t = e.tag3DContentSvelte) == null || t.domContainer.dispose(), e.tag3DContentSvelte = void 0;
312
+ this.filter2DPointTag.forEach((t) => {
313
+ var e;
314
+ (e = t.tag3DContentSvelte) == null || e.domContainer.dispose(), t.tag3DContentSvelte = void 0;
303
315
  });
304
- for (const [e, t] of this.store.css3DRenderDisposer) {
305
- const i = this.getTagById(e);
306
- (!i || i.stickType === "2DPoint") && (t == null || t(), this.store.css3DRenderDisposer.delete(e));
316
+ for (const [t, e] of this.store.css3DRenderDisposer) {
317
+ const i = this.getTagById(t);
318
+ (!i || i.stickType === "2DPoint") && (e == null || e.forEach((o) => o == null ? void 0 : o()), this.store.css3DRenderDisposer.delete(t));
307
319
  }
308
320
  }
309
- updateTagCss3DObjectVisible(e) {
310
- var t, i, o, s, r;
311
- (r = (i = (t = e.tag3DContentSvelte) == null ? void 0 : t.domContainer) == null ? void 0 : i.css3DObject) == null || r.setVisible((s = this.state.visible && ((o = e.state) == null ? void 0 : o.visible)) != null ? s : !0), this.five.needsRender = !0;
312
- }
313
321
  }
314
322
  export {
315
- $e as TagRender
323
+ Ue as TagRender
316
324
  };
@@ -1,11 +1,12 @@
1
1
  import type { TagElement, TagContentType, StickType, TagId, TagConfig, PlaneTag, MediaStore } from '../typings';
2
+ import * as THREE from 'three';
2
3
  import type { Tag, Tags, Point2DElement, Point3DElement, PlaneTagElement, PointTagElement, Point3DTag, ModelElement } from '../typings';
3
4
  import { TagCache } from './TagCache';
4
5
  import { CSS3DRenderPluginExportType } from '../../CSS3DRenderPlugin';
5
6
  import { Five } from '@realsee/five';
6
7
  export declare abstract class TagUtil extends TagCache {
7
- config: Pick<Tags, 'globalConfig' | 'contentTypeConfig'>;
8
8
  tags: TagElement[];
9
+ config: Pick<Tags, 'globalConfig' | 'contentTypeConfig'>;
9
10
  protected mediaStore: MediaStore;
10
11
  /** css3DRenderPlugin */
11
12
  protected css3DRenderPlugin?: CSS3DRenderPluginExportType;
@@ -13,13 +14,15 @@ export declare abstract class TagUtil extends TagCache {
13
14
  /** 清理函数数组 */
14
15
  disposers: (() => any)[];
15
16
  visibleWithAnimation?: boolean;
16
- css3DRenderDisposer: Map<TagId, () => void>;
17
+ css3DRenderDisposer: Map<TagId, (() => any)[]>;
17
18
  eventListenerDisposer?: () => void;
18
19
  resizeObserverDisposer?: () => void;
19
20
  resizeObserverDisposerAdding: boolean;
20
21
  disposed: boolean;
21
22
  };
22
23
  protected get isPanorama(): boolean;
24
+ private domEvents?;
25
+ private mouseInfo?;
23
26
  protected constructor(five: Five);
24
27
  getTagById<C extends TagContentType = any, S extends StickType = any>(id: TagId): TagElement<C, S> | undefined;
25
28
  /** 暂停当前标签内进行的所有多媒体 */
@@ -33,7 +36,7 @@ export declare abstract class TagUtil extends TagCache {
33
36
  protected updateTagConfig(params?: {
34
37
  force?: boolean;
35
38
  }): void;
36
- protected can<T extends TagElement<any, any>>(action: 'show' | 'hide' | 'fold' | 'unfold' | 'renderByMesh', paramsTag: T): boolean;
39
+ protected can<T extends TagElement<any, any>>(action: 'show' | 'hide' | 'fold' | 'unfold' | 'renderByMesh' | 'renderByMeshDom', paramsTag: T): boolean;
37
40
  /**
38
41
  * @description: 获取角度
39
42
  */
@@ -42,10 +45,15 @@ export declare abstract class TagUtil extends TagCache {
42
45
  * @description: 获取距离
43
46
  */
44
47
  protected getDistance(tag: Tag<any, any>, panoIndex?: number): number;
48
+ protected getPositions(tag: TagElement<any, any>): any;
49
+ protected fiveWantMovePanoHandler: (panoIndex: number) => false | void;
50
+ protected addObjectClickHandler(tag: TagElement, object: THREE.Object3D | undefined, handler: (event: Event) => any): () => void;
51
+ protected getTagNormal(tag: TagElement<any, 'Plane'> | TagElement<any, 'Model'> | TagElement<any, '3DPoint'>): THREE.Vector3;
45
52
  protected get filterPointTag(): PointTagElement<"Image" | "Link" | "Audio" | "Text" | "ImageText" | "Video" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Custom" | "Unknown">[];
46
53
  protected get filter2DPointTag(): Point2DElement<"Image" | "Link" | "Audio" | "Text" | "ImageText" | "Video" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Custom" | "Unknown">[];
47
54
  protected get filter3DPointTag(): Point3DElement<"Image" | "Link" | "Audio" | "Text" | "ImageText" | "Video" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Custom" | "Unknown">[];
48
- protected get filterImageModel(): PlaneTagElement<"MediaPlane">[];
55
+ protected get filterImagePlane(): PlaneTagElement<"MediaPlane">[];
56
+ protected get filterMediaModel(): ModelElement<"MediaModel">[];
49
57
  protected get filterModelTag(): ModelElement<"Image" | "Link" | "Audio" | "Text" | "ImageText" | "Video" | "Sticker" | "VRLink" | "PanoLink" | "Marketing" | "MediaPlane" | "MediaModel" | "Custom" | "Unknown">[];
50
58
  protected get filter3DTag(): (TagElement<any, "Plane"> | TagElement<any, "Model"> | TagElement<any, "3DPoint">)[];
51
59
  /**