@realsee/dnalogel 2.3.9-alpha.4 → 2.3.9-alpha.6

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 (257) hide show
  1. package/dist/PanoTagPlugin/typings/controller.d.ts +2 -0
  2. package/dist/PanoTagPlugin/utils/audio/SharedAudio.d.ts +16 -0
  3. package/dist/index.cjs.js +31 -31
  4. package/dist/index.js +3156 -3101
  5. package/dist/index.umd.js +31 -31
  6. package/dist/shared-utils/audio.d.ts +16 -4
  7. package/docs/classes/CSS3DRender.html +31 -31
  8. package/docs/classes/CruisePluginController.html +24 -24
  9. package/docs/classes/Magnifier.html +16 -16
  10. package/docs/classes/ModelRoomLabelController.html +11 -11
  11. package/docs/classes/Object3DHelperController.html +24 -24
  12. package/docs/classes/PaintBrush.html +15 -15
  13. package/docs/classes/PanoTagPluginController.html +41 -41
  14. package/docs/classes/Util.BetterTween.html +8 -8
  15. package/docs/classes/Util.FivePointSelector.html +12 -12
  16. package/docs/classes/Util.Interval.html +12 -12
  17. package/docs/classes/Util.Magnifier.html +17 -17
  18. package/docs/classes/Util.PointDomHelper.html +11 -11
  19. package/docs/classes/Util.PointHelper.html +11 -11
  20. package/docs/classes/Util.Rectangle.html +13 -13
  21. package/docs/enums/CameraMovementEffect.html +7 -7
  22. package/docs/enums/ContentType.html +16 -16
  23. package/docs/enums/DIRECTION.html +9 -9
  24. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  25. package/docs/enums/DimensionType.html +7 -7
  26. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  27. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  28. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  29. package/docs/enums/PointType.html +7 -7
  30. package/docs/enums/Rotation.html +8 -8
  31. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  32. package/docs/functions/CameraMovementPlugin.html +4 -4
  33. package/docs/functions/CruisePlugin.html +4 -4
  34. package/docs/functions/GuideLinePlugin.html +5 -5
  35. package/docs/functions/ItemLabelPlugin.html +4 -4
  36. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  37. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  38. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  39. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  40. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  41. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  42. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  43. package/docs/functions/ModelViewPlugin.html +4 -4
  44. package/docs/functions/Object3DHelperPlugin.html +4 -4
  45. package/docs/functions/PanoCompassPlugin.html +4 -4
  46. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  47. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  48. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  49. package/docs/functions/PanoMeasurePlugin.html +4 -4
  50. package/docs/functions/PanoRulerPlugin.html +4 -4
  51. package/docs/functions/PanoRulerProPlugin.html +4 -4
  52. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  53. package/docs/functions/PanoTagPlugin.html +4 -4
  54. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  55. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  56. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  57. package/docs/functions/Util.getFrameTime.html +5 -5
  58. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  59. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  60. package/docs/functions/Util.isNil.html +5 -5
  61. package/docs/functions/Util.nextFrame.html +5 -5
  62. package/docs/functions/Util.notNil.html +5 -5
  63. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  64. package/docs/functions/Util.tweenProgress.html +5 -5
  65. package/docs/functions/pluginFlag.html +5 -5
  66. package/docs/index.html +4 -4
  67. package/docs/interfaces/AddTagConfig.html +6 -6
  68. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  69. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  70. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  71. package/docs/interfaces/EventMap.html +15 -15
  72. package/docs/interfaces/FloorplanBounding.html +8 -8
  73. package/docs/interfaces/FloorplanData.html +10 -10
  74. package/docs/interfaces/FloorplanEntrance.html +11 -11
  75. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  76. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  77. package/docs/interfaces/FloorplanFloorData.html +9 -9
  78. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  79. package/docs/interfaces/FloorplanObserver.html +9 -9
  80. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  81. package/docs/interfaces/FloorplanPosition.html +7 -7
  82. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  83. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  84. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  85. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  86. package/docs/interfaces/FloorplanServerData.html +7 -7
  87. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  88. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  89. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  90. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  91. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  92. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  93. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  94. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  95. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  96. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  97. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  98. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  99. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  100. package/docs/interfaces/LineJson.html +7 -7
  101. package/docs/interfaces/MinMax.html +7 -7
  102. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  103. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  104. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  105. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  106. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  107. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  108. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  109. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  110. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  111. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  112. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  113. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  114. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  115. package/docs/interfaces/Object3DHelperState.html +8 -8
  116. package/docs/interfaces/OpenParameter.html +7 -7
  117. package/docs/interfaces/PaintBrushAction.html +12 -12
  118. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  119. package/docs/interfaces/PaintBrushState.html +10 -10
  120. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  121. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  122. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  123. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  124. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  125. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  126. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  127. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  128. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  129. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  130. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  131. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  132. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  133. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  134. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  135. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  136. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  137. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  138. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  139. package/docs/interfaces/Point.html +8 -8
  140. package/docs/interfaces/PointJson.html +8 -8
  141. package/docs/interfaces/Room.html +9 -9
  142. package/docs/interfaces/RoomInfo.html +7 -7
  143. package/docs/interfaces/RoomLabel.html +14 -14
  144. package/docs/interfaces/RoomRules.html +5 -5
  145. package/docs/interfaces/Rooms.html +5 -5
  146. package/docs/interfaces/Scissor.html +9 -9
  147. package/docs/interfaces/State.html +8 -8
  148. package/docs/interfaces/TagCache.html +10 -10
  149. package/docs/interfaces/TagConfig.html +10 -10
  150. package/docs/interfaces/TagIconUrl.html +9 -9
  151. package/docs/interfaces/Tags.html +9 -9
  152. package/docs/interfaces/TemporaryState.html +6 -6
  153. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  154. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  155. package/docs/modules/Util.html +5 -5
  156. package/docs/modules.html +4 -4
  157. package/docs/types/ArrayPosition.html +5 -5
  158. package/docs/types/AudioAppearance.html +5 -5
  159. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  160. package/docs/types/CSS3DRenderExportType.html +5 -5
  161. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  162. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  163. package/docs/types/Color.html +5 -5
  164. package/docs/types/ContentTypeConfigKey.html +5 -5
  165. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  166. package/docs/types/ContentTypeMap.html +5 -5
  167. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  168. package/docs/types/Create3DElementReturnType.html +5 -5
  169. package/docs/types/CruisePluginExportType.html +5 -5
  170. package/docs/types/Direction-1.html +5 -5
  171. package/docs/types/Direction4.html +5 -5
  172. package/docs/types/FloorplanRuleLabels.html +5 -5
  173. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  174. package/docs/types/GuideLinePluginExportType.html +5 -5
  175. package/docs/types/HelperEventMap.html +5 -5
  176. package/docs/types/LoadTagConfig.html +5 -5
  177. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  178. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  179. package/docs/types/MediaData.html +5 -5
  180. package/docs/types/MediaStore.html +5 -5
  181. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  182. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  183. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  184. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  185. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  186. package/docs/types/MoveArgs.html +5 -5
  187. package/docs/types/MoveOpts.html +5 -5
  188. package/docs/types/Object3DHelperEventMap.html +5 -5
  189. package/docs/types/ObjectFit.html +5 -5
  190. package/docs/types/PaintBrushEventMap.html +5 -5
  191. package/docs/types/PanoCompassPluginData.html +5 -5
  192. package/docs/types/PanoCompassPluginExportType.html +5 -5
  193. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  194. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  195. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  196. package/docs/types/PanoIndex.html +5 -5
  197. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  198. package/docs/types/PanoMeasureReturnType.html +5 -5
  199. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  200. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  201. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  202. package/docs/types/PlaneTag.html +5 -5
  203. package/docs/types/PlaneTagElement.html +5 -5
  204. package/docs/types/Point2DElement.html +5 -5
  205. package/docs/types/Point2DTag.html +5 -5
  206. package/docs/types/Point3DElement.html +5 -5
  207. package/docs/types/Point3DTag.html +5 -5
  208. package/docs/types/PointTag.html +5 -5
  209. package/docs/types/PointTagElement.html +5 -5
  210. package/docs/types/Position.html +5 -5
  211. package/docs/types/RotateArgs.html +5 -5
  212. package/docs/types/RotateOpts.html +5 -5
  213. package/docs/types/RuleLabelsKey.html +5 -5
  214. package/docs/types/RuleLabelsValue.html +5 -5
  215. package/docs/types/StickType.html +5 -5
  216. package/docs/types/Tag.html +5 -5
  217. package/docs/types/Tag2D.html +5 -5
  218. package/docs/types/Tag3D.html +5 -5
  219. package/docs/types/TagContentType.html +5 -5
  220. package/docs/types/TagDimensionType.html +5 -5
  221. package/docs/types/TagElement.html +6 -6
  222. package/docs/types/TagEvents.html +5 -5
  223. package/docs/types/TagHooks.html +5 -5
  224. package/docs/types/TagIconSize.html +5 -5
  225. package/docs/types/TagId.html +5 -5
  226. package/docs/types/TagPointType.html +5 -5
  227. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  228. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  229. package/docs/types/WorkCode.html +5 -5
  230. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  231. package/docs/variables/PLUGIN.html +5 -5
  232. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  233. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  234. package/docs/variables/VERSION.html +5 -5
  235. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  236. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  237. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  238. package/libs/PanoTagPlugin/Components/Common/Audio.js +88 -129
  239. package/libs/PanoTagPlugin/Components/Common/Icon/Icon.js +93 -70
  240. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +25 -25
  241. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +128 -148
  242. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +112 -105
  243. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +52 -48
  244. package/libs/PanoTagPlugin/Components/Tag/LinkTag.js +59 -43
  245. package/libs/PanoTagPlugin/Components/Tag/TextTag/TextPlaneTag.js +45 -45
  246. package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
  247. package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
  248. package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
  249. package/libs/PanoTagPlugin/controller/index.js +40 -39
  250. package/libs/PanoTagPlugin/index.js +12 -11
  251. package/libs/PanoTagPlugin/typings/controller.d.ts +2 -0
  252. package/libs/PanoTagPlugin/utils/audio/SharedAudio.d.ts +16 -0
  253. package/libs/PanoTagPlugin/utils/audio/SharedAudio.js +107 -0
  254. package/libs/index.js +93 -92
  255. package/libs/shared-utils/audio.d.ts +16 -4
  256. package/libs/shared-utils/audio.js +42 -38
  257. package/package.json +1 -1
