@realsee/dnalogel 2.13.2 → 2.14.0-dev.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (376) hide show
  1. package/dist/CSS3DRenderPlugin/Controller.d.ts +1 -1
  2. package/dist/CSS3DRenderPlugin/index.d.ts +1 -1
  3. package/dist/CSS3DRenderPlugin/typing.d.ts +1 -1
  4. package/dist/CSS3DRenderPlugin/{CSS3DRender.d.ts → utils/three/CSS3DRender.d.ts} +9 -7
  5. package/dist/Object3DHelperPlugin/Controller.d.ts +1 -3
  6. package/dist/PanoTagPlugin/controller/TagComputer.d.ts +9 -4
  7. package/dist/PanoTagPlugin/controller/TagRender.d.ts +5 -4
  8. package/dist/PanoTagPlugin/controller/TagUtil.d.ts +12 -4
  9. package/dist/PanoTagPlugin/typings/controller.d.ts +4 -6
  10. package/dist/PanoTagPlugin/typings/tag/Tag.d.ts +3 -3
  11. package/dist/PanoTagPlugin/typings/tag/Utils.d.ts +2 -9
  12. package/{libs/PanoTagPlugin/utils/model/imageModel.d.ts → dist/PanoTagPlugin/utils/model/imagePlane.d.ts} +3 -2
  13. package/dist/PanoTagPlugin/utils/tag/tagCheck.d.ts +5 -4
  14. package/dist/index.cjs.js +47 -47
  15. package/dist/index.js +5101 -5083
  16. package/dist/index.umd.js +43 -43
  17. package/dist/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -1
  18. package/{libs/shared-utils/Object3DHelper/utils → dist/shared-utils}/threex/domevents/index.d.ts +9 -7
  19. package/docs/assets/search.js +1 -1
  20. package/docs/classes/CSS3DRender.html +31 -31
  21. package/docs/classes/CruisePluginController.html +25 -25
  22. package/docs/classes/Magnifier.html +20 -20
  23. package/docs/classes/ModelRoomLabelController.html +11 -11
  24. package/docs/classes/Object3DHelperController.html +24 -31
  25. package/docs/classes/PaintBrush.html +15 -15
  26. package/docs/classes/PanoMeasurePluginLine.html +23 -23
  27. package/docs/classes/PanoMeasurePluginModel.html +22 -22
  28. package/docs/classes/PanoMeasurePluginPoint.html +14 -14
  29. package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
  30. package/docs/classes/PanoTagPluginController.html +90 -222
  31. package/docs/classes/Util.BetterTween.html +8 -8
  32. package/docs/classes/Util.FivePointSelector.html +12 -12
  33. package/docs/classes/Util.Interval.html +12 -12
  34. package/docs/classes/Util.Magnifier.html +17 -17
  35. package/docs/classes/Util.PointDomHelper.html +11 -11
  36. package/docs/classes/Util.PointHelper.html +11 -11
  37. package/docs/classes/Util.Rectangle.html +13 -13
  38. package/docs/enums/CameraMovementEffect.html +7 -7
  39. package/docs/enums/ContentType.html +19 -19
  40. package/docs/enums/DIRECTION.html +9 -9
  41. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  42. package/docs/enums/DimensionType.html +7 -7
  43. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  44. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  45. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  46. package/docs/enums/Rotation.html +8 -8
  47. package/docs/functions/CSS3DRenderPlugin.html +5 -8
  48. package/docs/functions/CameraMovementPlugin.html +5 -8
  49. package/docs/functions/CruisePlugin.html +5 -8
  50. package/docs/functions/GuideLinePlugin.html +5 -8
  51. package/docs/functions/ItemLabelPlugin.html +5 -8
  52. package/docs/functions/MapviewFloorplanPlugin.html +5 -8
  53. package/docs/functions/ModelChassisCompassPlugin.html +5 -8
  54. package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -8
  55. package/docs/functions/ModelFloorplanPlugin.html +5 -8
  56. package/docs/functions/ModelItemLabelPlugin.html +5 -8
  57. package/docs/functions/ModelRoomLabelPlugin.html +5 -8
  58. package/docs/functions/ModelTVVideoPlugin.html +5 -8
  59. package/docs/functions/ModelViewPlugin.html +5 -8
  60. package/docs/functions/Object3DHelperPlugin.html +5 -8
  61. package/docs/functions/PanoCompassPlugin.html +5 -8
  62. package/docs/functions/PanoCursorRaycasterPlugin.html +5 -8
  63. package/docs/functions/PanoDoorLabelPlugin.html +5 -8
  64. package/docs/functions/PanoFloorplanRadarPlugin.html +5 -8
  65. package/docs/functions/PanoMeasurePlugin.html +5 -8
  66. package/docs/functions/PanoRulerPlugin.html +5 -8
  67. package/docs/functions/PanoRulerProPlugin.html +5 -8
  68. package/docs/functions/PanoSpatialTagPlugin.html +5 -8
  69. package/docs/functions/PanoTagPlugin.html +5 -8
  70. package/docs/functions/PanoVideoPlugin.html +5 -8
  71. package/docs/functions/TopviewFloorplanPlugin.html +5 -8
  72. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  73. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  74. package/docs/functions/Util.getFrameTime.html +5 -5
  75. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  76. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  77. package/docs/functions/Util.isNil.html +5 -5
  78. package/docs/functions/Util.nextFrame.html +5 -5
  79. package/docs/functions/Util.notNil.html +5 -5
  80. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  81. package/docs/functions/Util.tweenProgress.html +5 -5
  82. package/docs/functions/pluginFlag.html +5 -8
  83. package/docs/index.html +4 -7
  84. package/docs/interfaces/AddTagConfig.html +6 -6
  85. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  86. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  87. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  88. package/docs/interfaces/EventMap.html +15 -15
  89. package/docs/interfaces/FloorplanBounding.html +8 -8
  90. package/docs/interfaces/FloorplanData.html +10 -10
  91. package/docs/interfaces/FloorplanEntrance.html +11 -11
  92. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  93. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  94. package/docs/interfaces/FloorplanFloorData.html +9 -9
  95. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  96. package/docs/interfaces/FloorplanObserver.html +9 -9
  97. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  98. package/docs/interfaces/FloorplanPosition.html +7 -7
  99. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  100. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  101. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  102. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  103. package/docs/interfaces/FloorplanServerData.html +7 -7
  104. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  105. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  106. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  107. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  108. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  109. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  110. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  111. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  112. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  113. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  114. package/docs/interfaces/HelperOffset.html +8 -8
  115. package/docs/interfaces/ImagePlaneGroup.html +7 -7
  116. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  117. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  118. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  119. package/docs/interfaces/MinMax.html +7 -7
  120. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  121. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  122. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  123. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  124. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  125. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  126. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  127. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  128. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  129. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  130. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  131. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  132. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  133. package/docs/interfaces/Object3DHelperState.html +8 -8
  134. package/docs/interfaces/ObjectHelperControllers.html +9 -9
  135. package/docs/interfaces/PaintBrushAction.html +12 -12
  136. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  137. package/docs/interfaces/PaintBrushState.html +10 -10
  138. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  139. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -8
  140. package/docs/interfaces/PanoMeasureParameterType.html +14 -14
  141. package/docs/interfaces/PanoMeasurePluginLineJson.html +8 -8
  142. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +7 -7
  143. package/docs/interfaces/PanoMeasurePluginPointJson.html +7 -7
  144. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +8 -8
  145. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  146. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  147. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  148. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  149. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  150. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  151. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  152. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -8
  153. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -8
  154. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  155. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  156. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  157. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  158. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  159. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  160. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  161. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +6 -6
  162. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +8 -8
  163. package/docs/interfaces/PanoVideoPluginType.PluginData.html +6 -6
  164. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +9 -9
  165. package/docs/interfaces/PanoVideoPluginType.PluginState.html +6 -6
  166. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +8 -8
  167. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +10 -10
  168. package/docs/interfaces/Point.html +8 -8
  169. package/docs/interfaces/Room.html +9 -9
  170. package/docs/interfaces/RoomInfo.html +7 -7
  171. package/docs/interfaces/RoomLabel.html +14 -14
  172. package/docs/interfaces/RoomRules.html +5 -8
  173. package/docs/interfaces/Rooms.html +5 -8
  174. package/docs/interfaces/Scissor.html +9 -9
  175. package/docs/interfaces/State.html +8 -8
  176. package/docs/interfaces/TagCacheInterface.html +12 -12
  177. package/docs/interfaces/TagConfig.html +11 -11
  178. package/docs/interfaces/TagGLTFObjectGroup.html +6 -6
  179. package/docs/interfaces/TagIconUrl.html +11 -11
  180. package/docs/interfaces/TagObjectGroup.html +6 -6
  181. package/docs/interfaces/TagStyle.html +6 -6
  182. package/docs/interfaces/Tags.html +10 -10
  183. package/docs/interfaces/TemporaryState.html +6 -6
  184. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  185. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  186. package/docs/modules/PanoVideoPluginType.html +5 -5
  187. package/docs/modules/Util.html +5 -5
  188. package/docs/modules.html +4 -10
  189. package/docs/types/ArrayPosition.html +5 -8
  190. package/docs/types/AudioAppearance.html +5 -8
  191. package/docs/types/AudioTagTypeConfigKey.html +5 -8
  192. package/docs/types/CSS3DRenderExportType.html +5 -8
  193. package/docs/types/CSS3DRenderPluginExportType.html +5 -8
  194. package/docs/types/CSS3DRenderPluginParameterType.html +5 -8
  195. package/docs/types/ClassFunctionParameters.html +5 -8
  196. package/docs/types/Color.html +5 -8
  197. package/docs/types/ContentTypeConfigKey.html +5 -8
  198. package/docs/types/ContentTypeConfigKeySplit.html +5 -8
  199. package/docs/types/ContentTypeMap.html +5 -8
  200. package/docs/types/Create3DDomContainerReturnType.html +5 -8
  201. package/docs/types/Create3DElementReturnType.html +5 -8
  202. package/docs/types/CruisePluginExportType.html +5 -8
  203. package/docs/types/Direction-1.html +5 -8
  204. package/docs/types/Direction4.html +5 -8
  205. package/docs/types/FloorplanRuleLabels.html +5 -8
  206. package/docs/types/FloorplanServerRuleLabels.html +5 -8
  207. package/docs/types/GuideLinePluginExportType.html +5 -8
  208. package/docs/types/HelperEventMap.html +5 -8
  209. package/docs/types/LoadTagConfig.html +5 -8
  210. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -8
  211. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -8
  212. package/docs/types/MediaData.html +5 -8
  213. package/docs/types/MediaStore.html +5 -8
  214. package/docs/types/ModelElement.html +5 -8
  215. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -8
  216. package/docs/types/ModelFloorplanPluginParameterType.html +5 -8
  217. package/docs/types/ModelFloorplanPluginReturnType.html +5 -8
  218. package/docs/types/ModelRoomLabelPluginParameters.html +5 -8
  219. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -8
  220. package/docs/types/MoveArgs.html +5 -8
  221. package/docs/types/MoveOpts.html +5 -8
  222. package/docs/types/Object3DHelperEventMap.html +5 -8
  223. package/docs/types/ObjectFit.html +5 -8
  224. package/docs/types/PaintBrushEventMap.html +5 -8
  225. package/docs/types/PanoCompassPluginData.html +5 -8
  226. package/docs/types/PanoCompassPluginExportType.html +5 -8
  227. package/docs/types/PanoCompassPluginParameterType.html +5 -8
  228. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -8
  229. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -8
  230. package/docs/types/PanoIndex.html +5 -8
  231. package/docs/types/PanoMeasurePluginEvent.html +5 -8
  232. package/docs/types/PanoMeasureReturnType.html +5 -8
  233. package/docs/types/PanoSpatialTagPluginId.html +5 -8
  234. package/docs/types/PanoTagPluginExportInterface.html +5 -8
  235. package/docs/types/PanoTagPluginParamsInterface.html +5 -8
  236. package/docs/types/PanoVideoPluginParameterType.html +5 -8
  237. package/docs/types/PanoVideoPluginReturnType.html +5 -8
  238. package/docs/types/PlaneTag.html +5 -8
  239. package/docs/types/PlaneTagElement.html +5 -8
  240. package/docs/types/Point2DElement.html +5 -8
  241. package/docs/types/Point2DTag.html +5 -8
  242. package/docs/types/Point3DElement.html +5 -8
  243. package/docs/types/Point3DTag.html +5 -8
  244. package/docs/types/PointTag.html +5 -8
  245. package/docs/types/PointTagElement.html +5 -8
  246. package/docs/types/Position.html +5 -8
  247. package/docs/types/RotateArgs.html +5 -8
  248. package/docs/types/RotateOpts.html +5 -8
  249. package/docs/types/RuleLabelsKey.html +5 -8
  250. package/docs/types/RuleLabelsValue.html +5 -8
  251. package/docs/types/StickType.html +5 -8
  252. package/docs/types/Tag.html +6 -9
  253. package/docs/types/Tag2D.html +5 -8
  254. package/docs/types/Tag3D.html +5 -8
  255. package/docs/types/TagContentType.html +5 -8
  256. package/docs/types/TagDimensionType.html +5 -8
  257. package/docs/types/TagElement.html +6 -9
  258. package/docs/types/TagEvents.html +5 -8
  259. package/docs/types/TagGLTFObject.html +5 -8
  260. package/docs/types/TagHooks.html +5 -8
  261. package/docs/types/TagIconSize.html +5 -8
  262. package/docs/types/TagId.html +5 -8
  263. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -8
  264. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -8
  265. package/docs/types/WorkCode.html +5 -8
  266. package/docs/variables/FLOOR_TYPE_MAP.html +5 -8
  267. package/docs/variables/PLUGIN.html +6 -9
  268. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -8
  269. package/docs/variables/ROOM_TYPE_MAP.html +5 -8
  270. package/docs/variables/itemLabelPluginServerParams.html +5 -8
  271. package/docs/variables/modelItemLabelPluginServerParams.html +5 -8
  272. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -8
  273. package/libs/CSS3DRenderPlugin/Controller.d.ts +1 -1
  274. package/libs/CSS3DRenderPlugin/Controller.js +2 -4
  275. package/libs/CSS3DRenderPlugin/index.d.ts +1 -1
  276. package/libs/CSS3DRenderPlugin/index.js +1 -1
  277. package/libs/CSS3DRenderPlugin/typing.d.ts +1 -1
  278. package/libs/CSS3DRenderPlugin/utils/generateBehindFiveElement.js +21 -21
  279. package/libs/CSS3DRenderPlugin/{CSS3DRender.d.ts → utils/three/CSS3DRender.d.ts} +9 -7
  280. package/libs/CSS3DRenderPlugin/{CSS3DRender.js → utils/three/CSS3DRender.js} +13 -13
  281. package/libs/CSS3DRenderPlugin/utils/three/CSS3DScene.js +11 -11
  282. package/libs/ModelTVVideoPlugin/Plugin.js +1 -1
  283. package/libs/ModelTVVideoPlugin/index.js +1 -1
  284. package/libs/Object3DHelperPlugin/Controller.d.ts +1 -3
  285. package/libs/Object3DHelperPlugin/Controller.js +50 -52
  286. package/libs/Object3DHelperPlugin/index.js +3 -4
  287. package/libs/PanoCompassPlugin/Controller.js +1 -1
  288. package/libs/PanoCompassPlugin/index.js +1 -1
  289. package/libs/PanoSpatialTagPlugin/Plugin.js +1 -1
  290. package/libs/PanoSpatialTagPlugin/index.js +1 -1
  291. package/libs/PanoTagPlugin/Archive/deprecated.d.ts +7 -0
  292. package/libs/PanoTagPlugin/Archive/deprecated.js +4 -0
  293. package/libs/PanoTagPlugin/Archive/index.d.ts +1 -0
  294. package/libs/PanoTagPlugin/Archive/index.js +4 -0
  295. package/libs/PanoTagPlugin/Components/Common/Audio.js +93 -97
  296. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +206 -205
  297. package/libs/PanoTagPlugin/Components/Common/Media.js +115 -109
  298. package/libs/PanoTagPlugin/Components/Common/MediaItem.js +100 -100
  299. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +66 -68
  300. package/libs/PanoTagPlugin/Components/Common/Text/FlyMText.js +14 -15
  301. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +4 -2
  302. package/libs/PanoTagPlugin/Components/Common/Text/MText.js +45 -45
  303. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +101 -106
  304. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +82 -84
  305. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +62 -61
  306. package/libs/PanoTagPlugin/Components/Tag/CustomTag.js +13 -13
  307. package/libs/PanoTagPlugin/Components/Tag/ImageTextTag.js +49 -48
  308. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +52 -51
  309. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +108 -115
  310. package/libs/PanoTagPlugin/Components/Tag/MediaPlane.js +25 -36
  311. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +49 -50
  312. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextTag.js +68 -70
  313. package/libs/PanoTagPlugin/Components/Tag/TextTag/index.js +55 -54
  314. package/libs/PanoTagPlugin/Components/Tag/index.js +153 -163
  315. package/libs/PanoTagPlugin/Components/TagContainer.js +5 -3
  316. package/libs/PanoTagPlugin/Components/TagItem.js +80 -87
  317. package/libs/PanoTagPlugin/controller/TagComputer.d.ts +9 -4
  318. package/libs/PanoTagPlugin/controller/TagComputer.js +80 -58
  319. package/libs/PanoTagPlugin/controller/TagRender.d.ts +5 -4
  320. package/libs/PanoTagPlugin/controller/TagRender.js +161 -153
  321. package/libs/PanoTagPlugin/controller/TagUtil.d.ts +12 -4
  322. package/libs/PanoTagPlugin/controller/TagUtil.js +179 -77
  323. package/libs/PanoTagPlugin/controller/index.js +54 -49
  324. package/libs/PanoTagPlugin/index.js +16 -16
  325. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.d.ts +4 -0
  326. package/libs/PanoTagPlugin/mocks/v1/mock-80P6A03eQRQKY3oqLj.js +6 -0
  327. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.d.ts +93 -0
  328. package/libs/PanoTagPlugin/mocks/v1/mock-80QG2vMPboNv5DWrom.js +5622 -0
  329. package/libs/PanoTagPlugin/mocks/v1/mock-test3-realsee-cn-4zr0A5.js +1325 -0
  330. package/libs/PanoTagPlugin/mocks/v1/mock1.d.ts +173 -0
  331. package/libs/PanoTagPlugin/mocks/v1/mock1.js +122 -0
  332. package/libs/PanoTagPlugin/mocks/v1/mock2.d.ts +233 -0
  333. package/libs/PanoTagPlugin/mocks/v1/mock2.js +296 -0
  334. package/libs/PanoTagPlugin/mocks/v1/mock3.d.ts +22 -0
  335. package/libs/PanoTagPlugin/mocks/v1/mock3.js +32 -0
  336. package/libs/PanoTagPlugin/mocks/v1/mock4.d.ts +56 -0
  337. package/libs/PanoTagPlugin/mocks/v1/mock4.js +60 -0
  338. package/libs/PanoTagPlugin/mocks/v1/mock5.d.ts +13 -0
  339. package/libs/PanoTagPlugin/mocks/v1/mock5.js +17 -0
  340. package/libs/PanoTagPlugin/mocks/v1/mock6.d.ts +16 -0
  341. package/libs/PanoTagPlugin/mocks/v1/mock6.js +27 -0
  342. package/libs/PanoTagPlugin/mocks/v1/mock7.d.ts +22 -0
  343. package/libs/PanoTagPlugin/mocks/v1/mock7.js +228 -0
  344. package/libs/PanoTagPlugin/typings/controller.d.ts +4 -6
  345. package/libs/PanoTagPlugin/typings/index.js +7 -5
  346. package/libs/PanoTagPlugin/typings/tag/Tag.d.ts +3 -3
  347. package/libs/PanoTagPlugin/typings/tag/Utils.d.ts +2 -9
  348. package/libs/PanoTagPlugin/typings/tag/Utils.js +5 -3
  349. package/libs/PanoTagPlugin/utils/addDebugPoints.js +6 -4
  350. package/libs/PanoTagPlugin/utils/index.js +35 -33
  351. package/{dist/PanoTagPlugin/utils/model/imageModel.d.ts → libs/PanoTagPlugin/utils/model/imagePlane.d.ts} +3 -2
  352. package/libs/PanoTagPlugin/utils/model/imagePlane.js +33 -0
  353. package/libs/PanoTagPlugin/utils/planeNormal.js +4 -2
  354. package/libs/PanoTagPlugin/utils/tag/tagCheck.d.ts +5 -4
  355. package/libs/PanoTagPlugin/utils/tag/tagCheck.js +8 -4
  356. package/libs/PanoTagPlugin/utils/tagPosition.js +9 -7
  357. package/libs/PanoVideoPlugin/Controller.js +1 -1
  358. package/libs/PanoVideoPlugin/VideoMeshController.js +1 -1
  359. package/libs/PanoVideoPlugin/index.js +1 -1
  360. package/libs/base/BasePlugin.js +1 -1
  361. package/libs/index.js +31 -33
  362. package/libs/shared-utils/Object3DHelper/Base/BaseController.d.ts +1 -1
  363. package/libs/shared-utils/Object3DHelper/Base/BaseController.js +1 -1
  364. package/libs/shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js +1 -1
  365. package/libs/shared-utils/Object3DHelper/Helper/MoveHelper.js +1 -1
  366. package/libs/shared-utils/Object3DHelper/Helper/index.js +1 -1
  367. package/libs/shared-utils/Object3DHelper/typings/index.js +1 -1
  368. package/libs/shared-utils/three/index.js +1 -1
  369. package/{dist/shared-utils/Object3DHelper/utils → libs/shared-utils}/threex/domevents/index.d.ts +9 -7
  370. package/libs/shared-utils/{Object3DHelper/utils/threex → threex}/domevents/index.js +4 -3
  371. package/package.json +1 -1
  372. package/docs/enums/PointType.html +0 -72
  373. package/docs/types/TagPointType.html +0 -272
  374. package/docs/variables/VERSION.html +0 -269
  375. package/libs/PanoTagPlugin/tsconfig.js +0 -9
  376. package/libs/PanoTagPlugin/utils/model/imageModel.js +0 -31
