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

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 (253) hide show
  1. package/dist/index.cjs.js +54 -54
  2. package/dist/index.js +4548 -4501
  3. package/dist/index.umd.js +47 -47
  4. package/dist/shared-utils/audio.d.ts +19 -0
  5. package/docs/classes/CSS3DRender.html +31 -31
  6. package/docs/classes/CruisePluginController.html +24 -24
  7. package/docs/classes/Magnifier.html +16 -16
  8. package/docs/classes/ModelRoomLabelController.html +11 -11
  9. package/docs/classes/Object3DHelperController.html +24 -24
  10. package/docs/classes/PaintBrush.html +15 -15
  11. package/docs/classes/PanoTagPluginController.html +41 -41
  12. package/docs/classes/Util.BetterTween.html +8 -8
  13. package/docs/classes/Util.FivePointSelector.html +12 -12
  14. package/docs/classes/Util.Interval.html +12 -12
  15. package/docs/classes/Util.Magnifier.html +17 -17
  16. package/docs/classes/Util.PointDomHelper.html +11 -11
  17. package/docs/classes/Util.PointHelper.html +11 -11
  18. package/docs/classes/Util.Rectangle.html +13 -13
  19. package/docs/enums/CameraMovementEffect.html +7 -7
  20. package/docs/enums/ContentType.html +16 -16
  21. package/docs/enums/DIRECTION.html +9 -9
  22. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +9 -9
  23. package/docs/enums/DimensionType.html +7 -7
  24. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +8 -8
  25. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +9 -9
  26. package/docs/enums/PaintBrushTypeEnum.html +8 -8
  27. package/docs/enums/PointType.html +7 -7
  28. package/docs/enums/Rotation.html +8 -8
  29. package/docs/functions/CSS3DRenderPlugin.html +4 -4
  30. package/docs/functions/CameraMovementPlugin.html +4 -4
  31. package/docs/functions/CruisePlugin.html +4 -4
  32. package/docs/functions/GuideLinePlugin.html +5 -5
  33. package/docs/functions/ItemLabelPlugin.html +4 -4
  34. package/docs/functions/MapviewFloorplanPlugin.html +4 -4
  35. package/docs/functions/ModelChassisCompassPlugin.html +4 -4
  36. package/docs/functions/ModelEntryDoorGuidePlugin.html +4 -4
  37. package/docs/functions/ModelFloorplanPlugin.html +4 -4
  38. package/docs/functions/ModelItemLabelPlugin.html +4 -4
  39. package/docs/functions/ModelRoomLabelPlugin.html +4 -4
  40. package/docs/functions/ModelTVVideoPlugin.html +4 -4
  41. package/docs/functions/ModelViewPlugin.html +4 -4
  42. package/docs/functions/Object3DHelperPlugin.html +4 -4
  43. package/docs/functions/PanoCompassPlugin.html +4 -4
  44. package/docs/functions/PanoCursorRaycasterPlugin.html +4 -4
  45. package/docs/functions/PanoDoorLabelPlugin.html +4 -4
  46. package/docs/functions/PanoFloorplanRadarPlugin.html +4 -4
  47. package/docs/functions/PanoMeasurePlugin.html +4 -4
  48. package/docs/functions/PanoRulerPlugin.html +4 -4
  49. package/docs/functions/PanoRulerProPlugin.html +4 -4
  50. package/docs/functions/PanoSpatialTagPlugin.html +4 -4
  51. package/docs/functions/PanoTagPlugin.html +4 -4
  52. package/docs/functions/TopviewFloorplanPlugin.html +4 -4
  53. package/docs/functions/Util.getCoordsFromClient.html +5 -5
  54. package/docs/functions/Util.getCoordsFromElement.html +5 -5
  55. package/docs/functions/Util.getFrameTime.html +5 -5
  56. package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -5
  57. package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -5
  58. package/docs/functions/Util.isNil.html +5 -5
  59. package/docs/functions/Util.nextFrame.html +5 -5
  60. package/docs/functions/Util.notNil.html +5 -5
  61. package/docs/functions/Util.requestAnimationFrameInterval.html +5 -5
  62. package/docs/functions/Util.tweenProgress.html +5 -5
  63. package/docs/functions/pluginFlag.html +5 -5
  64. package/docs/index.html +4 -4
  65. package/docs/interfaces/AddTagConfig.html +6 -6
  66. package/docs/interfaces/CSS3DRenderPluginEventMap.html +11 -11
  67. package/docs/interfaces/CSS3DRenderPluginState.html +8 -8
  68. package/docs/interfaces/CameraMovementPluginExportType.html +7 -7
  69. package/docs/interfaces/EventMap.html +15 -15
  70. package/docs/interfaces/FloorplanBounding.html +8 -8
  71. package/docs/interfaces/FloorplanData.html +10 -10
  72. package/docs/interfaces/FloorplanEntrance.html +11 -11
  73. package/docs/interfaces/FloorplanExtraObject.html +10 -10
  74. package/docs/interfaces/FloorplanExtraObject3D.html +8 -8
  75. package/docs/interfaces/FloorplanFloorData.html +9 -9
  76. package/docs/interfaces/FloorplanImagePosition.html +7 -7
  77. package/docs/interfaces/FloorplanObserver.html +9 -9
  78. package/docs/interfaces/FloorplanOutlineItem.html +9 -9
  79. package/docs/interfaces/FloorplanPosition.html +7 -7
  80. package/docs/interfaces/FloorplanRoomItem.html +13 -13
  81. package/docs/interfaces/FloorplanRoomLabelItem.html +7 -7
  82. package/docs/interfaces/FloorplanServerBounding.html +8 -8
  83. package/docs/interfaces/FloorplanServerComputedData.html +10 -10
  84. package/docs/interfaces/FloorplanServerData.html +7 -7
  85. package/docs/interfaces/FloorplanServerDoorItem.html +10 -10
  86. package/docs/interfaces/FloorplanServerDoorPosition.html +8 -8
  87. package/docs/interfaces/FloorplanServerEntrance.html +11 -11
  88. package/docs/interfaces/FloorplanServerFloorData.html +9 -9
  89. package/docs/interfaces/FloorplanServerImagePosition.html +7 -7
  90. package/docs/interfaces/FloorplanServerObserver.html +9 -9
  91. package/docs/interfaces/FloorplanServerOutlineItem.html +9 -9
  92. package/docs/interfaces/FloorplanServerPosition.html +7 -7
  93. package/docs/interfaces/FloorplanServerRoomItem.html +14 -14
  94. package/docs/interfaces/FloorplanServerRoomLabelItem.html +7 -7
  95. package/docs/interfaces/ItemLabelPluginData.html +6 -6
  96. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +11 -11
  97. package/docs/interfaces/ItemLabelPluginParametersType.html +9 -9
  98. package/docs/interfaces/LineJson.html +7 -7
  99. package/docs/interfaces/MinMax.html +7 -7
  100. package/docs/interfaces/ModelChassisCompassPluginData.html +7 -7
  101. package/docs/interfaces/ModelChassisCompassPluginExportType.html +8 -8
  102. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +7 -7
  103. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +8 -8
  104. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +8 -8
  105. package/docs/interfaces/ModelItemLabelPluginData.html +6 -6
  106. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +11 -11
  107. package/docs/interfaces/ModelItemLabelPluginParametersType.html +7 -7
  108. package/docs/interfaces/ModelRoomLabelPluginData.html +6 -6
  109. package/docs/interfaces/ModelTVVideoPluginData.html +9 -9
  110. package/docs/interfaces/ModelTVVideoPluginExportType.html +8 -8
  111. package/docs/interfaces/ModelTVVideoPluginParameterType.html +6 -6
  112. package/docs/interfaces/ModelViewPluginExportType.html +11 -11
  113. package/docs/interfaces/Object3DHelperState.html +8 -8
  114. package/docs/interfaces/OpenParameter.html +7 -7
  115. package/docs/interfaces/PaintBrushAction.html +12 -12
  116. package/docs/interfaces/PaintBrushConfigs.html +12 -12
  117. package/docs/interfaces/PaintBrushState.html +10 -10
  118. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +10 -10
  119. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -5
  120. package/docs/interfaces/PanoMeasureParameterType.html +11 -11
  121. package/docs/interfaces/PanoRulerPluginExportType.html +10 -10
  122. package/docs/interfaces/PanoRulerPluginOptions.html +7 -7
  123. package/docs/interfaces/PanoRulerPluginParameterType.html +8 -8
  124. package/docs/interfaces/PanoRulerProPluginExportType.html +9 -9
  125. package/docs/interfaces/PanoRulerProPluginOptions.html +7 -7
  126. package/docs/interfaces/PanoRulerProPluginParameterType.html +7 -7
  127. package/docs/interfaces/PanoRulerProPluginState.html +8 -8
  128. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -5
  129. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -5
  130. package/docs/interfaces/PanoSpatialTagPluginData.html +11 -11
  131. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +10 -10
  132. package/docs/interfaces/PanoSpatialTagPluginExportType.html +13 -13
  133. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +10 -10
  134. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +13 -13
  135. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +11 -11
  136. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +10 -10
  137. package/docs/interfaces/Point.html +8 -8
  138. package/docs/interfaces/PointJson.html +8 -8
  139. package/docs/interfaces/Room.html +9 -9
  140. package/docs/interfaces/RoomInfo.html +7 -7
  141. package/docs/interfaces/RoomLabel.html +14 -14
  142. package/docs/interfaces/RoomRules.html +5 -5
  143. package/docs/interfaces/Rooms.html +5 -5
  144. package/docs/interfaces/Scissor.html +9 -9
  145. package/docs/interfaces/State.html +8 -8
  146. package/docs/interfaces/TagCache.html +10 -10
  147. package/docs/interfaces/TagConfig.html +10 -10
  148. package/docs/interfaces/TagIconUrl.html +9 -9
  149. package/docs/interfaces/Tags.html +9 -9
  150. package/docs/interfaces/TemporaryState.html +6 -6
  151. package/docs/interfaces/Util.MagnifierParameter.html +11 -11
  152. package/docs/interfaces/Util.MouseGroupParameter.html +8 -8
  153. package/docs/modules/Util.html +5 -5
  154. package/docs/modules.html +4 -4
  155. package/docs/types/ArrayPosition.html +5 -5
  156. package/docs/types/AudioAppearance.html +5 -5
  157. package/docs/types/AudioTagTypeConfigKey.html +5 -5
  158. package/docs/types/CSS3DRenderExportType.html +5 -5
  159. package/docs/types/CSS3DRenderPluginExportType.html +5 -5
  160. package/docs/types/CSS3DRenderPluginParameterType.html +5 -5
  161. package/docs/types/Color.html +5 -5
  162. package/docs/types/ContentTypeConfigKey.html +5 -5
  163. package/docs/types/ContentTypeConfigKeySplit.html +5 -5
  164. package/docs/types/ContentTypeMap.html +5 -5
  165. package/docs/types/Create3DDomContainerReturnType.html +5 -5
  166. package/docs/types/Create3DElementReturnType.html +5 -5
  167. package/docs/types/CruisePluginExportType.html +5 -5
  168. package/docs/types/Direction-1.html +5 -5
  169. package/docs/types/Direction4.html +5 -5
  170. package/docs/types/FloorplanRuleLabels.html +5 -5
  171. package/docs/types/FloorplanServerRuleLabels.html +5 -5
  172. package/docs/types/GuideLinePluginExportType.html +5 -5
  173. package/docs/types/HelperEventMap.html +5 -5
  174. package/docs/types/LoadTagConfig.html +5 -5
  175. package/docs/types/MapviewFloorplanPluginParameterType.html +5 -5
  176. package/docs/types/MapviewFloorplanPluginReturnType.html +5 -5
  177. package/docs/types/MediaData.html +5 -5
  178. package/docs/types/MediaStore.html +5 -5
  179. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -5
  180. package/docs/types/ModelFloorplanPluginParameterType.html +5 -5
  181. package/docs/types/ModelFloorplanPluginReturnType.html +5 -5
  182. package/docs/types/ModelRoomLabelPluginParameters.html +5 -5
  183. package/docs/types/ModelRoomLabelPluginReturnType.html +5 -5
  184. package/docs/types/MoveArgs.html +5 -5
  185. package/docs/types/MoveOpts.html +5 -5
  186. package/docs/types/Object3DHelperEventMap.html +5 -5
  187. package/docs/types/ObjectFit.html +5 -5
  188. package/docs/types/PaintBrushEventMap.html +5 -5
  189. package/docs/types/PanoCompassPluginData.html +5 -5
  190. package/docs/types/PanoCompassPluginExportType.html +5 -5
  191. package/docs/types/PanoCompassPluginParameterType.html +5 -5
  192. package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -5
  193. package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -5
  194. package/docs/types/PanoIndex.html +5 -5
  195. package/docs/types/PanoMeasurePluginEvent.html +5 -5
  196. package/docs/types/PanoMeasureReturnType.html +5 -5
  197. package/docs/types/PanoSpatialTagPluginId.html +5 -5
  198. package/docs/types/PanoTagPluginExportInterface.html +5 -5
  199. package/docs/types/PanoTagPluginParamsInterface.html +5 -5
  200. package/docs/types/PlaneTag.html +5 -5
  201. package/docs/types/PlaneTagElement.html +5 -5
  202. package/docs/types/Point2DElement.html +5 -5
  203. package/docs/types/Point2DTag.html +5 -5
  204. package/docs/types/Point3DElement.html +5 -5
  205. package/docs/types/Point3DTag.html +5 -5
  206. package/docs/types/PointTag.html +5 -5
  207. package/docs/types/PointTagElement.html +5 -5
  208. package/docs/types/Position.html +5 -5
  209. package/docs/types/RotateArgs.html +5 -5
  210. package/docs/types/RotateOpts.html +5 -5
  211. package/docs/types/RuleLabelsKey.html +5 -5
  212. package/docs/types/RuleLabelsValue.html +5 -5
  213. package/docs/types/StickType.html +5 -5
  214. package/docs/types/Tag.html +5 -5
  215. package/docs/types/Tag2D.html +5 -5
  216. package/docs/types/Tag3D.html +5 -5
  217. package/docs/types/TagContentType.html +5 -5
  218. package/docs/types/TagDimensionType.html +5 -5
  219. package/docs/types/TagElement.html +5 -5
  220. package/docs/types/TagEvents.html +5 -5
  221. package/docs/types/TagHooks.html +5 -5
  222. package/docs/types/TagIconSize.html +5 -5
  223. package/docs/types/TagId.html +5 -5
  224. package/docs/types/TagPointType.html +5 -5
  225. package/docs/types/TopviewFloorplanPluginParameterType.html +5 -5
  226. package/docs/types/TopviewFloorplanPluginReturnType.html +5 -5
  227. package/docs/types/WorkCode.html +5 -5
  228. package/docs/variables/FLOOR_TYPE_MAP.html +5 -5
  229. package/docs/variables/PLUGIN.html +5 -5
  230. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -5
  231. package/docs/variables/ROOM_TYPE_MAP.html +5 -5
  232. package/docs/variables/VERSION.html +5 -5
  233. package/docs/variables/itemLabelPluginServerParams.html +5 -5
  234. package/docs/variables/modelItemLabelPluginServerParams.html +5 -5
  235. package/docs/variables/modelRoomLabelPluginServerParams.html +5 -5
  236. package/libs/CruisePlugin/Controller.js +1 -1
  237. package/libs/PanoTagPlugin/Components/Common/Audio.js +131 -132
  238. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +3 -2
  239. package/libs/PanoTagPlugin/Components/Common/Text/FlyText.js +1 -1
  240. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +66 -64
  241. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +17 -16
  242. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +3 -2
  243. package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +46 -46
  244. package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
  245. package/libs/PanoTagPlugin/Components/TagContainer.js +3 -2
  246. package/libs/PanoTagPlugin/Components/TagItem.js +3 -2
  247. package/libs/PanoTagPlugin/controller/index.js +12 -11
  248. package/libs/PanoTagPlugin/index.js +12 -11
  249. package/libs/index.js +93 -92
  250. package/libs/shared-utils/Object3DHelper/Helper/RectangleScaleHelper.js +25 -32
  251. package/libs/shared-utils/audio.d.ts +19 -0
  252. package/libs/shared-utils/audio.js +77 -0
  253. package/package.json +1 -1
