@realsee/dnalogel 3.66.4 → 3.67.0-alpha.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoTagPlugin/Components/Common/AudioPlayer.svelte.d.ts +1 -0
- package/dist/PanoTagPlugin/Components/Tag/AudioTag/AudioPoint.svelte.d.ts +1 -0
- package/dist/PanoTagPlugin/utils/audio/AudioDiagnostics.d.ts +42 -0
- package/dist/PanoTagPlugin/utils/audio/SharedAudio.d.ts +6 -0
- package/dist/index.cjs.js +84 -84
- package/dist/index.js +13020 -12099
- package/dist/index.umd.js +77 -77
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +2 -2
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +2 -2
- package/docs/classes/CSS3DRender.html +2 -2
- package/docs/classes/GuideLineItem.GuideLineItem.html +2 -2
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +2 -2
- package/docs/classes/ModelMakerPluginInstance.html +2 -2
- package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +2 -2
- package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +2 -2
- package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +2 -2
- package/docs/classes/ModelRoomLabelController.html +2 -2
- package/docs/classes/MoveController.html +2 -2
- package/docs/classes/Object3DHelperController.html +2 -2
- package/docs/classes/PaintBrush.html +2 -2
- package/docs/classes/PanoMeasurePluginLine.html +2 -2
- package/docs/classes/PanoMeasurePluginModel.html +2 -2
- package/docs/classes/PanoMeasurePluginPoint.html +2 -2
- package/docs/classes/PanoMeasurePluginPolyline.html +2 -2
- package/docs/classes/PanoTagPluginController.html +2 -2
- package/docs/classes/Sculpt.html +2 -2
- package/docs/classes/Util.BetterTween.html +2 -2
- package/docs/classes/Util.FiveDomEvents.html +2 -2
- package/docs/classes/Util.FivePuppet.html +2 -2
- package/docs/classes/Util.Interval.html +2 -2
- package/docs/classes/Util.LegacyPointHelper.html +2 -2
- package/docs/classes/Util.LightTag.html +2 -2
- package/docs/classes/Util.LineSegments.html +2 -2
- package/docs/classes/Util.Magnifier.html +2 -2
- package/docs/classes/Util.Object3D.html +2 -2
- package/docs/classes/Util.PointDomHelper.html +2 -2
- package/docs/classes/Util.PointHelper.html +2 -2
- package/docs/classes/Util.PointSelector.html +2 -2
- package/docs/classes/Util.PointSelectorHelper.html +2 -2
- package/docs/classes/Util.Rectangle.html +2 -2
- package/docs/classes/Util.sculpt.BaseEditor.html +2 -2
- package/docs/classes/Util.sculpt.BoxMesh.html +2 -2
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleMesh.html +2 -2
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMesh.html +2 -2
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.LineMesh.html +2 -2
- package/docs/classes/Util.sculpt.PointMesh.html +2 -2
- package/docs/classes/Util.sculpt.PolygonMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMesh.html +2 -2
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMesh.html +2 -2
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +2 -2
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +2 -2
- package/docs/classes/WalkController.html +2 -2
- package/docs/enums/CameraMovementEffect.html +2 -2
- package/docs/enums/ContentType.html +2 -2
- package/docs/enums/DIRECTION.html +2 -2
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/DimensionType.html +2 -2
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +2 -2
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +2 -2
- package/docs/enums/PaintBrushTypeEnum.html +2 -2
- package/docs/enums/PointType.html +2 -2
- package/docs/enums/Rotation.html +2 -2
- package/docs/functions/AreaMakerPlugin.html +1 -1
- package/docs/functions/CSS3DRenderPlugin.html +1 -1
- package/docs/functions/CameraMovementPlugin.html +2 -2
- package/docs/functions/CruisePlugin.html +1 -1
- package/docs/functions/CurrentPanoImagePlugin.html +1 -1
- package/docs/functions/GuideLinePlugin.html +1 -1
- package/docs/functions/ItemLabelPlugin.html +1 -1
- package/docs/functions/MapviewFloorplanPlugin.html +1 -1
- package/docs/functions/MeasurePlugin.html +1 -1
- package/docs/functions/ModelChassisCompassPlugin.html +2 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +2 -2
- package/docs/functions/ModelFloorplanPlugin.html +1 -1
- package/docs/functions/ModelItemLabelPlugin.html +1 -1
- package/docs/functions/ModelMakerPlugin.html +1 -1
- package/docs/functions/ModelRoomLabelPlugin.html +1 -1
- package/docs/functions/ModelTVVideoPlugin.html +1 -1
- package/docs/functions/ModelViewPlugin.html +2 -2
- package/docs/functions/MovePlugin.html +1 -1
- package/docs/functions/Object3DHelperPlugin.html +1 -1
- package/docs/functions/PanoCompassPlugin.html +1 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +2 -2
- package/docs/functions/PanoDoorLabelPlugin.html +1 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +1 -1
- package/docs/functions/PanoMeasurePlugin.html +1 -1
- package/docs/functions/PanoRulerPlugin.html +2 -2
- package/docs/functions/PanoRulerProPlugin.html +2 -2
- package/docs/functions/PanoSpatialTagPlugin.html +2 -2
- package/docs/functions/PanoTagPlugin.html +1 -1
- package/docs/functions/PanoVideoPlugin.html +2 -2
- package/docs/functions/PipelinePlugin.html +1 -1
- package/docs/functions/SculptPlugin.html +2 -2
- package/docs/functions/TopviewFloorplanPlugin.html +1 -1
- package/docs/functions/Util.absoluteUrl.html +2 -2
- package/docs/functions/Util.awaitNextFrame.html +1 -1
- package/docs/functions/Util.blink.html +2 -2
- package/docs/functions/Util.bounding.html +1 -1
- package/docs/functions/Util.boundingBox.html +1 -1
- package/docs/functions/Util.boundingSphere.html +1 -1
- package/docs/functions/Util.boxVertex.html +2 -2
- package/docs/functions/Util.boxVertexes.html +1 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +2 -2
- package/docs/functions/Util.convexHull.html +2 -2
- package/docs/functions/Util.equal.html +2 -2
- package/docs/functions/Util.fiveModelIsLoaded.html +2 -2
- package/docs/functions/Util.getCoordsFromClient.html +1 -1
- package/docs/functions/Util.getCoordsFromElement.html +1 -1
- package/docs/functions/Util.getFrameTime.html +2 -2
- package/docs/functions/Util.getIntersectFromRelativePosition.html +1 -1
- package/docs/functions/Util.getRaycasterFromFivePointer.html +1 -1
- package/docs/functions/Util.initialCSS3DRender.html +1 -1
- package/docs/functions/Util.inside.html +1 -1
- package/docs/functions/Util.isAbsoluteURL.html +1 -1
- package/docs/functions/Util.isModelLike.html +1 -1
- package/docs/functions/Util.isNil.html +2 -2
- package/docs/functions/Util.isPanoramaLike.html +1 -1
- package/docs/functions/Util.lookObject.html +2 -2
- package/docs/functions/Util.lookPoint.html +2 -2
- package/docs/functions/Util.nextFrame.html +1 -1
- package/docs/functions/Util.notNil.html +2 -2
- package/docs/functions/Util.reblink.html +2 -2
- package/docs/functions/Util.requestAnimationFrameInterval.html +2 -2
- package/docs/functions/Util.sculpt.createBox.html +1 -1
- package/docs/functions/Util.sculpt.createCircle.html +1 -1
- package/docs/functions/Util.sculpt.createCylinder.html +1 -1
- package/docs/functions/Util.sculpt.createLine.html +2 -2
- package/docs/functions/Util.sculpt.createPoint.html +1 -1
- package/docs/functions/Util.sculpt.createPolygon.html +1 -1
- package/docs/functions/Util.sculpt.createPrism.html +1 -1
- package/docs/functions/Util.sculpt.createRectangle.html +2 -2
- package/docs/functions/Util.tag.html +1 -1
- package/docs/functions/Util.tweenProgress.html +1 -1
- package/docs/functions/Util.uuid.html +2 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +2 -2
- package/docs/functions/Util.worldBounding.html +1 -1
- package/docs/functions/Util.worldBoundingBox.html +1 -1
- package/docs/functions/Util.worldBoundingSphere.html +1 -1
- package/docs/functions/createPolyline.html +2 -2
- package/docs/functions/pluginFlag.html +1 -1
- package/docs/hierarchy.html +1 -1
- package/docs/index.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Config.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.Params.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/AreaMakerPluginType.State.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +2 -2
- package/docs/interfaces/CSS3DRenderPluginState.html +2 -2
- package/docs/interfaces/CameraMovementPluginExportType.html +2 -2
- package/docs/interfaces/ContentTypeMapInterface.html +2 -2
- package/docs/interfaces/CruisePluginTypes.Config.html +2 -2
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +2 -2
- package/docs/interfaces/CruisePluginTypes.EventMap.html +2 -2
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +2 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +2 -2
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +2 -2
- package/docs/interfaces/FloorplanBounding.html +2 -2
- package/docs/interfaces/FloorplanData.html +2 -2
- package/docs/interfaces/FloorplanEntrance.html +2 -2
- package/docs/interfaces/FloorplanExtraObject.html +2 -2
- package/docs/interfaces/FloorplanExtraObject3D.html +2 -2
- package/docs/interfaces/FloorplanFloorData.html +2 -2
- package/docs/interfaces/FloorplanImagePosition.html +2 -2
- package/docs/interfaces/FloorplanObserver.html +2 -2
- package/docs/interfaces/FloorplanOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanPosition.html +2 -2
- package/docs/interfaces/FloorplanRoomItem.html +2 -2
- package/docs/interfaces/FloorplanRoomLabelItem.html +2 -2
- package/docs/interfaces/FloorplanServerBounding.html +2 -2
- package/docs/interfaces/FloorplanServerComputedData.html +2 -2
- package/docs/interfaces/FloorplanServerData.html +2 -2
- package/docs/interfaces/FloorplanServerDoorItem.html +2 -2
- package/docs/interfaces/FloorplanServerDoorPosition.html +2 -2
- package/docs/interfaces/FloorplanServerEntrance.html +2 -2
- package/docs/interfaces/FloorplanServerFloorData.html +2 -2
- package/docs/interfaces/FloorplanServerImagePosition.html +2 -2
- package/docs/interfaces/FloorplanServerObserver.html +2 -2
- package/docs/interfaces/FloorplanServerOutlineItem.html +2 -2
- package/docs/interfaces/FloorplanServerPosition.html +2 -2
- package/docs/interfaces/FloorplanServerRoomItem.html +2 -2
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +2 -2
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +2 -2
- package/docs/interfaces/GuideLinePluginType.EventMap.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +1 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +2 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +2 -2
- package/docs/interfaces/GuideLinePluginType.Route.html +2 -2
- package/docs/interfaces/HelperOffset.html +2 -2
- package/docs/interfaces/ImagePlaneGroup.html +2 -2
- package/docs/interfaces/ItemLabelPluginData.html +2 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/MinMax.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginData.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +2 -2
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +2 -2
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginData.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +2 -2
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.State.html +2 -2
- package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +2 -2
- package/docs/interfaces/ModelRoomLabelPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginExportType.html +2 -2
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +2 -2
- package/docs/interfaces/ModelViewPluginExportType.html +2 -2
- package/docs/interfaces/Object3DHelperState.html +2 -2
- package/docs/interfaces/ObjectHelperControllers.html +2 -2
- package/docs/interfaces/PaintBrushAction.html +2 -2
- package/docs/interfaces/PaintBrushConfigs.html +2 -2
- package/docs/interfaces/PaintBrushState.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +2 -2
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +1 -1
- package/docs/interfaces/PanoMeasureParameterType.html +2 -2
- package/docs/interfaces/PanoMeasurePluginLineJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPointJson.html +2 -2
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +2 -2
- package/docs/interfaces/PanoRulerPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginExportType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginOptions.html +2 -2
- package/docs/interfaces/PanoRulerProPluginParameterType.html +2 -2
- package/docs/interfaces/PanoRulerProPluginState.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +1 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +2 -2
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +2 -2
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +2 -2
- package/docs/interfaces/PluginEventMap.html +2 -2
- package/docs/interfaces/Point.html +2 -2
- package/docs/interfaces/Room.html +2 -2
- package/docs/interfaces/RoomInfo.html +2 -2
- package/docs/interfaces/RoomLabel.html +2 -2
- package/docs/interfaces/RoomRules.html +1 -1
- package/docs/interfaces/Rooms.html +1 -1
- package/docs/interfaces/Scissor.html +2 -2
- package/docs/interfaces/State.html +2 -2
- package/docs/interfaces/TagCacheInterface.html +2 -2
- package/docs/interfaces/TagConfig.html +2 -2
- package/docs/interfaces/TagGLTFObjectGroup.html +2 -2
- package/docs/interfaces/TagIconUrl.html +2 -2
- package/docs/interfaces/TagObjectGroup.html +2 -2
- package/docs/interfaces/TagState.html +2 -2
- package/docs/interfaces/TagStyle.html +2 -2
- package/docs/interfaces/Tags.html +2 -2
- package/docs/interfaces/TemporaryState.html +2 -2
- package/docs/interfaces/Util.AnimeInstance.html +2 -2
- package/docs/interfaces/Util.BlinkAnimeOptions.html +2 -2
- package/docs/interfaces/Util.EventHandlerConfig.html +2 -2
- package/docs/interfaces/Util.FiveDomEvent.html +2 -2
- package/docs/interfaces/Util.FiveDomEventMap.html +2 -2
- package/docs/interfaces/Util.LegacyMouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.MagnifierParameter.html +2 -2
- package/docs/interfaces/Util.MouseGroupParameter.html +2 -2
- package/docs/interfaces/Util.PointIntersection.html +2 -2
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +2 -2
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +2 -2
- package/docs/modules/AreaMakerPluginType.html +2 -2
- package/docs/modules/CruisePluginTypes.html +2 -2
- package/docs/modules/CurrentPanoImagePluginType.html +2 -2
- package/docs/modules/GuideLineItem.html +2 -2
- package/docs/modules/GuideLineModeItem.html +2 -2
- package/docs/modules/GuideLinePluginType.html +2 -2
- package/docs/modules/ModelMakerPluginType.html +2 -2
- package/docs/modules/PanoVideoPluginType.html +2 -2
- package/docs/modules/SculptData.html +2 -2
- package/docs/modules/SculptType.html +2 -2
- package/docs/modules/Util.html +2 -2
- package/docs/modules/Util.sculpt.html +2 -2
- package/docs/modules.html +2 -2
- package/docs/types/AddObject3DHelperConfig.html +2 -2
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +2 -2
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +1 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +2 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +2 -2
- package/docs/types/ArrayPosition.html +1 -1
- package/docs/types/AudioAppearance.html +1 -1
- package/docs/types/CSS3DRenderExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginExportType.html +1 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +1 -1
- package/docs/types/ClassFunctionParameters.html +1 -1
- package/docs/types/Color.html +1 -1
- package/docs/types/ContentTypeConfigKey.html +1 -1
- package/docs/types/ContentTypeConfigKeySplit.html +1 -1
- package/docs/types/ContentTypeMap.html +1 -1
- package/docs/types/Create3DDomContainerReturnType.html +1 -1
- package/docs/types/Create3DElementReturnType.html +1 -1
- package/docs/types/CruisePluginExportType.html +1 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +2 -2
- package/docs/types/CruisePluginTypes.MoveEffect.html +1 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +1 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +2 -2
- package/docs/types/DeprecatedTagProperty.html +2 -2
- package/docs/types/Direction-1.html +1 -1
- package/docs/types/Direction4.html +1 -1
- package/docs/types/ElementRenderer.html +2 -2
- package/docs/types/FloorplanRuleLabels.html +2 -2
- package/docs/types/FloorplanServerRuleLabels.html +1 -1
- package/docs/types/GuideLinePluginExportType.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +2 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +1 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +2 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +2 -2
- package/docs/types/GuideLinePluginType.PathItem.html +2 -2
- package/docs/types/GuideLinePluginType.PluginData.html +2 -2
- package/docs/types/GuideLinePluginType.RouteConfig.html +2 -2
- package/docs/types/HelperEventMap.html +1 -1
- package/docs/types/InternalHelperEventMap.html +1 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/MeasurePluginConfig.html +1 -1
- package/docs/types/MediaData.html +2 -2
- package/docs/types/MediaStore.html +1 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +1 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +1 -1
- package/docs/types/ModelId.html +1 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +1 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +2 -2
- package/docs/types/ModelMakerPluginType.MarkerItem.html +1 -1
- package/docs/types/ModelMakerPluginType.ServerItem.html +2 -2
- package/docs/types/ModelRoomLabelPluginParameters.html +1 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +1 -1
- package/docs/types/MoveArgs.html +2 -2
- package/docs/types/MoveOpts.html +2 -2
- package/docs/types/Object3DHelperEventMap.html +1 -1
- package/docs/types/ObjectFit.html +1 -1
- package/docs/types/PaintBrushEventMap.html +1 -1
- package/docs/types/PanoCompassPluginData.html +1 -1
- package/docs/types/PanoCompassPluginExportType.html +1 -1
- package/docs/types/PanoCompassPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +1 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +1 -1
- package/docs/types/PanoIndex.html +1 -1
- package/docs/types/PanoMeasurePluginEvent.html +1 -1
- package/docs/types/PanoMeasureReturnType.html +1 -1
- package/docs/types/PanoSpatialTagPluginId.html +1 -1
- package/docs/types/PanoTagPluginExportInterface.html +1 -1
- package/docs/types/PanoTagPluginParamsInterface.html +1 -1
- package/docs/types/PanoVideoPluginParameterType.html +1 -1
- package/docs/types/PanoVideoPluginReturnType.html +1 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +2 -2
- package/docs/types/PipelinePluginParameterType.html +1 -1
- package/docs/types/PipelinePluginReturnType.html +1 -1
- package/docs/types/PlaneTag.html +2 -2
- package/docs/types/Point2DTag.html +2 -2
- package/docs/types/Point3DTag.html +2 -2
- package/docs/types/PointTagInstance.html +1 -1
- package/docs/types/Position.html +1 -1
- package/docs/types/PositionFrom.html +1 -1
- package/docs/types/RotateArgs.html +2 -2
- package/docs/types/RotateOpts.html +2 -2
- package/docs/types/RuleLabelsKey.html +1 -1
- package/docs/types/RuleLabelsValue.html +1 -1
- package/docs/types/ScaleCallback.html +1 -1
- package/docs/types/ScalePosition.html +2 -2
- package/docs/types/SculptData.BoxData.html +1 -1
- package/docs/types/SculptData.CircleData.html +1 -1
- package/docs/types/SculptData.CylinderData.html +1 -1
- package/docs/types/SculptData.PointData.html +1 -1
- package/docs/types/SculptData.PolygonData.html +1 -1
- package/docs/types/SculptData.PolylineData.html +1 -1
- package/docs/types/SculptData.PrismData.html +1 -1
- package/docs/types/SculptData.RectangleData.html +1 -1
- package/docs/types/SculptType.Theme.html +2 -2
- package/docs/types/StickType.html +1 -1
- package/docs/types/Tag.html +2 -2
- package/docs/types/Tag2D.html +2 -2
- package/docs/types/Tag3D.html +2 -2
- package/docs/types/TagClickParams.html +1 -1
- package/docs/types/TagConfigByKey.html +1 -1
- package/docs/types/TagContentType.html +1 -1
- package/docs/types/TagContentTypeMapping.html +1 -1
- package/docs/types/TagDimensionType.html +1 -1
- package/docs/types/TagElement.html +2 -2
- package/docs/types/TagEvents.html +1 -1
- package/docs/types/TagGLTFObject.html +1 -1
- package/docs/types/TagHooks.html +1 -1
- package/docs/types/TagId.html +1 -1
- package/docs/types/TagInstance.html +1 -1
- package/docs/types/TagPlacement.html +2 -2
- package/docs/types/TagPointType.html +2 -2
- package/docs/types/TagRendererMap.html +1 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +1 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +1 -1
- package/docs/types/Util.ActionIfNoIntersection.html +1 -1
- package/docs/types/Util.AdherePoint.html +2 -2
- package/docs/types/Util.PointSelectorConfig.html +1 -1
- package/docs/types/WorkCode.html +1 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +2 -2
- package/docs/variables/PLUGIN.html +1 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +2 -2
- package/docs/variables/ROOM_TYPE_MAP.html +2 -2
- package/docs/variables/Util.animeMap.html +1 -1
- package/docs/variables/defaultGlobalConfig.html +1 -1
- package/docs/variables/itemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +1 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +1 -1
- package/libs/CruisePlugin/Move.js +5 -2
- package/libs/CruisePlugin/Work.js +5 -2
- package/libs/CruisePlugin/index.js +9 -6
- package/libs/GuideLinePlugin/Controller.js +7 -4
- package/libs/GuideLinePlugin/GuideLineItem.js +5 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +5 -2
- package/libs/GuideLinePlugin/index.js +9 -6
- package/libs/PanoTagPlugin/Components/Common/Audio.js +3 -2
- package/libs/PanoTagPlugin/Components/Common/AudioPlayer.js +93 -0
- package/libs/PanoTagPlugin/Components/Common/AudioPlayer.svelte.d.ts +1 -0
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +364 -148
- package/libs/PanoTagPlugin/Components/Common/TagPopover/PopoverContent.js +90 -52
- package/libs/PanoTagPlugin/Components/Common/TagPopover/TagPopup.js +548 -439
- package/libs/PanoTagPlugin/Components/Common/TagPopover/index.js +252 -202
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPlaneTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPoint.js +191 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioPoint.svelte.d.ts +1 -0
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/AudioTag.js +3 -2
- package/libs/PanoTagPlugin/Components/Tag/AudioTag/index.js +13 -12
- package/libs/PanoTagPlugin/Components/Tag/index.js +3 -2
- package/libs/PanoTagPlugin/Components/TagContainer.js +29 -26
- package/libs/PanoTagPlugin/Components/TagItem.js +340 -264
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +3 -2
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +3 -2
- package/libs/PanoTagPlugin/controller/index.js +8 -5
- package/libs/PanoTagPlugin/index.js +14 -11
- package/libs/PanoTagPlugin/tag.config.js +3 -1
- package/libs/PanoTagPlugin/utils/audio/AudioDiagnostics.d.ts +42 -0
- package/libs/PanoTagPlugin/utils/audio/AudioDiagnostics.js +165 -0
- package/libs/PanoTagPlugin/utils/audio/SharedAudio.d.ts +6 -0
- package/libs/PanoTagPlugin/utils/audio/SharedAudio.js +113 -63
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +148 -145
- package/libs/shared-utils/logger.js +1 -1
- package/libs/vendor/svelte/internal/index.js +1 -0
- 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
|
|
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
|
-
|
|
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
|
|
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
|
-
|
|
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",
|
|
234
|
-
class
|
|
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
|
-
|
|
680
|
-
|
|
681
|
-
|
|
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
|
|
3
|
-
import { defaultGlobalConfig as
|
|
4
|
-
import { ContentType as
|
|
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
|
|
210
|
+
const Wr = (o, t) => new r(o, t);
|
|
208
211
|
export {
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
+
tp as ContentType,
|
|
213
|
+
rp as DimensionType,
|
|
214
|
+
Wr as PanoTagPlugin,
|
|
212
215
|
r as PanoTagPluginController,
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
216
|
+
pp as PointType,
|
|
217
|
+
Wr as default,
|
|
218
|
+
$r as defaultGlobalConfig,
|
|
219
|
+
Zr as pluginFlag
|
|
217
220
|
};
|
|
@@ -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
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
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
|
-
|
|
8
|
-
} catch (
|
|
9
|
-
|
|
7
|
+
d(e.next(i));
|
|
8
|
+
} catch (c) {
|
|
9
|
+
o(c);
|
|
10
10
|
}
|
|
11
|
-
},
|
|
11
|
+
}, s = (i) => {
|
|
12
12
|
try {
|
|
13
|
-
|
|
14
|
-
} catch (
|
|
15
|
-
|
|
13
|
+
d(e.throw(i));
|
|
14
|
+
} catch (c) {
|
|
15
|
+
o(c);
|
|
16
16
|
}
|
|
17
|
-
},
|
|
18
|
-
|
|
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
|
|
21
|
-
|
|
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
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
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
|
|
41
|
-
var
|
|
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 || ((
|
|
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
|
|
48
|
-
this.audioInstance.muted = !1, e && (this.audioInstance.currentTime = (
|
|
49
|
-
}).catch((
|
|
50
|
-
var
|
|
51
|
-
|
|
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
|
|
63
|
+
var t;
|
|
59
64
|
if (this.audioInstance && !this.paused) {
|
|
60
|
-
if (this.sharedAudioPaused = !0, (
|
|
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
|
|
77
|
-
(
|
|
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
|
|
84
|
-
var
|
|
85
|
-
this.sharedAudioCurrentTime = e.currentTime, (
|
|
86
|
-
},
|
|
87
|
-
var
|
|
88
|
-
e.isBlankAudio || (this.sharedAudioPaused = !1, (
|
|
89
|
-
},
|
|
90
|
-
this.pause(
|
|
91
|
-
},
|
|
92
|
-
this.endedHandler(
|
|
93
|
-
},
|
|
94
|
-
var
|
|
95
|
-
this.sharedAudioPaused = !0, (
|
|
96
|
-
},
|
|
97
|
-
var
|
|
98
|
-
return (
|
|
99
|
-
},
|
|
100
|
-
var
|
|
101
|
-
return (
|
|
102
|
-
}, p = (
|
|
103
|
-
var
|
|
104
|
-
return (
|
|
105
|
-
},
|
|
106
|
-
var
|
|
107
|
-
return (
|
|
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",
|
|
110
|
-
e.removeEventListener("timeupdate",
|
|
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
|
-
|
|
164
|
+
y as AudioDiagnostics,
|
|
165
|
+
S as SharedAudio
|
|
116
166
|
};
|