@realsee/dnalogel 2.16.0-2 → 2.16.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 (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 -70
  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 +69 -0
  12. package/dist/base/BasePlugin.d.ts +0 -1
  13. package/dist/index.cjs.js +115 -162
  14. package/dist/index.js +5234 -5141
  15. package/dist/index.umd.js +116 -163
  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 -70
  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 +4 -5
  322. package/libs/PanoTagPlugin/controller/TagRender.js +82 -63
  323. package/libs/PanoTagPlugin/controller/TagUtil.js +13 -20
  324. package/libs/PanoTagPlugin/controller/index.js +22 -15
  325. package/libs/PanoTagPlugin/index.js +17 -13
  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 +69 -0
  334. package/libs/PanoTagPlugin/utils/model/mediaPlane.js +214 -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 +120 -118
  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 -19
  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 -108
  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 -231
  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 -19
  413. package/libs/GuideLinePlugin/utils/createLineGeometry.js +0 -35
  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
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) => {
3
+ var c = (l, p, t) => (w(l, typeof p != "symbol" ? p + "" : p, t), t);
4
+ var P = (l, p, t) => new Promise((e, i) => {
5
5
  var o = (s) => {
6
6
  try {
7
7
  a(t.next(s));
@@ -18,19 +18,20 @@ var D = (l, p, t) => new Promise((e, i) => {
18
18
  a((t = t.apply(l, 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";
21
+ import { Group as b, Quaternion as x, Vector3 as D, Matrix4 as T } from "three";
22
22
  import G from "../Components/TagContainer.js";
23
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";
24
+ import { arrayPositionToVector3 as S } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
25
+ import { centerPoint as E } from "../../shared-utils/three/centerPoint.js";
26
26
  import "@realsee/five/gltf-loader";
27
- import R from "../utils/model/imagePlane.js";
28
- import { isMediaModelTag as S } from "../utils/tag/tagCheck.js";
29
- import { CSS3DRenderPlugin as E } from "../../CSS3DRenderPlugin/index.js";
27
+ import { ImagePlane as R, VideoPlane as I } from "../utils/model/mediaPlane.js";
28
+ import { isMediaModelTag as C } from "../utils/tag/tagCheck.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,9 @@ 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";
64
63
  import "../Components/TagItem.js";
65
64
  import "../utils/noTypecheck.js";
66
65
  import "../Components/Common/TagPoint.js";
@@ -131,18 +130,23 @@ import "../Components/Tag/AudioTag/AudioPlaneTag.js";
131
130
  import "../Components/Tag/MediaPlane.js";
132
131
  import "../Components/Tag/LinkTag.js";
133
132
  import "../Components/Tag/CustomTag.js";
133
+ import "../../shared-utils/three/Quadrangle.js";
134
+ import "../../shared-utils/math/pointIsRectangle.js";
135
+ import "../../shared-utils/three/loadVideoTexture.js";
136
+ import "../../shared-utils/three/getPositionsByObjectFit.js";
137
+ import "../../shared-utils/five/FiveDomEvents.js";
134
138
  import "../../CSS3DRenderPlugin/Controller.js";
135
139
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
136
- class Qe extends O {
140
+ class Xe extends O {
137
141
  constructor(t) {
138
142
  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* () {
143
+ c(this, "group", new b());
144
+ c(this, "imagePlaneGroup", new b());
145
+ c(this, "gltfObjectGroup", new b());
146
+ c(this, "enabledModelTagSet", /* @__PURE__ */ new Set());
147
+ c(this, "temporaryState", { visible: !0 });
148
+ c(this, "TagContainerSvelte");
149
+ c(this, "loadModel", (t) => P(this, null, function* () {
146
150
  var s;
147
151
  const e = t.data.modelUrl;
148
152
  if (!e)
@@ -155,14 +159,14 @@ class Qe extends O {
155
159
  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
160
  const a = this.gltfObjectGroup.children.find((r) => r.customID === t.id);
157
161
  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);
162
+ if (!t.mediaPlane) {
163
+ const r = t.data.mediaPosition.map(S);
164
+ t.mediaPlane = new R(t.data.mediaData[0].url, t.data.mediaPosition.map(S));
165
+ const m = new D().addVectors(r[0], r[2]).divideScalar(2);
166
+ t.mediaPlane.position.copy(m), o.add(t.mediaPlane);
163
167
  }
164
168
  } else
165
- this.updateTagCss3DObjectMatrix(t, o);
169
+ o.updateTagCss3DObjectMatrix = () => this.updateTagCss3DObjectMatrix(t, o), o.updateTagCss3DObjectMatrix();
166
170
  return this.gltfObjectGroup.add(o), o;
167
171
  }));
168
172
  this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.imagePlaneGroup.name = "ImagePlaneGroup", this.group.add(this.gltfObjectGroup), this.group.add(this.imagePlaneGroup);
@@ -170,7 +174,7 @@ class Qe extends O {
170
174
  clearTags() {
171
175
  this.tags.forEach((t) => {
172
176
  var e, i;
173
- (i = (e = t.imagePlane) == null ? void 0 : e.parent) == null || i.remove(t.imagePlane);
177
+ (i = (e = t.mediaPlane) == null ? void 0 : e.parent) == null || i.remove(t.mediaPlane);
174
178
  }), this.tags = [], this.enabledModelTagSet.clear(), this.clearCache(), this.disposeAllCSS3DContainer(), this.updateRenderAllTags();
175
179
  }
176
180
  updateRenderAllTags() {
@@ -178,19 +182,28 @@ class Qe extends O {
178
182
  }
179
183
  updateRenderImagePlane() {
180
184
  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))
185
+ var s, r, m;
186
+ const i = e.data.mediaData[0];
187
+ if (!i)
184
188
  return;
185
- const o = e.position.map(b);
186
- e.imagePlane = new R(i, o), e.imagePlane.setMatrixByCornerPoints(o), this.imagePlaneGroup.add(e.imagePlane);
189
+ const o = i.url, n = i.type;
190
+ 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))
191
+ return;
192
+ const a = e.position.map(S);
193
+ if (e.mediaPlane && e.mediaPlane.removeFromParent(), n === "Image")
194
+ e.mediaPlane = new R(o, a);
195
+ else if (n === "Video") {
196
+ const d = new I(o, a, { videoCoverSrc: i.videoCoverUrl, playButton: e.data.playIcon });
197
+ d.initialDomEvents(this.five), d.initialRenderHooks(this.five), e.mediaPlane = d;
198
+ }
199
+ this.imagePlaneGroup.add(e.mediaPlane);
187
200
  });
188
201
  }
189
202
  updateRender3DDomTag() {
190
203
  this.sort([...this.filterCSS3DTag]).forEach((e) => {
191
204
  var i, o;
192
205
  if (e.tag3DContentSvelte) {
193
- const { svelteApp: n, domContainer: a, initialNormal: s, currentNormal: r } = e.tag3DContentSvelte;
206
+ const { svelteApp: n, css3DInstance: a, initialNormal: s, currentNormal: r } = e.tag3DContentSvelte;
194
207
  if (n.$set({ tag: e, hooks: this.hooks, state: this.state, temporaryState: this.temporaryState }), !s.equals(r)) {
195
208
  const m = new x().setFromUnitVectors(s, r);
196
209
  a.css3DObject.setRotationFromQuaternion(m);
@@ -199,7 +212,7 @@ class Qe extends O {
199
212
  } else {
200
213
  if (((i = e.state) == null ? void 0 : i.visible) === !1)
201
214
  return;
202
- if (this.css3DRenderPlugin || (this.css3DRenderPlugin = E(this.five)), e.stickType === "3DPoint" && !e.normal)
215
+ if (this.css3DRenderPlugin || (this.css3DRenderPlugin = A(this.five)), e.stickType === "3DPoint" && !e.normal)
203
216
  return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
204
217
  const n = this.getPositions(e);
205
218
  if (!n)
@@ -210,41 +223,47 @@ class Qe extends O {
210
223
  const r = (o = this.getTagConfig(e).tag3DConfig) != null ? o : {};
211
224
  if (this.getRenderType(e) === "BehindDom") {
212
225
  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", () => {
226
+ const f = "black";
227
+ r.container.style.backgroundColor = f, r.container.style.border = `3px solid ${f}`, this.css3DRenderPlugin.hooks.on("render", () => {
215
228
  var u;
216
229
  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 });
230
+ const h = this.addObjectClickHandler(e, m.css3DObject.opacityMesh, (g) => {
231
+ this.hooks.emit("click", { event: g, target: "TagContent", tag: e });
219
232
  });
220
- (u = this.store.css3DRenderDisposer.get(e.id)) == null || u.push(g);
233
+ (u = this.store.css3DRenderDisposer.get(e.id)) == null || u.push(h);
221
234
  }
222
235
  });
223
236
  }
224
237
  const m = this.css3DRenderPlugin.create3DDomContainer(n, r);
225
238
  if (!m)
226
239
  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
- }),
240
+ this.store.css3DRenderDisposer.set(e.id, [m.dispose]);
241
+ const d = new k({
242
+ target: m.container,
243
+ props: {
244
+ tag: e,
245
+ hooks: this.hooks,
246
+ state: this.state,
247
+ mediaStore: this.mediaStore,
248
+ temporaryState: this.temporaryState
249
+ }
250
+ });
251
+ e.tag3DContentSvelte = {
252
+ svelteApp: d,
238
253
  domContainer: m,
254
+ css3DInstance: m,
239
255
  initialNormal: a,
240
- currentNormal: a
256
+ currentNormal: a,
257
+ dispose: () => {
258
+ d.$destroy(), m.dispose();
259
+ }
241
260
  };
242
261
  }
243
262
  }), this.clearUnusedPanelTag();
244
263
  }
245
264
  updateRenderModelTag() {
246
265
  const t = (i) => !this.enabledModelTagSet.has(i.customID);
247
- this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter(S).forEach((i) => {
266
+ this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(t)), this.tags.filter(C).forEach((i) => {
248
267
  var o;
249
268
  (o = i.model) == null || o.promise.then((n) => {
250
269
  n.visible = this.getCurrentVisibleState(i);
@@ -254,24 +273,24 @@ class Qe extends O {
254
273
  updateTagModelVisible() {
255
274
  this.tags.forEach((t) => {
256
275
  var e;
257
- t.imagePlane && (t.imagePlane.visible = this.getCurrentVisibleState(t)), (e = t.model) != null && e.object && (t.model.object.visible = this.getCurrentVisibleState(t));
276
+ t.mediaPlane && (t.mediaPlane.visible = this.getCurrentVisibleState(t)), (e = t.model) != null && e.object && (t.model.object.visible = this.getCurrentVisibleState(t));
258
277
  });
259
278
  }
260
279
  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;
280
+ var g, v, y, M;
281
+ const i = (y = (v = (g = t.mergedConfig) == null ? void 0 : g.tag3DConfig) == null ? void 0 : v.ratio) != null ? y : 216e-5, o = (M = t.tag3DContentSvelte) == null ? void 0 : M.css3DInstance.css3DObject;
263
282
  if (!o)
264
283
  return;
265
- const n = S(t) ? t.data.mediaPosition : t.position;
284
+ const n = C(t) ? t.data.mediaPosition : t.position;
266
285
  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);
286
+ const a = e.matrixWorld, s = new D().fromArray(n[0]), r = new D().fromArray(n[2]), m = E(s, r).add(new D(0, 0, 5e-4)), d = new T().setPosition(m), f = new T().makeScale(i, i, i), u = new T().multiply(a).multiply(d).multiply(f);
287
+ u.decompose(o.position, o.quaternion, o.scale);
288
+ const h = o.opacityMesh;
289
+ h && u.decompose(h.position, h.quaternion, h.scale);
271
290
  }
272
291
  addMediaModelTag(t) {
273
- return D(this, null, function* () {
274
- const e = t.filter(S).map((i) => this.loadModel(i));
292
+ return P(this, null, function* () {
293
+ const e = t.filter(C).map((i) => this.loadModel(i));
275
294
  yield Promise.all(e), this.setModelMedialVisible(), this.updateRenderAllTags();
276
295
  });
277
296
  }
@@ -298,7 +317,7 @@ class Qe extends O {
298
317
  withAnimation: this.store.visibleWithAnimation
299
318
  }), this.filterCSS3DTag.forEach((e) => {
300
319
  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({
320
+ (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
321
  state: this.state,
303
322
  temporaryState: this.temporaryState,
304
323
  withAnimation: this.store.visibleWithAnimation
@@ -313,7 +332,7 @@ class Qe extends O {
313
332
  clearUnusedPanelTag() {
314
333
  this.filter2DPointTag.forEach((t) => {
315
334
  var e;
316
- (e = t.tag3DContentSvelte) == null || e.domContainer.dispose(), t.tag3DContentSvelte = void 0;
335
+ (e = t.tag3DContentSvelte) == null || e.css3DInstance.dispose(), t.tag3DContentSvelte = void 0;
317
336
  });
318
337
  for (const [t, e] of this.store.css3DRenderDisposer) {
319
338
  const i = this.getTagById(t);
@@ -322,5 +341,5 @@ class Qe extends O {
322
341
  }
323
342
  }
324
343
  export {
325
- Qe as TagRender
344
+ Xe as TagRender
326
345
  };
@@ -6,17 +6,14 @@ import * as C from "three";
6
6
  import { DefaultConfig as w } from "../tag.config.js";
7
7
  import { anyPositionToVector3 as E, 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";
10
- import { normalPositionToPositions as M } from "../utils/normalPositionToPositions.js";
9
+ import { tagPosition as P, getTagPosition as M } from "../utils/tagPosition.js";
10
+ import { normalPositionToPositions as k } 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";
13
13
  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";
22
19
  import "@realsee/five/gltf-loader";
@@ -24,7 +21,7 @@ import "../../shared-utils/three/loadTexture.js";
24
21
  import "../../shared-utils/three/centerPoint.js";
25
22
  import "../../base/BasePlugin.js";
26
23
  import "../../shared-utils/Subscribe.js";
27
- import "../../shared-utils/isAbsoluteURL.js";
24
+ import "../../vendor/svelte/internal/index.js";
28
25
  import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
29
26
  import "three/examples/jsm/renderers/CSS3DRenderer";
30
27
  import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -34,9 +31,7 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
34
31
  import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
35
32
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
36
33
  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 {
34
+ class le extends b {
40
35
  constructor(e) {
41
36
  super(e);
42
37
  a(this, "tags", []);
@@ -96,10 +91,10 @@ class he extends b {
96
91
  (e.stickType === s || s === "Any") && (e.contentType === n || n === "Any") && (i[r] = this.config.contentTypeConfig[r]);
97
92
  }
98
93
  if (f.length === 3) {
99
- const [s = "Any", n, h] = f;
94
+ const [s = "Any", n, m] = f;
100
95
  if (n === "Audio" && e.contentType === "Audio") {
101
- const m = e;
102
- (m.stickType === s || s === "Any") && m.data.appearance === h && (i[r] = this.config.contentTypeConfig[r]);
96
+ const h = e;
97
+ (h.stickType === s || s === "Any") && h.data.appearance === m && (i[r] = this.config.contentTypeConfig[r]);
103
98
  }
104
99
  }
105
100
  });
@@ -143,10 +138,8 @@ class he extends b {
143
138
  if (i.renderType === "Mesh") {
144
139
  if (x(e))
145
140
  if (o.length === 1) {
146
- if (o[0].type === "Image")
141
+ if (o[0].type === "Image" || o[0].type === "Video")
147
142
  return "Mesh";
148
- if (o[0].type === "Video")
149
- return "Dom";
150
143
  } else
151
144
  return "Dom";
152
145
  else if (v(e))
@@ -172,8 +165,8 @@ class he extends b {
172
165
  const n = P(e.position);
173
166
  if (!n)
174
167
  return;
175
- const h = new C.Vector3().copy(f).sub(n), m = s.angleTo(h) * 180 / Math.PI;
176
- return t.angle = m, t.angle;
168
+ const m = new C.Vector3().copy(f).sub(n), h = s.angleTo(m) * 180 / Math.PI;
169
+ return t.angle = h, t.angle;
177
170
  }
178
171
  }
179
172
  getDistance(e, i) {
@@ -188,7 +181,7 @@ class he extends b {
188
181
  const f = (r = (l = this.five.work) == null ? void 0 : l.observers[o]) == null ? void 0 : r.position;
189
182
  if (f === void 0)
190
183
  throw new Error(`getDistance(): observerPosition is ${f}`);
191
- const s = k(e);
184
+ const s = M(e);
192
185
  if (!s)
193
186
  return -1;
194
187
  const n = f.distanceTo(s);
@@ -201,7 +194,7 @@ class he extends b {
201
194
  if (v(e))
202
195
  return e.data.mediaPosition;
203
196
  const i = e;
204
- return M(
197
+ return k(
205
198
  this.five.camera.position,
206
199
  p(i.position),
207
200
  p(i.normal)
@@ -293,5 +286,5 @@ class he extends b {
293
286
  }
294
287
  }
295
288
  export {
296
- he as TagUtil
289
+ le as TagUtil
297
290
  };
@@ -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,9 @@ 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";
77
76
  import "../Components/TagContainer.js";
78
77
  import "../Components/TagItem.js";
79
78
  import "../Components/Tag/index.js";
@@ -145,13 +144,18 @@ import "../utils/getImageInfo.js";
145
144
  import "../Components/Tag/CustomTag.js";
146
145
  import "classnames";
147
146
  import "../Components/Common/TagPoint.js";
148
- import "../utils/model/imagePlane.js";
147
+ import "../utils/model/mediaPlane.js";
148
+ import "../../shared-utils/three/Quadrangle.js";
149
+ import "../../shared-utils/math/pointIsRectangle.js";
150
+ import "../../shared-utils/three/loadVideoTexture.js";
151
+ import "../../shared-utils/three/getPositionsByObjectFit.js";
152
+ import "../../shared-utils/five/FiveDomEvents.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
  };
@@ -1,7 +1,7 @@
1
1
  import t from "./controller/index.js";
2
- import { default as Fr, pluginFlag as br } from "./controller/index.js";
3
- import { ContentType as jr } from "./typings/tag/TagData.js";
4
- import { DimensionType as qr } from "./typings/tag/Utils.js";
2
+ import { default as kr, pluginFlag as qr } from "./controller/index.js";
3
+ import { ContentType as zr } from "./typings/tag/TagData.js";
4
+ import { DimensionType as Br } from "./typings/tag/Utils.js";
5
5
  import "@realsee/five";
6
6
  import "object-assign-deep";
7
7
  import "../CSS3DRenderPlugin/utils/positionToVector3.js";
@@ -9,6 +9,7 @@ import "three";
9
9
  import "./utils/addDebugPoints.js";
10
10
  import "@realsee/five/gltf-loader";
11
11
  import "../shared-utils/three/loadTexture.js";
12
+ import "../shared-utils/threex/domevents/index.js";
12
13
  import "./utils/tag/tagCheck.js";
13
14
  import "./utils/actionAfterFiveModelLoad.js";
14
15
  import "./utils/debounce.js";
@@ -44,11 +45,9 @@ import "./utils/planeNormal.js";
44
45
  import "./utils/normalPositionToPositions.js";
45
46
  import "./controller/TagCache.js";
46
47
  import "../base/BasePlugin.js";
47
- import "../shared-utils/isAbsoluteURL.js";
48
48
  import "../vendor/svelte/store/index.js";
49
49
  import "../vendor/svelte/internal/index.js";
50
50
  import "./utils/device.js";
51
- import "../shared-utils/threex/domevents/index.js";
52
51
  import "./Components/TagContainer.js";
53
52
  import "./Components/TagItem.js";
54
53
  import "./Components/Tag/index.js";
@@ -120,17 +119,22 @@ import "./utils/getImageInfo.js";
120
119
  import "./Components/Tag/CustomTag.js";
121
120
  import "classnames";
122
121
  import "./Components/Common/TagPoint.js";
123
- import "./utils/model/imagePlane.js";
122
+ import "./utils/model/mediaPlane.js";
123
+ import "../shared-utils/three/Quadrangle.js";
124
+ import "../shared-utils/math/pointIsRectangle.js";
125
+ import "../shared-utils/three/loadVideoTexture.js";
126
+ import "../shared-utils/three/getPositionsByObjectFit.js";
127
+ import "../shared-utils/five/FiveDomEvents.js";
124
128
  import "../CSS3DRenderPlugin/index.js";
125
129
  import "../CSS3DRenderPlugin/Controller.js";
126
130
  import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
127
131
  import "../shared-utils/three/GLTFLoader.js";
128
- const cr = (o, r) => new t(o, r);
132
+ const br = (o, r) => new t(o, r);
129
133
  export {
130
- jr as ContentType,
131
- qr as DimensionType,
132
- cr as PanoTagPlugin,
133
- Fr as PanoTagPluginController,
134
- cr as default,
135
- br as pluginFlag
134
+ zr as ContentType,
135
+ Br as DimensionType,
136
+ br as PanoTagPlugin,
137
+ kr as PanoTagPluginController,
138
+ br as default,
139
+ qr as pluginFlag
136
140
  };
@@ -8,7 +8,7 @@ import type { Subscribe } from '@realsee/five';
8
8
  import type { TagId, StickType, TagGLTFObject } from './tag/Utils';
9
9
  import type { TagContentType } from './tag/TagData';
10
10
  import type { Tag } from './tag/Tag';
11
- import type ImagePlane from '../utils/model/imagePlane';
11
+ import type { ImagePlane, VideoPlane } from '../utils/model/mediaPlane';
12
12
  declare type NonNullable<T> = T extends null | undefined | void ? never : T;
13
13
  export declare type TagHooks = InstanceType<typeof PanoTagPluginController>['hooks'];
14
14
  export interface State extends BasePlugin.State {
@@ -89,11 +89,14 @@ export declare type TagElement<C extends TagContentType = TagContentType, S exte
89
89
  };
90
90
  tag3DContentSvelte: {
91
91
  svelteApp: TagContentSvelte;
92
+ /** @deprecated rename to css3DInstance */
92
93
  domContainer: NonNullable<Create3DDomContainerReturnType>;
94
+ css3DInstance: NonNullable<Create3DDomContainerReturnType>;
93
95
  initialNormal: Vector3;
94
96
  currentNormal: Vector3;
97
+ dispose: () => void;
95
98
  };
96
- imagePlane: ImagePlane;
99
+ mediaPlane: ImagePlane | VideoPlane;
97
100
  model: {
98
101
  promise: Promise<TagGLTFObject>;
99
102
  object?: TagGLTFObject;
@@ -1,9 +1,11 @@
1
- import { ContentType as m } from "./tag/TagData.js";
2
- import { DimensionType as n } from "./tag/Utils.js";
1
+ import { ContentType as n } from "./tag/TagData.js";
2
+ import { DimensionType as x } from "./tag/Utils.js";
3
3
  import "@realsee/five/gltf-loader";
4
4
  import "three";
5
5
  import "../../shared-utils/three/loadTexture.js";
6
+ import "@realsee/five";
7
+ import "../../shared-utils/threex/domevents/index.js";
6
8
  export {
7
- m as ContentType,
8
- n as DimensionType
9
+ n as ContentType,
10
+ x as DimensionType
9
11
  };
@@ -1,11 +1,9 @@
1
1
  import type { State as FiveState } from '@realsee/five';
2
2
  import type { TagConfig } from './TagConfig';
3
3
  import { ContentTypeMap, ContentType, TagContentType } from './TagData';
4
- import type { ContentTypeConfigKey, Position, TagId, StickType, TagStyle } from './Utils';
4
+ import type { ContentTypeConfigKey, Position, TagId, StickType, TagStyle, ElementRenderer } from './Utils';
5
5
  export type { ContentTypeMap, TagContentType };
6
6
  export { ContentType };
7
- /** 返回一个销毁函数 */
8
- declare type ElementRenderer = (container: HTMLElement) => () => void;
9
7
  export interface Tags {
10
8
  version?: string;
11
9
  /** tag配置 > 按type配置 > 全局配置 */
@@ -2,7 +2,7 @@ import { GLTFObject } from '@realsee/five/gltf-loader';
2
2
  import { Group } from 'three';
3
3
  import type { Tag } from './Tag';
4
4
  import type { TagContentType } from './TagData';
5
- import ImagePlane from '../../utils/model/imagePlane';
5
+ import { ImagePlane } from '../../utils/model/mediaPlane';
6
6
  export declare type TagId = string | number;
7
7
  export declare type ArrayPosition = number[];
8
8
  export declare type Position = ArrayPosition;
@@ -42,7 +42,10 @@ export interface TagStyle {
42
42
  export declare type TagGLTFObject = GLTFObject & {
43
43
  customID: number | string;
44
44
  isTagModel: boolean;
45
+ updateTagCss3DObjectMatrix?: () => void;
45
46
  };
47
+ /** 返回一个销毁函数 */
48
+ export declare type ElementRenderer = (container: HTMLElement) => () => void;
46
49
  export interface TagObjectGroup extends Group {
47
50
  children: Array<TagGLTFObjectGroup>;
48
51
  }
@@ -1,6 +1,8 @@
1
1
  import "@realsee/five/gltf-loader";
2
2
  import "three";
3
3
  import "../../../shared-utils/three/loadTexture.js";
4
+ import "@realsee/five";
5
+ import "../../../shared-utils/threex/domevents/index.js";
4
6
  var t = /* @__PURE__ */ ((r) => (r.Two = "2D", r.Three = "3D", r))(t || {});
5
7
  export {
6
8
  t as DimensionType