package/libs/index.js CHANGED
@@ -1,45 +1,45 @@
1
- import { PaintBrush as ip } from "./components/PaintBrush/index.js";
2
- import { PaintBrushTypeEnum as lp } from "./components/PaintBrush/typings.js";
3
- import { ModelViewPlugin as Pp } from "./ModelViewPlugin/Plugin.js";
4
- import { CSS3DRenderPlugin as fp } from "./CSS3DRenderPlugin/index.js";
5
- import { PanoCursorRaycasterPlugin as xp } from "./PanoCursorRaycasterPlugin/index.js";
6
- import { ModelRoomLabelPlugin as Tp, modelRoomLabelPluginServerParams as sp } from "./ModelRoomLabelPlugin/index.js";
7
- import { FLOOR_PLAN_ATTACHED_TO as Lp } from "./floorplan/constant.js";
8
- import { ModelFloorplanPlugin as Ep } from "./floorplan/ModelFloorplanPlugin/index.js";
9
- import { MapviewFloorplanPlugin as _p } from "./floorplan/MapviewFloorplanPlugin/index.js";
10
- import { TopviewFloorplanPlugin as Op } from "./floorplan/TopviewFloorplanPlugin/index.js";
11
- import { PanoFloorplanRadarPlugin as Ip } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
12
- import { FLOOR_TYPE_MAP as Dp, ROOM_FETILE_TYPE_MAP as bp, ROOM_TYPE_MAP as Yp } from "./floorplan/typings/floorplanServerData.js";
13
- import { ModelChassisCompassPlugin as vp } from "./ModelChassisCompassPlugin/Plugin.js";
14
- import { ModelEntryDoorGuidePlugin as Gp } from "./ModelEntryDoorGuidePlugin/Plugin.js";
15
- import { CameraMovementPlugin as cp } from "./CameraMovementPlugin/CameraMovementPlugin.js";
16
- import { CameraMovementEffect as hp, Rotation as wp } from "./CameraMovementPlugin/typing.js";
17
- import { PanoRulerPlugin as Hp } from "./PanoRulerPlugin/Plugin.js";
18
- import { PanoRulerProPlugin as jp } from "./PanoRulerProPlugin/index.js";
19
- import { PanoCompassPlugin as qp } from "./PanoCompassPlugin/index.js";
20
- import { PanoMeasurePlugin as Jp } from "./PanoMeasurePlugin/index.js";
21
- import { PanoSpatialTagPlugin as Qp } from "./PanoSpatialTagPlugin/Plugin.js";
22
- import { modelItemLabelPluginServerParams as Xp } from "./ModelItemLabelPlugin/index.js";
23
- import { ModelTVVideoPlugin as $p } from "./ModelTVVideoPlugin/Plugin.js";
24
- import { DIRECTION as ri } from "./ModelTVVideoPlugin/typings.js";
25
- import { itemLabelPluginServerParams as mi } from "./ItemLabelPlugin/index.js";
26
- import { PanoDoorLabelPlugin as ii } from "./PanoDoorLabelPlugin/index.js";
27
- import { GuideLinePlugin as li } from "./GuideLinePlugin/index.js";
28
- import { CruisePlugin as Pi } from "./CruisePlugin/index.js";
29
- import { PanoTagPlugin as fi } from "./PanoTagPlugin/index.js";
30
- import { Object3DHelperPlugin as xi } from "./Object3DHelperPlugin/index.js";
31
- import { index as Ti } from "./shared-utils/index.js";
32
- import { CSS3DRender as di } from "./CSS3DRenderPlugin/CSS3DRender.js";
33
- import { default as Mi } from "./PanoMeasurePlugin/Modules/Magnifier.js";
34
- import { DISPLAY_STRATEGY_TYPE as Ri } from "./ModelItemLabelPlugin/typings.js";
35
- import { ModelItemLabelPlugin as Ci } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
36
- import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as Si } from "./ItemLabelPlugin/typings.js";
37
- import { Plugin as Ai } from "./ItemLabelPlugin/Plugin.js";
38
- import { default as bi } from "./CruisePlugin/Controller.js";
39
- import { default as Fi, pluginFlag as vi } from "./PanoTagPlugin/controller/index.js";
40
- import { ContentType as Gi } from "./PanoTagPlugin/typings/tag/TagData.js";
41
- import { DimensionType as ci, PointType as Vi } from "./PanoTagPlugin/typings/tag/Utils.js";
42
- import { Object3DHelperController as wi, PLUGIN as Bi, VERSION as Hi } from "./Object3DHelperPlugin/Controller.js";
1
+ import { PaintBrush as ep } from "./components/PaintBrush/index.js";
2
+ import { PaintBrushTypeEnum as np } from "./components/PaintBrush/typings.js";
3
+ import { ModelViewPlugin as ap } from "./ModelViewPlugin/Plugin.js";
4
+ import { CSS3DRenderPlugin as up } from "./CSS3DRenderPlugin/index.js";
5
+ import { PanoCursorRaycasterPlugin as gp } from "./PanoCursorRaycasterPlugin/index.js";
6
+ import { ModelRoomLabelPlugin as sp, modelRoomLabelPluginServerParams as dp } from "./ModelRoomLabelPlugin/index.js";
7
+ import { FLOOR_PLAN_ATTACHED_TO as Mp } from "./floorplan/constant.js";
8
+ import { ModelFloorplanPlugin as Rp } from "./floorplan/ModelFloorplanPlugin/index.js";
9
+ import { MapviewFloorplanPlugin as Cp } from "./floorplan/MapviewFloorplanPlugin/index.js";
10
+ import { TopviewFloorplanPlugin as Sp } from "./floorplan/TopviewFloorplanPlugin/index.js";
11
+ import { PanoFloorplanRadarPlugin as Ap } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
12
+ import { FLOOR_TYPE_MAP as bp, ROOM_FETILE_TYPE_MAP as Yp, ROOM_TYPE_MAP as Fp } from "./floorplan/typings/floorplanServerData.js";
13
+ import { ModelChassisCompassPlugin as yp } from "./ModelChassisCompassPlugin/Plugin.js";
14
+ import { ModelEntryDoorGuidePlugin as Np } from "./ModelEntryDoorGuidePlugin/Plugin.js";
15
+ import { CameraMovementPlugin as Vp } from "./CameraMovementPlugin/CameraMovementPlugin.js";
16
+ import { CameraMovementEffect as wp, Rotation as Bp } from "./CameraMovementPlugin/typing.js";
17
+ import { PanoRulerPlugin as Up } from "./PanoRulerPlugin/Plugin.js";
18
+ import { PanoRulerProPlugin as kp } from "./PanoRulerProPlugin/index.js";
19
+ import { PanoCompassPlugin as zp } from "./PanoCompassPlugin/index.js";
20
+ import { PanoMeasurePlugin as Kp } from "./PanoMeasurePlugin/index.js";
21
+ import { PanoSpatialTagPlugin as Wp } from "./PanoSpatialTagPlugin/Plugin.js";
22
+ import { modelItemLabelPluginServerParams as Zp } from "./ModelItemLabelPlugin/index.js";
23
+ import { ModelTVVideoPlugin as oi } from "./ModelTVVideoPlugin/Plugin.js";
24
+ import { DIRECTION as ti } from "./ModelTVVideoPlugin/typings.js";
25
+ import { itemLabelPluginServerParams as pi } from "./ItemLabelPlugin/index.js";
26
+ import { PanoDoorLabelPlugin as ei } from "./PanoDoorLabelPlugin/index.js";
27
+ import { GuideLinePlugin as ni } from "./GuideLinePlugin/index.js";
28
+ import { CruisePlugin as ai } from "./CruisePlugin/index.js";
29
+ import { PanoTagPlugin as ui } from "./PanoTagPlugin/index.js";
30
+ import { Object3DHelperPlugin as gi } from "./Object3DHelperPlugin/index.js";
31
+ import { index as si } from "./shared-utils/index.js";
32
+ import { CSS3DRender as Li } from "./CSS3DRenderPlugin/CSS3DRender.js";
33
+ import { default as Ei } from "./PanoMeasurePlugin/Modules/Magnifier.js";
34
+ import { DISPLAY_STRATEGY_TYPE as _i } from "./ModelItemLabelPlugin/typings.js";
35
+ import { ModelItemLabelPlugin as Oi } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
36
+ import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as Ii } from "./ItemLabelPlugin/typings.js";
37
+ import { Plugin as Di } from "./ItemLabelPlugin/Plugin.js";
38
+ import { default as Yi } from "./CruisePlugin/Controller.js";
39
+ import { default as vi, pluginFlag as yi } from "./PanoTagPlugin/controller/index.js";
40
+ import { ContentType as Ni } from "./PanoTagPlugin/typings/tag/TagData.js";
41
+ import { DimensionType as Vi, PointType as hi } from "./PanoTagPlugin/typings/tag/Utils.js";
42
+ import { Object3DHelperController as Bi, PLUGIN as Hi, VERSION as Ui } from "./Object3DHelperPlugin/Controller.js";
43
43
  import "./components/PaintBrush/Controller.js";
