@realsee/dnalogel 2.16.0-4 → 2.16.0-alpha.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (427) hide show
  1. package/dist/CSS3DRenderPlugin/Controller.d.ts +0 -1
  2. package/dist/CruisePlugin/Controller.d.ts +2 -1
  3. package/dist/CruisePlugin/typing.d.ts +2 -12
  4. package/dist/GuideLinePlugin/Controller.d.ts +12 -20
  5. package/dist/GuideLinePlugin/index.d.ts +0 -4
  6. package/dist/GuideLinePlugin/typing.d.ts +1 -74
  7. package/dist/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
  8. package/dist/PanoTagPlugin/typings/controller.d.ts +5 -2
  9. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +1 -3
  10. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +4 -1
  11. package/dist/PanoTagPlugin/utils/model/mediaPlane.d.ts +71 -0
  12. package/dist/base/BasePlugin.d.ts +0 -1
  13. package/dist/index.cjs.js +117 -181
  14. package/dist/index.js +4966 -4884
  15. package/dist/index.umd.js +115 -179
  16. package/dist/shared-utils/five/FiveDomEvents.d.ts +11 -0
  17. package/dist/shared-utils/index.d.ts +0 -3
  18. package/dist/shared-utils/logger.d.ts +17 -0
  19. package/dist/shared-utils/math/pointIsRectangle.d.ts +2 -0
  20. package/dist/shared-utils/offscreenCanvas.d.ts +2 -0
  21. package/dist/shared-utils/three/Quadrangle.d.ts +20 -0
  22. package/dist/shared-utils/three/getPositionsByObjectFit.d.ts +2 -0
  23. package/dist/shared-utils/three/loadVideoTexture.d.ts +4 -0
  24. package/docs/assets/search.js +1 -1
  25. package/docs/classes/CSS3DRender.html +31 -34
  26. package/docs/classes/CruisePluginController.html +27 -46
  27. package/docs/classes/Magnifier.html +20 -23
  28. package/docs/classes/ModelRoomLabelController.html +11 -14
  29. package/docs/classes/Object3DHelperController.html +24 -43
  30. package/docs/classes/PaintBrush.html +15 -18
  31. package/docs/classes/PanoMeasurePluginLine.html +23 -26
  32. package/docs/classes/PanoMeasurePluginModel.html +22 -25
  33. package/docs/classes/PanoMeasurePluginPoint.html +14 -17
  34. package/docs/classes/PanoMeasurePluginPolyline.html +26 -29
  35. package/docs/classes/PanoTagPluginController.html +65 -84
  36. package/docs/classes/Util.BetterTween.html +8 -11
  37. package/docs/classes/Util.FivePointSelector.html +12 -15
  38. package/docs/classes/Util.Interval.html +12 -15
  39. package/docs/classes/Util.Magnifier.html +17 -20
  40. package/docs/classes/Util.PointDomHelper.html +11 -14
  41. package/docs/classes/Util.PointHelper.html +11 -14
  42. package/docs/classes/Util.Rectangle.html +13 -16
  43. package/docs/enums/CameraMovementEffect.html +7 -10
  44. package/docs/enums/ContentType.html +19 -22
  45. package/docs/enums/DIRECTION.html +9 -12
  46. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -12
  47. package/docs/enums/DimensionType.html +7 -10
  48. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -11
  49. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -12
  50. package/docs/enums/PaintBrushTypeEnum.html +8 -11
  51. package/docs/enums/Rotation.html +8 -11
  52. package/docs/functions/CSS3DRenderPlugin.html +5 -7
  53. package/docs/functions/CameraMovementPlugin.html +5 -7
  54. package/docs/functions/CruisePlugin.html +5 -7
  55. package/docs/functions/GuideLinePlugin.html +6 -8
  56. package/docs/functions/ItemLabelPlugin.html +5 -7
  57. package/docs/functions/MapviewFloorplanPlugin.html +5 -7
  58. package/docs/functions/ModelChassisCompassPlugin.html +5 -7
  59. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -7
  60. package/docs/functions/ModelFloorplanPlugin.html +5 -7
  61. package/docs/functions/ModelItemLabelPlugin.html +5 -7
  62. package/docs/functions/ModelRoomLabelPlugin.html +5 -7
  63. package/docs/functions/ModelTVVideoPlugin.html +5 -7
  64. package/docs/functions/ModelViewPlugin.html +5 -7
  65. package/docs/functions/Object3DHelperPlugin.html +5 -7
  66. package/docs/functions/PanoCompassPlugin.html +5 -7
  67. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -7
  68. package/docs/functions/PanoDoorLabelPlugin.html +5 -7
  69. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -7
  70. package/docs/functions/PanoMeasurePlugin.html +5 -7
  71. package/docs/functions/PanoRulerPlugin.html +5 -7
  72. package/docs/functions/PanoRulerProPlugin.html +5 -7
  73. package/docs/functions/PanoSpatialTagPlugin.html +5 -7
  74. package/docs/functions/PanoTagPlugin.html +5 -7
  75. package/docs/functions/PanoVideoPlugin.html +5 -7
  76. package/docs/functions/TopviewFloorplanPlugin.html +5 -7
  77. package/docs/functions/Util.getCoordsFromClient.html +6 -13
  78. package/docs/functions/Util.getCoordsFromElement.html +6 -13
  79. package/docs/functions/Util.getFrameTime.html +6 -13
  80. package/docs/functions/Util.getIntersectFromRelativePosition.html +6 -13
  81. package/docs/functions/Util.getRaycasterFromFivePointer.html +6 -13
  82. package/docs/functions/Util.isNil.html +6 -13
  83. package/docs/functions/Util.nextFrame.html +6 -13
  84. package/docs/functions/Util.notNil.html +6 -13
  85. package/docs/functions/Util.requestAnimationFrameInterval.html +6 -13
  86. package/docs/functions/Util.tweenProgress.html +6 -13
  87. package/docs/functions/pluginFlag.html +6 -8
  88. package/docs/index.html +5 -7
  89. package/docs/interfaces/AddTagConfig.html +6 -9
  90. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -14
  91. package/docs/interfaces/CSS3DRenderPluginState.html +8 -11
  92. package/docs/interfaces/CameraMovementPluginExportType.html +7 -10
  93. package/docs/interfaces/EventMap.html +15 -18
  94. package/docs/interfaces/FloorplanBounding.html +8 -11
  95. package/docs/interfaces/FloorplanData.html +10 -13
  96. package/docs/interfaces/FloorplanEntrance.html +11 -14
  97. package/docs/interfaces/FloorplanExtraObject.html +10 -13
  98. package/docs/interfaces/FloorplanExtraObject3D.html +8 -11
  99. package/docs/interfaces/FloorplanFloorData.html +9 -12
  100. package/docs/interfaces/FloorplanImagePosition.html +7 -10
  101. package/docs/interfaces/FloorplanObserver.html +9 -12
  102. package/docs/interfaces/FloorplanOutlineItem.html +9 -12
  103. package/docs/interfaces/FloorplanPosition.html +7 -10
  104. package/docs/interfaces/FloorplanRoomItem.html +13 -16
  105. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -10
  106. package/docs/interfaces/FloorplanServerBounding.html +8 -11
  107. package/docs/interfaces/FloorplanServerComputedData.html +10 -13
  108. package/docs/interfaces/FloorplanServerData.html +7 -10
  109. package/docs/interfaces/FloorplanServerDoorItem.html +10 -13
  110. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -11
  111. package/docs/interfaces/FloorplanServerEntrance.html +11 -14
  112. package/docs/interfaces/FloorplanServerFloorData.html +9 -12
  113. package/docs/interfaces/FloorplanServerImagePosition.html +7 -10
  114. package/docs/interfaces/FloorplanServerObserver.html +9 -12
  115. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -12
  116. package/docs/interfaces/FloorplanServerPosition.html +7 -10
  117. package/docs/interfaces/FloorplanServerRoomItem.html +14 -17
  118. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -10
  119. package/docs/interfaces/HelperOffset.html +8 -11
  120. package/docs/interfaces/ImagePlaneGroup.html +6 -9
  121. package/docs/interfaces/ItemLabelPluginData.html +6 -9
  122. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -14
  123. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -12
  124. package/docs/interfaces/MinMax.html +7 -10
  125. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -10
  126. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -11
  127. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -10
  128. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -11
  129. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -11
  130. package/docs/interfaces/ModelItemLabelPluginData.html +6 -9
  131. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -14
  132. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -10
  133. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -9
  134. package/docs/interfaces/ModelTVVideoPluginData.html +9 -12
  135. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -11
  136. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -9
  137. package/docs/interfaces/ModelViewPluginExportType.html +11 -14
  138. package/docs/interfaces/Object3DHelperState.html +8 -11
  139. package/docs/interfaces/ObjectHelperControllers.html +9 -12
  140. package/docs/interfaces/PaintBrushAction.html +12 -15
  141. package/docs/interfaces/PaintBrushConfigs.html +12 -15
  142. package/docs/interfaces/PaintBrushState.html +10 -13
  143. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -13
  144. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -8
  145. package/docs/interfaces/PanoMeasureParameterType.html +14 -17
  146. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -11
  147. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -10
  148. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -10
  149. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -11
  150. package/docs/interfaces/PanoRulerPluginExportType.html +10 -13
  151. package/docs/interfaces/PanoRulerPluginOptions.html +7 -10
  152. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -11
  153. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -12
  154. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -10
  155. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -10
  156. package/docs/interfaces/PanoRulerProPluginState.html +8 -11
  157. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -8
  158. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -8
  159. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -14
  160. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -13
  161. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -16
  162. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -13
  163. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -16
  164. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -14
  165. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -13
  166. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -9
  167. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -11
  168. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -9
  169. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +15 -18
  170. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -9
  171. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -11
  172. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -13
  173. package/docs/interfaces/Point.html +8 -11
  174. package/docs/interfaces/Room.html +9 -12
  175. package/docs/interfaces/RoomInfo.html +7 -10
  176. package/docs/interfaces/RoomLabel.html +14 -17
  177. package/docs/interfaces/RoomRules.html +6 -8
  178. package/docs/interfaces/Rooms.html +6 -8
  179. package/docs/interfaces/Scissor.html +9 -12
  180. package/docs/interfaces/State.html +8 -11
  181. package/docs/interfaces/TagCacheInterface.html +12 -15
  182. package/docs/interfaces/TagConfig.html +11 -14
  183. package/docs/interfaces/TagGLTFObjectGroup.html +6 -9
  184. package/docs/interfaces/TagIconUrl.html +11 -14
  185. package/docs/interfaces/TagObjectGroup.html +6 -9
  186. package/docs/interfaces/TagStyle.html +6 -9
  187. package/docs/interfaces/Tags.html +10 -13
  188. package/docs/interfaces/TemporaryState.html +6 -9
  189. package/docs/interfaces/Util.MagnifierParameter.html +11 -14
  190. package/docs/interfaces/Util.MouseGroupParameter.html +8 -11
  191. package/docs/modules/PanoVideoPluginType.html +5 -8
  192. package/docs/modules/Util.html +6 -17
  193. package/docs/modules.html +7 -11
  194. package/docs/types/ArrayPosition.html +6 -8
  195. package/docs/types/AudioAppearance.html +6 -8
  196. package/docs/types/AudioTagTypeConfigKey.html +6 -8
  197. package/docs/types/CSS3DRenderExportType.html +6 -8
  198. package/docs/types/CSS3DRenderPluginExportType.html +6 -8
  199. package/docs/types/CSS3DRenderPluginParameterType.html +6 -8
  200. package/docs/types/ClassFunctionParameters.html +6 -8
  201. package/docs/types/Color.html +6 -8
  202. package/docs/types/ContentTypeConfigKey.html +6 -8
  203. package/docs/types/ContentTypeConfigKeySplit.html +6 -8
  204. package/docs/types/ContentTypeMap.html +6 -8
  205. package/docs/types/Create3DDomContainerReturnType.html +6 -8
  206. package/docs/types/Create3DElementReturnType.html +6 -8
  207. package/docs/types/CruisePluginExportType.html +6 -8
  208. package/docs/types/Direction-1.html +6 -8
  209. package/docs/types/Direction4.html +6 -8
  210. package/docs/types/ElementRenderer.html +288 -0
  211. package/docs/types/FloorplanRuleLabels.html +6 -8
  212. package/docs/types/FloorplanServerRuleLabels.html +6 -8
  213. package/docs/types/GuideLinePluginExportType.html +6 -8
  214. package/docs/types/HelperEventMap.html +6 -8
  215. package/docs/types/LoadTagConfig.html +6 -8
  216. package/docs/types/MapviewFloorplanPluginParameterType.html +6 -8
  217. package/docs/types/MapviewFloorplanPluginReturnType.html +6 -8
  218. package/docs/types/MediaData.html +6 -8
  219. package/docs/types/MediaStore.html +6 -8
  220. package/docs/types/ModelElement.html +6 -8
  221. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -8
  222. package/docs/types/ModelFloorplanPluginParameterType.html +6 -8
  223. package/docs/types/ModelFloorplanPluginReturnType.html +6 -8
  224. package/docs/types/ModelRoomLabelPluginParameters.html +6 -8
  225. package/docs/types/ModelRoomLabelPluginReturnType.html +6 -8
  226. package/docs/types/MoveArgs.html +6 -8
  227. package/docs/types/MoveOpts.html +6 -8
  228. package/docs/types/Object3DHelperEventMap.html +6 -8
  229. package/docs/types/ObjectFit.html +6 -8
  230. package/docs/types/PaintBrushEventMap.html +6 -8
  231. package/docs/types/PanoCompassPluginData.html +6 -8
  232. package/docs/types/PanoCompassPluginExportType.html +6 -8
  233. package/docs/types/PanoCompassPluginParameterType.html +6 -8
  234. package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -8
  235. package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -8
  236. package/docs/types/PanoIndex.html +6 -8
  237. package/docs/types/PanoMeasurePluginEvent.html +6 -8
  238. package/docs/types/PanoMeasureReturnType.html +6 -8
  239. package/docs/types/PanoSpatialTagPluginId.html +6 -8
  240. package/docs/types/PanoTagPluginExportInterface.html +6 -8
  241. package/docs/types/PanoTagPluginParamsInterface.html +6 -8
  242. package/docs/types/PanoVideoPluginParameterType.html +6 -8
  243. package/docs/types/PanoVideoPluginReturnType.html +6 -8
  244. package/docs/types/PlaneTag.html +6 -8
  245. package/docs/types/PlaneTagElement.html +6 -8
  246. package/docs/types/Point2DElement.html +6 -8
  247. package/docs/types/Point2DTag.html +6 -8
  248. package/docs/types/Point3DElement.html +6 -8
  249. package/docs/types/Point3DTag.html +6 -8
  250. package/docs/types/PointTag.html +6 -8
  251. package/docs/types/PointTagElement.html +6 -8
  252. package/docs/types/Position.html +6 -8
  253. package/docs/types/RotateArgs.html +6 -8
  254. package/docs/types/RotateOpts.html +6 -8
  255. package/docs/types/RuleLabelsKey.html +6 -8
  256. package/docs/types/RuleLabelsValue.html +6 -8
  257. package/docs/types/StickType.html +6 -8
  258. package/docs/types/Tag.html +7 -9
  259. package/docs/types/Tag2D.html +6 -8
  260. package/docs/types/Tag3D.html +6 -8
  261. package/docs/types/TagContentType.html +6 -8
  262. package/docs/types/TagDimensionType.html +6 -8
  263. package/docs/types/TagElement.html +7 -9
  264. package/docs/types/TagEvents.html +6 -8
  265. package/docs/types/TagGLTFObject.html +7 -9
  266. package/docs/types/TagHooks.html +6 -8
  267. package/docs/types/TagIconSize.html +6 -8
  268. package/docs/types/TagId.html +6 -8
  269. package/docs/types/TopviewFloorplanPluginParameterType.html +6 -8
  270. package/docs/types/TopviewFloorplanPluginReturnType.html +6 -8
  271. package/docs/types/WorkCode.html +6 -8
  272. package/docs/variables/FLOOR_TYPE_MAP.html +6 -8
  273. package/docs/variables/PLUGIN.html +6 -8
  274. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -8
  275. package/docs/variables/ROOM_TYPE_MAP.html +6 -8
  276. package/docs/variables/itemLabelPluginServerParams.html +6 -8
  277. package/docs/variables/modelItemLabelPluginServerParams.html +6 -8
  278. package/docs/variables/modelRoomLabelPluginServerParams.html +6 -8
  279. package/libs/CSS3DRenderPlugin/Controller.d.ts +0 -1
  280. package/libs/CSS3DRenderPlugin/Controller.js +31 -40
  281. package/libs/CSS3DRenderPlugin/index.js +6 -12
  282. package/libs/CruisePlugin/Controller.d.ts +2 -1
  283. package/libs/CruisePlugin/Controller.js +174 -197
  284. package/libs/CruisePlugin/index.js +10 -33
  285. package/libs/CruisePlugin/typing.d.ts +2 -12
  286. package/libs/GuideLinePlugin/Controller.d.ts +12 -20
  287. package/libs/GuideLinePlugin/Controller.js +88 -125
  288. package/libs/GuideLinePlugin/index.d.ts +0 -4
  289. package/libs/GuideLinePlugin/index.js +7 -33
  290. package/libs/GuideLinePlugin/typing.d.ts +1 -74
  291. package/libs/GuideLinePlugin/utils/getLineGeometries.d.ts +16 -0
  292. package/libs/GuideLinePlugin/utils/getLineGeometries.js +64 -0
  293. package/libs/ModelTVVideoPlugin/Plugin.js +45 -53
  294. package/libs/ModelTVVideoPlugin/index.js +5 -11
  295. package/libs/Object3DHelperPlugin/Controller.js +28 -33
  296. package/libs/Object3DHelperPlugin/index.js +13 -18
  297. package/libs/PanoCompassPlugin/Controller.js +6 -8
  298. package/libs/PanoCompassPlugin/index.js +10 -12
  299. package/libs/PanoDoorLabelPlugin/BaseController.js +28 -47
  300. package/libs/PanoDoorLabelPlugin/Controller.js +22 -40
  301. package/libs/PanoDoorLabelPlugin/index.js +3 -21
  302. package/libs/PanoMeasurePlugin/typings/index.js +1 -20
  303. package/libs/PanoSpatialTagPlugin/Plugin.js +3 -8
  304. package/libs/PanoSpatialTagPlugin/index.js +3 -8
  305. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +4 -2
  306. package/libs/PanoTagPlugin/Components/Common/Media.js +49 -49
  307. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +4 -2
  308. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +13 -11
  309. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +4 -2
  310. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +4 -2
  311. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +4 -2
  312. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +20 -18
  313. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +4 -2
  314. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +1 -1
  315. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +38 -36
  316. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +25 -23
  317. package/libs/PanoTagPlugin/Components/Tag/index.js +26 -25
  318. package/libs/PanoTagPlugin/Components/TagContainer.js +4 -3
  319. package/libs/PanoTagPlugin/Components/TagItem.js +4 -3
  320. package/libs/PanoTagPlugin/controller/TagCache.js +22 -42
  321. package/libs/PanoTagPlugin/controller/TagComputer.js +11 -5
  322. package/libs/PanoTagPlugin/controller/TagRender.js +92 -65
  323. package/libs/PanoTagPlugin/controller/TagUtil.js +53 -50
  324. package/libs/PanoTagPlugin/controller/index.js +23 -16
  325. package/libs/PanoTagPlugin/index.js +18 -14
  326. package/libs/PanoTagPlugin/typings/controller.d.ts +5 -2
  327. package/libs/PanoTagPlugin/typings/index.js +6 -4
  328. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +1 -3
  329. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +4 -1
  330. package/libs/PanoTagPlugin/typings/tag/Utils.js +2 -0
  331. package/libs/PanoTagPlugin/utils/addDebugPoints.js +4 -2
  332. package/libs/PanoTagPlugin/utils/index.js +35 -33
  333. package/libs/PanoTagPlugin/utils/model/mediaPlane.d.ts +71 -0
  334. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +220 -0
  335. package/libs/PanoTagPlugin/utils/planeNormal.js +4 -2
  336. package/libs/PanoTagPlugin/utils/tagPosition.js +9 -7
  337. package/libs/PanoVideoPlugin/Controller.js +3 -4
  338. package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
  339. package/libs/PanoVideoPlugin/index.js +6 -7
  340. package/libs/base/BasePlugin.d.ts +0 -1
  341. package/libs/base/BasePlugin.js +10 -21
  342. package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +38 -57
  343. package/libs/floorplan/MapviewFloorplanPlugin/index.js +3 -22
  344. package/libs/floorplan/ModelFloorplanPlugin/Controller.js +29 -48
  345. package/libs/floorplan/ModelFloorplanPlugin/index.js +3 -22
  346. package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +11 -31
  347. package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +3 -23
  348. package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +40 -59
  349. package/libs/floorplan/TopviewFloorplanPlugin/index.js +3 -22
  350. package/libs/floorplan/index.js +0 -6
  351. package/libs/index.js +121 -119
  352. package/libs/shared-utils/five/FiveDomEvents.d.ts +11 -0
  353. package/libs/shared-utils/five/FiveDomEvents.js +77 -0
  354. package/libs/shared-utils/index.d.ts +0 -3
  355. package/libs/shared-utils/index.js +29 -36
  356. package/libs/shared-utils/logger.d.ts +17 -0
  357. package/libs/shared-utils/logger.js +16 -0
  358. package/libs/shared-utils/math/pointIsRectangle.d.ts +2 -0
  359. package/libs/shared-utils/math/pointIsRectangle.js +10 -0
  360. package/libs/shared-utils/offscreenCanvas.d.ts +2 -0
  361. package/libs/shared-utils/offscreenCanvas.js +12 -0
  362. package/libs/shared-utils/three/PointDomHelper.js +1 -1
  363. package/libs/shared-utils/three/Quadrangle.d.ts +20 -0
  364. package/libs/shared-utils/three/Quadrangle.js +41 -0
  365. package/libs/shared-utils/three/getPositionsByObjectFit.d.ts +2 -0
  366. package/libs/shared-utils/three/getPositionsByObjectFit.js +20 -0
  367. package/libs/shared-utils/three/loadTexture.js +19 -21
  368. package/libs/shared-utils/three/loadVideoTexture.d.ts +4 -0
  369. package/libs/shared-utils/three/loadVideoTexture.js +14 -0
  370. package/package.json +2 -2
  371. package/dist/GuideLinePlugin/GuideLineItem.d.ts +0 -26
  372. package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +0 -64
  373. package/dist/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -23
  374. package/dist/GuideLinePlugin/utils/index.d.ts +0 -7
  375. package/dist/PanoTagPlugin/utils/model/imagePlane.d.ts +0 -9
  376. package/dist/shared-utils/five/index.d.ts +0 -1
  377. package/dist/shared-utils/five/mode.d.ts +0 -3
  378. package/dist/shared-utils/isAbsoluteURL.d.ts +0 -1
  379. package/dist/shared-utils/log.d.ts +0 -2
  380. package/docs/classes/GuideLineItem.GuideLineItem.html +0 -169
  381. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -344
  382. package/docs/functions/Util.isAbsoluteURL.html +0 -79
  383. package/docs/functions/Util.isModelLike.html +0 -79
  384. package/docs/functions/Util.isPanoramaLike.html +0 -79
  385. package/docs/functions/Util.uuid.html +0 -76
  386. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -97
  387. package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -258
  388. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -92
  389. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -87
  390. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -126
  391. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -85
  392. package/docs/interfaces/GuideLinePluginType.PluginDataV1.html +0 -76
  393. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -71
  394. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -82
  395. package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -99
  396. package/docs/interfaces/GuideLinePluginType.Route.html +0 -103
  397. package/docs/interfaces/GuideLinePluginType.RouteConfig.html +0 -92
  398. package/docs/modules/GuideLineItem.html +0 -53
  399. package/docs/modules/GuideLineModeItem.html +0 -53
  400. package/docs/modules/GuideLinePluginType.html +0 -99
  401. package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -67
  402. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -65
  403. package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -67
  404. package/docs/types/GuideLinePluginType.PathItem.html +0 -67
  405. package/docs/types/GuideLinePluginType.PluginData.html +0 -65
  406. package/libs/GuideLinePlugin/GuideLineItem/index.js +0 -35
  407. package/libs/GuideLinePlugin/GuideLineItem.d.ts +0 -26
  408. package/libs/GuideLinePlugin/GuideLineItem.js +0 -31
  409. package/libs/GuideLinePlugin/GuideLineModeItem/index.js +0 -254
  410. package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +0 -64
  411. package/libs/GuideLinePlugin/GuideLineModeItem.js +0 -29
  412. package/libs/GuideLinePlugin/utils/createLineGeometry.d.ts +0 -23
  413. package/libs/GuideLinePlugin/utils/createLineGeometry.js +0 -40
  414. package/libs/GuideLinePlugin/utils/dataFormatter.d.ts +0 -2
  415. package/libs/GuideLinePlugin/utils/dataFormatter.js +0 -6
  416. package/libs/GuideLinePlugin/utils/index.d.ts +0 -7
  417. package/libs/GuideLinePlugin/utils/index.js +0 -32
  418. package/libs/PanoTagPlugin/utils/model/imagePlane.d.ts +0 -9
  419. package/libs/PanoTagPlugin/utils/model/imagePlane.js +0 -33
  420. package/libs/shared-utils/five/index.d.ts +0 -1
  421. package/libs/shared-utils/five/index.js +0 -1
  422. package/libs/shared-utils/five/mode.d.ts +0 -3
  423. package/libs/shared-utils/five/mode.js +0 -11
  424. package/libs/shared-utils/isAbsoluteURL.d.ts +0 -1
  425. package/libs/shared-utils/isAbsoluteURL.js +0 -6
  426. package/libs/shared-utils/log.d.ts +0 -2
  427. package/libs/shared-utils/log.js +0 -10