@@ -1,15 +1,15 @@
1
- var F = Object.defineProperty;
2
- var M = Object.getOwnPropertySymbols;
3
- var P = Object.prototype.hasOwnProperty, j = Object.prototype.propertyIsEnumerable;
4
- var C = (i, o, e) => o in i ? F(i, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[o] = e, b = (i, o) => {
1
+ var R = Object.defineProperty;
2
+ var E = Object.getOwnPropertySymbols;
3
+ var F = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
4
+ var C = (i, o, e) => o in i ? R(i, o, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[o] = e, b = (i, o) => {
5
5
  for (var e in o || (o = {}))
6
- P.call(o, e) && C(i, e, o[e]);
7
- if (M)
8
- for (var e of M(o))
9
- j.call(o, e) && C(i, e, o[e]);
6
+ F.call(o, e) && C(i, e, o[e]);
7
+ if (E)
8
+ for (var e of E(o))
9
+ P.call(o, e) && C(i, e, o[e]);
10
10
  return i;
11
11
  };
12
- var h = (i, o, e) => (C(i, typeof o != "symbol" ? o + "" : o, e), e);
12
+ var c = (i, o, e) => (C(i, typeof o != "symbol" ? o + "" : o, e), e);
13
13
  var H = (i, o, e) => new Promise((t, r) => {
14
14
  var s = (p) => {
15
15
  try {
@@ -26,24 +26,24 @@ var H = (i, o, e) => new Promise((t, r) => {
26
26
  }, m = (p) => p.done ? t(p.value) : Promise.resolve(p.value).then(s, a);
27
27
  m((e = e.apply(i, o)).next());
28
28
  });
29
- import { Subscribe as y } from "@realsee/five";
30
- import { Controller as I } from "../base/BasePlugin.js";
29
+ import { Subscribe as j } from "@realsee/five";
30
+ import { Controller as y } from "../base/BasePlugin.js";
31
31
  import "three";
32
32
  import { MoveHelper as k } from "../shared-utils/Object3DHelper/Helper/MoveHelper.js";
33
33
  import { RotateHelper as x } from "../shared-utils/Object3DHelper/Helper/RotateHelper.js";
34
- import { CSS3DScaleHelper as W } from "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
35
- import { BoundingBoxHelper as L } from "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
36
- import { MoveController as $ } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
34
+ import { CSS3DScaleHelper as I } from "../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
35
+ import { BoundingBoxHelper as W } from "../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
36
+ import { MoveController as L } from "../shared-utils/Object3DHelper/Controller/MoveController.js";
37
37
  import { ControllerWrapper as v } from "./FiveControllerWrapper.js";
38
38
  import { Object3DHelper as _ } from "../shared-utils/Object3DHelper/index.js";
39
- import { RotateController as G } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
40
- import { CSS3DScaleController as N } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
41
- import { CSS3DRender as U } from "../CSS3DRenderPlugin/CSS3DRender.js";
42
- import V from "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
43
- import q from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
44
- import { BoundingBoxController as z } from "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
45
- import { ScaleHelper as A } from "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
46
- import { ScaleController as J } from "../shared-utils/Object3DHelper/Controller/ScaleController.js";
39
+ import { RotateController as $ } from "../shared-utils/Object3DHelper/Controller/RotateController.js";
40
+ import { CSS3DScaleController as G } from "../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
41
+ import { CSS3DRender as U } from "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
42
+ import N from "../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
43
+ import V from "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
44
+ import { BoundingBoxController as q } from "../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
45
+ import { ScaleHelper as z } from "../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
46
+ import { ScaleController as A } from "../shared-utils/Object3DHelper/Controller/ScaleController.js";
47
47
  import "../shared-utils/Subscribe.js";
48
48
  import "../shared-utils/Object3DHelper/Base/BaseHelper.js";
49
49
  import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
@@ -55,7 +55,7 @@ import "../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
55
55
  import "../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
56
56
  import "../shared-utils/Object3DHelper/utils/boundingBox.js";
57
57
  import "../shared-utils/Object3DHelper/Base/BaseController.js";
58
- import "../shared-utils/Object3DHelper/utils/threex/domevents/index.js";
58
+ import "../shared-utils/threex/domevents/index.js";
59
59
  import "../shared-utils/isNil.js";
60
60
  import "../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
61
61
  import "../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
@@ -74,26 +74,25 @@ import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
74
74
  import "../shared-utils/three/centerPoint.js";
75
75
  import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
76
76
  import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
77
- const O = "v1.0.0", S = "Object3DHelperPlugin", w = `${S}@${O}`, K = () => {
77
+ const S = "Object3DHelperPlugin", w = S, J = () => {
78
78
  console.error(`${w} is disposed`);
79
- }, Q = () => {
79
+ }, K = () => {
80
80
  console.warn(`${w} is disabled`);
81
- }, T = () => {
81
+ }, Q = () => {
82
82
  console.error(`${w} is disabled`);
83
83
  };
84
- class Ae extends I {
84
+ class ze extends y {
85
85
  constructor(e) {
86
86
  super(e);
87
- h(this, "version", O);
88
- h(this, "name", S);
89
- h(this, "state", {
87
+ c(this, "name", S);
88
+ c(this, "state", {
90
89
  visible: !0,
91
90
  enabled: !0,
92
91
  disposed: !1
93
92
  });
94
- h(this, "objectHelperMap", /* @__PURE__ */ new Map());
95
- h(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
96
- h(this, "css3DRender");
93
+ c(this, "objectHelperMap", /* @__PURE__ */ new Map());
94
+ c(this, "css3DObjectParentMap", /* @__PURE__ */ new Map());
95
+ c(this, "css3DRender");
97
96
  this.five = e, this.css3DRender = new U(this.five.scene), console.warn("Object3DHelper: \u4F7F\u7528\u6B64\u63D2\u4EF6\uFF0C\u9700\u8981\u5728\u521D\u59CB\u5316five\u65F6\uFF0C\u8BBE\u7F6Efive\u53C2\u6570: { backgroundAlpha: 0, backgroundColor: 0x000000 }"), Object.assign(window, { [`__${S.toUpperCase()}_DEBUG__`]: this });
98
97
  }
99
98
  show(e) {
@@ -117,9 +116,9 @@ class Ae extends I {
117
116
  }
118
117
  setState(e, t) {
119
118
  if (this.state.disposed)
120
- return K();
119
+ return J();
121
120
  if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
122
- return T();
121
+ return Q();
123
122
  const r = b({}, this.state);
124
123
  this.state = b(b({}, this.state), e), e.disposed !== void 0 && e.disposed !== r.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== r.visible && this.handleVisible(e.visible), e.enabled !== void 0 && e.enabled !== r.enabled && this.handleEnable(e.enabled), this.hooks.emit("stateChange", { state: this.state, prevState: r });
125
124
  }
@@ -134,34 +133,34 @@ class Ae extends I {
134
133
  console.warn(`Object3DHelperPlugin: object3D ${e.name} is already has helper`);
135
134
  return;
136
135
  }
137
- const r = new _(), s = [], a = (g = this.five.getElement()) == null ? void 0 : g.parentElement, m = this.five.camera, { moveHelper: p = !0, rotateHelper: f = !0, scaleHelper: B = !0, boundingBoxHelper: R = !1 } = t, u = new y();
136
+ const r = new _(), s = [], a = (g = this.five.getElement()) == null ? void 0 : g.parentElement, m = this.five.camera, { moveHelper: p = !0, rotateHelper: f = !0, scaleHelper: O = !0, boundingBoxHelper: B = !1 } = t, u = new j();
138
137
  if (p) {
139
- const n = new k(e), l = this.getConfig(t.moveHelper), d = new v(this.five, $, e, n, l, u);
138
+ const n = new k(e), l = this.getConfig(t.moveHelper), d = new v(this.five, L, e, n, l, u);
140
139
  r.addControllers({ moveController: d.helperController }), s.push(() => d.dispose());
141
140
  }
142
141
  if (f) {
143
- const n = this.getConfig(t.rotateHelper), l = new x(e, b({ container: a }, n)), d = new v(this.five, G, e, l, n, u);
142
+ const n = this.getConfig(t.rotateHelper), l = new x(e, b({ container: a }, n)), d = new v(this.five, $, e, l, n, u);
144
143
  r.addControllers({ rotateController: d.helperController }), s.push(() => d.dispose());
145
144
  }
146
- if (R) {
147
- const n = new L(e), l = new v(this.five, z, e, n, void 0, u);
145
+ if (B) {
146
+ const n = new W(e), l = new v(this.five, q, e, n, void 0, u);
148
147
  r.addControllers({ boundingBoxController: l.helperController });
149
148
  }
150
- if (B)
149
+ if (O)
151
150
  if (e.isCSS3DObjectPlus && a) {
152
- const n = new W(e, a, m, this.five.scene), l = new v(this.five, N, e, n, void 0, u);
153
- r.addControllers({ scaleController: l.helperController }), s.push(() => l.dispose()), V(this.five).then(() => {
151
+ const n = new I(e, a, m, this.five.scene), l = new v(this.five, G, e, n, void 0, u);
152
+ r.addControllers({ scaleController: l.helperController }), s.push(() => l.dispose()), N(this.five).then(() => {
154
153
  var d, D;
155
154
  if (e.isCSS3DObjectPlus) {
156
- const c = e;
157
- if (!c || c.mode !== "front")
155
+ const h = e;
156
+ if (!h || h.mode !== "front")
158
157
  return;
159
- const E = (d = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? d : q(this.five);
160
- E && (this.css3DObjectParentMap.set(c, c.parent), c.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(E), (D = this.css3DRender.getBehindCSS3DObjectGroup()) == null || D.add(c), this.css3DRender.render(this.five.camera));
158
+ const M = (d = this.css3DRender.behindModeCSS3DRenderer.wrapper) != null ? d : V(this.five);
159
+ M && (this.css3DObjectParentMap.set(h, h.parent), h.removeFromParent(), this.css3DRender.behindModeCSS3DRenderer.setWrapper(M), (D = this.css3DRender.getBehindCSS3DObjectGroup()) == null || D.add(h), this.css3DRender.render(this.five.camera));
161
160
  }
162
161
  });
163
162
  } else {
164
- const n = new A(e), l = new v(this.five, J, e, n, void 0, u);
163
+ const n = new z(e), l = new v(this.five, A, e, n, void 0, u);
165
164
  r.addControllers({ scaleController: l.helperController }), s.push(() => l.dispose());
166
165
  }
167
166
  return this.objectHelperMap.set(e, { helper: r, disposers: s }), r.controllers;
@@ -197,7 +196,7 @@ class Ae extends I {
197
196
  actionIfStateIsEnabled(e, t) {
198
197
  if (this.state.enabled)
199
198
  return e();
200
- t != null && t.warnLog && Q();
199
+ t != null && t.warnLog && K();
201
200
  }
202
201
  getConfig(e) {
203
202
  if (!!e && typeof e != "boolean" && e.enable)
@@ -205,7 +204,6 @@ class Ae extends I {
205
204
  }
206
205
  }
207
206
  export {
208
- Ae as Object3DHelperController,
209
- w as PLUGIN,
210
- O as VERSION
207
+ ze as Object3DHelperController,
208
+ w as PLUGIN
211
209
  };
@@ -1,7 +1,7 @@
1
1
  import "three";
2
- import "../shared-utils/Object3DHelper/utils/threex/domevents/index.js";
2
+ import "../shared-utils/threex/domevents/index.js";
3
3
  import { Object3DHelperController as o } from "./Controller.js";
4
- import { Object3DHelperController as rr, PLUGIN as or, VERSION as tr } from "./Controller.js";
4
+ import { Object3DHelperController as rr, PLUGIN as or } from "./Controller.js";
5
5
  import "@realsee/five";
6
6
  import "../base/BasePlugin.js";
7
7
  import "../shared-utils/Subscribe.js";
@@ -11,7 +11,7 @@ import "../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
11
11
  import "../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
12
12
  import "../shared-utils/Object3DHelper/utils/direction.js";
13
13
  import "../shared-utils/Object3DHelper/Constants/color.js";
14
- import "../CSS3DRenderPlugin/CSS3DRender.js";
14
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
15
15
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
16
16
  import "three/examples/jsm/renderers/CSS3DRenderer";
17
17
  import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -53,6 +53,5 @@ export {
53
53
  rr as Object3DHelperController,
54
54
  Z as Object3DHelperPlugin,
55
55
  or as PLUGIN,
56
- tr as VERSION,
57
56
  Z as default
58
57
  };
@@ -37,7 +37,7 @@ import "../base/BasePlugin.js";
37
37
  import "../shared-utils/Subscribe.js";
38
38
  import "./Assets/roomInfoIcon.js";
39
39
  import "../CSS3DRenderPlugin/Controller.js";
40
- import "../CSS3DRenderPlugin/CSS3DRender.js";
40
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
41
41
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
42
42
  import "three/examples/jsm/renderers/CSS3DRenderer";
43
43
  import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -9,7 +9,7 @@ import "./Assets/roomInfoIcon.js";
9
9
  import "../shared-utils/three/loadTexture.js";
10
10
  import "../CSS3DRenderPlugin/index.js";
11
11
  import "../CSS3DRenderPlugin/Controller.js";
12
- import "../CSS3DRenderPlugin/CSS3DRender.js";
12
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
13
13
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
14
14
  import "three/examples/jsm/renderers/CSS3DRenderer";
15
15
  import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -6,7 +6,7 @@ import Pe from "./Components/tag.js";
6
6
  import { pluginStyle as xe } from "./style.js";
7
7
  import { render as Ee } from "../shared-utils/tinyEJSrender.js";
8
8
  import "../CSS3DRenderPlugin/Controller.js";
9
- import "../CSS3DRenderPlugin/CSS3DRender.js";
9
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
10
10
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
11
11
  import "three/examples/jsm/renderers/CSS3DRenderer";
12
12
  import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -4,7 +4,7 @@ import "three";
4
4
  import "@realsee/five";
5
5
  import "../CSS3DRenderPlugin/index.js";
6
6
  import "../CSS3DRenderPlugin/Controller.js";
7
- import "../CSS3DRenderPlugin/CSS3DRender.js";
7
+ import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
8
8
  import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
9
9
  import "three/examples/jsm/renderers/CSS3DRenderer";
10
10
  import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
@@ -0,0 +1,7 @@
1
+ /** @deprecated 改用具体的string */
2
+ export declare enum PointType {
3
+ PointTag = "PointTag",
4
+ PlaneTag = "PlaneTag"
5
+ }
6
+ /** @deprecated 改用 stickType */
7
+ export declare type TagPointType = keyof typeof PointType;
@@ -0,0 +1,4 @@
1
+ var g = /* @__PURE__ */ ((a) => (a.PointTag = "PointTag", a.PlaneTag = "PlaneTag", a))(g || {});
2
+ export {
3
+ g as PointType
4
+ };
@@ -0,0 +1 @@
1
+ export * from './deprecated';
@@ -0,0 +1,4 @@
1
+ import { PointType as p } from "./deprecated.js";
2
+ export {
3
+ p as PointType
4
+ };
@@ -1,148 +1,144 @@
1
- import { SvelteComponent as b, init as I, safe_not_equal as k, append_styles as S, create_slot as C, element as j, attr as p, insert as v, listen as O, stop_propagation as A, update_slot_base as E, get_all_dirty_from_scope as N, get_slot_changes as T, transition_in as w, transition_out as P, detach as R, createEventDispatcher as q, getContext as g } from "../../../vendor/svelte/internal/index.js";
2
- import { SharedAudio as D } from "../../utils/audio/SharedAudio.js";
1
+ var S = Object.defineProperty;
2
+ var _ = Object.getOwnPropertySymbols;
3
+ var C = Object.prototype.hasOwnProperty, A = Object.prototype.propertyIsEnumerable;
4
+ var g = (o, n, t) => n in o ? S(o, n, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[n] = t, d = (o, n) => {
5
+ for (var t in n || (n = {}))
6
+ C.call(n, t) && g(o, t, n[t]);
7
+ if (_)
8
+ for (var t of _(n))
9
+ A.call(n, t) && g(o, t, n[t]);
10
+ return o;
11
+ };
12
+ import { SvelteComponent as E, init as N, safe_not_equal as T, append_styles as w, create_slot as P, element as R, attr as y, insert as q, listen as D, stop_propagation as L, update_slot_base as M, get_all_dirty_from_scope as j, get_slot_changes as z, transition_in as B, transition_out as F, detach as G, createEventDispatcher as H, getContext as I } from "../../../vendor/svelte/internal/index.js";
13
+ import { SharedAudio as J } from "../../utils/audio/SharedAudio.js";
3
14
  import "../../../shared-utils/audio.js";
4
- function L(i) {
5
- S(i, "svelte-13e7hxv", ".audio.svelte-13e7hxv{pointer-events:auto;cursor:pointer;width:100%;height:100%}");
15
+ function K(o) {
16
+ w(o, "svelte-13e7hxv", ".audio.svelte-13e7hxv{pointer-events:auto;cursor:pointer;width:100%;height:100%}");
6
17
  }
7
- function M(i) {
8
- let o, n, f, c;
9
- const r = i[8].default, a = C(r, i, i[7], null);
18
+ function O(o) {
19
+ let n, t, c, m;
20
+ const r = o[8].default, u = P(r, o, o[7], null);
10
21
  return {
11
22
  c() {
12
- o = j("div"), a && a.c(), p(o, "class", "audio svelte-13e7hxv"), p(o, "style", i[0]);
23
+ n = R("div"), u && u.c(), y(n, "class", "audio svelte-13e7hxv"), y(n, "style", o[0]);
13
24
  },
14
- m(s, u) {
15
- v(s, o, u), a && a.m(o, null), n = !0, f || (c = O(o, "click", A(i[1])), f = !0);
25
+ m(a, i) {
26
+ q(a, n, i), u && u.m(n, null), t = !0, c || (m = D(n, "click", L(o[1])), c = !0);
16
27
  },
17
- p(s, [u]) {
18
- a && a.p && (!n || u & 128) && E(
19
- a,
28
+ p(a, [i]) {
29
+ u && u.p && (!t || i & 128) && M(
30
+ u,
20
31
  r,
21
- s,
22
- s[7],
23
- n ? T(r, s[7], u, null) : N(s[7]),
32
+ a,
33
+ a[7],
34
+ t ? z(r, a[7], i, null) : j(a[7]),
24
35
  null
25
- ), (!n || u & 1) && p(o, "style", s[0]);
36
+ ), (!t || i & 1) && y(n, "style", a[0]);
26
37
  },
27
- i(s) {
28
- n || (w(a, s), n = !0);
38
+ i(a) {
39
+ t || (B(u, a), t = !0);
29
40
  },
30
- o(s) {
31
- P(a, s), n = !1;
41
+ o(a) {
42
+ F(u, a), t = !1;
32
43
  },
33
- d(s) {
34
- s && R(o), a && a.d(s), f = !1, c();
44
+ d(a) {
45
+ a && G(n), u && u.d(a), c = !1, m();
35
46
  }
36
47
  };
37
48
  }
38
- function z(i, o, n) {
39
- let { $$slots: f = {}, $$scope: c } = o, { url: r } = o, { enable: a = !0 } = o, { style: s = "" } = o, { hooksInfo: u } = o;
40
- const l = q(), m = g("hooks"), y = g("mediaStore");
41
- let e, d = !0;
42
- function h() {
43
- n(
49
+ function Q(o, n, t) {
50
+ let { $$slots: c = {}, $$scope: m } = n, { url: r } = n, { enable: u = !0 } = n, { style: a = "" } = n, { hooksInfo: i } = n;
51
+ const l = H(), p = I("hooks"), h = I("mediaStore");
52
+ let e, f = !0;
53
+ function b() {
54
+ t(
44
55
  5,
45
- e.onplay = (t) => {
46
- m.emit("playStateChange", Object.assign(
47
- {
48
- event: t,
49
- state: "playing",
50
- mediaInstance: e
51
- },
52
- u
53
- )), l("play"), n(6, d = !1);
56
+ e.onplay = (s) => {
57
+ p.emit("playStateChange", d({
58
+ event: s,
59
+ state: "playing",
60
+ mediaInstance: e
61
+ }, i)), l("play"), t(6, f = !1);
54
62
  },
55
63
  e
56
- ), n(
64
+ ), t(
57
65
  5,
58
- e.onpause = (t) => {
59
- m.emit("playStateChange", Object.assign(
60
- {
61
- event: t,
62
- state: "paused",
63
- mediaInstance: e
64
- },
65
- u
66
- )), l("pause"), n(6, d = !0);
66
+ e.onpause = (s) => {
67
+ p.emit("playStateChange", d({
68
+ event: s,
69
+ state: "paused",
70
+ mediaInstance: e
71
+ }, i)), l("pause"), t(6, f = !0);
67
72
  },
68
73
  e
69
- ), n(
74
+ ), t(
70
75
  5,
71
- e.onended = (t) => {
72
- m.emit("playStateChange", Object.assign(
73
- {
74
- event: t,
75
- state: "paused",
76
- mediaInstance: e
77
- },
78
- u
79
- )), l("pause"), n(6, d = !0);
76
+ e.onended = (s) => {
77
+ p.emit("playStateChange", d({
78
+ event: s,
79
+ state: "paused",
80
+ mediaInstance: e
81
+ }, i)), l("pause"), t(6, f = !0);
80
82
  },
81
83
  e
82
- ), n(
84
+ ), t(
83
85
  5,
84
- e.onloadedmetadata = (t) => {
86
+ e.onloadedmetadata = (s) => {
85
87
  typeof e.duration == "number" && !Number.isNaN(e.duration) && l("duration", e.duration);
86
88
  },
87
89
  e
88
- ), n(
90
+ ), t(
89
91
  5,
90
- e.onerror = (t) => {
91
- l("pause"), n(6, d = !0);
92
+ e.onerror = (s) => {
93
+ l("pause"), t(6, f = !0);
92
94
  },
93
95
  e
94
- ), n(
96
+ ), t(
95
97
  5,
96
- e.ontimeupdate = (t) => {
98
+ e.ontimeupdate = (s) => {
97
99
  l("timeupdate", e.currentTime);
98
100
  },
99
101
  e
100
102
  );
101
103
  }
102
- y.subscribe(({ currentMediaElement: t }) => {
103
- t !== e && (d || e == null || e.pause());
104
+ h.subscribe(({ currentMediaElement: s }) => {
105
+ s !== e && (f || e == null || e.pause());
104
106
  });
105
- function _(t) {
106
- !e || (m.emit("click", Object.assign(
107
- {
108
- event: t,
109
- target: "AudioTagPlayIcon",
110
- audioInstance: e
111
- },
112
- u
113
- )), y.set({ currentMediaElement: e }), m.emit("playStateChange", Object.assign(
114
- {
115
- event: t,
116
- state: e.paused ? "playing" : "paused",
117
- mediaInstance: e
118
- },
119
- u
120
- )), e.paused ? e.play() : e.pause());
107
+ function k(s) {
108
+ !e || (p.emit("click", d({
109
+ event: s,
110
+ target: "AudioTagPlayIcon",
111
+ audioInstance: e
112
+ }, i)), h.set({ currentMediaElement: e }), p.emit("playStateChange", d({
113
+ event: s,
114
+ state: e.paused ? "playing" : "paused",
115
+ mediaInstance: e
116
+ }, i)), e.paused ? e.play() : e.pause());
121
117
  }
122
- return i.$$set = (t) => {
123
- "url" in t && n(2, r = t.url), "enable" in t && n(3, a = t.enable), "style" in t && n(0, s = t.style), "hooksInfo" in t && n(4, u = t.hooksInfo), "$$scope" in t && n(7, c = t.$$scope);
124
- }, i.$$.update = () => {
125
- i.$$.dirty & 4 && (r || l("duration", 0)), i.$$.dirty & 36 && (e == null || e.dispose(), n(5, e = new D(r)), l("audioRef", e), setTimeout(() => l("audioRef", e), 200), h()), i.$$.dirty & 40 && (a || e == null || e.pause()), i.$$.dirty & 72 && l(a && !d ? "play" : "pause");
126
- }, [s, _, r, a, u, e, d, c, f];
118
+ return o.$$set = (s) => {
119
+ "url" in s && t(2, r = s.url), "enable" in s && t(3, u = s.enable), "style" in s && t(0, a = s.style), "hooksInfo" in s && t(4, i = s.hooksInfo), "$$scope" in s && t(7, m = s.$$scope);
120
+ }, o.$$.update = () => {
121
+ o.$$.dirty & 4 && (r || l("duration", 0)), o.$$.dirty & 36 && (e == null || e.dispose(), t(5, e = new J(r)), l("audioRef", e), setTimeout(() => l("audioRef", e), 200), b()), o.$$.dirty & 40 && (u || e == null || e.pause()), o.$$.dirty & 72 && l(u && !f ? "play" : "pause");
122
+ }, [a, k, r, u, i, e, f, m, c];
127
123
  }
128
- class H extends b {
129
- constructor(o) {
130
- super(), I(
124
+ class Y extends E {
125
+ constructor(n) {
126
+ super(), N(
131
127
  this,
132
- o,
133
- z,
134
- M,
135
- k,
128
+ n,
129
+ Q,
130
+ O,
131
+ T,
136
132
  {
137
133
  url: 2,
138
134
  enable: 3,
139
135
  style: 0,
140
136
  hooksInfo: 4
141
137
  },
142
- L
138
+ K
143
139
  );
144
140
  }
145
141
  }
146
142
  export {
147
- H as default
143
+ Y as default
148
144
  };