44
44
  import "./components/PaintBrush/utils.js";
45
45
  import "./components/PaintBrush/tween.js";
@@ -256,6 +256,7 @@ import "./PanoTagPlugin/Components/Tag/AudioTag/index.js";
256
256
  import "./PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js";
257
257
  import "./PanoTagPlugin/Components/Common/Audio.js";
258
258
  import "./shared-utils/audio.js";
259
+ import "./PanoTagPlugin/utils/audio/SharedAudio.js";
259
260
  import "./PanoTagPlugin/Components/Common/Icon/audioIcon.js";
260
261
  import "./PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
261
262
  import "./PanoTagPlugin/utils/timeToString.js";
@@ -313,54 +314,54 @@ import "./shared-utils/three/Assets/index.js";
313
314
  import "./shared-utils/three/PointDomHelper.js";
314
315
  import "./shared-utils/three/FivePointSelector.js";
315
316
  export {
316
- di as CSS3DRender,
317
- fp as CSS3DRenderPlugin,
318
- hp as CameraMovementEffect,
319
- cp as CameraMovementPlugin,
320
- Gi as ContentType,
321
- Pi as CruisePlugin,
322
- bi as CruisePluginController,
323
- ri as DIRECTION,
324
- Ri as DISPLAY_STRATEGY_TYPE,
325
- ci as DimensionType,
326
- Lp as FLOOR_PLAN_ATTACHED_TO,
327
- Dp as FLOOR_TYPE_MAP,
328
- li as GuideLinePlugin,
329
- Si as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
330
- Ai as ItemLabelPlugin,
331
- Mi as Magnifier,
332
- _p as MapviewFloorplanPlugin,
333
- vp as ModelChassisCompassPlugin,
334
- Gp as ModelEntryDoorGuidePlugin,
335
- Ep as ModelFloorplanPlugin,
336
- Ci as ModelItemLabelPlugin,
337
- Tp as ModelRoomLabelPlugin,
338
- $p as ModelTVVideoPlugin,
339
- Pp as ModelViewPlugin,
340
- wi as Object3DHelperController,
341
- xi as Object3DHelperPlugin,
342
- Bi as PLUGIN,
343
- ip as PaintBrush,
344
- lp as PaintBrushTypeEnum,
345
- qp as PanoCompassPlugin,
346
- xp as PanoCursorRaycasterPlugin,
347
- ii as PanoDoorLabelPlugin,
348
- Ip as PanoFloorplanRadarPlugin,
349
- Jp as PanoMeasurePlugin,
350
- Hp as PanoRulerPlugin,
351
- jp as PanoRulerProPlugin,
352
- Qp as PanoSpatialTagPlugin,
353
- fi as PanoTagPlugin,
354
- Fi as PanoTagPluginController,
355
- Vi as PointType,
356
- bp as ROOM_FETILE_TYPE_MAP,
357
- Yp as ROOM_TYPE_MAP,
358
- wp as Rotation,
359
- Op as TopviewFloorplanPlugin,
360
- Ti as Util,
361
- Hi as VERSION,
362
- mi as itemLabelPluginServerParams,
363
- Xp as modelItemLabelPluginServerParams,
364
- sp as modelRoomLabelPluginServerParams,
365
- vi as pluginFlag
317
+ Li as CSS3DRender,
318
+ up as CSS3DRenderPlugin,
319
+ wp as CameraMovementEffect,
320
+ Vp as CameraMovementPlugin,
321
+ Ni as ContentType,
322
+ ai as CruisePlugin,
323
+ Yi as CruisePluginController,
324
+ ti as DIRECTION,
325
+ _i as DISPLAY_STRATEGY_TYPE,
326
+ Vi as DimensionType,
327
+ Mp as FLOOR_PLAN_ATTACHED_TO,
328
+ bp as FLOOR_TYPE_MAP,
329
+ ni as GuideLinePlugin,
330
+ Ii as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
331
+ Di as ItemLabelPlugin,
332
+ Ei as Magnifier,
333
+ Cp as MapviewFloorplanPlugin,
334
+ yp as ModelChassisCompassPlugin,
335
+ Np as ModelEntryDoorGuidePlugin,
336
+ Rp as ModelFloorplanPlugin,
337
+ Oi as ModelItemLabelPlugin,
338
+ sp as ModelRoomLabelPlugin,
339
+ oi as ModelTVVideoPlugin,
340
+ ap as ModelViewPlugin,
341
+ Bi as Object3DHelperController,
342
+ gi as Object3DHelperPlugin,
343
+ Hi as PLUGIN,
344
+ ep as PaintBrush,
345
+ np as PaintBrushTypeEnum,
346
+ zp as PanoCompassPlugin,
347
+ gp as PanoCursorRaycasterPlugin,
348
+ ei as PanoDoorLabelPlugin,
349
+ Ap as PanoFloorplanRadarPlugin,
350
+ Kp as PanoMeasurePlugin,
351
+ Up as PanoRulerPlugin,
352
+ kp as PanoRulerProPlugin,
353
+ Wp as PanoSpatialTagPlugin,
354
+ ui as PanoTagPlugin,
355
+ vi as PanoTagPluginController,
356
+ hi as PointType,
357
+ Yp as ROOM_FETILE_TYPE_MAP,
358
+ Fp as ROOM_TYPE_MAP,
359
+ Bp as Rotation,
360
+ Sp as TopviewFloorplanPlugin,
361
+ si as Util,
362
+ Ui as VERSION,
363
+ pi as itemLabelPluginServerParams,
364
+ Zp as modelItemLabelPluginServerParams,
365
+ dp as modelRoomLabelPluginServerParams,
366
+ yi as pluginFlag
366
367
  };