@@ -1,7 +1,7 @@
1
1
  var j = Object.defineProperty;
2
- var w = (l, p, t) => p in l ? j(l, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : l[p] = t;
3
- var d = (l, p, t) => (w(l, typeof p != "symbol" ? p + "" : p, t), t);
4
- var D = (l, p, t) => new Promise((e, i) => {
2
+ var w = (d, p, t) => p in d ? j(d, p, { enumerable: !0, configurable: !0, writable: !0, value: t }) : d[p] = t;
3
+ var c = (d, p, t) => (w(d, typeof p != "symbol" ? p + "" : p, t), t);
4
+ var P = (d, p, t) => new Promise((e, i) => {
5
5
  var o = (s) => {
6
6
  try {
7
7
  a(t.next(s));
@@ -15,22 +15,23 @@ var D = (l, p, t) => new Promise((e, i) => {
15
15
  i(r);
16
16
  }
17
17
  }, a = (s) => s.done ? e(s.value) : Promise.resolve(s.value).then(o, n);
18
- a((t = t.apply(l, p)).next());
18
+ a((t = t.apply(d, p)).next());
19
19
  });
20
20
  import { TagComputer as O } from "./TagComputer.js";
21
- import { Group as P, Quaternion as x, Vector3 as f, Matrix4 as T } from "three";
22
- import G from "../Components/TagContainer.js";
23
- import k from "../Components/Tag/index.js";
24
- import { arrayPositionToVector3 as b } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
25
- import { centerPoint as A } from "../../shared-utils/three/centerPoint.js";
21
+ import { Group as b, Quaternion as x, Vector3 as D, Matrix4 as T } from "three";
22
+ import I from "../Components/TagContainer.js";
23
+ import E from "../Components/Tag/index.js";
24
+ import { arrayPositionToVector3 as v } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
25
+ import { centerPoint as G } from "../../shared-utils/three/centerPoint.js";
26
26
  import "@realsee/five/gltf-loader";
27
- import R from "../utils/model/imagePlane.js";
27
+ import { ImagePlane as R, VideoPlane as k } from "../utils/model/mediaPlane.js";
28
28
  import { isMediaModelTag as S } from "../utils/tag/tagCheck.js";
29
- import { CSS3DRenderPlugin as E } from "../../CSS3DRenderPlugin/index.js";
29
+ import { CSS3DRenderPlugin as A } from "../../CSS3DRenderPlugin/index.js";
30
30
  import { loadGLTF as V } from "../../shared-utils/three/GLTFLoader.js";
31
31
  import "@realsee/five";
32
32
  import "../utils/tagPosition.js";
33
33
  import "../../shared-utils/three/loadTexture.js";
34
+ import "../../shared-utils/threex/domevents/index.js";
34
35
  import "../utils/checkRange.js";
35
36
  import "hammerjs";
36
37
  import "@tweenjs/tween.js";
@@ -56,11 +57,15 @@ import "../utils/planeNormal.js";
56
57
  import "../utils/normalPositionToPositions.js";
57
58
  import "./TagCache.js";
58
59
  import "../../base/BasePlugin.js";
59
- import "../../shared-utils/isAbsoluteURL.js";
60
60
  import "../../vendor/svelte/store/index.js";
61
61
  import "../../vendor/svelte/internal/index.js";
62
62
  import "../utils/device.js";
63
- import "../../shared-utils/threex/domevents/index.js";
63
+ import "../../shared-utils/three/Quadrangle.js";
64
+ import "../../shared-utils/math/pointIsRectangle.js";
65
+ import "../../shared-utils/three/loadVideoTexture.js";
66
+ import "../Assets/Icon.js";
67
+ import "../../shared-utils/three/getPositionsByObjectFit.js";
68
+ import "../../shared-utils/five/FiveDomEvents.js";
64
69
  import "../Components/TagItem.js";
65
70
  import "../utils/noTypecheck.js";
66
71
  import "../Components/Common/TagPoint.js";
@@ -70,7 +75,6 @@ import "../../vendor/svelte/easing/index.js";
70
75
  import "../Components/Common/Icon/Icon.js";
71
76
  import "../utils/getImageInfo.js";
72
77
  import "../utils/px2rem.js";
73
- import "../Assets/Icon.js";
74
78
  import "classnames";
75
79
  import "../Components/Tag/TextTag/index.js";
76
80
  import "../Components/Tag/TextTag/TextTag.js";
@@ -133,16 +137,17 @@ import "../Components/Tag/LinkTag.js";
133
137
  import "../Components/Tag/CustomTag.js";
134
138
  import "../../CSS3DRenderPlugin/Controller.js";
135
139
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
136
- class Qe extends O {
140
+ const F = /* @__PURE__ */ new Map(), B = /* @__PURE__ */ new Map();
141
+ class Ze extends O {
137
142
  constructor(t) {
138
143
  super(t);
139
- d(this, "group", new P());
140
- d(this, "imagePlaneGroup", new P());
141
- d(this, "gltfObjectGroup", new P());
142
- d(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
143
- d(this, "temporaryState", { visible: !0 });
144
- d(this, "TagContainerSvelte");
145
- d(this, "loadModel", (t) => D(this, null, function* () {
144
+ c(this, "group", new b());
145
+ c(this, "imagePlaneGroup", new b());
146
+ c(this, "gltfObjectGroup", new b());
147
+ c(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
148
+ c(this, "temporaryState", { visible: !0 });
149
+ c(this, "TagContainerSvelte");
150
+ c(this, "loadModel", (t) => P(this, null, function* () {
146
151
  var s;
147
152
  const e = t.data.modelUrl;
148
153
  if (!e)
@@ -155,14 +160,14 @@ class Qe extends O {
155
160
  o.visible = this.getCurrentVisibleState(t), new T().fromArray(t.matrix).decompose(o.position, o.quaternion, o.scale), o.updateWorldMatrix(!0, !0), o.visible = this.getVisibleByFloorIndex(t);
156
161
  const a = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
157
162
  if (a && this.gltfObjectGroup.remove(a), this.getRenderType(t) === "Mesh") {
158
- if (!t.imagePlane) {
159
- const r = t.data.mediaPosition.map(b);
160
- t.imagePlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(b));
161
- const m = new f().addVectors(r[0], r[2]).divideScalar(2);
162
- t.imagePlane.position.copy(m), o.add(t.imagePlane);
163
+ if (!t.mediaPlane) {
164
+ const r = t.data.mediaPosition.map(v);
165
+ t.mediaPlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(v));
166
+ const m = new D().addVectors(r[0], r[2]).divideScalar(2);
167
+ t.mediaPlane.position.copy(m), o.add(t.mediaPlane);
163
168
  }
164
169
  } else
165
- this.updateTagCss3DObjectMatrix(t, o);
170
+ o.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, o), o.updateTagCss3DObjectMatrix();
166
171
  return this.gltfObjectGroup.add(o), o;
167
172
  }));
168
173
  this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.imagePlaneGroup.name = "ImagePlaneGroup", this.group.add(this.gltfObjectGroup), this.group.add(this.imagePlaneGroup);
@@ -170,7 +175,7 @@ class Qe extends O {
170
175
  clearTags() {
171
176
  this.tags.forEach((t) => {
172
177
  var e, i;
173
- (i = (e = t.imagePlane) == null ? void 0 : e.parent) == null || i.remove(t.imagePlane);
178
+ (i = (e = t.mediaPlane) == null ? void 0 : e.parent) == null || i.remove(t.mediaPlane);
174
179
  }), this.tags = [], this.enabledModelTagSet.clear(), this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
175
180
  }
176
181
  updateRenderAllTags() {
@@ -178,19 +183,35 @@ class Qe extends O {
178
183
  }
179
184
  updateRenderImagePlane() {
180
185
  this.sort(this.filterImagePlane).forEach((e) => {
181
- var n, a, s, r;
182
- const i = (n = e.data.mediaData[0]) == null ? void 0 : n.url;
183
- if (!i || (e.imagePlane && (e.imagePlane.visible = (s = (a = e.state) == null ? void 0 : a.visible) != null ? s : !0), ((r = e.imagePlane) == null ? void 0 : r.imageSrc) === i))
186
+ var s, r, m;
187
+ const i = e.data.mediaData[0];
188
+ if (!i)
189
+ return;
190
+ const o = i.url, n = i.type;
191
+ if (!o || (e.mediaPlane && (e.mediaPlane.visible = (r = (s = e.state) == null ? void 0 : s.visible) != null ? r : !0), ((m = e.mediaPlane) == null ? void 0 : m.src) === o))
184
192
  return;
185
- const o = e.position.map(b);
186
- e.imagePlane = new R(i, o), e.imagePlane.setMatrixByCornerPoints(o), this.imagePlaneGroup.add(e.imagePlane);
193
+ const a = e.position.map(v);
194
+ if (e.mediaPlane && e.mediaPlane.removeFromParent(), n === "Image")
195
+ e.mediaPlane = new R(o, a);
196
+ else if (n === "Video") {
197
+ const l = new k(o, a, {
198
+ videoCoverSrc: i.videoCoverUrl,
199
+ playButton: e.data.playIcon,
200
+ videoTextureMap: F,
201
+ ImageTextureMap: B
202
+ });
203
+ l.videoInstance.addEventListener("play", () => {
204
+ this.mediaStore.set({ currentMediaElement: l.videoInstance });
205
+ }), l.initialDomEvents(this.five), l.initialRenderHooks(this.five), e.mediaPlane = l;
206
+ }
207
+ this.imagePlaneGroup.add(e.mediaPlane);
187
208
  });
188
209
  }
189
210
  updateRender3DDomTag() {
190
211
  this.sort([...this.filterCSS3DTag]).forEach((e) => {
191
212
  var i, o;
192
213
  if (e.tag3DContentSvelte) {
193
- const { svelteApp: n, domContainer: a, initialNormal: s, currentNormal: r } = e.tag3DContentSvelte;
214
+ const { svelteApp: n, css3DInstance: a, initialNormal: s, currentNormal: r } = e.tag3DContentSvelte;
194
215
  if (n.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !s.equals(r)) {
195
216
  const m = new x().setFromUnitVectors(s, r);
196
217
  a.css3DObject.setRotationFromQuaternion(m);
@@ -199,7 +220,7 @@ class Qe extends O {
199
220
  } else {
200
221
  if (((i = e.state) == null ? void 0 : i.visible) === !1)
201
222
  return;
202
- if (this.css3DRenderPlugin || (this.css3DRenderPlugin = E(this.five)), e.stickType === "3DPoint" && !e.normal)
223
+ if (this.css3DRenderPlugin || (this.css3DRenderPlugin = A(this.five)), e.stickType === "3DPoint" && !e.normal)
203
224
  return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
204
225
  const n = this.getPositions(e);
205
226
  if (!n)
@@ -210,34 +231,40 @@ class Qe extends O {
210
231
  const r = (o = this.getTagConfig(e).tag3DConfig) != null ? o : {};
211
232
  if (this.getRenderType(e) === "BehindDom") {
212
233
  r.mode = "behind", r.container = document.createElement("div");
213
- const h = "black";
214
- r.container.style.backgroundColor = h, r.container.style.border = `3px solid ${h}`, this.css3DRenderPlugin.hooks.on("render", () => {
234
+ const f = "black";
235
+ r.container.style.backgroundColor = f, r.container.style.border = `3px solid ${f}`, this.css3DRenderPlugin.hooks.on("render", () => {
215
236
  var u;
216
237
  if (m.css3DObject.opacityMesh) {
217
- const g = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (c) => {
218
- this.hooks.emit("click", { event: c, target: "TagContent", tag: e });
238
+ const h = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (g) => {
239
+ this.hooks.emit("click", { event: g, target: "TagContent", tag: e });
219
240
  });
220
- (u = this.store.css3DRenderDisposer.get(e.id)) == null || u.push(g);
241
+ (u = this.store.css3DRenderDisposer.get(e.id)) == null || u.push(h);
221
242
  }
222
243
  });
223
244
  }
224
245
  const m = this.css3DRenderPlugin.create3DDomContainer(n, r);
225
246
  if (!m)
226
247
  return;
227
- this.store.css3DRenderDisposer.set(e.id, [m.dispose]), e.tag3DContentSvelte = {
228
- svelteApp: new k({
229
- target: m.container,
230
- props: {
231
- tag: e,
232
- hooks: this.hooks,
233
- state: this.state,
234
- mediaStore: this.mediaStore,
235
- temporaryState: this.temporaryState
236
- }
237
- }),
248
+ this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
249
+ const l = new E({
250
+ target: m.container,
251
+ props: {
252
+ tag: e,
253
+ hooks: this.hooks,
254
+ state: this.state,
255
+ mediaStore: this.mediaStore,
256
+ temporaryState: this.temporaryState
257
+ }
258
+ });
259
+ e.tag3DContentSvelte = {
260
+ svelteApp: l,
238
261
  domContainer: m,
262
+ css3DInstance: m,
239
263
  initialNormal: a,
240
- currentNormal: a
264
+ currentNormal: a,
265
+ dispose: () => {
266
+ l.$destroy(), m.dispose();
267
+ }
241
268
  };
242
269
  }
243
270
  }), this.clearUnusedPanelTag();
@@ -254,23 +281,23 @@ class Qe extends O {
254
281
  updateTagModelVisible() {
255
282
  this.tags.forEach((t) => {
256
283
  var e;
257
- t.imagePlane && (t.imagePlane.visible = this.getCurrentVisibleState(t)), (e = t.model) != null && e.object && (t.model.object.visible = this.getCurrentVisibleState(t));
284
+ t.mediaPlane && (t.mediaPlane.visible = this.getCurrentVisibleState(t)), (e = t.model) != null && e.object && (t.model.object.visible = this.getCurrentVisibleState(t));
258
285
  });
259
286
  }
260
287
  updateTagCss3DObjectMatrix(t, e) {
261
- var C, v, M, y;
262
- const i = (M = (v = (C = t.mergedConfig) == null ? void 0 : C.tag3DConfig) == null ? void 0 : v.ratio) != null ? M : 216e-5, o = (y = t.tag3DContentSvelte) == null ? void 0 : y.domContainer.css3DObject;
288
+ var g, C, M, y;
289
+ const i = (M = (C = (g = t.mergedConfig) == null ? void 0 : g.tag3DConfig) == null ? void 0 : C.ratio) != null ? M : 216e-5, o = (y = t.tag3DContentSvelte) == null ? void 0 : y.css3DInstance.css3DObject;
263
290
  if (!o)
264
291
  return;
265
292
  const n = S(t) ? t.data.mediaPosition : t.position;
266
293
  e.updateWorldMatrix(!1, !1);
267
- const a = e.matrixWorld, s = new f().fromArray(n[0]), r = new f().fromArray(n[2]), m = A(s, r).add(new f(0, 0, 5e-4)), h = new T().setPosition(m), u = new T().makeScale(i, i, i), g = new T().multiply(a).multiply(h).multiply(u);
268
- g.decompose(o.position, o.quaternion, o.scale);
269
- const c = o.opacityMesh;
270
- c && g.decompose(c.position, c.quaternion, c.scale);
294
+ const a = e.matrixWorld, s = new D().fromArray(n[0]), r = new D().fromArray(n[2]), m = G(s, r).add(new D(0, 0, 5e-4)), l = new T().setPosition(m), f = new T().makeScale(i, i, i), u = new T().multiply(a).multiply(l).multiply(f);
295
+ u.decompose(o.position, o.quaternion, o.scale);
296
+ const h = o.opacityMesh;
297
+ h && u.decompose(h.position, h.quaternion, h.scale);
271
298
  }
272
299
  addMediaModelTag(t) {
273
- return D(this, null, function* () {
300
+ return P(this, null, function* () {
274
301
  const e = t.filter(S).map((i) => this.loadModel(i));
275
302
  yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
276
303
  });
@@ -284,7 +311,7 @@ class Qe extends O {
284
311
  const i = (e = this.five.getElement()) == null ? void 0 : e.parentElement;
285
312
  if (!i)
286
313
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
287
- this.TagContainerSvelte = new G({
314
+ this.TagContainerSvelte = new I({
288
315
  target: i,
289
316
  props: { hooks: this.hooks, tags: t, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
290
317
  });
@@ -298,7 +325,7 @@ class Qe extends O {
298
325
  withAnimation: this.store.visibleWithAnimation
299
326
  }), this.filterCSS3DTag.forEach((e) => {
300
327
  var i, o, n, a, s;
301
- (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), (s = e.tag3DContentSvelte) == null || s.svelteApp.$set({
328
+ (a = (o = (i = e.tag3DContentSvelte) == null ? void 0 : i.css3DInstance) == null ? void 0 : o.css3DObject) == null || a.setVisible((this.state.visible && ((n = e.state) == null ? void 0 : n.visible)) !== !1), (s = e.tag3DContentSvelte) == null || s.svelteApp.$set({
302
329
  state: this.state,
303
330
  temporaryState: this.temporaryState,
304
331
  withAnimation: this.store.visibleWithAnimation
@@ -313,7 +340,7 @@ class Qe extends O {
313
340
  clearUnusedPanelTag() {
314
341
  this.filter2DPointTag.forEach((t) => {
315
342
  var e;
316
- (e = t.tag3DContentSvelte) == null || e.domContainer.dispose(), t.tag3DContentSvelte = void 0;
343
+ (e = t.tag3DContentSvelte) == null || e.css3DInstance.dispose(), t.tag3DContentSvelte = void 0;
317
344
  });
318
345
  for (const [t, e] of this.store.css3DRenderDisposer) {
319
346
  const i = this.getTagById(t);
@@ -322,5 +349,5 @@ class Qe extends O {
322
349
  }
323
350
  }
324
351
  export {
325
- Qe as TagRender
352
+ Ze as TagRender
326
353
  };
@@ -1,12 +1,12 @@
1
1
  var T = Object.defineProperty;
2
2
  var y = (c, u, e) => u in c ? T(c, u, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[u] = e;
3
- var a = (c, u, e) => (y(c, typeof u != "symbol" ? u + "" : u, e), e);
3
+ var l = (c, u, e) => (y(c, typeof u != "symbol" ? u + "" : u, e), e);
4
4
  import D from "object-assign-deep";
5
5
  import * as C from "three";
6
- import { DefaultConfig as w } from "../tag.config.js";
7
- import { anyPositionToVector3 as E, arrayPositionToVector3 as p } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
6
+ import { DefaultConfig as P } from "../tag.config.js";
7
+ import { anyPositionToVector3 as w, arrayPositionToVector3 as p } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
8
8
  import { planeNormal as g } from "../utils/planeNormal.js";
9
- import { tagPosition as P, getTagPosition as k } from "../utils/tagPosition.js";
9
+ import { tagPosition as E, getTagPosition as k } from "../utils/tagPosition.js";
10
10
  import { normalPositionToPositions as M } from "../utils/normalPositionToPositions.js";
11
11
  import { TagCache as b } from "./TagCache.js";
12
12
  import { writable as I } from "../../vendor/svelte/store/index.js";
@@ -14,17 +14,15 @@ import { isIOSWX as A } from "../utils/device.js";
14
14
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
15
15
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
16
16
  import "@realsee/five";
17
- import "hammerjs";
18
- import "@tweenjs/tween.js";
19
- import "../../shared-utils/animationFrame/BetterTween.js";
20
17
  import { isMediaPlaneTag as x, isMediaModelTag as v, isPlaneTag as V } from "../utils/tag/tagCheck.js";
21
18
  import { DomEvents as L } from "../../shared-utils/threex/domevents/index.js";
19
+ import { VideoPlane as S } from "../utils/model/mediaPlane.js";
22
20
  import "@realsee/five/gltf-loader";
23
21
  import "../../shared-utils/three/loadTexture.js";
24
22
  import "../../shared-utils/three/centerPoint.js";
25
23
  import "../../base/BasePlugin.js";
26
24
  import "../../shared-utils/Subscribe.js";
27
- import "../../shared-utils/isAbsoluteURL.js";
25
+ import "../../vendor/svelte/internal/index.js";
28
26
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
29
27
  import "three/examples/jsm/renderers/CSS3DRenderer";
30
28
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -34,32 +32,40 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
34
32
  import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
35
33
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
36
34
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
37
- import "../../shared-utils/animationFrame/index.js";
38
- import "../../vendor/svelte/internal/index.js";
39
- class he extends b {
35
+ import "../../shared-utils/three/Quadrangle.js";
36
+ import "../../shared-utils/math/pointIsRectangle.js";
37
+ import "../../shared-utils/three/loadVideoTexture.js";
38
+ import "../Assets/Icon.js";
39
+ import "../../shared-utils/three/getPositionsByObjectFit.js";
40
+ import "../../shared-utils/five/FiveDomEvents.js";
41
+ class ve extends b {
40
42
  constructor(e) {
41
43
  super(e);
42
- a(this, "tags", []);
43
- a(this, "config", w);
44
- a(this, "mediaStore", I({
44
+ l(this, "tags", []);
45
+ l(this, "config", P);
46
+ l(this, "mediaStore", I({
45
47
  currentMediaElement: null
46
48
  }));
47
- a(this, "css3DRenderPlugin");
48
- a(this, "store", {
49
+ l(this, "css3DRenderPlugin");
50
+ l(this, "store", {
49
51
  disposers: [],
50
52
  disposed: !1,
51
53
  resizeObserverDisposerAdding: !1,
52
54
  css3DRenderDisposer: /* @__PURE__ */ new Map()
53
55
  });
54
- a(this, "domEvents");
55
- a(this, "mouseInfo");
56
- a(this, "preventWhenMouseDown", () => {
56
+ l(this, "domEvents");
57
+ l(this, "mouseInfo");
58
+ l(this, "preventWhenMouseDown", () => {
57
59
  var e;
58
60
  if ((e = this.mouseInfo) != null && e.isDown)
59
61
  return !1;
60
62
  });
61
63
  const i = this.five.getElement();
62
- i && (this.domEvents = new L(this.five.camera, i)), this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.store.disposers.push(() => {
64
+ i && (this.domEvents = new L(this.five.camera, i)), this.five.on("wantsMoveToPano", this.preventWhenMouseDown), this.five.on("wantsTapGesture", this.preventWhenMouseDown), this.mediaStore.subscribe(({ currentMediaElement: o }) => {
65
+ this.tags.forEach((t) => {
66
+ t.mediaPlane instanceof S && o !== t.mediaPlane.videoInstance && t.mediaPlane.pause();
67
+ });
68
+ }), this.store.disposers.push(() => {
63
69
  this.five.off("wantsMoveToPano", this.preventWhenMouseDown), this.five.off("wantsTapGesture", this.preventWhenMouseDown);
64
70
  });
65
71
  }
@@ -82,8 +88,8 @@ class he extends b {
82
88
  if (!e)
83
89
  return (t = this.config.globalConfig) != null ? t : {};
84
90
  const i = {};
85
- this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((l) => {
86
- const r = l;
91
+ this.config.contentTypeConfig && Object.keys(this.config.contentTypeConfig).forEach((a) => {
92
+ const r = a;
87
93
  if (i[r])
88
94
  return;
89
95
  const f = r.split("-");
@@ -134,28 +140,25 @@ class he extends b {
134
140
  return !0;
135
141
  }
136
142
  getRenderType(e) {
137
- const i = this.getTagConfig(e);
138
- if (!i || typeof i != "object" || !i.renderType)
139
- return "Dom";
140
- const o = e.data.mediaData;
141
- if (!o || o.length === 0)
142
- return "Dom";
143
- if (i.renderType === "Mesh") {
144
- if (x(e))
145
- if (o.length === 1) {
146
- if (o[0].type === "Image")
143
+ const i = (() => {
144
+ if (e.stickType === "3DPoint")
145
+ return "Dom";
146
+ const o = this.getTagConfig(e);
147
+ if (!o || typeof o != "object" || !o.renderType)
148
+ return;
149
+ const t = e.data.mediaData;
150
+ if (!(!t || t.length === 0) && o.renderType === "Mesh") {
151
+ if (x(e)) {
152
+ if (t.length === 1 && (t[0].type === "Image" || t[0].type === "Video"))
147
153
  return "Mesh";
148
- if (o[0].type === "Video")
149
- return "Dom";
150
- } else
151
- return "Dom";
152
- else if (v(e))
153
- return o.length === 1 && o[0].type === "Image" ? "Mesh" : "BehindDom";
154
- } else
155
- return "Dom";
154
+ } else if (v(e))
155
+ return t.length === 1 && t[0].type === "Image" ? "Mesh" : "BehindDom";
156
+ }
157
+ })();
158
+ return i != null ? i : "Dom";
156
159
  }
157
160
  getAngle(e, i) {
158
- var d, l, r;
161
+ var d, a, r;
159
162
  const o = (d = this.five.panoIndex) != null ? d : i;
160
163
  if (o === void 0)
161
164
  throw new Error(`getDistance(): fivePanoIndex is ${o}`);
@@ -163,13 +166,13 @@ class he extends b {
163
166
  if (t.angle !== void 0)
164
167
  return t.angle;
165
168
  {
166
- const f = (r = (l = this.five.work) == null ? void 0 : l.observers[o]) == null ? void 0 : r.position;
169
+ const f = (r = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : r.position;
167
170
  if (f === void 0)
168
171
  throw new Error(`getAngleRange(): observerPosition is ${f}`);
169
- const s = (() => e.stickType === "3DPoint" ? E(e.normal) : g(e.position))();
172
+ const s = (() => e.stickType === "3DPoint" ? w(e.normal) : g(e.position))();
170
173
  if (!s)
171
174
  return;
172
- const n = P(e.position);
175
+ const n = E(e.position);
173
176
  if (!n)
174
177
  return;
175
178
  const h = new C.Vector3().copy(f).sub(n), m = s.angleTo(h) * 180 / Math.PI;
@@ -177,7 +180,7 @@ class he extends b {
177
180
  }
178
181
  }
179
182
  getDistance(e, i) {
180
- var d, l, r;
183
+ var d, a, r;
181
184
  const o = (d = this.five.panoIndex) != null ? d : i;
182
185
  if (o === void 0)
183
186
  throw new Error(`getDistance(): fivePanoIndex is ${o}`);
@@ -185,7 +188,7 @@ class he extends b {
185
188
  if (t.distance !== void 0)
186
189
  return t.distance;
187
190
  {
188
- const f = (r = (l = this.five.work) == null ? void 0 : l.observers[o]) == null ? void 0 : r.position;
191
+ const f = (r = (a = this.five.work) == null ? void 0 : a.observers[o]) == null ? void 0 : r.position;
189
192
  if (f === void 0)
190
193
  throw new Error(`getDistance(): observerPosition is ${f}`);
191
194
  const s = k(e);
@@ -223,7 +226,7 @@ class he extends b {
223
226
  isDown: !0,
224
227
  mouseDownTimestamp: Date.now()
225
228
  };
226
- }, l = (s) => {
229
+ }, a = (s) => {
227
230
  if (!t()) {
228
231
  this.mouseInfo = void 0;
229
232
  return;
@@ -250,8 +253,8 @@ class he extends b {
250
253
  const n = s.origDomEvent;
251
254
  !this.mouseInfo || (this.mouseInfo.isDown && this.mouseInfo.x === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientX) && this.mouseInfo.y === Math.floor(n.changedTouches[n.changedTouches.length - 1].clientY) && Date.now() - this.mouseInfo.mouseDownTimestamp < 400 && o(n), this.mouseInfo = void 0);
252
255
  };
253
- return this.domEvents.addEventListener(i, "mousedown", d, !1), this.domEvents.addEventListener(i, "mouseup", l, !1), this.domEvents.addEventListener(i, "touchstart", r, !1), this.domEvents.addEventListener(i, "touchend", f, !1), () => {
254
- !this.domEvents || (this.mouseInfo = void 0, this.domEvents.removeEventListener(i, "mousedown", d), this.domEvents.removeEventListener(i, "mouseup", l), this.domEvents.removeEventListener(i, "touchstart", r), this.domEvents.removeEventListener(i, "touchend", f));
256
+ return this.domEvents.addEventListener(i, "mousedown", d, !1), this.domEvents.addEventListener(i, "mouseup", a, !1), this.domEvents.addEventListener(i, "touchstart", r, !1), this.domEvents.addEventListener(i, "touchend", f, !1), () => {
257
+ !this.domEvents || (this.mouseInfo = void 0, this.domEvents.removeEventListener(i, "mousedown", d), this.domEvents.removeEventListener(i, "mouseup", a), this.domEvents.removeEventListener(i, "touchstart", r), this.domEvents.removeEventListener(i, "touchend", f));
255
258
  };
256
259
  }
257
260
  getTagNormal(e) {
@@ -293,5 +296,5 @@ class he extends b {
293
296
  }
294
297
  }
295
298
  export {
296
- he as TagUtil
299
+ ve as TagUtil
297
300
  };
@@ -27,13 +27,14 @@ var f = (d, a, e) => new Promise((t, i) => {
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 w } from "@realsee/five";
30
+ import { Subscribe as M } from "@realsee/five";
31
31
  import c from "object-assign-deep";
32
32
  import { arrayPositionToVector3 as C } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
33
- import { addDebugPoints as M } from "../utils/addDebugPoints.js";
33
+ import { addDebugPoints as w } from "../utils/addDebugPoints.js";
34
34
  import "three";
35
35
  import "@realsee/five/gltf-loader";
36
36
  import "../../shared-utils/three/loadTexture.js";
37
+ import "../../shared-utils/threex/domevents/index.js";
37
38
  import { isMediaModelTag as v } from "../utils/tag/tagCheck.js";
38
39
  import { waitFiveModelLoaded as I } from "../utils/actionAfterFiveModelLoad.js";
39
40
  import { debounce as A } from "../utils/debounce.js";
@@ -69,11 +70,16 @@ import "../utils/planeNormal.js";
69
70
  import "../utils/normalPositionToPositions.js";
70
71
  import "./TagCache.js";
71
72
  import "../../base/BasePlugin.js";
72
- import "../../shared-utils/isAbsoluteURL.js";
73
73
  import "../../vendor/svelte/store/index.js";
74
74
  import "../../vendor/svelte/internal/index.js";
75
75
  import "../utils/device.js";
76
- import "../../shared-utils/threex/domevents/index.js";
76
+ import "../utils/model/mediaPlane.js";
77
+ import "../../shared-utils/three/Quadrangle.js";
78
+ import "../../shared-utils/math/pointIsRectangle.js";
79
+ import "../../shared-utils/three/loadVideoTexture.js";
80
+ import "../Assets/Icon.js";
81
+ import "../../shared-utils/three/getPositionsByObjectFit.js";
82
+ import "../../shared-utils/five/FiveDomEvents.js";
77
83
  import "../Components/TagContainer.js";
78
84
  import "../Components/TagItem.js";
79
85
  import "../Components/Tag/index.js";
@@ -90,7 +96,6 @@ import "animejs";
90
96
  import "../utils/search.js";
91
97
  import "../utils/constants.js";
92
98
  import "../Components/Common/Arrow.js";
93
- import "../Assets/Icon.js";
94
99
  import "../utils/doUtil.js";
95
100
  import "../../shared-utils/svelte/resizeObserver.js";
96
101
  import "../../vendor/resize-observer-polyfill/dist/ResizeObserver.es.js";
@@ -145,13 +150,12 @@ import "../utils/getImageInfo.js";
145
150
  import "../Components/Tag/CustomTag.js";
146
151
  import "classnames";
147
152
  import "../Components/Common/TagPoint.js";
148
- import "../utils/model/imagePlane.js";
149
153
  import "../../CSS3DRenderPlugin/index.js";
150
154
  import "../../CSS3DRenderPlugin/Controller.js";
151
155
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
152
156
  import "../../shared-utils/three/GLTFLoader.js";
153
- const D = "Dnalogel-PanoTagPlugin", Zt = (d) => `${D}--${d}`;
154
- class ei extends k {
157
+ const D = "Dnalogel-PanoTagPlugin", si = (d) => `${D}--${d}`;
158
+ class oi extends k {
155
159
  constructor(e, t) {
156
160
  super(e);
157
161
  p(this, "state", { enabled: !0, visible: !0 });
@@ -188,7 +192,7 @@ class ei extends k {
188
192
  const i = yield this.addTag(e.tagList, t);
189
193
  if (this.debug)
190
194
  try {
191
- M(this.five, this.tags);
195
+ w(this.five, this.tags);
192
196
  } catch (r) {
193
197
  console.error(r);
194
198
  }
@@ -204,7 +208,7 @@ class ei extends k {
204
208
  visible: void 0,
205
209
  unfolded: !this.can("fold", o)
206
210
  }, r.initialState),
207
- hooks: new w(),
211
+ hooks: new M(),
208
212
  mergedConfig: r,
209
213
  unfold: () => this.changeUnfoldedById(o.id, !0),
210
214
  fold: () => this.changeUnfoldedById(o.id, !1),
@@ -324,13 +328,16 @@ class ei extends k {
324
328
  this.pauseCurrentMedia(), this.state.visible = !1, this.group.visible = !1, this.updateTagContainerVisible(), this.updateTagModelVisible(), this.five.needsRender = !0;
325
329
  }
326
330
  handleEnable() {
327
- this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.five.scene.children.includes(this.group) || this.five.scene.add(this.group), this.updateRenderAllTags(), this.five.needsRender = !0;
331
+ this.state.enabled = !0, this.store.eventListenerDisposer = this.addEventListener(), this.five.scene.children.includes(this.group) || this.five.scene.add(this.group), this.group.traverse((e) => {
332
+ var t;
333
+ (t = e == null ? void 0 : e.updateTagCss3DObjectMatrix) == null || t.call(e);
334
+ }), this.updateRenderAllTags(), this.five.needsRender = !0;
328
335
  }
329
336
  handleDisable() {
330
337
  var e, t, i;
331
338
  this.pauseCurrentMedia(), this.state.enabled = !1, (t = (e = this.store).eventListenerDisposer) == null || t.call(e), this.five.scene.remove(this.group), (i = this.TagContainerSvelte) == null || i.$set({ tags: [] }), this.filterCSS3DTag.forEach((s) => {
332
339
  var o;
333
- (o = s.tag3DContentSvelte) == null || o.svelteApp.$destroy(), s.tag3DContentSvelte = void 0;
340
+ (o = s.tag3DContentSvelte) == null || o.dispose(), s.tag3DContentSvelte = void 0;
334
341
  }), this.five.needsRender = !0;
335
342
  }
336
343
  addEventListener() {
@@ -415,11 +422,11 @@ class ei extends k {
415
422
  }
416
423
  changeTagMode(e, t) {
417
424
  var i, s, o, r, n, h;
418
- ((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);
425
+ ((i = this.getTagConfig(e)) == null ? void 0 : i.renderType) !== "Mesh" && ((r = (o = (s = e.tag3DContentSvelte) == null ? void 0 : s.css3DInstance) == 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);
419
426
  }
420
427
  }
421
428
  export {
422
- ei as PanoTagPluginController,
423
- ei as default,
424
- Zt as pluginFlag
429
+ oi as PanoTagPluginController,
430
+ oi as default,
431
+ si as pluginFlag
425
432
  };