@realsee/dnalogel 2.10.6 → 2.11.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 (330) hide show
  1. package/dist/CSS3DRenderPlugin/Controller.d.ts +1 -0
  2. package/dist/PanoTagPlugin/controller/index.d.ts +0 -2
  3. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +2 -7
  4. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +11 -0
  5. package/dist/PanoTagPlugin/utils/getImageInfo.d.ts +8 -10
  6. package/dist/PanoTagPlugin/utils/px2rem.d.ts +3 -1
  7. package/dist/PanoVideoPlugin/VideoMeshController.d.ts +0 -7
  8. package/dist/base/BasePlugin.d.ts +4 -0
  9. package/dist/index.cjs.js +57 -57
  10. package/dist/index.js +4172 -3948
  11. package/dist/index.umd.js +50 -50
  12. package/docs/assets/search.js +1 -1
  13. package/docs/classes/CSS3DRender.html +31 -31
  14. package/docs/classes/CruisePluginController.html +35 -25
  15. package/docs/classes/Magnifier.html +20 -20
  16. package/docs/classes/ModelRoomLabelController.html +11 -11
  17. package/docs/classes/Object3DHelperController.html +39 -29
  18. package/docs/classes/PaintBrush.html +15 -15
  19. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  20. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  21. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  22. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  23. package/docs/classes/PanoTagPluginController.html +99 -143
  24. package/docs/classes/Util.BetterTween.html +8 -8
  25. package/docs/classes/Util.FivePointSelector.html +12 -12
  26. package/docs/classes/Util.Interval.html +12 -12
  27. package/docs/classes/Util.Magnifier.html +17 -17
  28. package/docs/classes/Util.PointDomHelper.html +11 -11
  29. package/docs/classes/Util.PointHelper.html +11 -11
  30. package/docs/classes/Util.Rectangle.html +13 -13
  31. package/docs/enums/CameraMovementEffect.html +7 -7
  32. package/docs/enums/ContentType.html +19 -19
  33. package/docs/enums/DIRECTION.html +9 -9
  34. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  35. package/docs/enums/DimensionType.html +7 -7
  36. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  37. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  38. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  39. package/docs/enums/PointType.html +7 -7
  40. package/docs/enums/Rotation.html +8 -8
  41. package/docs/functions/CSS3DRenderPlugin.html +5 -4
  42. package/docs/functions/CameraMovementPlugin.html +5 -4
  43. package/docs/functions/CruisePlugin.html +5 -4
  44. package/docs/functions/GuideLinePlugin.html +6 -5
  45. package/docs/functions/ItemLabelPlugin.html +5 -4
  46. package/docs/functions/MapviewFloorplanPlugin.html +5 -4
  47. package/docs/functions/ModelChassisCompassPlugin.html +5 -4
  48. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
  49. package/docs/functions/ModelFloorplanPlugin.html +5 -4
  50. package/docs/functions/ModelItemLabelPlugin.html +5 -4
  51. package/docs/functions/ModelRoomLabelPlugin.html +5 -4
  52. package/docs/functions/ModelTVVideoPlugin.html +5 -4
  53. package/docs/functions/ModelViewPlugin.html +5 -4
  54. package/docs/functions/Object3DHelperPlugin.html +5 -4
  55. package/docs/functions/PanoCompassPlugin.html +5 -4
  56. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
  57. package/docs/functions/PanoDoorLabelPlugin.html +5 -4
  58. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
  59. package/docs/functions/PanoMeasurePlugin.html +5 -4
  60. package/docs/functions/PanoRulerPlugin.html +5 -4
  61. package/docs/functions/PanoRulerProPlugin.html +5 -4
  62. package/docs/functions/PanoSpatialTagPlugin.html +5 -4
  63. package/docs/functions/PanoTagPlugin.html +5 -4
  64. package/docs/functions/PanoVideoPlugin.html +5 -4
  65. package/docs/functions/TopviewFloorplanPlugin.html +5 -4
  66. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  67. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  68. package/docs/functions/Util.getFrameTime.html +5 -5
  69. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  70. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  71. package/docs/functions/Util.isNil.html +5 -5
  72. package/docs/functions/Util.nextFrame.html +5 -5
  73. package/docs/functions/Util.notNil.html +5 -5
  74. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  75. package/docs/functions/Util.tweenProgress.html +5 -5
  76. package/docs/functions/pluginFlag.html +6 -5
  77. package/docs/index.html +5 -4
  78. package/docs/interfaces/AddTagConfig.html +6 -6
  79. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  80. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  81. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  82. package/docs/interfaces/EventMap.html +15 -15
  83. package/docs/interfaces/FloorplanBounding.html +8 -8
  84. package/docs/interfaces/FloorplanData.html +10 -10
  85. package/docs/interfaces/FloorplanEntrance.html +11 -11
  86. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  87. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  88. package/docs/interfaces/FloorplanFloorData.html +9 -9
  89. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  90. package/docs/interfaces/FloorplanObserver.html +9 -9
  91. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  92. package/docs/interfaces/FloorplanPosition.html +7 -7
  93. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  94. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  95. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  96. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  97. package/docs/interfaces/FloorplanServerData.html +7 -7
  98. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  99. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  100. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  101. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  102. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  103. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  104. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  105. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  106. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  107. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  108. package/docs/interfaces/HelperOffset.html +8 -8
  109. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  110. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  111. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  112. package/docs/interfaces/MinMax.html +7 -7
  113. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  114. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  115. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  116. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  117. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  118. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  119. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  120. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  121. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  122. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  123. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  124. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  125. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  126. package/docs/interfaces/Object3DHelperState.html +8 -8
  127. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  128. package/docs/interfaces/PaintBrushAction.html +12 -12
  129. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  130. package/docs/interfaces/PaintBrushState.html +10 -10
  131. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  132. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +6 -5
  133. package/docs/interfaces/PanoMeasureParameterType.html +12 -12
  134. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  135. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  136. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  137. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  138. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  139. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  140. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  141. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  142. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  143. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  144. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  145. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +6 -5
  146. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +6 -5
  147. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  148. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  149. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  150. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  151. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  152. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  153. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  154. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
  155. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
  156. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
  157. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
  158. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
  159. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
  160. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
  161. package/docs/interfaces/Point.html +8 -8
  162. package/docs/interfaces/Room.html +9 -9
  163. package/docs/interfaces/RoomInfo.html +7 -7
  164. package/docs/interfaces/RoomLabel.html +14 -14
  165. package/docs/interfaces/RoomRules.html +6 -5
  166. package/docs/interfaces/Rooms.html +6 -5
  167. package/docs/interfaces/Scissor.html +9 -9
  168. package/docs/interfaces/State.html +8 -8
  169. package/docs/interfaces/TagCache.html +12 -12
  170. package/docs/interfaces/TagConfig.html +10 -10
  171. package/docs/interfaces/TagIconUrl.html +28 -10
  172. package/docs/interfaces/TagStyle.html +67 -0
  173. package/docs/interfaces/Tags.html +10 -10
  174. package/docs/interfaces/TemporaryState.html +6 -6
  175. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  176. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  177. package/docs/modules/PanoVideoPluginType.html +5 -5
  178. package/docs/modules/Util.html +5 -5
  179. package/docs/modules.html +6 -4
  180. package/docs/types/ArrayPosition.html +6 -5
  181. package/docs/types/AudioAppearance.html +6 -5
  182. package/docs/types/AudioTagTypeConfigKey.html +6 -5
  183. package/docs/types/CSS3DRenderExportType.html +6 -5
  184. package/docs/types/CSS3DRenderPluginExportType.html +6 -5
  185. package/docs/types/CSS3DRenderPluginParameterType.html +6 -5
  186. package/docs/types/ClassFunctionParameters.html +6 -5
  187. package/docs/types/Color.html +6 -5
  188. package/docs/types/ContentTypeConfigKey.html +6 -5
  189. package/docs/types/ContentTypeConfigKeySplit.html +6 -5
  190. package/docs/types/ContentTypeMap.html +6 -5
  191. package/docs/types/Create3DDomContainerReturnType.html +6 -5
  192. package/docs/types/Create3DElementReturnType.html +6 -5
  193. package/docs/types/CruisePluginExportType.html +6 -5
  194. package/docs/types/Direction-1.html +6 -5
  195. package/docs/types/Direction4.html +6 -5
  196. package/docs/types/FloorplanRuleLabels.html +6 -5
  197. package/docs/types/FloorplanServerRuleLabels.html +6 -5
  198. package/docs/types/GuideLinePluginExportType.html +6 -5
  199. package/docs/types/HelperEventMap.html +6 -5
  200. package/docs/types/LoadTagConfig.html +6 -5
  201. package/docs/types/MapviewFloorplanPluginParameterType.html +6 -5
  202. package/docs/types/MapviewFloorplanPluginReturnType.html +6 -5
  203. package/docs/types/MediaData.html +6 -5
  204. package/docs/types/MediaStore.html +6 -5
  205. package/docs/types/ModelElement.html +6 -5
  206. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +6 -5
  207. package/docs/types/ModelFloorplanPluginParameterType.html +6 -5
  208. package/docs/types/ModelFloorplanPluginReturnType.html +6 -5
  209. package/docs/types/ModelRoomLabelPluginParameters.html +6 -5
  210. package/docs/types/ModelRoomLabelPluginReturnType.html +6 -5
  211. package/docs/types/MoveArgs.html +6 -5
  212. package/docs/types/MoveOpts.html +6 -5
  213. package/docs/types/Object3DHelperEventMap.html +6 -5
  214. package/docs/types/ObjectFit.html +6 -5
  215. package/docs/types/PaintBrushEventMap.html +6 -5
  216. package/docs/types/PanoCompassPluginData.html +6 -5
  217. package/docs/types/PanoCompassPluginExportType.html +6 -5
  218. package/docs/types/PanoCompassPluginParameterType.html +6 -5
  219. package/docs/types/PanoFloorplanRadarPluginParameterType.html +6 -5
  220. package/docs/types/PanoFloorplanRadarPluginReturnType.html +6 -5
  221. package/docs/types/PanoIndex.html +6 -5
  222. package/docs/types/PanoMeasurePluginEvent.html +6 -5
  223. package/docs/types/PanoMeasureReturnType.html +6 -5
  224. package/docs/types/PanoSpatialTagPluginId.html +6 -5
  225. package/docs/types/PanoTagPluginExportInterface.html +6 -5
  226. package/docs/types/PanoTagPluginParamsInterface.html +6 -5
  227. package/docs/types/PanoVideoPluginParameterType.html +6 -5
  228. package/docs/types/PanoVideoPluginReturnType.html +6 -5
  229. package/docs/types/PlaneTag.html +6 -5
  230. package/docs/types/PlaneTagElement.html +6 -5
  231. package/docs/types/Point2DElement.html +6 -5
  232. package/docs/types/Point2DTag.html +6 -5
  233. package/docs/types/Point3DElement.html +6 -5
  234. package/docs/types/Point3DTag.html +6 -5
  235. package/docs/types/PointTag.html +6 -5
  236. package/docs/types/PointTagElement.html +6 -5
  237. package/docs/types/Position.html +6 -5
  238. package/docs/types/RotateArgs.html +6 -5
  239. package/docs/types/RotateOpts.html +6 -5
  240. package/docs/types/RuleLabelsKey.html +6 -5
  241. package/docs/types/RuleLabelsValue.html +6 -5
  242. package/docs/types/StickType.html +6 -5
  243. package/docs/types/Tag.html +7 -6
  244. package/docs/types/Tag2D.html +6 -5
  245. package/docs/types/Tag3D.html +6 -5
  246. package/docs/types/TagContentType.html +6 -5
  247. package/docs/types/TagDimensionType.html +6 -5
  248. package/docs/types/TagElement.html +6 -5
  249. package/docs/types/TagEvents.html +6 -5
  250. package/docs/types/TagGLTFObject.html +6 -5
  251. package/docs/types/TagHooks.html +6 -5
  252. package/docs/types/TagIconSize.html +6 -5
  253. package/docs/types/TagId.html +6 -5
  254. package/docs/types/TagPointType.html +6 -5
  255. package/docs/types/TopviewFloorplanPluginParameterType.html +6 -5
  256. package/docs/types/TopviewFloorplanPluginReturnType.html +6 -5
  257. package/docs/types/WorkCode.html +6 -5
  258. package/docs/variables/FLOOR_TYPE_MAP.html +6 -5
  259. package/docs/variables/PLUGIN.html +6 -5
  260. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +6 -5
  261. package/docs/variables/ROOM_TYPE_MAP.html +6 -5
  262. package/docs/variables/VERSION.html +6 -5
  263. package/docs/variables/itemLabelPluginServerParams.html +6 -5
  264. package/docs/variables/modelItemLabelPluginServerParams.html +6 -5
  265. package/docs/variables/modelRoomLabelPluginServerParams.html +6 -5
  266. package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -0
  267. package/libs/CSS3DRenderPlugin/Controller.js +24 -23
  268. package/libs/PanoTagPlugin/Components/Common/Audio.js +84 -83
  269. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +261 -121
  270. package/libs/PanoTagPlugin/Components/Common/Media.js +28 -28
  271. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +61 -61
  272. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +79 -49
  273. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +15 -13
  274. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +2 -3
  275. package/libs/PanoTagPlugin/Components/Common/Text/MText.js +45 -45
  276. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +72 -68
  277. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +88 -85
  278. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +60 -60
  279. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +13 -13
  280. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +48 -48
  281. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +44 -55
  282. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +114 -107
  283. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +36 -25
  284. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +50 -49
  285. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +53 -50
  286. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +49 -49
  287. package/libs/PanoTagPlugin/Components/Tag/index.js +164 -153
  288. package/libs/PanoTagPlugin/Components/TagContainer.js +2 -3
  289. package/libs/PanoTagPlugin/Components/TagItem.js +85 -77
  290. package/libs/PanoTagPlugin/controller/TagComputer.js +2 -3
  291. package/libs/PanoTagPlugin/controller/index.d.ts +0 -2
  292. package/libs/PanoTagPlugin/controller/index.js +67 -66
  293. package/libs/PanoTagPlugin/index.js +1 -1
  294. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +4 -0
  295. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +6 -0
  296. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +93 -0
  297. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +5622 -0
  298. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +1325 -0
  299. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +173 -0
  300. package/libs/PanoTagPlugin/mocks/v1/mock1.js +121 -0
  301. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +233 -0
  302. package/libs/PanoTagPlugin/mocks/v1/mock2.js +296 -0
  303. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +22 -0
  304. package/libs/PanoTagPlugin/mocks/v1/mock3.js +32 -0
  305. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +56 -0
  306. package/libs/PanoTagPlugin/mocks/v1/mock4.js +60 -0
  307. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +13 -0
  308. package/libs/PanoTagPlugin/mocks/v1/mock5.js +17 -0
  309. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +16 -0
  310. package/libs/PanoTagPlugin/mocks/v1/mock6.js +27 -0
  311. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +22 -0
  312. package/libs/PanoTagPlugin/mocks/v1/mock7.js +228 -0
  313. package/libs/PanoTagPlugin/tsconfig.js +9 -0
  314. package/libs/PanoTagPlugin/typings/controller.js +1 -1
  315. package/libs/PanoTagPlugin/typings/index.js +5 -6
  316. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +2 -7
  317. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +11 -0
  318. package/libs/PanoTagPlugin/utils/addDebugPoints.js +4 -5
  319. package/libs/PanoTagPlugin/utils/getImageInfo.d.ts +8 -10
  320. package/libs/PanoTagPlugin/utils/getImageInfo.js +54 -36
  321. package/libs/PanoTagPlugin/utils/index.js +35 -36
  322. package/libs/PanoTagPlugin/utils/planeNormal.js +2 -3
  323. package/libs/PanoTagPlugin/utils/px2rem.d.ts +3 -1
  324. package/libs/PanoTagPlugin/utils/tagPosition.js +7 -8
  325. package/libs/PanoVideoPlugin/VideoMeshController.d.ts +0 -7
  326. package/libs/PanoVideoPlugin/VideoMeshController.js +38 -61
  327. package/libs/base/BasePlugin.d.ts +4 -0
  328. package/libs/base/BasePlugin.js +3 -2
  329. package/libs/index.js +1 -1
  330. package/package.json +2 -2
