@realsee/dnalogel 2.13.2-dev.2 → 2.14.0-alpha.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 (358) 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 +5083 -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 +4 -7
  48. package/docs/functions/CameraMovementPlugin.html +4 -7
  49. package/docs/functions/CruisePlugin.html +4 -7
  50. package/docs/functions/GuideLinePlugin.html +5 -8
  51. package/docs/functions/ItemLabelPlugin.html +4 -7
  52. package/docs/functions/MapviewFloorplanPlugin.html +4 -7
  53. package/docs/functions/ModelChassisCompassPlugin.html +4 -7
  54. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -7
  55. package/docs/functions/ModelFloorplanPlugin.html +4 -7
  56. package/docs/functions/ModelItemLabelPlugin.html +4 -7
  57. package/docs/functions/ModelRoomLabelPlugin.html +4 -7
  58. package/docs/functions/ModelTVVideoPlugin.html +4 -7
  59. package/docs/functions/ModelViewPlugin.html +4 -7
  60. package/docs/functions/Object3DHelperPlugin.html +4 -7
  61. package/docs/functions/PanoCompassPlugin.html +4 -7
  62. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -7
  63. package/docs/functions/PanoDoorLabelPlugin.html +4 -7
  64. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -7
  65. package/docs/functions/PanoMeasurePlugin.html +4 -7
  66. package/docs/functions/PanoRulerPlugin.html +4 -7
  67. package/docs/functions/PanoRulerProPlugin.html +4 -7
  68. package/docs/functions/PanoSpatialTagPlugin.html +4 -7
  69. package/docs/functions/PanoTagPlugin.html +4 -7
  70. package/docs/functions/PanoVideoPlugin.html +4 -7
  71. package/docs/functions/TopviewFloorplanPlugin.html +4 -7
  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 +160 -154
  321. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +12 -4
  322. package/libs/PanoTagPlugin/controller/TagUtil.js +171 -85
  323. package/libs/PanoTagPlugin/controller/index.js +54 -49
  324. package/libs/PanoTagPlugin/index.js +16 -16
  325. package/libs/PanoTagPlugin/mocks/v1/mock1.js +3 -2
  326. package/libs/PanoTagPlugin/typings/controller.d.ts +4 -6
  327. package/libs/PanoTagPlugin/typings/index.js +7 -5
  328. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +3 -3
  329. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -9
  330. package/libs/PanoTagPlugin/typings/tag/Utils.js +5 -3
  331. package/libs/PanoTagPlugin/utils/addDebugPoints.js +6 -4
  332. package/libs/PanoTagPlugin/utils/index.js +35 -33
  333. package/{dist/PanoTagPlugin/utils/model/imageModel.d.ts → libs/PanoTagPlugin/utils/model/imagePlane.d.ts} +3 -2
  334. package/libs/PanoTagPlugin/utils/model/imagePlane.js +33 -0
  335. package/libs/PanoTagPlugin/utils/planeNormal.js +4 -2
  336. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +5 -4
  337. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +8 -4
  338. package/libs/PanoTagPlugin/utils/tagPosition.js +9 -7
  339. package/libs/PanoVideoPlugin/Controller.js +1 -1
  340. package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
  341. package/libs/PanoVideoPlugin/index.js +1 -1
  342. package/libs/base/BasePlugin.js +3 -3
  343. package/libs/index.js +31 -33
  344. package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -1
  345. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
  346. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +1 -1
  347. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -1
  348. package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -1
  349. package/libs/shared-utils/Object3DHelper/typings/index.js +1 -1
  350. package/libs/shared-utils/three/index.js +1 -1
  351. package/{dist/shared-utils/Object3DHelper/utils → libs/shared-utils}/threex/domevents/index.d.ts +9 -7
  352. package/libs/shared-utils/{Object3DHelper/utils/threex → threex}/domevents/index.js +4 -3
  353. package/package.json +1 -1
  354. package/docs/enums/PointType.html +0 -72
  355. package/docs/types/TagPointType.html +0 -272
  356. package/docs/variables/VERSION.html +0 -269
  357. package/libs/PanoTagPlugin/tsconfig.js +0 -9
  358. package/libs/PanoTagPlugin/utils/model/imageModel.js +0 -31