package/libs/index.js CHANGED
@@ -1,45 +1,45 @@
1
- import { PaintBrush as pp } from "./components/PaintBrush/index.js";
2
- import { PaintBrushTypeEnum as ep } from "./components/PaintBrush/typings.js";
3
- import { ModelViewPlugin as np } from "./ModelViewPlugin/Plugin.js";
4
- import { CSS3DRenderPlugin as ap } from "./CSS3DRenderPlugin/index.js";
5
- import { PanoCursorRaycasterPlugin as up } from "./PanoCursorRaycasterPlugin/index.js";
6
- import { ModelRoomLabelPlugin as gp, modelRoomLabelPluginServerParams as Tp } from "./ModelRoomLabelPlugin/index.js";
7
- import { FLOOR_PLAN_ATTACHED_TO as dp } from "./floorplan/constant.js";
8
- import { ModelFloorplanPlugin as Mp } from "./floorplan/ModelFloorplanPlugin/index.js";
9
- import { MapviewFloorplanPlugin as Rp } from "./floorplan/MapviewFloorplanPlugin/index.js";
10
- import { TopviewFloorplanPlugin as Cp } from "./floorplan/TopviewFloorplanPlugin/index.js";
11
- import { PanoFloorplanRadarPlugin as Sp } from "./floorplan/PanoFloorplanRadarPlugin/index.js";
12
- import { FLOOR_TYPE_MAP as Ap, ROOM_FETILE_TYPE_MAP as Dp, ROOM_TYPE_MAP as bp } from "./floorplan/typings/floorplanServerData.js";
13
- import { ModelChassisCompassPlugin as Fp } from "./ModelChassisCompassPlugin/Plugin.js";
14
- import { ModelEntryDoorGuidePlugin as yp } from "./ModelEntryDoorGuidePlugin/Plugin.js";
15
- import { CameraMovementPlugin as Np } from "./CameraMovementPlugin/CameraMovementPlugin.js";
16
- import { CameraMovementEffect as Vp, Rotation as hp } from "./CameraMovementPlugin/typing.js";
17
- import { PanoRulerPlugin as Bp } from "./PanoRulerPlugin/Plugin.js";
18
- import { PanoRulerProPlugin as Up } from "./PanoRulerProPlugin/index.js";
19
- import { PanoCompassPlugin as kp } from "./PanoCompassPlugin/index.js";
20
- import { PanoMeasurePlugin as zp } from "./PanoMeasurePlugin/index.js";
21
- import { PanoSpatialTagPlugin as Kp } from "./PanoSpatialTagPlugin/Plugin.js";
22
- import { modelItemLabelPluginServerParams as Wp } from "./ModelItemLabelPlugin/index.js";
23
- import { ModelTVVideoPlugin as Zp } from "./ModelTVVideoPlugin/Plugin.js";
24
- import { DIRECTION as oi } from "./ModelTVVideoPlugin/typings.js";
25
- import { itemLabelPluginServerParams as ti } from "./ItemLabelPlugin/index.js";
26
- import { PanoDoorLabelPlugin as pi } from "./PanoDoorLabelPlugin/index.js";
27
- import { GuideLinePlugin as ei } from "./GuideLinePlugin/index.js";
28
- import { CruisePlugin as ni } from "./CruisePlugin/index.js";
29
- import { PanoTagPlugin as ai } from "./PanoTagPlugin/index.js";
30
- import { Object3DHelperPlugin as ui } from "./Object3DHelperPlugin/index.js";
31
- import { index as gi } from "./shared-utils/index.js";
32
- import { CSS3DRender as si } from "./CSS3DRenderPlugin/CSS3DRender.js";
33
- import { default as Li } from "./PanoMeasurePlugin/Modules/Magnifier.js";
34
- import { DISPLAY_STRATEGY_TYPE as Ei } from "./ModelItemLabelPlugin/typings.js";
35
- import { ModelItemLabelPlugin as _i } from "./ModelItemLabelPlugin/ModelItemLabelPlugin.js";
36
- import { ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE as Oi } from "./ItemLabelPlugin/typings.js";
37
- import { Plugin as Ii } from "./ItemLabelPlugin/Plugin.js";
38
- import { default as Di } from "./CruisePlugin/Controller.js";
39
- import { default as Yi, pluginFlag as Fi } from "./PanoTagPlugin/controller/index.js";
40
- import { ContentType as yi } from "./PanoTagPlugin/typings/tag/TagData.js";
41
- import { DimensionType as Ni, PointType as ci } from "./PanoTagPlugin/typings/tag/Utils.js";
42
- import { Object3DHelperController as hi, PLUGIN as wi, VERSION as Bi } from "./Object3DHelperPlugin/Controller.js";
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";
43
43
  import "./components/PaintBrush/Controller.js";