@@ -1,9 +1,8 @@
1
- import { SvelteComponent as K, init as M, safe_not_equal as N, append_styles as O, element as A, space as Q, attr as d, set_style as k, toggle_class as g, insert as P, append as j, transition_out as h, check_outros as B, transition_in as y, detach as C, getContext as U, group_outros as E, noop as v, create_component as G, mount_component as H, destroy_component as J } from "../../vendor/svelte/internal/index.js";
2
- import W from "./Tag/index.js";
1
+ import { SvelteComponent as M, init as N, safe_not_equal as O, append_styles as Q, element as C, space as U, attr as d, set_style as S, toggle_class as b, insert as L, append as j, transition_out as T, check_outros as B, transition_in as z, detach as I, getContext as W, group_outros as E, noop as A, create_component as G, mount_component as H, destroy_component as J } from "../../vendor/svelte/internal/index.js";
2
+ import X from "./Tag/index.js";
3
3
  import "three";
4
4
  import { noTypecheck as F } from "../utils/noTypecheck.js";
5
- import "@realsee/five/gltf-loader";
6
- import X from "./Common/TagPoint.js";
5
+ import Y from "./Common/TagPoint.js";
7
6
  import "./Tag/TextTag/index.js";
8
7
  import "./Tag/TextTag/TextTag.js";
