@realsee/dnalogel 3.66.5 → 3.67.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 (489) hide show
  1. package/CHANGELOG.md +3 -0
  2. package/dist/PanoTagPlugin/Components/Common/AudioPlayer.svelte.d.ts +1 -0
  3. package/dist/PanoTagPlugin/Components/Tag/AudioTag/AudioPoint.svelte.d.ts +1 -0
  4. package/dist/PanoTagPlugin/utils/audio/AudioDiagnostics.d.ts +42 -0
  5. package/dist/PanoTagPlugin/utils/audio/SharedAudio.d.ts +6 -0
  6. package/dist/index.cjs.js +81 -81
  7. package/dist/index.js +15997 -15074
  8. package/dist/index.umd.js +76 -76
  9. package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
  10. package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
  11. package/docs/classes/CSS3DRender.html +2 -2
  12. package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
  13. package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
  14. package/docs/classes/ModelMakerPluginInstance.html +2 -2
  15. package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +2 -2
  16. package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +2 -2
  17. package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +2 -2
  18. package/docs/classes/ModelRoomLabelController.html +2 -2
  19. package/docs/classes/MoveController.html +2 -2
  20. package/docs/classes/Object3DHelperController.html +2 -2
  21. package/docs/classes/PaintBrush.html +2 -2
  22. package/docs/classes/PanoMeasurePluginLine.html +2 -2
  23. package/docs/classes/PanoMeasurePluginModel.html +2 -2
  24. package/docs/classes/PanoMeasurePluginPoint.html +2 -2
  25. package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
  26. package/docs/classes/PanoTagPluginController.html +2 -2
  27. package/docs/classes/Sculpt.html +2 -2
  28. package/docs/classes/Util.BetterTween.html +2 -2
  29. package/docs/classes/Util.FiveDomEvents.html +2 -2
  30. package/docs/classes/Util.FivePuppet.html +2 -2
  31. package/docs/classes/Util.Interval.html +2 -2
  32. package/docs/classes/Util.LegacyPointHelper.html +2 -2
  33. package/docs/classes/Util.LightTag.html +2 -2
  34. package/docs/classes/Util.LineSegments.html +2 -2
  35. package/docs/classes/Util.Magnifier.html +2 -2
  36. package/docs/classes/Util.Object3D.html +2 -2
  37. package/docs/classes/Util.PointDomHelper.html +2 -2
  38. package/docs/classes/Util.PointHelper.html +2 -2
  39. package/docs/classes/Util.PointSelector.html +2 -2
  40. package/docs/classes/Util.PointSelectorHelper.html +2 -2
  41. package/docs/classes/Util.Rectangle.html +2 -2
  42. package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
  43. package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
  44. package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
  45. package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
  46. package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
  47. package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
  48. package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
  49. package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
  50. package/docs/classes/Util.sculpt.LineMesh.html +2 -2
  51. package/docs/classes/Util.sculpt.PointMesh.html +2 -2
  52. package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
  53. package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
  54. package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
  55. package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
  56. package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
  57. package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
  58. package/docs/classes/WalkController.html +2 -2
  59. package/docs/enums/CameraMovementEffect.html +2 -2
  60. package/docs/enums/ContentType.html +2 -2
  61. package/docs/enums/DIRECTION.html +2 -2
  62. package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
  63. package/docs/enums/DimensionType.html +2 -2
  64. package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
  65. package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
  66. package/docs/enums/PaintBrushTypeEnum.html +2 -2
  67. package/docs/enums/PointType.html +2 -2
  68. package/docs/enums/Rotation.html +2 -2
  69. package/docs/functions/AreaMakerPlugin.html +1 -1
  70. package/docs/functions/CSS3DRenderPlugin.html +1 -1
  71. package/docs/functions/CameraMovementPlugin.html +2 -2
  72. package/docs/functions/CruisePlugin.html +1 -1
  73. package/docs/functions/CurrentPanoImagePlugin.html +1 -1
  74. package/docs/functions/GuideLinePlugin.html +1 -1
  75. package/docs/functions/ItemLabelPlugin.html +1 -1
  76. package/docs/functions/MapviewFloorplanPlugin.html +1 -1
  77. package/docs/functions/MeasurePlugin.html +1 -1
  78. package/docs/functions/ModelChassisCompassPlugin.html +2 -2
  79. package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
  80. package/docs/functions/ModelFloorplanPlugin.html +1 -1
  81. package/docs/functions/ModelItemLabelPlugin.html +1 -1
  82. package/docs/functions/ModelMakerPlugin.html +1 -1
  83. package/docs/functions/ModelRoomLabelPlugin.html +1 -1
  84. package/docs/functions/ModelTVVideoPlugin.html +1 -1
  85. package/docs/functions/ModelViewPlugin.html +2 -2
  86. package/docs/functions/MovePlugin.html +1 -1
  87. package/docs/functions/Object3DHelperPlugin.html +1 -1
  88. package/docs/functions/PanoCompassPlugin.html +1 -1
  89. package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
  90. package/docs/functions/PanoDoorLabelPlugin.html +1 -1
  91. package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
  92. package/docs/functions/PanoMeasurePlugin.html +1 -1
  93. package/docs/functions/PanoRulerPlugin.html +2 -2
  94. package/docs/functions/PanoRulerProPlugin.html +2 -2
  95. package/docs/functions/PanoSpatialTagPlugin.html +2 -2
  96. package/docs/functions/PanoTagPlugin.html +1 -1
  97. package/docs/functions/PanoVideoPlugin.html +2 -2
  98. package/docs/functions/PipelinePlugin.html +1 -1
  99. package/docs/functions/SculptPlugin.html +2 -2
  100. package/docs/functions/TopviewFloorplanPlugin.html +1 -1
  101. package/docs/functions/Util.absoluteUrl.html +2 -2
  102. package/docs/functions/Util.awaitNextFrame.html +1 -1
  103. package/docs/functions/Util.blink.html +2 -2
  104. package/docs/functions/Util.bounding.html +1 -1
  105. package/docs/functions/Util.boundingBox.html +1 -1
  106. package/docs/functions/Util.boundingSphere.html +1 -1
  107. package/docs/functions/Util.boxVertex.html +2 -2
  108. package/docs/functions/Util.boxVertexes.html +1 -1
  109. package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
  110. package/docs/functions/Util.convexHull.html +2 -2
  111. package/docs/functions/Util.equal.html +2 -2
  112. package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
  113. package/docs/functions/Util.getCoordsFromClient.html +1 -1
  114. package/docs/functions/Util.getCoordsFromElement.html +1 -1
  115. package/docs/functions/Util.getFrameTime.html +2 -2
  116. package/docs/functions/Util.getIntersectFromRelativePosition.html +1 -1
  117. package/docs/functions/Util.getRaycasterFromFivePointer.html +1 -1
  118. package/docs/functions/Util.initialCSS3DRender.html +1 -1
  119. package/docs/functions/Util.inside.html +1 -1
  120. package/docs/functions/Util.isAbsoluteURL.html +1 -1
  121. package/docs/functions/Util.isModelLike.html +1 -1
  122. package/docs/functions/Util.isNil.html +2 -2
  123. package/docs/functions/Util.isPanoramaLike.html +1 -1
  124. package/docs/functions/Util.lookObject.html +2 -2
  125. package/docs/functions/Util.lookPoint.html +2 -2
  126. package/docs/functions/Util.nextFrame.html +1 -1
  127. package/docs/functions/Util.notNil.html +2 -2
  128. package/docs/functions/Util.reblink.html +2 -2
  129. package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
  130. package/docs/functions/Util.sculpt.createBox.html +1 -1
  131. package/docs/functions/Util.sculpt.createCircle.html +1 -1
  132. package/docs/functions/Util.sculpt.createCylinder.html +1 -1
  133. package/docs/functions/Util.sculpt.createLine.html +2 -2
  134. package/docs/functions/Util.sculpt.createPoint.html +1 -1
  135. package/docs/functions/Util.sculpt.createPolygon.html +1 -1
  136. package/docs/functions/Util.sculpt.createPrism.html +1 -1
  137. package/docs/functions/Util.sculpt.createRectangle.html +2 -2
  138. package/docs/functions/Util.tag.html +1 -1
  139. package/docs/functions/Util.tweenProgress.html +1 -1
  140. package/docs/functions/Util.uuid.html +2 -2
  141. package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
  142. package/docs/functions/Util.worldBounding.html +1 -1
  143. package/docs/functions/Util.worldBoundingBox.html +1 -1
  144. package/docs/functions/Util.worldBoundingSphere.html +1 -1
  145. package/docs/functions/createPolyline.html +2 -2
  146. package/docs/functions/pluginFlag.html +1 -1
  147. package/docs/hierarchy.html +1 -1
  148. package/docs/index.html +2 -2
  149. package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
  150. package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
  151. package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
  152. package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
  153. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
  154. package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
  155. package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
  156. package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
  157. package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
  158. package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
  159. package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
  160. package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
  161. package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
  162. package/docs/interfaces/ContentTypeMapInterface.html +2 -2
  163. package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
  164. package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
  165. package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
  166. package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
  167. package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
  168. package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
  169. package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
  170. package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
  171. package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
  172. package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
  173. package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
  174. package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
  175. package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
  176. package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
  177. package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
  178. package/docs/interfaces/FloorplanBounding.html +2 -2
  179. package/docs/interfaces/FloorplanData.html +2 -2
  180. package/docs/interfaces/FloorplanEntrance.html +2 -2
  181. package/docs/interfaces/FloorplanExtraObject.html +2 -2
  182. package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
  183. package/docs/interfaces/FloorplanFloorData.html +2 -2
  184. package/docs/interfaces/FloorplanImagePosition.html +2 -2
  185. package/docs/interfaces/FloorplanObserver.html +2 -2
  186. package/docs/interfaces/FloorplanOutlineItem.html +2 -2
  187. package/docs/interfaces/FloorplanPosition.html +2 -2
  188. package/docs/interfaces/FloorplanRoomItem.html +2 -2
  189. package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
  190. package/docs/interfaces/FloorplanServerBounding.html +2 -2
  191. package/docs/interfaces/FloorplanServerComputedData.html +2 -2
  192. package/docs/interfaces/FloorplanServerData.html +2 -2
  193. package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
  194. package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
  195. package/docs/interfaces/FloorplanServerEntrance.html +2 -2
  196. package/docs/interfaces/FloorplanServerFloorData.html +2 -2
  197. package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
  198. package/docs/interfaces/FloorplanServerObserver.html +2 -2
  199. package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
  200. package/docs/interfaces/FloorplanServerPosition.html +2 -2
  201. package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
  202. package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
  203. package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
  204. package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
  205. package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
  206. package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +2 -2
  207. package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
  208. package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
  209. package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
  210. package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
  211. package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
  212. package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
  213. package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
  214. package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
  215. package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
  216. package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
  217. package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
  218. package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
  219. package/docs/interfaces/HelperOffset.html +2 -2
  220. package/docs/interfaces/ImagePlaneGroup.html +2 -2
  221. package/docs/interfaces/ItemLabelPluginData.html +2 -2
  222. package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
  223. package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
  224. package/docs/interfaces/MinMax.html +2 -2
  225. package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
  226. package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
  227. package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
  228. package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
  229. package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
  230. package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
  231. package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
  232. package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
  233. package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +2 -2
  234. package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
  235. package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +2 -2
  236. package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
  237. package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
  238. package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
  239. package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
  240. package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
  241. package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
  242. package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +2 -2
  243. package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
  244. package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
  245. package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
  246. package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
  247. package/docs/interfaces/ModelViewPluginExportType.html +2 -2
  248. package/docs/interfaces/Object3DHelperState.html +2 -2
  249. package/docs/interfaces/ObjectHelperControllers.html +2 -2
  250. package/docs/interfaces/PaintBrushAction.html +2 -2
  251. package/docs/interfaces/PaintBrushConfigs.html +2 -2
  252. package/docs/interfaces/PaintBrushState.html +2 -2
  253. package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
  254. package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
  255. package/docs/interfaces/PanoMeasureParameterType.html +2 -2
  256. package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
  257. package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
  258. package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
  259. package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
  260. package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
  261. package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
  262. package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
  263. package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
  264. package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
  265. package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
  266. package/docs/interfaces/PanoRulerProPluginState.html +2 -2
  267. package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
  268. package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
  269. package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
  270. package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
  271. package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
  272. package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
  273. package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
  274. package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
  275. package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
  276. package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
  277. package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
  278. package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
  279. package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
  280. package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
  281. package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
  282. package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
  283. package/docs/interfaces/PluginEventMap.html +2 -2
  284. package/docs/interfaces/Point.html +2 -2
  285. package/docs/interfaces/Room.html +2 -2
  286. package/docs/interfaces/RoomInfo.html +2 -2
  287. package/docs/interfaces/RoomLabel.html +2 -2
  288. package/docs/interfaces/RoomRules.html +1 -1
  289. package/docs/interfaces/Rooms.html +1 -1
  290. package/docs/interfaces/Scissor.html +2 -2
  291. package/docs/interfaces/State.html +2 -2
  292. package/docs/interfaces/TagCacheInterface.html +2 -2
  293. package/docs/interfaces/TagConfig.html +2 -2
  294. package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
  295. package/docs/interfaces/TagIconUrl.html +2 -2
  296. package/docs/interfaces/TagObjectGroup.html +2 -2
  297. package/docs/interfaces/TagState.html +2 -2
  298. package/docs/interfaces/TagStyle.html +2 -2
  299. package/docs/interfaces/Tags.html +2 -2
  300. package/docs/interfaces/TemporaryState.html +2 -2
  301. package/docs/interfaces/Util.AnimeInstance.html +2 -2
  302. package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
  303. package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
  304. package/docs/interfaces/Util.FiveDomEvent.html +2 -2
  305. package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
  306. package/docs/interfaces/Util.LegacyMouseGroupParameter.html +2 -2
  307. package/docs/interfaces/Util.MagnifierParameter.html +2 -2
  308. package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
  309. package/docs/interfaces/Util.PointIntersection.html +2 -2
  310. package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
  311. package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
  312. package/docs/modules/AreaMakerPluginType.html +2 -2
  313. package/docs/modules/CruisePluginTypes.html +2 -2
  314. package/docs/modules/CurrentPanoImagePluginType.html +2 -2
  315. package/docs/modules/GuideLineItem.html +2 -2
  316. package/docs/modules/GuideLineModeItem.html +2 -2
  317. package/docs/modules/GuideLinePluginType.html +2 -2
  318. package/docs/modules/ModelMakerPluginType.html +2 -2
  319. package/docs/modules/PanoVideoPluginType.html +2 -2
  320. package/docs/modules/SculptData.html +2 -2
  321. package/docs/modules/SculptType.html +2 -2
  322. package/docs/modules/Util.html +2 -2
  323. package/docs/modules/Util.sculpt.html +2 -2
  324. package/docs/modules.html +2 -2
  325. package/docs/types/AddObject3DHelperConfig.html +2 -2
  326. package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
  327. package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
  328. package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
  329. package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
  330. package/docs/types/ArrayPosition.html +1 -1
  331. package/docs/types/AudioAppearance.html +1 -1
  332. package/docs/types/CSS3DRenderExportType.html +1 -1
  333. package/docs/types/CSS3DRenderPluginExportType.html +1 -1
  334. package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
  335. package/docs/types/ClassFunctionParameters.html +1 -1
  336. package/docs/types/Color.html +1 -1
  337. package/docs/types/ContentTypeConfigKey.html +1 -1
  338. package/docs/types/ContentTypeConfigKeySplit.html +1 -1
  339. package/docs/types/ContentTypeMap.html +1 -1
  340. package/docs/types/Create3DDomContainerReturnType.html +1 -1
  341. package/docs/types/Create3DElementReturnType.html +1 -1
  342. package/docs/types/CruisePluginExportType.html +1 -1
  343. package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
  344. package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
  345. package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
  346. package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
  347. package/docs/types/DeprecatedTagProperty.html +2 -2
  348. package/docs/types/Direction-1.html +1 -1
  349. package/docs/types/Direction4.html +1 -1
  350. package/docs/types/ElementRenderer.html +2 -2
  351. package/docs/types/FloorplanRuleLabels.html +2 -2
  352. package/docs/types/FloorplanServerRuleLabels.html +1 -1
  353. package/docs/types/GuideLinePluginExportType.html +1 -1
  354. package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
  355. package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
  356. package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
  357. package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
  358. package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
  359. package/docs/types/GuideLinePluginType.PathItem.html +2 -2
  360. package/docs/types/GuideLinePluginType.PluginData.html +2 -2
  361. package/docs/types/GuideLinePluginType.RouteConfig.html +2 -2
  362. package/docs/types/HelperEventMap.html +1 -1
  363. package/docs/types/InternalHelperEventMap.html +1 -1
  364. package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
  365. package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
  366. package/docs/types/MeasurePluginConfig.html +1 -1
  367. package/docs/types/MediaData.html +2 -2
  368. package/docs/types/MediaStore.html +1 -1
  369. package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
  370. package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
  371. package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
  372. package/docs/types/ModelId.html +1 -1
  373. package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
  374. package/docs/types/ModelMakerPluginType.ItemType.html +2 -2
  375. package/docs/types/ModelMakerPluginType.MarkerItem.html +1 -1
  376. package/docs/types/ModelMakerPluginType.ServerItem.html +2 -2
  377. package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
  378. package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
  379. package/docs/types/MoveArgs.html +2 -2
  380. package/docs/types/MoveOpts.html +2 -2
  381. package/docs/types/Object3DHelperEventMap.html +1 -1
  382. package/docs/types/ObjectFit.html +1 -1
  383. package/docs/types/PaintBrushEventMap.html +1 -1
  384. package/docs/types/PanoCompassPluginData.html +1 -1
  385. package/docs/types/PanoCompassPluginExportType.html +1 -1
  386. package/docs/types/PanoCompassPluginParameterType.html +1 -1
  387. package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
  388. package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
  389. package/docs/types/PanoIndex.html +1 -1
  390. package/docs/types/PanoMeasurePluginEvent.html +1 -1
  391. package/docs/types/PanoMeasureReturnType.html +1 -1
  392. package/docs/types/PanoSpatialTagPluginId.html +1 -1
  393. package/docs/types/PanoTagPluginExportInterface.html +1 -1
  394. package/docs/types/PanoTagPluginParamsInterface.html +1 -1
  395. package/docs/types/PanoVideoPluginParameterType.html +1 -1
  396. package/docs/types/PanoVideoPluginReturnType.html +1 -1
  397. package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
  398. package/docs/types/PipelinePluginParameterType.html +1 -1
  399. package/docs/types/PipelinePluginReturnType.html +1 -1
  400. package/docs/types/PlaneTag.html +2 -2
  401. package/docs/types/Point2DTag.html +2 -2
  402. package/docs/types/Point3DTag.html +2 -2
  403. package/docs/types/PointTagInstance.html +1 -1
  404. package/docs/types/Position.html +1 -1
  405. package/docs/types/PositionFrom.html +1 -1
  406. package/docs/types/RotateArgs.html +2 -2
  407. package/docs/types/RotateOpts.html +2 -2
  408. package/docs/types/RuleLabelsKey.html +1 -1
  409. package/docs/types/RuleLabelsValue.html +1 -1
  410. package/docs/types/ScaleCallback.html +1 -1
  411. package/docs/types/ScalePosition.html +2 -2
  412. package/docs/types/SculptData.BoxData.html +1 -1
  413. package/docs/types/SculptData.CircleData.html +1 -1
  414. package/docs/types/SculptData.CylinderData.html +1 -1
  415. package/docs/types/SculptData.PointData.html +1 -1
  416. package/docs/types/SculptData.PolygonData.html +1 -1
  417. package/docs/types/SculptData.PolylineData.html +1 -1
  418. package/docs/types/SculptData.PrismData.html +1 -1
  419. package/docs/types/SculptData.RectangleData.html +1 -1
  420. package/docs/types/SculptType.Theme.html +2 -2
  421. package/docs/types/StickType.html +1 -1
  422. package/docs/types/Tag.html +2 -2
  423. package/docs/types/Tag2D.html +2 -2
  424. package/docs/types/Tag3D.html +2 -2
  425. package/docs/types/TagClickParams.html +1 -1
  426. package/docs/types/TagConfigByKey.html +1 -1
  427. package/docs/types/TagContentType.html +1 -1
  428. package/docs/types/TagContentTypeMapping.html +1 -1
  429. package/docs/types/TagDimensionType.html +1 -1
  430. package/docs/types/TagElement.html +2 -2
  431. package/docs/types/TagEvents.html +1 -1
  432. package/docs/types/TagGLTFObject.html +1 -1
  433. package/docs/types/TagHooks.html +1 -1
  434. package/docs/types/TagId.html +1 -1
  435. package/docs/types/TagInstance.html +1 -1
  436. package/docs/types/TagPlacement.html +2 -2
  437. package/docs/types/TagPointType.html +2 -2
  438. package/docs/types/TagRendererMap.html +1 -1
  439. package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
  440. package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
  441. package/docs/types/Util.ActionIfNoIntersection.html +1 -1
  442. package/docs/types/Util.AdherePoint.html +2 -2
  443. package/docs/types/Util.PointSelectorConfig.html +1 -1
  444. package/docs/types/WorkCode.html +1 -1
  445. package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
  446. package/docs/variables/PLUGIN.html +1 -1
  447. package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
  448. package/docs/variables/ROOM_TYPE_MAP.html +2 -2
  449. package/docs/variables/Util.animeMap.html +1 -1
  450. package/docs/variables/defaultGlobalConfig.html +1 -1
  451. package/docs/variables/itemLabelPluginServerParams.html +1 -1
  452. package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
  453. package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
  454. package/libs/CruisePlugin/Move.js +5 -2
  455. package/libs/CruisePlugin/Work.js +5 -2
  456. package/libs/CruisePlugin/index.js +9 -6
  457. package/libs/GuideLinePlugin/Controller.js +7 -4
  458. package/libs/GuideLinePlugin/GuideLineItem.js +5 -2
  459. package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -2
  460. package/libs/GuideLinePlugin/index.js +9 -6
  461. package/libs/PanoTagPlugin/Components/Common/Audio.js +3 -2
  462. package/libs/PanoTagPlugin/Components/Common/AudioPlayer.js +93 -0
  463. package/libs/PanoTagPlugin/Components/Common/AudioPlayer.svelte.d.ts +1 -0
  464. package/libs/PanoTagPlugin/Components/Common/TagPoint.js +364 -148
  465. package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +90 -52
  466. package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopup.js +551 -442
  467. package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +256 -206
  468. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +3 -2
  469. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPoint.js +191 -0
  470. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPoint.svelte.d.ts +1 -0
  471. package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +3 -2
  472. package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +13 -12
  473. package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
  474. package/libs/PanoTagPlugin/Components/TagContainer.js +29 -26
  475. package/libs/PanoTagPlugin/Components/TagItem.js +372 -294
  476. package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
  477. package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
  478. package/libs/PanoTagPlugin/controller/index.js +8 -5
  479. package/libs/PanoTagPlugin/index.js +14 -11
  480. package/libs/PanoTagPlugin/tag.config.js +3 -1
  481. package/libs/PanoTagPlugin/utils/audio/AudioDiagnostics.d.ts +42 -0
  482. package/libs/PanoTagPlugin/utils/audio/AudioDiagnostics.js +165 -0
  483. package/libs/PanoTagPlugin/utils/audio/SharedAudio.d.ts +6 -0
  484. package/libs/PanoTagPlugin/utils/audio/SharedAudio.js +113 -63
  485. package/libs/base/BasePlugin.js +1 -1
  486. package/libs/index.js +148 -145
  487. package/libs/shared-utils/logger.js +1 -1
  488. package/libs/vendor/svelte/internal/index.js +1 -0
  489. package/package.json +1 -1