44
44
  import "./components/PaintBrush/utils.js";
45
45
  import "./components/PaintBrush/tween.js";
@@ -255,6 +255,7 @@ import "./PanoTagPlugin/Components/Tag/MarketingTag.js";
255
255
  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
+ import "./shared-utils/audio.js";
258
259
  import "./PanoTagPlugin/Components/Common/Icon/audioIcon.js";
259
260
  import "./PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js";
260
261
  import "./PanoTagPlugin/utils/timeToString.js";
@@ -312,54 +313,54 @@ import "./shared-utils/three/Assets/index.js";
312
313
  import "./shared-utils/three/PointDomHelper.js";
313
314
  import "./shared-utils/three/FivePointSelector.js";
314
315
  export {
315
- si as CSS3DRender,
316
- ap as CSS3DRenderPlugin,
317
- Vp as CameraMovementEffect,
318
- Np as CameraMovementPlugin,
319
- yi as ContentType,
320
- ni as CruisePlugin,
321
- Di as CruisePluginController,
322
- oi as DIRECTION,
323
- Ei as DISPLAY_STRATEGY_TYPE,
324
- Ni as DimensionType,
325
- dp as FLOOR_PLAN_ATTACHED_TO,
326
- Ap as FLOOR_TYPE_MAP,
327
- ei as GuideLinePlugin,
328
- Oi as ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE,
329
- Ii as ItemLabelPlugin,
330
- Li as Magnifier,
331
- Rp as MapviewFloorplanPlugin,
332
- Fp as ModelChassisCompassPlugin,
333
- yp as ModelEntryDoorGuidePlugin,
334
- Mp as ModelFloorplanPlugin,
335
- _i as ModelItemLabelPlugin,
336
- gp as ModelRoomLabelPlugin,
337
- Zp as ModelTVVideoPlugin,
338
- np as ModelViewPlugin,
339
- hi as Object3DHelperController,
340
- ui as Object3DHelperPlugin,
341
- wi as PLUGIN,
342
- pp as PaintBrush,
343
- ep as PaintBrushTypeEnum,
344
- kp as PanoCompassPlugin,
345
- up as PanoCursorRaycasterPlugin,
346
- pi as PanoDoorLabelPlugin,
347
- Sp as PanoFloorplanRadarPlugin,
348
- zp as PanoMeasurePlugin,
349
- Bp as PanoRulerPlugin,
350
- Up as PanoRulerProPlugin,
351
- Kp as PanoSpatialTagPlugin,
352
- ai as PanoTagPlugin,
353
- Yi as PanoTagPluginController,
354
- ci as PointType,
355
- Dp as ROOM_FETILE_TYPE_MAP,
356
- bp as ROOM_TYPE_MAP,
357
- hp as Rotation,
358
- Cp as TopviewFloorplanPlugin,
359
- gi as Util,
360
- Bi as VERSION,
361
- ti as itemLabelPluginServerParams,
362
- Wp as modelItemLabelPluginServerParams,
363
- Tp as modelRoomLabelPluginServerParams,
364
- Fi as pluginFlag
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
365
366
  };