9
8
  import "./Common/Line/Straight.js";
@@ -89,29 +88,29 @@ import "./Tag/LinkTag.js";
89
88
  import "./Common/Icon/Icon.js";
90
89
  import "../utils/getImageInfo.js";
91
90
  import "./Tag/CustomTag.js";
92
- function Y(o) {
93
- O(o, "svelte-pzwdws", ".tag.withAnimation.svelte-pzwdws{transition:opacity 0.3s linear}.tag.hide.svelte-pzwdws{opacity:0;pointer-events:none}.tag.hide.svelte-pzwdws *{pointer-events:none !important}.tag.unClickable.svelte-pzwdws{pointer-events:none !important}.tag.unClickable.svelte-pzwdws *{pointer-events:none !important}.tag.disable.svelte-pzwdws{display:none}.wrapper.svelte-pzwdws{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}");
94
- }
95
91
  function Z(o) {
92
+ Q(o, "svelte-pzwdws", ".tag.withAnimation.svelte-pzwdws{transition:opacity 0.3s linear}.tag.hide.svelte-pzwdws{opacity:0;pointer-events:none}.tag.hide.svelte-pzwdws *{pointer-events:none !important}.tag.unClickable.svelte-pzwdws{pointer-events:none !important}.tag.unClickable.svelte-pzwdws *{pointer-events:none !important}.tag.disable.svelte-pzwdws{display:none}.wrapper.svelte-pzwdws{position:absolute;width:0rem;height:0rem;overflow:visible;pointer-events:auto}");
93
+ }
94
+ function x(o) {
96
95
  let e;
97
96
  return {
98
97
  c() {
99
- e = A("div"), d(e, "data-info", "tag content is disable");
98
+ e = C("div"), d(e, "data-info", "tag content is disable");
100
99
  },
101
100
  m(t, i) {
102
- P(t, e, i);
101
+ L(t, e, i);
103
102
  },
104
- p: v,
105
- i: v,
106
- o: v,
103
+ p: A,
104
+ i: A,
105
+ o: A,
107
106
  d(t) {
108
- t && C(e);
107
+ t && I(e);
109
108
  }
110
109
  };
111
110
  }