@@ -169,6 +169,7 @@ import "../../Components/Tag/AudioTag/AudioTag.js";
169
169
  import "../../Components/Common/Audio.js";
170
170
  import "../../utils/audio/SharedAudio.js";
171
171
  import "../../../shared-utils/audio.js";
172
+ import "../../utils/audio/AudioDiagnostics.js";
172
173
  import "../../Components/Common/Icon/audioIcon.js";
173
174
  import "../../Components/Tag/AudioTag/AudioPlaneTag.js";
174
175
  import "../../Components/Tag/MediaPlane.js";
@@ -198,7 +199,7 @@ import "../../../shared-utils/five/getFloorIndex.js";
198
199
  import "../../../shared-utils/safeObj.js";
199
200
  import "../../utils/Cache.js";
200
201
  import "../../../shared-utils/promise/withResolvers.js";
201
- class Ko extends R {
202
+ class Qo extends R {
202
203
  constructor(t, m) {
203
204
  super(t, m);
204
205
  v(this, "loading", !1);
@@ -292,5 +293,5 @@ class Ko extends R {
292
293
  }
293
294
  }
294
295
  export {
295
- Ko as ModelTag
296
+ Qo as ModelTag
296
297
  };
@@ -165,6 +165,7 @@ import "../../Components/Tag/AudioTag/AudioTag.js";
165
165
  import "../../Components/Common/Audio.js";
166
166
  import "../../utils/audio/SharedAudio.js";
167
167
  import "../../../shared-utils/audio.js";
168
+ import "../../utils/audio/AudioDiagnostics.js";
168
169
  import "../../Components/Common/Icon/audioIcon.js";
169
170
  import "../../Components/Tag/AudioTag/AudioPlaneTag.js";
170
171
  import "../../Components/Tag/MediaPlane.js";
@@ -198,7 +199,7 @@ import "../../../shared-utils/safeObj.js";
198
199
  import "../../utils/Cache.js";
199
200
  import "../../../shared-utils/promise/withResolvers.js";
200
201
  const B = /* @__PURE__ */ new Map(), O = /* @__PURE__ */ new Map();
201
- class Ki extends A {
202
+ class Qi extends A {
202
203
  constructor(e, t) {
203
204
  super(e, t), this.state.unfolded = !0, this.loadModel();
204
205
  }
@@ -320,5 +321,5 @@ class Ki extends A {
320
321
  }
321
322
  }
322
323
  export {
323
- Ki as PlaneTag
324
+ Qi as PlaneTag
324
325
  };
@@ -206,6 +206,7 @@ import "../Components/Tag/AudioTag/index.js";
206
206
  import "../Components/Tag/AudioTag/AudioTag.js";
207
207
  import "../Components/Common/Audio.js";
208
208
  import "../utils/audio/SharedAudio.js";
209
+ import "../utils/audio/AudioDiagnostics.js";
209
210
  import "../Components/Common/Icon/audioIcon.js";
210
211
  import "../Components/Tag/AudioTag/AudioPlaneTag.js";
211
212
  import "../Components/Tag/MediaPlane.js";
@@ -218,6 +219,7 @@ import "../Components/Tag/CustomTag.js";
218
219
  import "../../vendor/classnames/index.js";
219
220
  import "../Components/TagItem.js";
220
221
  import "../Components/Common/TagPoint.js";
222
+ import "../Components/Tag/AudioTag/AudioPoint.js";
221
223
  import "../Components/Common/TagPopover/index.js";
222
224
  import "../Components/Common/TagPopover/PopoverContent.js";
223
225
  import "../Components/Common/TagPopover/TagPopoverArrow.js";
@@ -226,12 +228,13 @@ import "../Components/Common/TagPopover/TagPopup.js";
226
228
  import "../Components/Common/VideoIcon.js";
227
229
  import "../Components/Common/TagPopover/PanoramaIcon.js";
228
230
  import "../utils/videoHelper.js";
231
+ import "../Components/Common/AudioPlayer.js";
229
232
  import "../Components/Common/TagPopover/TagPopoverToolBar.js";
230
233
  import "../Components/Common/TagPopover/ArrowRightIcon.js";
231
234
  import "../Components/Common/TagPopover/ShareIcon.js";
232
235
  import "../utils/popoverContainer.js";
233
- const S = "Dnalogel-PanoTagPlugin", Bo = (d) => `${S}--${d}`;
234
- class Go extends O {
236
+ const S = "Dnalogel-PanoTagPlugin", Ro = (d) => `${S}--${d}`;
237
+ class No extends O {
235
238
  constructor(e, t) {
236
239
  super(e);
237
240
  /** state */
@@ -676,7 +679,7 @@ class Go extends O {
676
679
  }
677
680
  }
678
681
  export {
679
- Go as PanoTagPluginController,
680
- Go as default,
681
- Bo as pluginFlag
682
+ No as PanoTagPluginController,
683
+ No as default,
684
+ Ro as pluginFlag
682
685
  };
@@ -1,7 +1,7 @@
1
1
  import r from "./controller/index.js";
2
- import { pluginFlag as Wr } from "./controller/index.js";
3
- import { defaultGlobalConfig as Yr } from "./typings/tag/TagConfig.js";
4
- import { ContentType as _r, DimensionType as $r, PointType as op } from "./Archive/deprecated.js";
2
+ import { pluginFlag as Zr } from "./controller/index.js";
3
+ import { defaultGlobalConfig as $r } from "./typings/tag/TagConfig.js";
4
+ import { ContentType as tp, DimensionType as rp, PointType as pp } from "./Archive/deprecated.js";
5
5
  import "three";
6
6
  import "../vendor/object-assign-deep/objectAssignDeep.js";
7
7
  import "../shared-utils/positionToVector3.js";
@@ -177,6 +177,7 @@ import "./Components/Tag/AudioTag/index.js";
177
177
  import "./Components/Tag/AudioTag/AudioTag.js";
178
178
  import "./Components/Common/Audio.js";
179
179
  import "./utils/audio/SharedAudio.js";
180
+ import "./utils/audio/AudioDiagnostics.js";
180
181
  import "./Components/Common/Icon/audioIcon.js";
181
182
  import "./Components/Tag/AudioTag/AudioPlaneTag.js";
182
183
  import "./Components/Tag/MediaPlane.js";
@@ -191,6 +192,7 @@ import "./controller/Tag/PlaneTag.js";
191
192
  import "./Components/TagContainer.js";
192
193
  import "./Components/TagItem.js";
193
194
  import "./Components/Common/TagPoint.js";
195
+ import "./Components/Tag/AudioTag/AudioPoint.js";
194
196
  import "./Components/Common/TagPopover/index.js";
195
197
  import "./Components/Common/TagPopover/PopoverContent.js";
196
198
  import "./Components/Common/TagPopover/TagPopoverArrow.js";
@@ -199,19 +201,20 @@ import "./Components/Common/TagPopover/TagPopup.js";
199
201
  import "./Components/Common/VideoIcon.js";
200
202
  import "./Components/Common/TagPopover/PanoramaIcon.js";
201
203
  import "./utils/videoHelper.js";
204
+ import "./Components/Common/AudioPlayer.js";
202
205
  import "./Components/Common/TagPopover/TagPopoverToolBar.js";
203
206
  import "./Components/Common/TagPopover/ArrowRightIcon.js";
204
207
  import "./Components/Common/TagPopover/ShareIcon.js";
205
208
  import "./utils/popoverContainer.js";
206
209
  import "../shared-utils/animationFrame/BetterTween.js";
207
- const Sr = (o, t) => new r(o, t);
210
+ const Wr = (o, t) => new r(o, t);
208
211
  export {
209
- _r as ContentType,
210
- $r as DimensionType,
211
- Sr as PanoTagPlugin,
212
+ tp as ContentType,
213
+ rp as DimensionType,
214
+ Wr as PanoTagPlugin,
212
215
  r as PanoTagPluginController,
213
- op as PointType,
214
- Sr as default,
215
- Yr as defaultGlobalConfig,
216
- Wr as pluginFlag
216
+ pp as PointType,
217
+ Wr as default,
218
+ $r as defaultGlobalConfig,
219
+ Zr as pluginFlag
217
220
  };
@@ -106,7 +106,9 @@ const e = {
106
106
  },
107
107
  Audio: {
108
108
  popoverConfig: {
109
- enabled: !1
109
+ toolbar: {
110
+ showMore: !1
111
+ }
110
112
  }
111
113
  }
112
114
  }
@@ -0,0 +1,42 @@
1
+ /**
2
+ * 音频诊断工具
3
+ * 用于检测和诊断音频播放问题
4
+ */
5
+ export declare class AudioDiagnostics {
6
+ /**
7
+ * 检查浏览器音频支持
8
+ */
9
+ static checkBrowserSupport(): {
10
+ browser: string;
11
+ version: string;
12
+ supportedFormats: string[];
13
+ warnings: string[];
14
+ };
15
+ /**
16
+ * 测试音频URL的可访问性
17
+ */
18
+ static testAudioUrl(url: string): Promise<{
19
+ accessible: boolean;
20
+ status?: number;
21
+ error?: string;
22
+ contentType?: string;
23
+ contentLength?: number;
24
+ }>;
25
+ /**
26
+ * 尝试创建和测试音频元素
27
+ */
28
+ static testAudioElement(url: string): Promise<{
29
+ success: boolean;
30
+ error?: string;
31
+ canPlay?: string;
32
+ duration?: number;
33
+ networkState?: number;
34
+ readyState?: number;
35
+ }>;
36
+ /**
37
+ * 完整的音频诊断
38
+ */
39
+ static diagnoseAudio(url: string): Promise<void>;
40
+ private static getNetworkStateDescription;
41
+ private static getReadyStateDescription;
42
+ }
@@ -0,0 +1,165 @@
1
+ var d = (u, o, t) => new Promise((e, n) => {
2
+ var r = (s) => {
3
+ try {
4
+ a(t.next(s));
5
+ } catch (i) {
6
+ n(i);
7
+ }
8
+ }, c = (s) => {
9
+ try {
10
+ a(t.throw(s));
11
+ } catch (i) {
12
+ n(i);
13
+ }
14
+ }, a = (s) => s.done ? e(s.value) : Promise.resolve(s.value).then(r, c);
15
+ a((t = t.apply(u, o)).next());
16
+ });
17
+ class E {
18
+ /**
19
+ * 检查浏览器音频支持
20
+ */
21
+ static checkBrowserSupport() {
22
+ var s, i, g, m;
23
+ const o = navigator.userAgent, t = document.createElement("audio");
24
+ let e = "Unknown", n = "Unknown";
25
+ o.includes("Edge/") ? (e = "Microsoft Edge", n = ((s = o.match(/Edge\/(\d+)/)) == null ? void 0 : s[1]) || "Unknown") : o.includes("Chrome/") ? (e = "Chrome", n = ((i = o.match(/Chrome\/(\d+)/)) == null ? void 0 : i[1]) || "Unknown") : o.includes("Firefox/") ? (e = "Firefox", n = ((g = o.match(/Firefox\/(\d+)/)) == null ? void 0 : g[1]) || "Unknown") : o.includes("Safari/") && !o.includes("Chrome") && (e = "Safari", n = ((m = o.match(/Version\/(\d+)/)) == null ? void 0 : m[1]) || "Unknown");
26
+ const r = [
27
+ { name: "MP3", mime: "audio/mpeg" },
28
+ { name: "OGG", mime: "audio/ogg" },
29
+ { name: "WAV", mime: "audio/wav" },
30
+ { name: "M4A", mime: "audio/mp4" },
31
+ { name: "AAC", mime: "audio/aac" },
32
+ { name: "WEBM", mime: "audio/webm" }
33
+ ], c = [], a = [];
34
+ return r.forEach((l) => {
35
+ const p = t.canPlayType(l.mime);
36
+ p === "probably" ? c.push(`${l.name} (完全支持)`) : p === "maybe" ? (c.push(`${l.name} (可能支持)`), a.push(`${l.name} 格式支持不确定,建议使用其他格式`)) : a.push(`${l.name} 格式不被支持`);
37
+ }), {
38
+ browser: `${e} ${n}`,
39
+ version: n,
40
+ supportedFormats: c,
41
+ warnings: a
42
+ };
43
+ }
44
+ /**
45
+ * 测试音频URL的可访问性
46
+ */
47
+ static testAudioUrl(o) {
48
+ return d(this, null, function* () {
49
+ try {
50
+ const t = yield fetch(o, { method: "HEAD" });
51
+ return {
52
+ accessible: t.ok,
53
+ status: t.status,
54
+ contentType: t.headers.get("content-type") || void 0,
55
+ contentLength: parseInt(t.headers.get("content-length") || "0") || void 0
56
+ };
57
+ } catch (t) {
58
+ return {
59
+ accessible: !1,
60
+ error: t instanceof Error ? t.message : String(t)
61
+ };
62
+ }
63
+ });
64
+ }
65
+ /**
66
+ * 尝试创建和测试音频元素
67
+ */
68
+ static testAudioElement(o) {
69
+ return d(this, null, function* () {
70
+ return new Promise((t) => {
71
+ const e = new Audio();
72
+ let n = !1;
73
+ const r = () => {
74
+ n || (n = !0, e.removeEventListener("loadedmetadata", c), e.removeEventListener("error", s), e.removeEventListener("canplay", a));
75
+ }, c = () => {
76
+ r(), t({
77
+ success: !0,
78
+ duration: e.duration,
79
+ networkState: e.networkState,
80
+ readyState: e.readyState
81
+ });
82
+ }, a = () => {
83
+ r(), t({
84
+ success: !0,
85
+ canPlay: "canplay",
86
+ duration: e.duration,
87
+ networkState: e.networkState,
88
+ readyState: e.readyState
89
+ });
90
+ }, s = () => {
91
+ r(), t({
92
+ success: !1,
93
+ error: e.error ? `${e.error.code}: ${e.error.message}` : "Unknown audio error",
94
+ networkState: e.networkState,
95
+ readyState: e.readyState
96
+ });
97
+ };
98
+ e.addEventListener("loadedmetadata", c), e.addEventListener("canplay", a), e.addEventListener("error", s), setTimeout(() => {
99
+ n || (r(), t({
100
+ success: !1,
101
+ error: "音频加载超时",
102
+ networkState: e.networkState,
103
+ readyState: e.readyState
104
+ }));
105
+ }, 1e4), e.src = o, e.load();
106
+ });
107
+ });
108
+ }
109
+ /**
110
+ * 完整的音频诊断
111
+ */
112
+ static diagnoseAudio(o) {
113
+ return d(this, null, function* () {
114
+ var c;
115
+ console.group("🎵 音频诊断报告"), console.group("1. 浏览器支持检查");
116
+ const t = this.checkBrowserSupport();
117
+ console.log("浏览器:", t.browser), console.log("支持的格式:", t.supportedFormats), t.warnings.length > 0 && console.warn("警告:", t.warnings), console.groupEnd(), console.group("2. 音频文件URL检查"), console.log("音频URL:", o);
118
+ try {
119
+ new URL(o, window.location.href), console.log("✅ URL格式正确");
120
+ } catch (a) {
121
+ console.error("❌ URL格式错误"), console.groupEnd(), console.groupEnd();
122
+ return;
123
+ }
124
+ const e = (c = o.split(".").pop()) == null ? void 0 : c.toLowerCase();
125
+ e && (console.log("文件扩展名:", e.toUpperCase()), ["mp3", "ogg", "wav", "m4a", "aac", "webm"].includes(e) ? console.log("✅ 文件格式常见") : console.warn("⚠️ 不常见的文件格式,可能存在兼容性问题")), console.groupEnd(), console.group("3. 网络可访问性测试");
126
+ const n = yield this.testAudioUrl(o);
127
+ n.accessible ? (console.log("✅ 文件可访问"), console.log("HTTP状态:", n.status), n.contentType && console.log("内容类型:", n.contentType), n.contentLength && console.log("文件大小:", (n.contentLength / 1024).toFixed(2), "KB")) : (console.error("❌ 文件无法访问"), n.status && console.error("HTTP状态:", n.status), n.error && console.error("错误:", n.error)), console.groupEnd(), console.group("4. 音频元素测试");
128
+ const r = yield this.testAudioElement(o);
129
+ r.success ? (console.log("✅ 音频元素创建成功"), r.duration && console.log("音频时长:", r.duration.toFixed(2), "秒"), console.log("网络状态:", this.getNetworkStateDescription(r.networkState)), console.log("就绪状态:", this.getReadyStateDescription(r.readyState))) : (console.error("❌ 音频元素创建失败"), console.error("错误:", r.error), console.log("网络状态:", this.getNetworkStateDescription(r.networkState)), console.log("就绪状态:", this.getReadyStateDescription(r.readyState))), console.groupEnd(), console.groupEnd();
130
+ });
131
+ }
132
+ static getNetworkStateDescription(o) {
133
+ switch (o) {
134
+ case 0:
135
+ return "NETWORK_EMPTY - 音频元素尚未初始化";
136
+ case 1:
137
+ return "NETWORK_IDLE - 音频元素处于活动状态但未使用网络";
138
+ case 2:
139
+ return "NETWORK_LOADING - 浏览器正在下载数据";
140
+ case 3:
141
+ return "NETWORK_NO_SOURCE - 未找到合适的音频源";
142
+ default:
143
+ return `未知状态 (${o})`;
144
+ }
145
+ }
146
+ static getReadyStateDescription(o) {
147
+ switch (o) {
148
+ case 0:
149
+ return "HAVE_NOTHING - 没有音频数据";
150
+ case 1:
151
+ return "HAVE_METADATA - 已获取元数据";
152
+ case 2:
153
+ return "HAVE_CURRENT_DATA - 有当前播放位置的数据";
154
+ case 3:
155
+ return "HAVE_FUTURE_DATA - 有足够的数据开始播放";
156
+ case 4:
157
+ return "HAVE_ENOUGH_DATA - 有足够的数据流畅播放";
158
+ default:
159
+ return `未知状态 (${o})`;
160
+ }
161
+ }
162
+ }
163
+ export {
164
+ E as AudioDiagnostics
165
+ };
@@ -1,6 +1,9 @@
1
+ import { AudioDiagnostics } from './AudioDiagnostics';
2
+ export { AudioDiagnostics };
1
3
  export declare class SharedAudio extends Audio {
2
4
  get paused(): boolean;
3
5
  get currentTime(): number;
6
+ get duration(): number;
4
7
  private sharedAudioSrc?;
5
8
  private sharedAudioPaused;
6
9
  private sharedAudioCurrentTime;
@@ -12,6 +15,9 @@ export declare class SharedAudio extends Audio {
12
15
  pause(e?: Event): void;
13
16
  dispose(): void;
14
17
  private clear;
18
+ private handlePlayError;
19
+ private validateAudioSource;
20
+ private checkBrowserSupport;
15
21
  private endedHandler;
16
22
  private addEventListeners;
17
23
  }
@@ -1,33 +1,34 @@
1
- var y = Object.defineProperty;
2
- var L = (u, r, e) => r in u ? y(u, r, { enumerable: !0, configurable: !0, writable: !0, value: e }) : u[r] = e;
3
- var c = (u, r, e) => (L(u, typeof r != "symbol" ? r + "" : r, e), e);
4
- var m = (u, r, e) => new Promise((s, a) => {
5
- var h = (d) => {
1
+ var f = Object.defineProperty;
2
+ var A = (l, u, e) => u in l ? f(l, u, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[u] = e;
3
+ var h = (l, u, e) => (A(l, typeof u != "symbol" ? u + "" : u, e), e);
4
+ var v = (l, u, e) => new Promise((t, o) => {
5
+ var a = (i) => {
6
6
  try {
7
- o(e.next(d));
8
- } catch (l) {
9
- a(l);
7
+ d(e.next(i));
8
+ } catch (c) {
9
+ o(c);
10
10
  }
11
- }, i = (d) => {
11
+ }, s = (i) => {
12
12
  try {
13
- o(e.throw(d));
14
- } catch (l) {
15
- a(l);
13
+ d(e.throw(i));
14
+ } catch (c) {
15
+ o(c);
16
16
  }
17
- }, o = (d) => d.done ? s(d.value) : Promise.resolve(d.value).then(h, i);
18
- o((e = e.apply(u, r)).next());
17
+ }, d = (i) => i.done ? t(i.value) : Promise.resolve(i.value).then(a, s);
18
+ d((e = e.apply(l, u)).next());
19
19
  });
20
- import { getAudio as E, AudioNamespace as A } from "../../../shared-utils/audio.js";
21
- class T extends Audio {
20
+ import { getAudio as g, AudioNamespace as E } from "../../../shared-utils/audio.js";
21
+ import { AudioDiagnostics as y } from "./AudioDiagnostics.js";
22
+ class S extends Audio {
22
23
  constructor(e) {
23
24
  super();
24
- c(this, "sharedAudioSrc");
25
- c(this, "sharedAudioPaused", !0);
26
- c(this, "sharedAudioCurrentTime", 0);
27
- c(this, "tryplaying", !1);
28
- c(this, "audioInstance");
29
- c(this, "eventListenerDisposer");
30
- this.sharedAudioSrc = e;
25
+ h(this, "sharedAudioSrc");
26
+ h(this, "sharedAudioPaused", !0);
27
+ h(this, "sharedAudioCurrentTime", 0);
28
+ h(this, "tryplaying", !1);
29
+ h(this, "audioInstance");
30
+ h(this, "eventListenerDisposer");
31
+ this.sharedAudioSrc = e, e && this.validateAudioSource(e);
31
32
  }
32
33
  get paused() {
33
34
  var e;
@@ -36,28 +37,32 @@ class T extends Audio {
36
37
  get currentTime() {
37
38
  return this.sharedAudioCurrentTime;
38
39
  }
40
+ get duration() {
41
+ var e;
42
+ return ((e = this.audioInstance) == null ? void 0 : e.duration) || 0;
43
+ }
39
44
  play() {
40
- return m(this, null, function* () {
41
- var s, a, h;
45
+ return v(this, null, function* () {
46
+ var t, o, a;
42
47
  if (this.tryplaying)
43
48
  return;
44
- this.tryplaying = !0, (!this.audioInstance || ((s = this.audioInstance) == null ? void 0 : s.realSrc) !== this.sharedAudioSrc) && (this.audioInstance = E(this.sharedAudioSrc, { namespace: A.PlayAudio })), (a = this.eventListenerDisposer) == null || a.call(this), this.eventListenerDisposer = this.addEventListeners(), this.audioInstance.currentTime = (h = this.currentTime) != null ? h : 0;
49
+ this.tryplaying = !0, (!this.audioInstance || ((t = this.audioInstance) == null ? void 0 : t.realSrc) !== this.sharedAudioSrc) && (this.audioInstance = g(this.sharedAudioSrc, { namespace: E.PlayAudio })), (o = this.eventListenerDisposer) == null || o.call(this), this.eventListenerDisposer = this.addEventListeners(), this.audioInstance.currentTime = (a = this.currentTime) != null ? a : 0;
45
50
  const e = this.audioInstance.currentTime !== this.currentTime;
46
51
  this.audioInstance.play().then(() => {
47
- var i;
48
- this.audioInstance.muted = !1, e && (this.audioInstance.currentTime = (i = this.currentTime) != null ? i : 0), this.sharedAudioPaused = !1;
49
- }).catch((i) => {
50
- var o;
51
- i.message === "The operation is not supported." ? console.error("Error: 音频文件可能损坏或修改过文件后缀", i) : console.error("Error: error playing media in Safari", i), this.endedHandler(), (o = this.onerror) == null || o.call(this, i);
52
+ var s;
53
+ this.audioInstance.muted = !1, e && (this.audioInstance.currentTime = (s = this.currentTime) != null ? s : 0), this.sharedAudioPaused = !1;
54
+ }).catch((s) => {
55
+ var d;
56
+ this.handlePlayError(s), this.endedHandler(), (d = this.onerror) == null || d.call(this, s);
52
57
  }).finally(() => {
53
58
  this.tryplaying = !1;
54
59
  });
55
60
  });
56
61
  }
57
62
  pause(e) {
58
- var s;
63
+ var t;
59
64
  if (this.audioInstance && !this.paused) {
60
- if (this.sharedAudioPaused = !0, (s = this.eventListenerDisposer) == null || s.call(this), this.audioInstance.ended) {
65
+ if (this.sharedAudioPaused = !0, (t = this.eventListenerDisposer) == null || t.call(this), this.audioInstance.ended) {
61
66
  this.endedHandler();
62
67
  return;
63
68
  }
@@ -72,45 +77,90 @@ class T extends Audio {
72
77
  var e;
73
78
  (e = this.audioInstance) == null || e.clear();
74
79
  }
80
+ handlePlayError(e) {
81
+ var a, s, d, i;
82
+ const t = navigator.userAgent, o = this.sharedAudioSrc;
83
+ if (console.group("🎵 音频播放错误详情"), console.error("错误对象:", e), console.error("错误名称:", e.name), console.error("错误信息:", e.message), console.error("音频文件路径:", o), console.error("浏览器信息:", t), console.error("音频实例状态:", {
84
+ exists: !!this.audioInstance,
85
+ readyState: (a = this.audioInstance) == null ? void 0 : a.readyState,
86
+ networkState: (s = this.audioInstance) == null ? void 0 : s.networkState,
87
+ error: (d = this.audioInstance) == null ? void 0 : d.error
88
+ }), e.name === "NotSupportedError") {
89
+ if (e.message.includes("no supported source was found") && (console.error("❌ 错误原因: 无法找到支持的音频源"), console.error("💡 可能的解决方案:"), console.error(" 1. 检查音频文件路径是否正确"), console.error(" 2. 检查音频文件是否存在"), console.error(" 3. 检查音频文件格式是否被浏览器支持 (推荐: MP3, OGG, WAV)"), console.error(" 4. 检查CORS设置,确保可以跨域访问音频文件"), o)) {
90
+ const c = (i = o.split(".").pop()) == null ? void 0 : i.toLowerCase(), p = ["mp3", "ogg", "wav", "m4a", "aac"];
91
+ c && !p.includes(c) && (console.error(` ⚠️ 检测到不常见的音频格式: .${c}`), console.error(` 📝 建议使用: ${p.join(", ")}`));
92
+ }
93
+ } else
94
+ e.name === "AbortError" ? console.error("❌ 错误原因: 音频播放被中断") : e.name === "NotAllowedError" ? console.error("❌ 错误原因: 浏览器阻止了音频播放 (通常需要用户交互)") : e.message === "The operation is not supported." ? console.error("❌ 错误原因: 音频文件可能损坏或格式有问题") : console.error("❌ 未知的音频播放错误");
95
+ console.groupEnd(), e.name === "NotSupportedError" && o && (console.error("💡 建议运行完整音频诊断来查找问题根源:"), console.error(`AudioDiagnostics.diagnoseAudio("${o}")`), process.env.NODE_ENV === "development" && (console.warn("🔍 自动运行音频诊断..."), y.diagnoseAudio(o)));
96
+ }
97
+ validateAudioSource(e) {
98
+ var a;
99
+ try {
100
+ new URL(e, window.location.href);
101
+ } catch (s) {
102
+ console.warn("🎵 音频URL格式可能有问题:", e), y.diagnoseAudio(e);
103
+ return;
104
+ }
105
+ const t = (a = e.split(".").pop()) == null ? void 0 : a.toLowerCase(), o = ["mp3", "ogg", "wav", "m4a", "aac", "webm"];
106
+ t && !o.includes(t) && (console.warn("🎵 音频格式可能不被广泛支持:", t), console.warn("💡 建议使用常见格式:", o.join(", ")), console.warn('💡 运行音频诊断:AudioDiagnostics.diagnoseAudio("' + e + '")')), this.checkBrowserSupport(t);
107
+ }
108
+ checkBrowserSupport(e) {
109
+ if (!e)
110
+ return;
111
+ const t = document.createElement("audio"), a = {
112
+ mp3: "audio/mpeg",
113
+ ogg: "audio/ogg",
114
+ wav: "audio/wav",
115
+ m4a: "audio/mp4",
116
+ aac: "audio/aac",
117
+ webm: "audio/webm"
118
+ }[e];
119
+ if (a) {
120
+ const s = t.canPlayType(a);
121
+ s === "" ? (console.warn(`🎵 当前浏览器可能不支持 ${e.toUpperCase()} 格式`), console.warn("💡 建议提供多种格式的音频文件作为备选")) : console.info(s === "maybe" ? `🎵 当前浏览器可能支持 ${e.toUpperCase()} 格式 (不确定)` : `🎵 当前浏览器支持 ${e.toUpperCase()} 格式`);
122
+ }
123
+ }
75
124
  endedHandler(e) {
76
- var s, a;
77
- (s = this.onended) == null || s.call(this, e != null ? e : new Event("ended")), (a = this.eventListenerDisposer) == null || a.call(this), this.sharedAudioPaused = !0, this.sharedAudioCurrentTime = 0, this.clear();
125
+ var t, o;
126
+ (t = this.onended) == null || t.call(this, e != null ? e : new Event("ended")), (o = this.eventListenerDisposer) == null || o.call(this), this.sharedAudioPaused = !0, this.sharedAudioCurrentTime = 0, this.clear();
78
127
  }
79
128
  addEventListeners() {
80
129
  const e = this.audioInstance;
81
130
  if (!e)
82
131
  return;
83
- const s = (n) => {
84
- var t;
85
- this.sharedAudioCurrentTime = e.currentTime, (t = this.ontimeupdate) == null || t.call(this, n);
86
- }, a = (n) => {
87
- var t;
88
- e.isBlankAudio || (this.sharedAudioPaused = !1, (t = this.onplay) == null || t.call(this, n));
89
- }, h = (n) => {
90
- this.pause(n);
91
- }, i = (n) => {
92
- this.endedHandler(n);
93
- }, o = (n) => {
94
- var t;
95
- this.sharedAudioPaused = !0, (t = this.onerror) == null || t.call(this, n);
96
- }, d = (n) => {
97
- var t;
98
- return (t = this.oncanplay) == null ? void 0 : t.call(this, n);
99
- }, l = (n) => {
100
- var t;
101
- return (t = this.oncanplaythrough) == null ? void 0 : t.call(this, n);
102
- }, p = (n) => {
103
- var t;
104
- return (t = this.onloadeddata) == null ? void 0 : t.call(this, n);
105
- }, v = (n) => {
106
- var t;
107
- return (t = this.onloadedmetadata) == null ? void 0 : t.call(this, n);
132
+ const t = (r) => {
133
+ var n;
134
+ this.sharedAudioCurrentTime = e.currentTime, (n = this.ontimeupdate) == null || n.call(this, r);
135
+ }, o = (r) => {
136
+ var n;
137
+ e.isBlankAudio || (this.sharedAudioPaused = !1, (n = this.onplay) == null || n.call(this, r));
138
+ }, a = (r) => {
139
+ this.pause(r);
140
+ }, s = (r) => {
141
+ this.endedHandler(r);
142
+ }, d = (r) => {
143
+ var n;
144
+ this.sharedAudioPaused = !0, (n = this.onerror) == null || n.call(this, r);
145
+ }, i = (r) => {
146
+ var n;
147
+ return (n = this.oncanplay) == null ? void 0 : n.call(this, r);
148
+ }, c = (r) => {
149
+ var n;
150
+ return (n = this.oncanplaythrough) == null ? void 0 : n.call(this, r);
151
+ }, p = (r) => {
152
+ var n;
153
+ return (n = this.onloadeddata) == null ? void 0 : n.call(this, r);
154
+ }, m = (r) => {
155
+ var n;
156
+ return (n = this.onloadedmetadata) == null ? void 0 : n.call(this, r);
108
157
  };
109
- return e.addEventListener("timeupdate", s), e.addEventListener("play", a), e.addEventListener("pause", h), e.addEventListener("ended", i), e.addEventListener("error", o), e.addEventListener("canplay", d), e.addEventListener("canplaythrough", l), e.addEventListener("loadeddata", p), e.addEventListener("loadedmetadata", v), () => {
110
- e.removeEventListener("timeupdate", s), e.removeEventListener("play", a), e.removeEventListener("pause", h), e.removeEventListener("ended", i), e.removeEventListener("error", o), e.removeEventListener("canplay", d), e.removeEventListener("canplaythrough", l), e.removeEventListener("loadeddata", p), e.removeEventListener("loadedmetadata", v);
158
+ return e.addEventListener("timeupdate", t), e.addEventListener("play", o), e.addEventListener("pause", a), e.addEventListener("ended", s), e.addEventListener("error", d), e.addEventListener("canplay", i), e.addEventListener("canplaythrough", c), e.addEventListener("loadeddata", p), e.addEventListener("loadedmetadata", m), () => {
159
+ e.removeEventListener("timeupdate", t), e.removeEventListener("play", o), e.removeEventListener("pause", a), e.removeEventListener("ended", s), e.removeEventListener("error", d), e.removeEventListener("canplay", i), e.removeEventListener("canplaythrough", c), e.removeEventListener("loadeddata", p), e.removeEventListener("loadedmetadata", m);
111
160
  };
112
161
  }
113
162
  }
114
163
  export {
115
- T as SharedAudio
164
+ y as AudioDiagnostics,
165
+ S as SharedAudio
116
166
  };
@@ -22,7 +22,7 @@ let F = class {
22
22
  /**
23
23
  * @realsee/dnalogel 版本号
24
24
  */
25
- i(this, "VERSION", "3.66.5");
25
+ i(this, "VERSION", "3.67.0");
26
26
  i(this, "NAME");
27
27
  i(this, "five");
28
28
  i(this, "workUtil");