@@ -1,11 +1,22 @@
1
- export declare const audioList: IAudio[];
2
- export declare function getAudio(src?: string): IAudio;
1
+ export declare const audioCache: Record<string, IAudio[]>;
2
+ export declare enum AudioNamespace {
3
+ Default = "default",
4
+ GetAudioDuration = "getAudioDuration",
5
+ PlayAudio = "playAudio"
6
+ }
7
+ export declare function getAudio(src?: string, params?: {
8
+ namespace?: string;
9
+ }): IAudio;
3
10
  export declare function getAudioDuration(audio?: string | IAudio): Promise<number>;
4
- export declare function waitForBlankAudioGenerated(checkInterval?: number, timeout?: number): Promise<void>;
11
+ export declare function waitForBlankAudioGenerated(checkInterval?: number, timeout?: number, params?: {
12
+ namespace?: string;
13
+ }): Promise<void>;
5
14
  /**
6
15
  * @description: 生成空音频
7
16
  */
8
- export declare function generateBlankAudio(length: number): void;
17
+ export declare function generateBlankAudio(length: number, params?: {
18
+ namespace?: string;
19
+ }): void;
9
20
  export declare class IAudio extends Audio {
10
21
  preload: "auto";
11
22
  get isBlankAudio(): boolean;
@@ -16,4 +27,5 @@ export declare class IAudio extends Audio {
16
27
  removeDocumentEventListener: () => void;
17
28
  constructor(src?: string);
18
29
  clear(): void;
30
+ private initAudio;
19
31
  }
@@ -1,30 +1,32 @@
1
1
  var l = Object.defineProperty;
2
- var m = (e, V, A) => V in e ? l(e, V, { enumerable: !0, configurable: !0, writable: !0, value: A }) : e[V] = A;
3
- var r = (e, V, A) => (m(e, typeof V != "symbol" ? V + "" : V, A), A);
4
- var a = (e, V, A) => new Promise((t, c) => {
5
- var u = (n) => {
2
+ var f = (e, V, A) => V in e ? l(e, V, { enumerable: !0, configurable: !0, writable: !0, value: A }) : e[V] = A;
3
+ var s = (e, V, A) => (f(e, typeof V != "symbol" ? V + "" : V, A), A);
4
+ var q = (e, V, A) => new Promise((t, n) => {
5
+ var i = (u) => {
6
6
  try {
7
- o(A.next(n));
8
- } catch (q) {
9
- c(q);
7
+ d(A.next(u));
8
+ } catch (c) {
9
+ n(c);
10
10
  }
11
- }, h = (n) => {
11
+ }, h = (u) => {
12
12
  try {
13
- o(A.throw(n));
14
- } catch (q) {
15
- c(q);
13
+ d(A.throw(u));
14
+ } catch (c) {
15
+ n(c);
16
16
  }
17
- }, o = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(u, h);
18
- o((A = A.apply(e, V)).next());
17
+ }, d = (u) => u.done ? t(u.value) : Promise.resolve(u.value).then(i, h);
18
+ d((A = A.apply(e, V)).next());
19
19
  });
20
- const i = "data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAADAAAGhgBVVVVVVV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VVVVVVVVVVVVVVVVVVVVVVVVVU=", s = [];
21
- function L(e) {
22
- let V = s.find((A) => !A.realSrc || A.realSrc === i);
23
- return V || (V = new d(i), s.push(V)), e && (V.src = e), V;
20
+ const o = "data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAADAAAGhgBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr///////////////////////////////////////////8AAAA5TEFNRTMuOThyAc0AAAAAAAAAABSAJAiqQgAAgAAABobxtI73AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//uQxAACFEII9ACZ/sJZwWEoEb8w/////N//////JcxjHjf+7/v/H2PzCCFAiDtGeyBCIx7bJJ1mmEEMy6g8mm2c8nrGABB4h2Mkmn//4z/73u773R5qHHu/j/w7Kxkzh5lWRWdsifCkNAnY9Zc1HvDAhjhSHdFkHFzLmabt/AQxSg2wwzLhHIJOBnAWwVY4zrhIYhhc2kvhYDfQ4hDi2Gmh5KyFn8EcGIrHAngNgIwVIEMf5bzbAiTRoAD///8z/KVhkkWEle6IX+d/z4fvH3BShK1e5kmjkCMoxVmXhd4ROlTKo3iipasvTilY21q19ta30/v/0/idPX1v8PNxJL6ramnOVsdvMv2akO0iSYIzdJFirtzWXCZicS9vHqvSKyqm5XJBdqBwPxyfJdykhWT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VVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU=", r = {};
21
+ var L = /* @__PURE__ */ ((e) => (e.Default = "default", e.GetAudioDuration = "getAudioDuration", e.PlayAudio = "playAudio", e))(L || {});
22
+ function m(e, V) {
23
+ const A = (V == null ? void 0 : V.namespace) || "default", t = r[A] || (r[A] = []);
24
+ let n = t.find((i) => !i.realSrc || i.realSrc === o);
25
+ return n ? console.log("\u627E\u5230\u7F13\u5B58\u97F3\u9891") : (console.warn("\u672A\u627E\u5230\u7F13\u5B58\u97F3\u9891\uFF0C\u5DF2\u65B0\u5EFA"), n = new a(o), t.push(n)), e && (n.src = e), n;
24
26
  }
25
- function K(e) {
26
- return a(this, null, function* () {
27
- const V = (() => e instanceof d ? e : L(e))(), A = yield new Promise((t) => {
27
+ function g(e) {
28
+ return q(this, null, function* () {
29
+ const V = (() => e instanceof a ? e : m(e, { namespace: "getAudioDuration" }))(), A = yield new Promise((t) => {
28
30
  V.duration ? V.isBlankAudio ? t(0) : t(V.duration) : (V.addEventListener("loadedmetadata", () => {
29
31
  V.isBlankAudio ? t(0) : t(V.duration);
30
32
  }), V.addEventListener("canplaythrough", () => {
@@ -34,32 +36,29 @@ function K(e) {
34
36
  return typeof e == "string" && V.clear(), A;
35
37
  });
36
38
  }
37
- function g(e) {
38
- const V = e - s.length;
39
- if (!(V <= 0))
40
- for (let A = 0; A < V; A++)
41
- s.push(new d(i));
42
- }
43
- function f(e) {
44
- e.inited || (e.src && (e.inited = !0, e.removeDocumentEventListener()), e.src === i && e.play());
39
+ function K(e, V) {
40
+ const A = (V == null ? void 0 : V.namespace) || "default", t = r[A] || (r[A] = []), n = e - t.length;
41
+ if (!(n <= 0))
42
+ for (let i = 0; i < n; i++)
43
+ t.push(new a(o));
45
44
  }
46
- class d extends Audio {
45
+ class a extends Audio {
47
46
  constructor(A) {
48
47
  super(A);
49
- r(this, "preload", "auto");
50
- r(this, "realSrc", "");
51
- r(this, "inited", !1);
52
- r(this, "removeDocumentEventListener");
48
+ s(this, "preload", "auto");
49
+ s(this, "realSrc", "");
50
+ s(this, "inited", !1);
51
+ s(this, "removeDocumentEventListener");
53
52
  this.realSrc = A != null ? A : "", super.addEventListener("ended", () => {
54
53
  this.src = "";
55
54
  });
56
- const t = () => f(this);
55
+ const t = this.initAudio.bind(this);
57
56
  document.addEventListener("mousedown", t), document.addEventListener("click", t), document.addEventListener("touchstart", t), this.removeDocumentEventListener = () => {
58
57
  document.removeEventListener("mousedown", t), document.removeEventListener("click", t), document.removeEventListener("touchstart", t);
59
58
  };
60
59
  }
61
60
  get isBlankAudio() {
62
- return this.realSrc === i || !this.realSrc;
61
+ return this.realSrc === o || !this.realSrc;
63
62
  }
64
63
  get src() {
65
64
  return super.src;
@@ -68,10 +67,15 @@ class d extends Audio {
68
67
  super.src = A, this.realSrc = A;
69
68
  }
70
69
  clear() {
71
- this.src = i, console.log(this.realSrc === i);
70
+ this.src = o, this.currentTime = 0;
71
+ }
72
+ initAudio() {
73
+ this.inited || (this.src && (this.inited = !0, this.removeDocumentEventListener()), this.src === o && this.play());
72
74
  }
73
75
  }
74
76
  export {
75
- g as generateBlankAudio,
76
- K as getAudioDuration
77
+ L as AudioNamespace,
78
+ K as generateBlankAudio,
79
+ m as getAudio,
80
+ g as getAudioDuration
77
81
  };
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "repository": "https://github.com/realsee-developer/dnalogel.git",
8
8
  "description": "如视 VR 看房插件合集",
9
9
  "private": false,
10
- "version": "2.3.9-alpha.4",
10
+ "version": "2.3.9-alpha.6",
11
11
  "license": "SEE LICENSE IN TERMS.txt",
12
12
  "scripts": {
13
13
  "clean": "rm -rf components dist docs libs types ./vite.config.js.timestamp*",