@@ -1,150 +1,231 @@
1
- var h = Object.defineProperty;
2
- var y = (c, d, e) => d in c ? h(c, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[d] = e;
3
- var a = (c, d, e) => (y(c, typeof d != "symbol" ? d + "" : d, e), e);
4
- import T from "object-assign-deep";
5
- import * as C from "three";
6
- import { DefaultConfig as v } from "../tag.config.js";
7
- import { anyPositionToVector3 as m } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
8
- import { planeNormal as b } from "../utils/planeNormal.js";
9
- import { tagPosition as k, getTagPosition as P } from "../utils/tagPosition.js";
10
- import { TagCache as D } from "./TagCache.js";
11
- import { writable as w } from "../../vendor/svelte/store/index.js";
12
- import { isIOSWX as M } from "../utils/device.js";
1
+ var T = Object.defineProperty;
2
+ var y = (u, c, e) => c in u ? T(u, c, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[c] = e;
3
+ var l = (u, c, e) => (y(u, typeof c != "symbol" ? c + "" : c, e), e);
4
+ import C from "object-assign-deep";
5
+ import * as P from "three";
6
+ import { DefaultConfig as D } from "../tag.config.js";
7
+ import { anyPositionToVector3 as E, arrayPositionToVector3 as h } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
8
+ import { planeNormal as p } from "../utils/planeNormal.js";
9
+ import { tagPosition as k, getTagPosition as w } from "../utils/tagPosition.js";
10
+ import { normalPositionToPositions as M } from "../utils/normalPositionToPositions.js";
11
+ import { TagCache as b } from "./TagCache.js";
12
+ import { writable as I } from "../../vendor/svelte/store/index.js";
13
+ import { isIOSWX as A } from "../utils/device.js";
14
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
15
+ import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
16
+ import "@realsee/five";
17
+ import { isMediaPlaneTag as x, isMediaModelTag as v, isPlaneTag as H } from "../utils/tag/tagCheck.js";
18
+ import { DomEvents as L } from "../../shared-utils/threex/domevents/index.js";
19
+ import "@realsee/five/gltf-loader";
20
+ import "../../shared-utils/three/loadTexture.js";
13
21
  import "../../shared-utils/three/centerPoint.js";
14
- import "../utils/tag/tagCheck.js";
15
22
  import "../../base/BasePlugin.js";
16
23
  import "../../shared-utils/Subscribe.js";
17
24
  import "../../vendor/svelte/internal/index.js";
18
- class z extends D {
25
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
26
+ import "three/examples/jsm/renderers/CSS3DRenderer";
27
+ import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
28
+ import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
29
+ import "../../CSS3DRenderPlugin/utils/even.js";
30
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
31
+ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
32
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
33
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
34
+ class de extends b {
19
35
  constructor(e) {
20
36
  super(e);
21
- a(this, "config", v);
22
- a(this, "tags", []);
23
- a(this, "mediaStore", w({
37
+ l(this, "tags", []);
38
+ l(this, "config", D);
39
+ l(this, "mediaStore", I({
24
40
  currentMediaElement: null
25
41
  }));
26
- a(this, "css3DRenderPlugin");
27
- a(this, "store", {
42
+ l(this, "css3DRenderPlugin");
43
+ l(this, "store", {
28
44
  disposers: [],
29
45
  disposed: !1,
30
46
  resizeObserverDisposerAdding: !1,
31
47
  css3DRenderDisposer: /* @__PURE__ */ new Map()
32
48
  });
49
+ l(this, "domEvents");
50
+ l(this, "mouseInfo");
51
+ l(this, "fiveWantMovePanoHandler", () => {
52
+ var e;
53
+ if ((e = this.mouseInfo) != null && e.isDown)
54
+ return !1;
55
+ });
56
+ const t = this.five.getElement();
57
+ t && (this.domEvents = new L(this.five.camera, t)), this.five.on("wantsMoveToPano", this.fiveWantMovePanoHandler), this.store.disposers.push(() => {
58
+ this.five.off("wantsMoveToPano", this.fiveWantMovePanoHandler);
59
+ });
33
60
  }
34
61
  get isPanorama() {
35
62
  return this.five.currentMode === "Panorama";
36
63
  }
37
64
  getTagById(e) {
38
- const o = this.tags.find((i) => i.id === e);
39
- if (!o) {
65
+ const t = this.tags.find((i) => i.id === e);
66
+ if (!t) {
40
67
  console.warn(`error: can not find tag id ${e} by getTagById()`);
41
68
  return;
42
69
  }
43
- return o;
70
+ return t;
44
71
  }
45
72
  pauseCurrentMedia() {
46
73
  this.mediaStore.set({ currentMediaElement: null });
47
74
  }
48
75
  getTagConfig(e) {
49
- var t, f;
76
+ var n, r;
50
77
  if (!e)
51
- return (t = this.config.globalConfig) != null ? t : {};
52
- const o = {};
53
- this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((g) => {
54
- const n = g;
55
- if (o[n])
78
+ return (n = this.config.globalConfig) != null ? n : {};
79
+ const t = {};
80
+ this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((a) => {
81
+ const s = a;
82
+ if (t[s])
56
83
  return;
57
- const r = n.split("-");
58
- if (r.length === 1) {
59
- const [s] = r;
60
- e.contentType === s && (o[n] = this.config.contentTypeConfig[n]);
84
+ const o = s.split("-");
85
+ if (o.length === 1) {
86
+ const [f] = o;
87
+ e.contentType === f && (t[s] = this.config.contentTypeConfig[s]);
61
88
  }
62
- if (r.length === 2) {
63
- const [s = "Any", l = "Any"] = r;
64
- (e.stickType === s || s === "Any") && (e.contentType === l || l === "Any") && (o[n] = this.config.contentTypeConfig[n]);
89
+ if (o.length === 2) {
90
+ const [f = "Any", d = "Any"] = o;
91
+ (e.stickType === f || f === "Any") && (e.contentType === d || d === "Any") && (t[s] = this.config.contentTypeConfig[s]);
65
92
  }
66
- if (r.length === 3) {
67
- const [s = "Any", l, p] = r;
68
- if (l === "Audio" && e.contentType === "Audio") {
69
- const u = e;
70
- (u.stickType === s || s === "Any") && u.data.appearance === p && (o[n] = this.config.contentTypeConfig[n]);
93
+ if (o.length === 3) {
94
+ const [f = "Any", d, g] = o;
95
+ if (d === "Audio" && e.contentType === "Audio") {
96
+ const m = e;
97
+ (m.stickType === f || f === "Any") && m.data.appearance === g && (t[s] = this.config.contentTypeConfig[s]);
71
98
  }
72
99
  }
73
100
  });
74
- const i = T({}, this.config.globalConfig, ...Object.values(o), e.config);
75
- return typeof i.unfoldedConfig == "object" && (i.unfoldedConfig.disableFold && (i.unfoldedConfig = { keep: "unfolded" }), i.unfoldedConfig.disableUnfold && (i.unfoldedConfig = { keep: "folded" }), i.unfoldedConfig.keep && (i.unfoldedConfig = { keep: i.unfoldedConfig.keep })), typeof i.visibleConfig == "object" && i.visibleConfig.keep && (i.visibleConfig = { keep: i.visibleConfig.keep, visibleFiveMode: (f = i.visibleConfig) == null ? void 0 : f.visibleFiveMode }), i;
101
+ const i = C({}, this.config.globalConfig, ...Object.values(t), e.config);
102
+ return typeof i.unfoldedConfig == "object" && (i.unfoldedConfig.disableFold && (i.unfoldedConfig = { keep: "unfolded" }), i.unfoldedConfig.disableUnfold && (i.unfoldedConfig = { keep: "folded" }), i.unfoldedConfig.keep && (i.unfoldedConfig = { keep: i.unfoldedConfig.keep })), typeof i.visibleConfig == "object" && i.visibleConfig.keep && (i.visibleConfig = { keep: i.visibleConfig.keep, visibleFiveMode: (r = i.visibleConfig) == null ? void 0 : r.visibleFiveMode }), i;
76
103
  }
77
104
  loadVideoFirstFrame() {
78
- M && this.hooks.emit("loadVideoFirstFrame");
105
+ A && this.hooks.emit("loadVideoFirstFrame");
79
106
  }
80
107
  updateTagConfig(e) {
81
- e != null && e.force && this.clearCache(), this.tags.forEach((o) => {
82
- const i = this.getTagConfig(o);
83
- o.mergedConfig = i;
108
+ e != null && e.force && this.clearCache(), this.tags.forEach((t) => {
109
+ const i = this.getTagConfig(t);
110
+ t.mergedConfig = i;
84
111
  });
85
112
  }
86
- can(e, o) {
87
- const i = o, t = this.getTagConfig(i);
88
- if (!t || typeof t != "object")
113
+ can(e, t) {
114
+ const i = t, n = this.getTagConfig(i);
115
+ if (!n || typeof n != "object")
89
116
  return !0;
90
117
  if (e === "show" || e === "hide") {
91
- if (!t.visibleConfig || typeof t.visibleConfig != "object")
118
+ if (!n.visibleConfig || typeof n.visibleConfig != "object")
92
119
  return !0;
93
- if (e === "show" && t.visibleConfig.keep === "hidden" || e === "hide" && (t.visibleConfig.keep === "visible" || t.visibleConfig.alwaysShowWhenMovePano))
120
+ if (e === "show" && n.visibleConfig.keep === "hidden" || e === "hide" && (n.visibleConfig.keep === "visible" || n.visibleConfig.alwaysShowWhenMovePano))
94
121
  return !1;
95
122
  }
96
123
  if (e === "fold" || e === "unfold") {
97
- if (!t.unfoldedConfig || typeof t.unfoldedConfig != "object")
124
+ if (!n.unfoldedConfig || typeof n.unfoldedConfig != "object")
98
125
  return !0;
99
- if (e === "fold" && t.unfoldedConfig.keep === "unfolded" || e === "unfold" && t.unfoldedConfig.keep === "folded")
126
+ if (e === "fold" && n.unfoldedConfig.keep === "unfolded" || e === "unfold" && n.unfoldedConfig.keep === "folded")
100
127
  return !1;
101
128
  }
102
129
  if (e === "renderByMesh")
103
- if (i.contentType === "MediaPlane" && i.stickType === "Plane") {
104
- const f = i.data.mediaData;
105
- return f.length === 1 && f[0].type === "Image" && t.renderType === "Mesh";
130
+ if (x(i) || v(i)) {
131
+ const r = i.data.mediaData;
132
+ return r.length === 1 && r[0].type === "Image" && n.renderType === "Mesh";
106
133
  } else
107
134
  return !1;
108
135
  return !0;
109
136
  }
110
- getAngle(e, o) {
111
- var f, g, n;
112
- const i = (f = this.five.panoIndex) != null ? f : o;
137
+ getAngle(e, t) {
138
+ var r, a, s;
139
+ const i = (r = this.five.panoIndex) != null ? r : t;
113
140
  if (i === void 0)
114
141
  throw new Error(`getDistance(): fivePanoIndex is ${i}`);
115
- const t = this.getCache({ panoIndex: o, id: e.id });
116
- if (t.angle !== void 0)
117
- return t.angle;
142
+ const n = this.getCache({ panoIndex: t, id: e.id });
143
+ if (n.angle !== void 0)
144
+ return n.angle;
118
145
  {
119
- const r = (n = (g = this.five.work) == null ? void 0 : g.observers[i]) == null ? void 0 : n.position;
120
- if (r === void 0)
121
- throw new Error(`getAngleRange(): observerPosition is ${r}`);
122
- const s = (() => e.stickType === "3DPoint" ? m(e.normal) : b(e.position))();
123
- if (!s)
146
+ const o = (s = (a = this.five.work) == null ? void 0 : a.observers[i]) == null ? void 0 : s.position;
147
+ if (o === void 0)
148
+ throw new Error(`getAngleRange(): observerPosition is ${o}`);
149
+ const f = (() => e.stickType === "3DPoint" ? E(e.normal) : p(e.position))();
150
+ if (!f)
151
+ return;
152
+ const d = k(e.position);
153
+ if (!d)
124
154
  return;
125
- const l = new C.Vector3().copy(r).sub(k(e.position)), p = s.angleTo(l) * 180 / Math.PI;
126
- return t.angle = p, t.angle;
155
+ const g = new P.Vector3().copy(o).sub(d), m = f.angleTo(g) * 180 / Math.PI;
156
+ return n.angle = m, n.angle;
127
157
  }
128
158
  }
129
- getDistance(e, o) {
130
- var f, g, n;
131
- const i = (f = this.five.panoIndex) != null ? f : o;
159
+ getDistance(e, t) {
160
+ var r, a, s;
161
+ const i = (r = this.five.panoIndex) != null ? r : t;
132
162
  if (i === void 0)
133
163
  throw new Error(`getDistance(): fivePanoIndex is ${i}`);
134
- const t = this.getCache({ panoIndex: o, id: e.id });
135
- if (t.distance !== void 0)
136
- return t.distance;
164
+ const n = this.getCache({ panoIndex: t, id: e.id });
165
+ if (n.distance !== void 0)
166
+ return n.distance;
137
167
  {
138
- const r = (n = (g = this.five.work) == null ? void 0 : g.observers[i]) == null ? void 0 : n.position;
139
- if (r === void 0)
140
- throw new Error(`getDistance(): observerPosition is ${r}`);
141
- const s = P(e);
142
- if (!s)
168
+ const o = (s = (a = this.five.work) == null ? void 0 : a.observers[i]) == null ? void 0 : s.position;
169
+ if (o === void 0)
170
+ throw new Error(`getDistance(): observerPosition is ${o}`);
171
+ const f = w(e);
172
+ if (!f)
143
173
  return -1;
144
- const l = r.distanceTo(s);
145
- return t.distance = l, l;
174
+ const d = o.distanceTo(f);
175
+ return n.distance = d, d;
146
176
  }
147
177
  }
178
+ getPositions(e) {
179
+ if (H(e))
180
+ return e.position;
181
+ if (v(e))
182
+ return e.data.mediaPosition;
183
+ const t = e;
184
+ return M(
185
+ this.five.camera.position,
186
+ h(t.position),
187
+ h(t.normal)
188
+ );
189
+ }
190
+ addObjectClickHandler(e, t) {
191
+ if (!e || !this.domEvents)
192
+ return () => {
193
+ };
194
+ const i = (s) => {
195
+ const o = s.origDomEvent;
196
+ this.mouseInfo = {
197
+ x: o.clientX,
198
+ y: o.clientY,
199
+ isDown: !0,
200
+ mouseDownTimestamp: Date.now()
201
+ };
202
+ }, n = (s) => {
203
+ const o = s.origDomEvent;
204
+ !this.mouseInfo || (this.mouseInfo.isDown && this.mouseInfo.x === o.clientX && this.mouseInfo.y === o.clientY && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && t(o), this.mouseInfo = void 0);
205
+ }, r = (s) => {
206
+ const o = s.origDomEvent;
207
+ this.mouseInfo = {
208
+ x: Math.floor(o.touches[0].clientX),
209
+ y: Math.floor(o.touches[0].clientY),
210
+ isDown: !0,
211
+ mouseDownTimestamp: Date.now()
212
+ };
213
+ }, a = (s) => {
214
+ const o = s.origDomEvent;
215
+ !this.mouseInfo || (this.mouseInfo.isDown && this.mouseInfo.x === Math.floor(o.changedTouches[o.changedTouches.length - 1].clientX) && this.mouseInfo.y === Math.floor(o.changedTouches[o.changedTouches.length - 1].clientY) && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && t(o), this.mouseInfo = void 0);
216
+ };
217
+ return this.domEvents.addEventListener(e, "mousedown", i, !1), this.domEvents.addEventListener(e, "mouseup", n, !1), this.domEvents.addEventListener(e, "touchstart", r, !1), this.domEvents.addEventListener(e, "touchend", a, !1), () => {
218
+ !this.domEvents || (this.mouseInfo = void 0, this.domEvents.removeEventListener(e, "mousedown", i), this.domEvents.removeEventListener(e, "mouseup", n), this.domEvents.removeEventListener(e, "touchstart", r), this.domEvents.removeEventListener(e, "touchend", a));
219
+ };
220
+ }
221
+ getTagNormal(e) {
222
+ if (e.normal)
223
+ return h(e.normal);
224
+ if (e.stickType === "Plane")
225
+ return p(e.position);
226
+ if (e.stickType === "Model")
227
+ return p(this.getPositions(e));
228
+ }
148
229
  get filterPointTag() {
149
230
  return this.tags.filter((e) => e.stickType === "2DPoint" || e.stickType === "3DPoint").filter((e) => e.position);
150
231
  }
@@ -154,8 +235,13 @@ class z extends D {
154
235
  get filter3DPointTag() {
155
236
  return this.tags.filter((e) => e.stickType === "3DPoint").filter((e) => e.position);
156
237
  }
157
- get filterImageModel() {
158
- return this.tags.filter((e) => this.can("renderByMesh", e));
238
+ get filterImagePlane() {
239
+ return this.tags.filter(
240
+ (e) => e.contentType === "MediaPlane" && e.stickType === "Plane" && this.can("renderByMesh", e)
241
+ );
242
+ }
243
+ get filterMediaModel() {
244
+ return this.tags.filter((e) => e.stickType === "Model" && e.contentType === "MediaModel");
159
245
  }
160
246
  get filterModelTag() {
161
247
  return this.tags.filter((e) => e.stickType === "Model");
@@ -168,5 +254,5 @@ class z extends D {
168
254
  }
169
255
  }
170
256
  export {
171
- z as TagUtil
257
+ de as TagUtil
172
258
  };
@@ -1,43 +1,45 @@
1
1
  var S = Object.defineProperty, P = Object.defineProperties;
2
- var w = Object.getOwnPropertyDescriptors;
2
+ var U = Object.getOwnPropertyDescriptors;
3
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) => {
4
+ var F = Object.prototype.hasOwnProperty, E = Object.prototype.propertyIsEnumerable;
5
+ var u = (d, a, e) => a in d ? S(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, l = (d, a) => {
6
6
  for (var e in a || (a = {}))
7
- U.call(a, e) && m(d, e, a[e]);
7
+ F.call(a, e) && u(d, e, a[e]);
8
8
  if (T)
9
9
  for (var e of T(a))
10
- F.call(a, e) && m(d, e, a[e]);
10
+ E.call(a, e) && u(d, e, a[e]);
11
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);
12
+ }, m = (d, a) => P(d, U(a));
13
+ var p = (d, a, e) => (u(d, typeof a != "symbol" ? a + "" : a, e), e);
14
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 (l) {
19
- i(l);
18
+ } catch (h) {
19
+ i(h);
20
20
  }
21
21
  }, o = (n) => {
22
22
  try {
23
23
  r(e.throw(n));
24
- } catch (l) {
25
- i(l);
24
+ } catch (h) {
25
+ i(h);
26
26
  }
27
27
  }, r = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(s, o);
28
28
  r((e = e.apply(d, a)).next());
29
29
  });
30
- import { Subscribe as E } from "@realsee/five";
30
+ import { Subscribe as w } from "@realsee/five";
31
31
  import c from "object-assign-deep";
32
32
  import { arrayPositionToVector3 as A } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
33
33
  import { addDebugPoints as M } from "../utils/addDebugPoints.js";
34
34
  import "three";
35
- import { isMediaModelTag as u } from "../utils/tag/tagCheck.js";
35
+ import "@realsee/five/gltf-loader";
36
+ import "../../shared-utils/three/loadTexture.js";
37
+ import { isMediaModelTag as v } from "../utils/tag/tagCheck.js";
36
38
  import { waitFiveModelLoaded as I } from "../utils/actionAfterFiveModelLoad.js";
37
39
  import { debounce as C } from "../utils/debounce.js";
38
- import { throttle as R } from "../utils/throttle.js";
40
+ import { throttle as B } from "../utils/throttle.js";
39
41
  import { resizeObserver as y } from "../utils/resizeObserver.js";
40
- import B from "../utils/tag/format.js";
42
+ import R from "../utils/tag/format.js";
41
43
  import { generateBlankAudio as O, AudioNamespace as _ } from "../../shared-utils/audio.js";
42
44
  import { TagRender as k } from "./TagRender.js";
43
45
  import "./TagComputer.js";
@@ -46,7 +48,7 @@ import "../../shared-utils/three/centerPoint.js";
46
48
  import "../utils/checkRange.js";
47
49
  import "hammerjs";
48
50
  import "@tweenjs/tween.js";
49
- import "../../CSS3DRenderPlugin/CSS3DRender.js";
51
+ import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
50
52
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
51
53
  import "three/examples/jsm/renderers/CSS3DRenderer";
52
54
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -64,11 +66,13 @@ import "../../shared-utils/animationFrame/index.js";
64
66
  import "./TagUtil.js";
65
67
  import "../tag.config.js";
66
68
  import "../utils/planeNormal.js";
69
+ import "../utils/normalPositionToPositions.js";
67
70
  import "./TagCache.js";
68
71
  import "../../base/BasePlugin.js";
69
72
  import "../../vendor/svelte/store/index.js";
70
73
  import "../../vendor/svelte/internal/index.js";
71
74
  import "../utils/device.js";
75
+ import "../../shared-utils/threex/domevents/index.js";
72
76
  import "../Components/TagContainer.js";
73
77
  import "../Components/TagItem.js";
74
78
  import "../Components/Tag/index.js";
@@ -139,16 +143,13 @@ import "../Components/Common/Icon/Icon.js";
139
143
  import "../utils/getImageInfo.js";
140
144
  import "../Components/Tag/CustomTag.js";
141
145
  import "../Components/Common/TagPoint.js";
142
- import "../utils/normalPositionToPositions.js";
146
+ import "../utils/model/imagePlane.js";
143
147
  import "../../CSS3DRenderPlugin/index.js";
144
148
  import "../../CSS3DRenderPlugin/Controller.js";
145
149
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
146
150
  import "../../shared-utils/three/GLTFLoader.js";
147
- import "@realsee/five/gltf-loader";
148
- import "../utils/model/imageModel.js";
149
- import "../../shared-utils/three/loadTexture.js";
150
- const D = "Dnalogel-PanoTagPlugin", Qt = (d) => `${D}--${d}`;
151
- class Xt extends k {
151
+ const D = "Dnalogel-PanoTagPlugin", Xt = (d) => `${D}--${d}`;
152
+ class Yt extends k {
152
153
  constructor(e, t) {
153
154
  super(e);
154
155
  p(this, "state", { enabled: !0, visible: !0 });
@@ -160,17 +161,18 @@ class Xt extends k {
160
161
  p(this, "handleFiveInitAnimationEnded", () => {
161
162
  const e = this.five.getCurrentState().mode;
162
163
  this.tags.forEach((t) => {
163
- u(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
164
- }), this.updateRenderAllTags(), this.updateRenderAllTags();
164
+ v(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
165
+ }), this.updateRenderAllTags();
165
166
  });
166
167
  p(this, "handleFiveModelShownFloorChange", () => {
167
168
  this.tags.forEach((e) => {
168
- !u(e) || (e.state.visible = this.getVisible(e));
169
+ !v(e) || (e.state.visible = this.getVisible(e));
169
170
  }), this.updateRenderAllTags();
170
171
  });
171
- this.params = h({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, O(1, { namespace: _.PlayAudio });
172
+ this.params = l({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, O(1, { namespace: _.PlayAudio });
172
173
  try {
173
- Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ = this;
174
+ const i = window;
175
+ Array.isArray(i.__PANOTAGPLUGIN_DEBUG_LIST__) || (i.__PANOTAGPLUGIN_DEBUG_LIST__ = []), i.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), i.__PANOTAGPLUGIN_DEBUG__ = this;
174
176
  } catch (i) {
175
177
  }
176
178
  }
@@ -195,9 +197,12 @@ class Xt extends k {
195
197
  return f(this, null, function* () {
196
198
  const s = (Array.isArray(e) ? e : [e]).map((o) => {
197
199
  const r = this.getTagConfig(o);
198
- return g(h({}, o), {
199
- state: h({ visible: void 0, unfolded: this.can("fold", o) ? !1 : void 0 }, r.initialState),
200
- hooks: new E(),
200
+ return m(l({}, o), {
201
+ state: l({
202
+ visible: void 0,
203
+ unfolded: !this.can("fold", o)
204
+ }, r.initialState),
205
+ hooks: new w(),
201
206
  mergedConfig: r,
202
207
  unfold: () => this.changeUnfoldedById(o.id, !0),
203
208
  fold: () => this.changeUnfoldedById(o.id, !1),
@@ -206,7 +211,7 @@ class Xt extends k {
206
211
  destroy: () => this.destroyTagById(o.id)
207
212
  });
208
213
  }).filter((o) => o.position);
209
- return s.forEach(B), this.tags.push(...s), I(this.five).then(() => f(this, null, function* () {
214
+ return s.forEach(R), this.tags.push(...s), I(this.five).then(() => f(this, null, function* () {
210
215
  var o, r, n;
211
216
  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);
212
217
  }));
@@ -252,14 +257,14 @@ class Xt extends k {
252
257
  setState(e, t) {
253
258
  if (this.checkDisposed())
254
259
  return;
255
- const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = h({}, this.state);
260
+ const { userAction: i = !0, visibleWithAnimation: s = !1 } = t, o = l({}, this.state);
256
261
  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 });
257
262
  }
258
263
  dispose() {
259
264
  var e, t, i, s, o, r;
260
265
  this.pauseCurrentMedia(), this.disposeAllCSS3DContainer(), (e = this.TagContainerSvelte) == null || e.$destroy(), this.filter3DTag.forEach((n) => {
261
- var l;
262
- return (l = n.tag3DContentSvelte) == null ? void 0 : l.svelteApp.$destroy();
266
+ var h;
267
+ return (h = n.tag3DContentSvelte) == null ? void 0 : h.svelteApp.$destroy();
263
268
  }), 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");
264
269
  }
265
270
  changeUnfoldedById(e, t) {
@@ -281,11 +286,11 @@ class Xt extends k {
281
286
  }
282
287
  changeTagNormalById(e, t) {
283
288
  const i = this.getTagById(e);
284
- !i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = A(t), this.updateRenderPlaneTag());
289
+ !i || !i.tag3DContentSvelte || (i.tag3DContentSvelte.currentNormal = A(t));
285
290
  }
286
291
  changeDataById(e, t, i = !0) {
287
292
  const s = this.getTagById(e);
288
- !s || (i ? s.data = c({}, s.data, t) : s.data = h(h({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags());
293
+ !s || (i ? s.data = c({}, s.data, t) : s.data = l(l({}, s.data), t), this.clearUnusedPanelTag(), this.updateRenderAllTags());
289
294
  }
290
295
  changeStickTypeById(e, t, i = !0) {
291
296
  this.changeTagById(e, t, i);
@@ -327,9 +332,9 @@ class Xt extends k {
327
332
  }), this.five.needsRender = !0;
328
333
  }
329
334
  addEventListener() {
330
- 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;
331
- 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), () => {
332
- 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;
335
+ 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), h = this.loadVideoFirstFrame.bind(this), g = this.clickhandler.bind(this), b = this.five.currentMode;
336
+ 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", h), t.on("click", g), () => {
337
+ 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", h), t.off("click", g), this.store.eventListenerDisposer = void 0;
333
338
  };
334
339
  }
335
340
  addResizeListener() {
@@ -348,7 +353,7 @@ class Xt extends k {
348
353
  }, i = () => {
349
354
  !this.state.enabled || this.hide();
350
355
  }, { observe: s, unobserve: o } = y(
351
- R(() => {
356
+ B(() => {
352
357
  !this.store.resizeObserverDisposer || i();
353
358
  }, 500),
354
359
  e
@@ -362,13 +367,13 @@ class Xt extends k {
362
367
  }
363
368
  handleFiveModeChange(e) {
364
369
  this.setModelMedialVisible(), this.tags.forEach((t) => {
365
- u(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
366
- }), this.updateRenderAllTags(), this.updateRenderAllTags();
370
+ v(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
371
+ }), this.updateRenderAllTags();
367
372
  }
368
373
  handleFiveWantsMoveToPano() {
369
374
  this.tags.forEach((e) => {
370
375
  const t = this.getTagConfig(e);
371
- 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) }));
376
+ typeof t.visibleConfig == "object" && (t.visibleConfig.keep ? e.temporaryState = m(l({}, e.temporaryState), { visible: t.visibleConfig.keep === "visible" }) : e.temporaryState = m(l({}, e.temporaryState), { visible: Boolean(t.visibleConfig.alwaysShowWhenMovePano) }));
372
377
  }), this.updateTagContainerVisible();
373
378
  }
374
379
  clickhandler(e) {
@@ -392,7 +397,7 @@ class Xt extends k {
392
397
  handleFivePanoArrived() {
393
398
  return f(this, null, function* () {
394
399
  this.setModelMedialVisible(), yield this.setVisibleAndUnfolded(), this.tags.forEach((e) => {
395
- e.temporaryState = g(h({}, e.temporaryState), { visible: !0 });
400
+ e.temporaryState = m(l({}, e.temporaryState), { visible: !0 });
396
401
  }), this.store.visibleWithAnimation = !0, this.updateTagContainerVisible(), this.updateRenderAllTags();
397
402
  });
398
403
  }
@@ -407,12 +412,12 @@ class Xt extends k {
407
412
  });
408
413
  }
409
414
  changeTagMode(e, t) {
410
- var i, s, o, r, n;
411
- ((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);
415
+ var i, s, o, r, n, h;
416
+ ((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((r = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.domContainer) == null ? void 0 : o.css3DObject) == null ? void 0 : r.mode) !== t && ((n = e.config) != null && n.tag3DConfig ? e.config.tag3DConfig.mode = t : e.config ? e.config.tag3DConfig = { mode: t } : e.config = { tag3DConfig: { mode: t } }, (h = this.store.css3DRenderDisposer.get(e.id)) == null || h.forEach((g) => g == null ? void 0 : g()), e.tag3DContentSvelte = void 0);
412
417
  }
413
418
  }
414
419
  export {
415
- Xt as PanoTagPluginController,
416
- Xt as default,
417
- Qt as pluginFlag
420
+ Yt as PanoTagPluginController,
421
+ Yt as default,
422
+ Xt as pluginFlag
418
423
  };