112
- function x(o) {
111
+ function $(o) {
113
112
  let e, t;
114
- return e = new W({
113
+ return e = new X({
115
114
  props: {
116
115
  mediaStore: o[2],
117
116
  withAnimation: o[0],
@@ -128,40 +127,40 @@ function x(o) {
128
127
  H(e, i, n), t = !0;
129
128
  },
130
129
  p(i, n) {
131
- const l = {};
132
- n & 4 && (l.mediaStore = i[2]), n & 1 && (l.withAnimation = i[0]), n & 2 && (l.tag = F(i[1])), n & 8 && (l.state = i[3]), n & 16 && (l.temporaryState = i[4]), e.$set(l);
130
+ const a = {};
131
+ n & 4 && (a.mediaStore = i[2]), n & 1 && (a.withAnimation = i[0]), n & 2 && (a.tag = F(i[1])), n & 8 && (a.state = i[3]), n & 16 && (a.temporaryState = i[4]), e.$set(a);
133
132
  },
134
133
  i(i) {
135
- t || (y(e.$$.fragment, i), t = !0);
134
+ t || (z(e.$$.fragment, i), t = !0);
136
135
  },
137
136
  o(i) {
138
- h(e.$$.fragment, i), t = !1;
137
+ T(e.$$.fragment, i), t = !1;
139
138
  },
140
139
  d(i) {
141
140
  J(e, i);
142
141
  }
143
142
  };
144
143
  }
145
- function $(o) {
144
+ function tt(o) {
146
145
  let e;
147
146
  return {
148
147
  c() {
149
- e = A("div"), d(e, "data-info", "tag point is disable");
148
+ e = C("div"), d(e, "data-info", "tag point is disable");
150
149
  },
151
150
  m(t, i) {
152
- P(t, e, i);
151
+ L(t, e, i);
153
152
  },
154
- p: v,
155
- i: v,
156
- o: v,
153
+ p: A,
154
+ i: A,
155
+ o: A,
157
156
  d(t) {
158
- t && C(e);
157
+ t && I(e);
159
158
  }
160
159
  };
161
160
  }
162
- function tt(o) {
161
+ function et(o) {
163
162
  let e, t;
164
- return e = new X({ props: { tag: o[1] } }), {
163
+ return e = new Y({ props: { tag: o[1] } }), {
165
164
  c() {
166
165
  G(e.$$.fragment);
167
166
  },
@@ -169,93 +168,102 @@ function tt(o) {
169
168
  H(e, i, n), t = !0;
170
169
  },
171
170
  p(i, n) {
172
- const l = {};
173
- n & 2 && (l.tag = i[1]), e.$set(l);
171
+ const a = {};
172
+ n & 2 && (a.tag = i[1]), e.$set(a);
174
173
  },
175
174
  i(i) {
176
- t || (y(e.$$.fragment, i), t = !0);
175
+ t || (z(e.$$.fragment, i), t = !0);
177
176
  },
178
177
  o(i) {
179
- h(e.$$.fragment, i), t = !1;
178
+ T(e.$$.fragment, i), t = !1;
180
179
  },
181
180
  d(i) {
182
181
  J(e, i);
183
182
  }
184
183
  };
185
184
  }
186
- function et(o) {
187
- let e, t, i, n, l, s, u, w, f;
188
- const S = [x, Z], c = [];
189
- function T(r, a) {
185
+ function it(o) {
186
+ let e, t, i, n, a, l, f, k, s;
187
+ const P = [$, x], c = [];
188
+ function v(r, p) {
190
189
  return r[12] ? 0 : 1;
191
190
  }
192
- i = T(o), n = c[i] = S[i](o);
193
- const p = [tt, $], _ = [];
194
- function z(r, a) {
191
+ i = v(o), n = c[i] = P[i](o);
192
+ const h = [et, tt], u = [];
193
+ function y(r, p) {
195
194
  return r[13] ? 0 : 1;
196
195
  }
197
- return s = z(o), u = _[s] = p[s](o), {
196
+ return l = y(o), f = u[l] = h[l](o), {
198
197
  c() {
199
- e = A("div"), t = A("div"), n.c(), l = Q(), u.c(), d(t, "class", "wrapper svelte-pzwdws"), d(t, "data-tag-unfolded", o[8]), d(t, "data-tag-id", o[11]), d(t, "data-content-type", w = o[1].contentType), k(t, "left", o[7]), k(t, "top", o[6]), k(t, "z-index", o[5]), d(e, "class", "tag svelte-pzwdws"), d(e, "data-tag-id", o[11]), g(e, "unClickable", o[1].clickable === !1), g(e, "disable", o[10]), g(e, "hide", o[9]), g(e, "withAnimation", o[0]);
198
+ e = C("div"), t = C("div"), n.c(), a = U(), f.c(), d(t, "class", "wrapper svelte-pzwdws"), d(t, "data-tag-unfolded", o[8]), d(t, "data-tag-id", o[11]), d(t, "data-content-type", k = o[1].contentType), S(t, "left", o[7]), S(t, "top", o[6]), S(t, "z-index", o[5]), d(e, "class", "tag svelte-pzwdws"), d(e, "data-tag-id", o[11]), b(e, "unClickable", o[1].clickable === !1), b(e, "disable", o[10]), b(e, "hide", o[9]), b(e, "withAnimation", o[0]);
200
199
  },
201
- m(r, a) {
202
- P(r, e, a), j(e, t), c[i].m(t, null), j(t, l), _[s].m(t, null), f = !0;
200
+ m(r, p) {
201
+ L(r, e, p), j(e, t), c[i].m(t, null), j(t, a), u[l].m(t, null), s = !0;
203
202
  },
204
- p(r, [a]) {
205
- let m = i;
206
- i = T(r), i === m ? c[i].p(r, a) : (E(), h(c[m], 1, 1, () => {
207
- c[m] = null;
208
- }), B(), n = c[i], n ? n.p(r, a) : (n = c[i] = S[i](r), n.c()), y(n, 1), n.m(t, l));
209
- let b = s;
210
- s = z(r), s === b ? _[s].p(r, a) : (E(), h(_[b], 1, 1, () => {
211
- _[b] = null;
212
- }), B(), u = _[s], u ? u.p(r, a) : (u = _[s] = p[s](r), u.c()), y(u, 1), u.m(t, null)), (!f || a & 256) && d(t, "data-tag-unfolded", r[8]), (!f || a & 2048) && d(t, "data-tag-id", r[11]), (!f || a & 2 && w !== (w = r[1].contentType)) && d(t, "data-content-type", w), a & 128 && k(t, "left", r[7]), a & 64 && k(t, "top", r[6]), a & 32 && k(t, "z-index", r[5]), (!f || a & 2048) && d(e, "data-tag-id", r[11]), (!f || a & 2) && g(e, "unClickable", r[1].clickable === !1), (!f || a & 1024) && g(e, "disable", r[10]), (!f || a & 512) && g(e, "hide", r[9]), (!f || a & 1) && g(e, "withAnimation", r[0]);
203
+ p(r, [p]) {
204
+ let g = i;
205
+ i = v(r), i === g ? c[i].p(r, p) : (E(), T(c[g], 1, 1, () => {
206
+ c[g] = null;
207
+ }), B(), n = c[i], n ? n.p(r, p) : (n = c[i] = P[i](r), n.c()), z(n, 1), n.m(t, a));
208
+ let w = l;
209
+ l = y(r), l === w ? u[l].p(r, p) : (E(), T(u[w], 1, 1, () => {
210
+ u[w] = null;
211
+ }), B(), f = u[l], f ? f.p(r, p) : (f = u[l] = h[l](r), f.c()), z(f, 1), f.m(t, null)), (!s || p & 256) && d(t, "data-tag-unfolded", r[8]), (!s || p & 2048) && d(t, "data-tag-id", r[11]), (!s || p & 2 && k !== (k = r[1].contentType)) && d(t, "data-content-type", k), p & 128 && S(t, "left", r[7]), p & 64 && S(t, "top", r[6]), p & 32 && S(t, "z-index", r[5]), (!s || p & 2048) && d(e, "data-tag-id", r[11]), (!s || p & 2) && b(e, "unClickable", r[1].clickable === !1), (!s || p & 1024) && b(e, "disable", r[10]), (!s || p & 512) && b(e, "hide", r[9]), (!s || p & 1) && b(e, "withAnimation", r[0]);
213
212
  },
214
213
  i(r) {
215
- f || (y(n), y(u), f = !0);
214
+ s || (z(n), z(f), s = !0);
216
215
  },
217
216
  o(r) {
218
- h(n), h(u), f = !1;
217
+ T(n), T(f), s = !1;
219
218
  },
220
219
  d(r) {
221
- r && C(e), c[i].d(), _[s].d();
220
+ r && I(e), c[i].d(), u[l].d();
222
221
  }
223
222
  };
224
223
  }
225
- function it(o, e, t) {
226
- let i, n, l, s, u, w, f, S, c, { withAnimation: T = !1 } = e, { tag: p } = e, { mediaStore: _ } = e, { state: z } = e, { temporaryState: r } = e;
227
- const a = U("hooks");
228
- return o.$$set = (m) => {
229
- "withAnimation" in m && t(0, T = m.withAnimation), "tag" in m && t(1, p = m.tag), "mediaStore" in m && t(2, _ = m.mediaStore), "state" in m && t(3, z = m.state), "temporaryState" in m && t(4, r = m.temporaryState);
224
+ function ot(o, e, t) {
225
+ let i, n, a, l, f, k, s, P, c;
226
+ var v, h, u, y, r, p, g, w;
227
+ let { withAnimation: q = !1 } = e, { tag: m } = e, { mediaStore: D } = e, { state: R } = e, { temporaryState: V } = e;
228
+ const K = W("hooks");
229
+ return o.$$set = (_) => {
230
+ "withAnimation" in _ && t(0, q = _.withAnimation), "tag" in _ && t(1, m = _.tag), "mediaStore" in _ && t(2, D = _.mediaStore), "state" in _ && t(3, R = _.state), "temporaryState" in _ && t(4, V = _.temporaryState);
230
231
  }, o.$$.update = () => {
231
- var m, b, L, I, q, D, R, V;
232
- o.$$.dirty & 2 && t(13, i = (() => !(p.contentType === "Sticker" || p.contentType === "Link" || p.contentType === "VRLink" || p.contentType === "PanoLink" || p.contentType === "Audio" && p.data.appearance === "plane"))()), o.$$.dirty & 2 && t(12, n = (() => p.stickType === "2DPoint")()), o.$$.dirty & 2 && t(11, l = p.id), o.$$.dirty & 2 && t(10, s = !((m = p.pointTagStyle) != null && m.leftPercent) || !((b = p.pointTagStyle) != null && b.topPercent) || p.enabled === !1 || !p.state), o.$$.dirty & 2 && t(9, u = !((L = p.state) != null && L.visible) || ((I = p.temporaryState) == null ? void 0 : I.visible) === !1), o.$$.dirty & 2 && t(8, w = (q = p.state) == null ? void 0 : q.unfolded), o.$$.dirty & 2 && t(7, f = ((D = p.pointTagStyle) == null ? void 0 : D.leftPercent) + "%"), o.$$.dirty & 2 && t(6, S = ((R = p.pointTagStyle) == null ? void 0 : R.topPercent) + "%"), o.$$.dirty & 2 && t(5, c = (V = p.state) != null && V.unfolded ? 1 : 0);
232
+ o.$$.dirty & 2 && t(13, i = (() => !(m.contentType === "Sticker" || m.contentType === "Link" || m.contentType === "VRLink" || m.contentType === "PanoLink" || m.contentType === "Audio" && m.data.appearance === "plane"))()), o.$$.dirty & 2 && t(12, n = (() => m.stickType === "2DPoint")()), o.$$.dirty & 2 && t(11, a = m.id), o.$$.dirty & 98306 && t(10, l = !(!(t(15, v = m.pointTagStyle) === null || v === void 0) && v.leftPercent) || !(!(t(16, h = m.pointTagStyle) === null || h === void 0) && h.topPercent) || m.enabled === !1 || !m.state), o.$$.dirty & 393218 && t(9, f = !(!(t(17, u = m.state) === null || u === void 0) && u.visible) || (t(18, y = m.temporaryState) === null || y === void 0 ? void 0 : y.visible) === !1), o.$$.dirty & 524290 && t(8, k = t(19, r = m.state) === null || r === void 0 ? void 0 : r.unfolded), o.$$.dirty & 1048578 && t(7, s = (t(20, p = m.pointTagStyle) === null || p === void 0 ? void 0 : p.leftPercent) + "%"), o.$$.dirty & 2097154 && t(6, P = (t(21, g = m.pointTagStyle) === null || g === void 0 ? void 0 : g.topPercent) + "%"), o.$$.dirty & 4194306 && t(5, c = !(t(22, w = m.state) === null || w === void 0) && w.unfolded ? 1 : 0);
233
233
  }, [
234
- T,
235
- p,
236
- _,
237
- z,
238
- r,
234
+ q,
235
+ m,
236
+ D,
237
+ R,
238
+ V,
239
239
  c,
240
- S,
241
- f,
242
- w,
243
- u,
240
+ P,
244
241
  s,
242
+ k,
243
+ f,
245
244
  l,
245
+ a,
246
246
  n,
247
247
  i,
248
- a
248
+ K,
249
+ v,
250
+ h,
251
+ u,
252
+ y,
253
+ r,
254
+ p,
255
+ g,
256
+ w
249
257
  ];
250
258
  }
251
- class He extends K {
259
+ class He extends M {
252
260
  constructor(e) {
253
- super(), M(
261
+ super(), N(
254
262
  this,
255
263
  e,
264
+ ot,
256
265
  it,
257
- et,
258
- N,
266
+ O,
259
267
  {
260
268
  withAnimation: 0,
261
269
  tag: 1,
@@ -263,7 +271,7 @@ class He extends K {
263
271
  state: 3,
264
272
  temporaryState: 4
265
273
  },
266
- Y
274
+ Z
267
275
  );
268
276
  }
269
277
  }
@@ -27,7 +27,6 @@ import "../../CSS3DRenderPlugin/CSS3DRender.js";
27
27
  import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
28
28
  import { notNil as F } from "../../shared-utils/isNil.js";
29
29
  import "../../shared-utils/animationFrame/BetterTween.js";
30
- import "@realsee/five/gltf-loader";
31
30
  import "../../CSS3DRenderPlugin/utils/centerPoint.js";
32
31
  import "../../base/BasePlugin.js";
33
32
  import "../../shared-utils/Subscribe.js";
@@ -41,7 +40,7 @@ import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
41
40
  import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
42
41
  import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
43
42
  import "../../shared-utils/animationFrame/index.js";
44
- class ve extends S {
43
+ class pe extends S {
45
44
  constructor(e) {
46
45
  super(e);
47
46
  m(this, "tags", []);
@@ -408,5 +407,5 @@ class ve extends S {
408
407
  }
409
408
  }
410
409
  export {
411
- ve as TagComputer
410
+ pe as TagComputer
412
411
  };
@@ -6,8 +6,6 @@ import { Object3D } from 'three';
6
6
  import { TagComputer } from './TagComputer';
7
7
  export declare const pluginFlag: (name: string) => string;
8
8
  declare class PanoTagPluginController extends TagComputer {
9
- /** 版本号 */
10
- version: string;
11
9
  /** state */
12
10
  state: {
13
11
  enabled: boolean;
@@ -1,15 +1,15 @@
1
- var B = Object.defineProperty, G = Object.defineProperties;
2
- var x = Object.getOwnPropertyDescriptors;
3
- var F = Object.getOwnPropertySymbols;
4
- var N = Object.prototype.hasOwnProperty, W = Object.prototype.propertyIsEnumerable;
5
- var P = (h, d, e) => d in h ? B(h, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[d] = e, p = (h, d) => {
1
+ var V = Object.defineProperty, B = Object.defineProperties;
2
+ var G = Object.getOwnPropertyDescriptors;
3
+ var R = Object.getOwnPropertySymbols;
4
+ var x = Object.prototype.hasOwnProperty, N = Object.prototype.propertyIsEnumerable;
5
+ var P = (h, d, e) => d in h ? V(h, d, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[d] = e, p = (h, d) => {
6
6
  for (var e in d || (d = {}))
7
- N.call(d, e) && P(h, e, d[e]);
8
- if (F)
9
- for (var e of F(d))
10
- W.call(d, e) && P(h, e, d[e]);
7
+ x.call(d, e) && P(h, e, d[e]);
8
+ if (R)
9
+ for (var e of R(d))
10
+ N.call(d, e) && P(h, e, d[e]);
11
11
  return h;
12
- }, T = (h, d) => G(h, x(d));
12
+ }, T = (h, d) => B(h, G(d));
13
13
  var l = (h, d, e) => (P(h, typeof d != "symbol" ? d + "" : d, e), e);
14
14
  var c = (h, d, e) => new Promise((t, i) => {
15
15
  var s = (n) => {
@@ -27,27 +27,26 @@ var c = (h, d, 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(h, d)).next());
29
29
  });
30
- import { Subscribe as z } from "@realsee/five";
31
- import { Group as E, Vector3 as A, Matrix4 as S, Quaternion as _ } from "three";
30
+ import { Subscribe as W } from "@realsee/five";
31
+ import { Group as E, Vector3 as A, Matrix4 as S, Quaternion as z } from "three";
32
32
  import v from "object-assign-deep";
33
- import { writable as $ } from "../../vendor/svelte/store/index.js";
34
- import q from "../Components/TagContainer.js";
35
- import H from "../Components/Tag/index.js";
33
+ import { writable as _ } from "../../vendor/svelte/store/index.js";
34
+ import $ from "../Components/TagContainer.js";
35
+ import q from "../Components/Tag/index.js";
36
36
  import { arrayPositionToVector3 as C } from "../../CSS3DRenderPlugin/utils/positionToVector3.js";
37
- import { addDebugPoints as J } from "../utils/addDebugPoints.js";
37
+ import { addDebugPoints as H } from "../utils/addDebugPoints.js";
38
38
  import { planeNormal as k } from "../utils/planeNormal.js";
39
- import "@realsee/five/gltf-loader";
40
- import { isMediaModelTag as f } from "../utils/tag/tagCheck.js";
41
- import { waitFiveModelLoaded as Q } from "../utils/actionAfterFiveModelLoad.js";
42
- import { normalPositionToPositions as X } from "../utils/normalPositionToPositions.js";
39
+ import { isMediaModelTag as m } from "../utils/tag/tagCheck.js";
40
+ import { waitFiveModelLoaded as J } from "../utils/actionAfterFiveModelLoad.js";
41
+ import { normalPositionToPositions as Q } from "../utils/normalPositionToPositions.js";
43
42
  import { debounce as j } from "../utils/debounce.js";
44
- import { throttle as K } from "../utils/throttle.js";
45
- import { resizeObserver as I } from "../utils/resizeObserver.js";
46
- import { TagComputer as Y } from "./TagComputer.js";
47
- import { CSS3DRenderPlugin as Z } from "../../CSS3DRenderPlugin/index.js";
48
- import ee from "../utils/tag/format.js";
49
- import { generateBlankAudio as U, AudioNamespace as L } from "../../shared-utils/audio.js";
50
- import { loadGLTF as te } from "../../shared-utils/three/GLTFLoader.js";
43
+ import { throttle as X } from "../utils/throttle.js";
44
+ import { resizeObserver as U } from "../utils/resizeObserver.js";
45
+ import { TagComputer as K } from "./TagComputer.js";
46
+ import { CSS3DRenderPlugin as Y } from "../../CSS3DRenderPlugin/index.js";
47
+ import Z from "../utils/tag/format.js";
48
+ import { generateBlankAudio as I, AudioNamespace as L } from "../../shared-utils/audio.js";
49
+ import { loadGLTF as ee } from "../../shared-utils/three/GLTFLoader.js";
51
50
  import "../../vendor/svelte/internal/index.js";
52
51
  import "../Components/TagItem.js";
53
52
  import "../utils/noTypecheck.js";
@@ -140,18 +139,18 @@ import "./TagCacheController.js";
140
139
  import "../../base/BasePlugin.js";
141
140
  import "../../CSS3DRenderPlugin/Controller.js";
142
141
  import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
143
- const V = "3.0.0", M = `DnalogelPlugin-PanoTagPlugin@${V}`, ie = !1, li = (h) => `${M}--${h}`;
144
- class hi extends Y {
142
+ import "@realsee/five/gltf-loader";
143
+ const M = "DnalogelPlugin-PanoTagPlugin", te = !1, di = (h) => `${M}--${h}`;
144
+ class li extends K {
145
145
  constructor(e, t) {
146
146
  super(e);
147
- l(this, "version", V);
148
147
  l(this, "state", { enabled: !0, visible: !0 });
149
148
  l(this, "params");
150
149
  l(this, "debug");
151
150
  l(this, "css3DRenderPlugin");
152
151
  l(this, "TagContainerSvelte");
153
152
  l(this, "temporaryState", { visible: !0 });
154
- l(this, "mediaStore", $({
153
+ l(this, "mediaStore", _({
155
154
  currentMediaElement: null
156
155
  }));
157
156
  l(this, "group", new E());
@@ -173,12 +172,12 @@ class hi extends Y {
173
172
  l(this, "handleFiveInitAnimationEnded", () => {
174
173
  const e = this.five.getCurrentState().mode;
175
174
  this.tags.forEach((t) => {
176
- f(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
175
+ m(t) && e === "Panorama" && this.changeTagMode(t, "front"), t.state.visible = this.getVisible(t);
177
176
  }), this.updateRenderAllTags(), this.updateRenderAllTags();
178
177
  });
179
178
  l(this, "handleFiveModelShownFloorChange", () => {
180
179
  this.tags.forEach((e) => {
181
- !f(e) || (e.state.visible = this.getVisible(e));
180
+ !m(e) || (e.state.visible = this.getVisible(e));
182
181
  }), this.updateRenderAllTags();
183
182
  });
184
183
  l(this, "loadModel", (e) => c(this, null, function* () {
@@ -186,7 +185,7 @@ class hi extends Y {
186
185
  const t = e.data.modelUrl;
187
186
  if (!t)
188
187
  return;
189
- const i = te(t).then((a) => Object.assign(a.scene, { customID: e.id, isTagModel: !0 }));
188
+ const i = ee(t).then((a) => Object.assign(a.scene, { customID: e.id, isTagModel: !0 }));
190
189
  e.model = { promise: i };
191
190
  const s = yield i;
192
191
  if (((n = e.model) == null ? void 0 : n.promise) !== i || (e.model.object = s, !this.tags.includes(e)))
@@ -195,7 +194,7 @@ class hi extends Y {
195
194
  const r = this.gltfObjectGroup.children.find((a) => a.customID === e.id);
196
195
  return r && this.gltfObjectGroup.remove(r), this.gltfObjectGroup.add(s), this.updateTagCss3DObjectMatrix(e, s), s;
197
196
  }));
198
- this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup), this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, U(1, { namespace: L.GetAudioDuration }), U(1, { namespace: L.PlayAudio }), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this }), this.state.enabled && this.five.scene.add(this.group);
197
+ this.group.name = "PanoTagPluginModelGroup", this.gltfObjectGroup.name = "PanoTagPluginGLTFObjectGroup", this.group.add(this.gltfObjectGroup), this.params = p({ debug: !1, config: this.config }, t), this.debug = this.params.debug, this.config = this.params.config, I(1, { namespace: L.GetAudioDuration }), I(1, { namespace: L.PlayAudio }), Object.assign(window, { [`__PANOTAGPLUGIN_DEBUG_${Date.now()}__`]: this }), Object.assign(window, { __PANOTAGPLUGIN_DEBUG__: this }), this.state.enabled && this.five.scene.add(this.group);
199
198
  }
200
199
  load(e, t) {
201
200
  return c(this, null, function* () {
@@ -207,7 +206,7 @@ class hi extends Y {
207
206
  const i = yield this.addTag(e.tagList, t);
208
207
  if (this.debug)
209
208
  try {
210
- J(this.five, this.tags);
209
+ H(this.five, this.tags);
211
210
  } catch (r) {
212
211
  console.error(r);
213
212
  }
@@ -219,13 +218,13 @@ class hi extends Y {
219
218
  const s = (Array.isArray(e) ? e : [e]).map((o) => {
220
219
  const r = this.getTagConfig(o);
221
220
  return T(p({}, o), {
222
- state: p({ visible: void 0, unfolded: ie }, r.initialState),
223
- hooks: new z(),
221
+ state: p({ visible: void 0, unfolded: te }, r.initialState),
222
+ hooks: new W(),
224
223
  clickable: r.clickable,
225
224
  mergedConfig: r
226
225
  });
227
226
  }).filter((o) => o.position);
228
- return s.forEach(ee), this.tags.push(...s), Q(this.five).then(() => {
227
+ return s.forEach(Z), this.tags.push(...s), J(this.five).then(() => {
229
228
  var o, r, n;
230
229
  return this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && (this.store.eventListenerDisposer = this.addEventListener()), this.addResizeListener(), this.checkPanelTag(), this.setVisibleAndUnfolded({ withAnimation: (n = t == null ? void 0 : t.withAnimation) != null ? n : !0 }).then(() => this.updateRenderAllTags()), this.updateRenderAllTags(), this.addMediaModelTag(s);
231
230
  });
@@ -286,9 +285,11 @@ class hi extends Y {
286
285
  const i = this.getTagById(e);
287
286
  if (!i)
288
287
  return;
289
- i.state.unfolded = t;
290
- const s = this.filterPointTag();
291
- (o = this.TagContainerSvelte) == null || o.$set({ tags: s });
288
+ let s = !1;
289
+ if (t && this.can("unfold", i) && (i.state.unfolded = !0, s = !0), t && (this.can("unfold", i) ? (i.state.unfolded = !0, s = !0) : console.warn(`tag ${e} cannot be unfolded`)), t || (this.can("fold", i) ? (i.state.unfolded = !1, s = !0) : console.warn(`tag ${e} cannot be folded`)), s) {
290
+ const r = this.filterPointTag();
291
+ (o = this.TagContainerSvelte) == null || o.$set({ tags: r });
292
+ }
292
293
  }
293
294
  changeTagNormalById(e, t) {
294
295
  const i = this.getTagById(e);
@@ -315,13 +316,13 @@ class hi extends Y {
315
316
  this.mediaStore.set({ currentMediaElement: null });
316
317
  }
317
318
  updateTagCss3DObjectMatrix(e, t) {
318
- var D, w, O, R;
319
- const i = (O = (w = (D = e.mergedConfig) == null ? void 0 : D.tag3DConfig) == null ? void 0 : w.ratio) != null ? O : 216e-5, s = (R = e.tag3DContentSvelte) == null ? void 0 : R.domContainer.css3DObject;
319
+ var D, w, O, F;
320
+ const i = (O = (w = (D = e.mergedConfig) == null ? void 0 : D.tag3DConfig) == null ? void 0 : w.ratio) != null ? O : 216e-5, s = (F = e.tag3DContentSvelte) == null ? void 0 : F.domContainer.css3DObject;
320
321
  if (!s)
321
322
  return;
322
- const o = f(e) ? e.data.mediaPosition : e.position;
323
+ const o = m(e) ? e.data.mediaPosition : e.position;
323
324
  t.updateWorldMatrix(!1, !1);
324
- const r = t.matrixWorld, n = new A().fromArray(o[0]), a = new A().fromArray(o[2]), m = new A().lerpVectors(n, a, 0.5).add(new A(0, 0, 5e-4)), g = new S().setPosition(m), y = new S().makeScale(i, i, i), b = new S().multiply(r).multiply(g).multiply(y);
325
+ const r = t.matrixWorld, n = new A().fromArray(o[0]), a = new A().fromArray(o[2]), f = new A().lerpVectors(n, a, 0.5).add(new A(0, 0, 5e-4)), g = new S().setPosition(f), y = new S().makeScale(i, i, i), b = new S().multiply(r).multiply(g).multiply(y);
325
326
  b.decompose(s.position, s.quaternion, s.scale);
326
327
  const u = s.opacityMesh;
327
328
  !u || b.decompose(u.position, u.quaternion, u.scale);
@@ -362,9 +363,9 @@ class hi extends Y {
362
363
  });
363
364
  }
364
365
  addEventListener() {
365
- const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this), a = this.loadVideoFirstFrame.bind(this), m = this.clickhandler.bind(this), g = this.five.currentMode;
366
- return this.handleFiveModeChange(g), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", r), e.on("panoArrived", n), e.on("panoArrived", a), t.on("click", m), () => {
367
- e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", r), e.off("panoArrived", n), e.off("panoArrived", a), t.off("click", m), this.store.eventListenerDisposer = void 0;
366
+ const { five: e, hooks: t } = this, i = this.handleFiveWantsMoveToPano.bind(this), s = this.handleFiveModeChange.bind(this), o = this.handleFiveCameraUpdate.bind(this), r = this.handleFiveCameraUpdateDebounce(), n = this.handleFivePanoArrived.bind(this), a = this.loadVideoFirstFrame.bind(this), f = this.clickhandler.bind(this), g = this.five.currentMode;
367
+ return this.handleFiveModeChange(g), this.handleFivePanoArrived(), e.on("wantsMoveToPano", i), e.on("modeChange", s), e.on("initAnimationEnded", this.handleFiveInitAnimationEnded), e.on("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.on("cameraUpdate", o), e.on("cameraUpdate", r), e.on("panoArrived", n), e.on("panoArrived", a), t.on("click", f), () => {
368
+ e.off("wantsMoveToPano", i), e.off("modeChange", s), e.off("initAnimationEnded", this.handleFiveInitAnimationEnded), e.off("modelShownFloorChange", this.handleFiveModelShownFloorChange), e.off("cameraUpdate", o), e.off("cameraUpdate", r), e.off("panoArrived", n), e.off("panoArrived", a), t.off("click", f), this.store.eventListenerDisposer = void 0;
368
369
  };
369
370
  }
370
371
  loadVideoFirstFrame() {
@@ -385,12 +386,12 @@ class hi extends Y {
385
386
  !this.state.enabled || (this.show(), this.updateRenderAllTags());
386
387
  }, i = () => {
387
388
  !this.state.enabled || this.hide();
388
- }, { observe: s, unobserve: o } = I(
389
- K(() => {
389
+ }, { observe: s, unobserve: o } = U(
390
+ X(() => {
390
391
  !this.store.resizeObserverDisposer || i();
391
392
  }, 500),
392
393
  e
393
- ), { observe: r, unobserve: n } = I(
394
+ ), { observe: r, unobserve: n } = U(
394
395
  j(() => t(), 400),
395
396
  e
396
397
  );
@@ -400,7 +401,7 @@ class hi extends Y {
400
401
  }
401
402
  handleFiveModeChange(e) {
402
403
  this.setModelMedialVisible(), this.tags.forEach((t) => {
403
- f(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
404
+ m(t) && e !== "Panorama" && this.changeTagMode(t, "behind"), t.state.visible = this.getVisible(t);
404
405
  }), this.updateRenderAllTags(), this.updateRenderAllTags();
405
406
  }
406
407
  handleFiveWantsMoveToPano() {
@@ -477,7 +478,7 @@ class hi extends Y {
477
478
  const i = (t = this.five.getElement()) == null ? void 0 : t.parentElement;
478
479
  if (!i)
479
480
  return console.error("updateRenderPlaneTag: tag2DContainer not found");
480
- this.TagContainerSvelte = new q({
481
+ this.TagContainerSvelte = new $({
481
482
  target: i,
482
483
  props: { hooks: this.hooks, tags: e, state: this.state, temporaryState: this.temporaryState, mediaStore: this.mediaStore }
483
484
  });
@@ -485,8 +486,8 @@ class hi extends Y {
485
486
  }
486
487
  updateRenderPlaneTag() {
487
488
  this.sort([...this.filterPlaneTag(), ...this.filter3DPointTag(), ...this.filterModelTag()]).forEach((t) => {
488
- var n, a, m;
489
- if (f(t) && ((n = t.model) == null ? void 0 : n.object) && this.updateTagCss3DObjectMatrix(t, (a = t.model) == null ? void 0 : a.object), t.tag3DContentSvelte) {
489
+ var n, a, f;
490
+ if (m(t) && ((n = t.model) == null ? void 0 : n.object) && this.updateTagCss3DObjectMatrix(t, (a = t.model) == null ? void 0 : a.object), t.tag3DContentSvelte) {
490
491
  const { svelteApp: g, domContainer: y, initialNormal: b, currentNormal: u } = t.tag3DContentSvelte;
491
492
  if (this.updateTagCss3DObjectVisible(t), g.$set({
492
493
  tag: t,
@@ -494,16 +495,16 @@ class hi extends Y {
494
495
  state: this.state,
495
496
  temporaryState: this.temporaryState
496
497
  }), !b.equals(u)) {
497
- const D = new _().setFromUnitVectors(b, u);
498
+ const D = new z().setFromUnitVectors(b, u);
498
499
  y.css3DObject.setRotationFromQuaternion(D);
499
500
  }
500
501
  return;
501
502
  }
502
- if (((m = t.state) == null ? void 0 : m.visible) === !1)
503
+ if (((f = t.state) == null ? void 0 : f.visible) === !1)
503
504
  return;
504
- if (this.css3DRenderPlugin || (this.css3DRenderPlugin = Z(this.five)), t.stickType === "3DPoint" && !t.normal)
505
+ if (this.css3DRenderPlugin || (this.css3DRenderPlugin = Y(this.five)), t.stickType === "3DPoint" && !t.normal)
505
506
  return console.error("updateRenderPlaneTag: \u4E09\u7EF4\u70B9\u6807\u7B7E\u7F3A\u5C11\u6CD5\u5411\u91CF\uFF01");
506
- const i = (() => t.stickType === "Plane" ? t.position : f(t) ? t.data.mediaPosition : X(
507
+ const i = (() => t.stickType === "Plane" ? t.position : m(t) ? t.data.mediaPosition : Q(
507
508
  this.five.camera.position,
508
509
  C(t.position),
509
510
  C(t.normal)
@@ -522,7 +523,7 @@ class hi extends Y {
522
523
  return;
523
524
  const o = this.getTagConfig(t).tag3DConfig, r = this.css3DRenderPlugin.create3DDomContainer(i, o);
524
525
  !r || (this.updateTagCss3DObjectVisible(t), this.store.css3DRenderDisposer.set(t.id, r.dispose), t.tag3DContentSvelte = {
525
- svelteApp: new H({
526
+ svelteApp: new q({
526
527
  target: r.container,
527
528
  props: {
528
529
  tag: t,
@@ -540,7 +541,7 @@ class hi extends Y {
540
541
  }
541
542
  updateRenderModelTag() {
542
543
  const e = (i) => !this.enabledModelTagSet.has(i.customID);
543
- this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(f).forEach((i) => {
544
+ this.gltfObjectGroup.remove(...this.gltfObjectGroup.children.filter(e)), this.tags.filter(m).forEach((i) => {
544
545
  var s;
545
546
  (s = i.model) == null || s.promise.then((o) => {
546
547
  o.visible = i.state.visible;
@@ -564,7 +565,7 @@ class hi extends Y {
564
565
  }
565
566
  addMediaModelTag(e) {
566
567
  return c(this, null, function* () {
567
- const t = e.filter(f).map(this.loadModel);
568
+ const t = e.filter(m).map(this.loadModel);
568
569
  yield Promise.all(t), this.setModelMedialVisible(), this.updateRenderAllTags();
569
570
  });
570
571
  }
@@ -574,7 +575,7 @@ class hi extends Y {
574
575
  }
575
576
  }
576
577
  export {
577
- hi as PanoTagPluginController,
578
- hi as default,
579
- li as pluginFlag
578
+ li as PanoTagPluginController,
579
+ li as default,
580
+ di as pluginFlag
580
581
  };
@@ -1,6 +1,5 @@
1
1
  import t from "./controller/index.js";
2
2
  import { default as ur, pluginFlag as Tr } from "./controller/index.js";
3
- import "@realsee/five/gltf-loader";
4
3
  import { ContentType as xr } from "./typings/tag/TagData.js";
5
4
  import { DimensionType as Cr, PointType as dr } from "./typings/tag/Utils.js";
6
5
  import "@realsee/five";
@@ -115,6 +114,7 @@ import "../CSS3DRenderPlugin/Controller.js";
115
114
  import "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
116
115
  import "./utils/tag/format.js";
117
116
  import "../shared-utils/three/GLTFLoader.js";
117
+ import "@realsee/five/gltf-loader";
118
118
  const gr = (o, r) => new t(o, r);
119
119
  export {
120
120
  xr as ContentType,
@@ -0,0 +1,4 @@
1
+ declare const data: {
2
+ tagList: any[];
3
+ };
4
+ export default data;
@@ -0,0 +1,6 @@
1
+ const t = {
2
+ tagList: []
3
+ };
4
+ export {
5
+ t as default
6
+ };