@@ -1,25 +1,25 @@
1
- var D = Object.defineProperty;
2
- var y = (o, n, e) => n in o ? D(o, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[n] = e;
3
- var i = (o, n, e) => (y(o, typeof n != "symbol" ? n + "" : n, e), e);
4
- import { CSS3DRender as f } from "../../../CSS3DRenderPlugin/CSS3DRender.js";
5
- import * as c from "three";
6
- import { RectangleScaleHelperAbstract as m } from "../Base/BaseHelper.js";
1
+ var d = Object.defineProperty;
2
+ var u = (c, n, e) => n in c ? d(c, n, { enumerable: !0, configurable: !0, writable: !0, value: e }) : c[n] = e;
3
+ var i = (c, n, e) => (u(c, typeof n != "symbol" ? n + "" : n, e), e);
4
+ import { CSS3DRender as b } from "../../../CSS3DRenderPlugin/CSS3DRender.js";
5
+ import * as p from "three";
6
+ import { RectangleScaleHelperAbstract as D } from "../Base/BaseHelper.js";
7
7
  import "three/examples/jsm/renderers/CSS3DRenderer";
8
- import { rectangleScaleDom as j } from "./HTML/rectangleScaleDom.js";
8
+ import { rectangleScaleDom as f } from "./HTML/rectangleScaleDom.js";
9
9
  import "./OutlineHelper.js";
10
- class v extends m {
11
- constructor(e, t, s, l) {
10
+ class g extends D {
11
+ constructor(e, t, s, o) {
12
12
  super(e);
13
13
  i(this, "points", []);
14
14
  i(this, "cornerPositions", []);
15
15
  i(this, "css3DInstance");
16
16
  i(this, "plane");
17
- i(this, "css3DRenderer", new f());
17
+ i(this, "css3DRenderer", new b());
18
18
  i(this, "camera");
19
19
  i(this, "scene");
20
20
  i(this, "container");
21
21
  i(this, "enabled", !1);
22
- this.camera = s, this.scene = l, this.container = t, this.initRectangleScaleHelper();
22
+ this.camera = s, this.scene = o, this.container = t, this.initRectangleScaleHelper();
23
23
  }
24
24
  get helperObject() {
25
25
  var e;
@@ -52,19 +52,19 @@ class v extends m {
52
52
  });
53
53
  }
54
54
  applyHelperQuaternion(e, t) {
55
- var l;
56
- const s = (l = this.css3DInstance) == null ? void 0 : l.css3DObject;
55
+ var o;
56
+ const s = (o = this.css3DInstance) == null ? void 0 : o.css3DObject;
57
57
  if (s) {
58
- const a = new c.Vector3().subVectors(s.position, t).applyQuaternion(e).add(t);
58
+ const a = new p.Vector3().subVectors(s.position, t).applyQuaternion(e).add(t);
59
59
  s.position.copy(a), s.applyQuaternion(e);
60
60
  }
61
61
  if (this.plane) {
62
- const a = new c.Vector3().subVectors(this.plane.position, t).applyQuaternion(e).add(t);
62
+ const a = new p.Vector3().subVectors(this.plane.position, t).applyQuaternion(e).add(t);
63
63
  this.plane.position.copy(a), this.plane.applyQuaternion(e);
64
64
  }
65
65
  this.cornerPositions.forEach((a) => {
66
- const p = new c.Vector3().subVectors(a, t).applyQuaternion(e).add(t);
67
- a.copy(p);
66
+ const l = new p.Vector3().subVectors(a, t).applyQuaternion(e).add(t);
67
+ a.copy(l);
68
68
  });
69
69
  }
70
70
  enable() {
@@ -87,7 +87,7 @@ class v extends m {
87
87
  this.disable(), this.css3DRenderer.dispose();
88
88
  }
89
89
  initRectangleScaleHelper() {
90
- var r;
90
+ var l;
91
91
  const e = this.getCornerPositions();
92
92
  if (!e)
93
93
  return;
@@ -96,19 +96,12 @@ class v extends m {
96
96
  if (!t)
97
97
  return;
98
98
  this.css3DInstance = t, t.appendToElement(this.container);
99
- const s = t.css3DObject.container, { container: l, squares: a } = j();
100
- this.points = a.map((h, b) => ({
101
- direction: h.direction,
102
- point: h.element,
103
- position: this.calculatePointPosition(e)[b]
104
- })), s.insertBefore(l, (r = s.children[0]) != null ? r : null);
105
- const p = new c.PlaneGeometry(t.css3DObject.width, t.css3DObject.height), d = new c.MeshBasicMaterial({
106
- color: 0,
107
- opacity: 0.15,
108
- transparent: !0,
109
- side: c.DoubleSide
110
- }), u = new c.Mesh(p, d);
111
- this.scene.add(u), this.updatePosition();
99
+ const s = t.css3DObject.container, { container: o, squares: a } = f();
100
+ this.points = a.map((r, h) => ({
101
+ direction: r.direction,
102
+ point: r.element,
103
+ position: this.calculatePointPosition(e)[h]
104
+ })), s.insertBefore(o, (l = s.children[0]) != null ? l : null), this.updatePosition();
112
105
  }
113
106
  getCornerPositions() {
114
107
  const { originObject3D: e } = this;
@@ -130,5 +123,5 @@ class v extends m {
130
123
  }
131
124
  }
132
125
  export {
133
- v as RectangleScaleHelper
126
+ g as RectangleScaleHelper
134
127
  };
@@ -0,0 +1,19 @@
1
+ export declare const audioList: IAudio[];
2
+ export declare function getAudio(src?: string): IAudio;
3
+ export declare function getAudioDuration(audio?: string | IAudio): Promise<number>;
4
+ export declare function waitForBlankAudioGenerated(checkInterval?: number, timeout?: number): Promise<void>;
5
+ /**
6
+ * @description: 生成空音频
7
+ */
8
+ export declare function generateBlankAudio(length: number): void;
9
+ export declare class IAudio extends Audio {
10
+ preload: "auto";
11
+ get isBlankAudio(): boolean;
12
+ get src(): string;
13
+ set src(paramsSrc: string);
14
+ realSrc: string;
15
+ inited: boolean;
16
+ removeDocumentEventListener: () => void;
17
+ constructor(src?: string);
18
+ clear(): void;
19
+ }
@@ -0,0 +1,77 @@
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) => {
6
+ try {
7
+ o(A.next(n));
8
+ } catch (q) {
9
+ c(q);
10
+ }
11
+ }, h = (n) => {
12
+ try {
13
+ o(A.throw(n));
14
+ } catch (q) {
15
+ c(q);
16
+ }
17
+ }, o = (n) => n.done ? t(n.value) : Promise.resolve(n.value).then(u, h);
18
+ o((A = A.apply(e, V)).next());
19
+ });
20
+ const i = "data:audio/mpeg;base64,//uQxAAAAAAAAAAAAAAAAAAAAAAASW5mbwAAAA8AAAADAAAGhgBVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVWqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqr///////////////////////////////////////////8AAAA5TEFNRTMuOThyAc0AAAAAAAAAABSAJAiqQgAAgAAABobxtI73AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAA//uQxAACFEII9ACZ/sJZwWEoEb8w/////N//////JcxjHjf+7/v/H2PzCCFAiDtGeyBCIx7bJJ1mmEEMy6g8mm2c8nrGABB4h2Mkmn//4z/73u773R5qHHu/j/w7Kxkzh5lWRWdsifCkNAnY9Zc1HvDAhjhSHdFkHFzLmabt/AQxSg2wwzLhHIJOBnAWwVY4zrhIYhhc2kvhYDfQ4hDi2Gmh5KyFn8EcGIrHAngNgIwVIEMf5bzbAiTRoAD///8z/KVhkkWEle6IX+d/z4fvH3BShK1e5kmjkCMoxVmXhd4ROlTKo3iipasvTilY21q19ta30/v/0/idPX1v8PNxJL6ramnOVsdvMv2akO0iSYIzdJFirtzWXCZicS9vHqvSKyqm5XJBdqBwPxyfJdykhWTZ0G0ZyTZGpLKxsNwwoRhsx3tZfhwmeOBVISm3impAC/IT/8hP/EKEM1KMdVdVKM2rHV4x7HVXZvbVVKN/qq8CiV9VL9jjH/6l6qf7MBCjZmOqsAibjcP+qqqv0oxqpa/NVW286hPo1nz2L/h8+jXt//uSxCmDU2IK/ECN98KKtE5IYzNoCfbw+u9i5r8PoadUMFPKqWL4LK3T/LCraMSHGkW4bpLXR/E6LlHOVQxmslKVJ8IULktMN06N0FKCpHCoYsjC4F+Z0NVqdNFoGSTjSiyjzLdnZ2fNqTi2eHKONONKLMPMKLONKLMPQRJGlFxZRoKcJFAYEeIFiRQkUWUeYfef//Ko04soswso40UJAgMw8wosososy0EalnZyjQUGBRQGIFggOWUacWUeYmuadrZziQKKEgQsQLAhQkUJAgMQDghltLO1onp0cpkNInSFMqlYeSEJ5AHsqFdOwy1DA2sRmRJKxdKRfLhfLw5BzUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVUxBTUUzLjk4LjJVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVf/7ksRRA8AAAaQAAAAgAAA0gAAABFVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVVU=", 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;
24
+ }
25
+ function K(e) {
26
+ return a(this, null, function* () {
27
+ const V = (() => e instanceof d ? e : L(e))(), A = yield new Promise((t) => {
28
+ V.duration ? V.isBlankAudio ? t(0) : t(V.duration) : (V.addEventListener("loadedmetadata", () => {
29
+ V.isBlankAudio ? t(0) : t(V.duration);
30
+ }), V.addEventListener("canplaythrough", () => {
31
+ V.isBlankAudio ? t(0) : t(V.duration);
32
+ }));
33
+ });
34
+ return typeof e == "string" && V.clear(), A;
35
+ });
36
+ }
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());
45
+ }
46
+ class d extends Audio {
47
+ constructor(A) {
48
+ super(A);
49
+ r(this, "preload", "auto");
50
+ r(this, "realSrc", "");
51
+ r(this, "inited", !1);
52
+ r(this, "removeDocumentEventListener");
53
+ this.realSrc = A != null ? A : "", super.addEventListener("ended", () => {
54
+ this.src = "";
55
+ });
56
+ const t = () => f(this);
57
+ document.addEventListener("mousedown", t), document.addEventListener("click", t), document.addEventListener("touchstart", t), this.removeDocumentEventListener = () => {
58
+ document.removeEventListener("mousedown", t), document.removeEventListener("click", t), document.removeEventListener("touchstart", t);
59
+ };
60
+ }
61
+ get isBlankAudio() {
62
+ return this.realSrc === i || !this.realSrc;
63
+ }
64
+ get src() {
65
+ return super.src;
66
+ }
67
+ set src(A) {
68
+ super.src = A, this.realSrc = A;
69
+ }
70
+ clear() {
71
+ this.src = i, console.log(this.realSrc === i);
72
+ }
73
+ }
74
+ export {
75
+ g as generateBlankAudio,
76
+ K as getAudioDuration
77
+ };
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.2",
10
+ "version": "2.3.9-alpha.4",
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*",