@realsee/dnalogel 3.36.1 → 3.36.3
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/CHANGELOG.md +6 -0
- package/dist/PanoTagPlugin/controller/TagUtil.d.ts +1 -0
- package/dist/PanoTagPlugin/typings/tag/TagData.d.ts +0 -10
- package/dist/PanoVideoPlugin/VideoMeshController.d.ts +7 -1
- package/dist/PanoVideoPlugin/typings.d.ts +6 -0
- package/dist/index.cjs.js +5 -5
- package/dist/index.js +21 -5
- package/dist/index.umd.js +5 -5
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
- package/docs/classes/ModelMakerPluginInstance.html +3 -3
- package/docs/classes/ModelRoomLabelController.html +3 -3
- package/docs/classes/MoveController.html +3 -3
- package/docs/classes/Object3DHelperController.html +3 -3
- package/docs/classes/PaintBrush.html +3 -3
- package/docs/classes/PanoMeasurePluginLine.html +3 -3
- package/docs/classes/PanoMeasurePluginModel.html +3 -3
- package/docs/classes/PanoMeasurePluginPoint.html +3 -3
- package/docs/classes/PanoMeasurePluginPolyline.html +3 -3
- package/docs/classes/PanoTagPluginController.html +25 -25
- package/docs/classes/Sculpt.html +3 -3
- package/docs/classes/Util.BetterTween.html +3 -3
- package/docs/classes/Util.Interval.html +3 -3
- package/docs/classes/Util.LineSegments.html +3 -3
- package/docs/classes/Util.Magnifier.html +3 -3
- package/docs/classes/Util.Object3D.html +3 -3
- package/docs/classes/Util.PointDomHelper.html +3 -3
- package/docs/classes/Util.PointHelper.html +3 -3
- package/docs/classes/Util.PointSelectorHelper.html +3 -3
- package/docs/classes/Util.Rectangle.html +3 -3
- package/docs/classes/WalkController.html +3 -3
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +3 -3
- package/docs/enums/DIRECTION.html +3 -3
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/DimensionType.html +3 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/PaintBrushTypeEnum.html +3 -3
- package/docs/enums/PointType.html +3 -3
- package/docs/enums/Rotation.html +3 -3
- package/docs/functions/AreaMakerPlugin.html +3 -3
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/CurrentPanoImagePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +3 -3
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelMakerPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/MovePlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/PipelinePlugin.html +3 -3
- package/docs/functions/SculptPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +3 -3
- package/docs/functions/Util.blink.html +3 -3
- package/docs/functions/Util.checkFiveModelLoaded.html +3 -3
- package/docs/functions/Util.equal.html +3 -3
- package/docs/functions/Util.getCoordsFromClient.html +3 -3
- package/docs/functions/Util.getCoordsFromElement.html +3 -3
- package/docs/functions/Util.getFrameTime.html +3 -3
- package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
- package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
- package/docs/functions/Util.isAbsoluteURL.html +3 -3
- package/docs/functions/Util.isModelLike.html +3 -3
- package/docs/functions/Util.isNil.html +3 -3
- package/docs/functions/Util.isPanoramaLike.html +3 -3
- package/docs/functions/Util.nextFrame.html +3 -3
- package/docs/functions/Util.notNil.html +3 -3
- package/docs/functions/Util.reblink.html +3 -3
- package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
- package/docs/functions/Util.tweenProgress.html +3 -3
- package/docs/functions/Util.uuid.html +3 -3
- package/docs/functions/pluginFlag.html +3 -3
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/ContentTypeMapInterface.html +8 -26
- package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
- package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
- package/docs/interfaces/EventMap.html +3 -3
- package/docs/interfaces/FloorplanBounding.html +3 -3
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +3 -3
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +3 -3
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +3 -3
- package/docs/interfaces/FloorplanServerComputedData.html +3 -3
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
- package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
- package/docs/interfaces/FloorplanServerEntrance.html +3 -3
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
- package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
- package/docs/interfaces/HelperOffset.html +3 -3
- package/docs/interfaces/ImagePlaneGroup.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +3 -3
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/MinMax.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +3 -3
- package/docs/interfaces/ModelMakerPluginType.State.html +3 -3
- package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
- package/docs/interfaces/ModelViewPluginExportType.html +3 -3
- package/docs/interfaces/Object3DHelperState.html +3 -3
- package/docs/interfaces/ObjectHelperControllers.html +3 -3
- package/docs/interfaces/PaintBrushAction.html +3 -3
- package/docs/interfaces/PaintBrushConfigs.html +3 -3
- package/docs/interfaces/PaintBrushState.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
- package/docs/interfaces/PanoMeasureParameterType.html +3 -3
- package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
- package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginState.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +48 -14
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
- package/docs/interfaces/Point.html +3 -3
- package/docs/interfaces/Room.html +3 -3
- package/docs/interfaces/RoomInfo.html +3 -3
- package/docs/interfaces/RoomLabel.html +3 -3
- package/docs/interfaces/RoomRules.html +3 -3
- package/docs/interfaces/Rooms.html +3 -3
- package/docs/interfaces/Scissor.html +3 -3
- package/docs/interfaces/State.html +3 -3
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
- package/docs/interfaces/TagIconUrl.html +3 -3
- package/docs/interfaces/TagObjectGroup.html +3 -3
- package/docs/interfaces/TagStyle.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/interfaces/TemporaryState.html +3 -3
- package/docs/interfaces/Util.BlinkAnimeOptions.html +3 -3
- package/docs/interfaces/Util.MagnifierParameter.html +3 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
- package/docs/interfaces/Util.PointIntersection.html +3 -3
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +3 -3
- package/docs/modules/AreaMakerPluginType.html +3 -3
- package/docs/modules/CruisePluginTypes.html +3 -3
- package/docs/modules/CurrentPanoImagePluginType.html +3 -3
- package/docs/modules/GuideLineItem.html +3 -3
- package/docs/modules/GuideLineModeItem.html +3 -3
- package/docs/modules/GuideLinePluginType.html +3 -3
- package/docs/modules/ModelMakerPluginType.html +3 -3
- package/docs/modules/PanoVideoPluginType.html +3 -3
- package/docs/modules/SculptData.html +3 -3
- package/docs/modules/Util.html +3 -3
- package/docs/modules.html +4 -4
- package/docs/types/AddObject3DHelperConfig.html +3 -3
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -3
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +3 -3
- package/docs/types/AreaMakerPluginType.PluginData.html +3 -3
- package/docs/types/AreaMakerPluginType.ServerData.html +3 -3
- package/docs/types/ArrayPosition.html +3 -3
- package/docs/types/AudioAppearance.html +3 -3
- package/docs/types/CSS3DRenderExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
- package/docs/types/ClassFunctionParameters.html +3 -3
- package/docs/types/Color.html +3 -3
- package/docs/types/ContentTypeConfigKey.html +3 -3
- package/docs/types/ContentTypeConfigKeySplit.html +3 -3
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +3 -3
- package/docs/types/Create3DElementReturnType.html +3 -3
- package/docs/types/CruisePluginExportType.html +3 -3
- package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
- package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
- package/docs/types/CurrentPanoImagePluginExportType.html +3 -3
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
- package/docs/types/DeprecatedTagProperty.html +3 -3
- package/docs/types/Direction-1.html +3 -3
- package/docs/types/Direction4.html +3 -3
- package/docs/types/ElementRenderer.html +3 -3
- package/docs/types/FloorplanRuleLabels.html +3 -3
- package/docs/types/FloorplanServerRuleLabels.html +3 -3
- package/docs/types/GuideLinePluginExportType.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItem.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
- package/docs/types/GuideLinePluginType.PathItem.html +3 -3
- package/docs/types/GuideLinePluginType.PluginData.html +3 -3
- package/docs/types/HelperEventMap.html +3 -3
- package/docs/types/InternalHelperEventMap.html +3 -3
- package/docs/types/LoadTagConfig.html +3 -3
- package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/MediaData.html +3 -3
- package/docs/types/MediaStore.html +3 -3
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
- package/docs/types/ModelId.html +3 -3
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +3 -3
- package/docs/types/ModelMakerPluginType.ItemType.html +3 -3
- package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
- package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
- package/docs/types/MoveArgs.html +3 -3
- package/docs/types/MoveOpts.html +3 -3
- package/docs/types/Object3DHelperEventMap.html +3 -3
- package/docs/types/ObjectFit.html +3 -3
- package/docs/types/PaintBrushEventMap.html +3 -3
- package/docs/types/PanoCompassPluginData.html +3 -3
- package/docs/types/PanoCompassPluginExportType.html +3 -3
- package/docs/types/PanoCompassPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
- package/docs/types/PanoIndex.html +3 -3
- package/docs/types/PanoMeasurePluginEvent.html +3 -3
- package/docs/types/PanoMeasureReturnType.html +3 -3
- package/docs/types/PanoSpatialTagPluginId.html +3 -3
- package/docs/types/PanoTagPluginExportInterface.html +3 -3
- package/docs/types/PanoTagPluginParamsInterface.html +3 -3
- package/docs/types/PanoVideoPluginParameterType.html +3 -3
- package/docs/types/PanoVideoPluginReturnType.html +3 -3
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
- package/docs/types/PipelinePluginParameterType.html +3 -3
- package/docs/types/PipelinePluginReturnType.html +3 -3
- package/docs/types/PlaneTag.html +3 -3
- package/docs/types/Point2DTag.html +3 -3
- package/docs/types/Point3DTag.html +3 -3
- package/docs/types/PointTag.html +3 -3
- package/docs/types/PointTagInstance.html +3 -3
- package/docs/types/Position.html +3 -3
- package/docs/types/PositionFrom.html +3 -3
- package/docs/types/RotateArgs.html +3 -3
- package/docs/types/RotateOpts.html +3 -3
- package/docs/types/RuleLabelsKey.html +3 -3
- package/docs/types/RuleLabelsValue.html +3 -3
- package/docs/types/ScaleCallback.html +3 -3
- package/docs/types/ScalePosition.html +3 -3
- package/docs/types/SculptData.BoxData.html +3 -3
- package/docs/types/SculptData.CircleData.html +3 -3
- package/docs/types/SculptData.CylinderData.html +3 -3
- package/docs/types/SculptData.PointData.html +3 -3
- package/docs/types/SculptData.PolygonData.html +3 -3
- package/docs/types/SculptData.PolylineData.html +3 -3
- package/docs/types/SculptData.PrismData.html +3 -3
- package/docs/types/SculptData.RectangleData.html +3 -3
- package/docs/types/StickType.html +3 -3
- package/docs/types/Tag.html +3 -3
- package/docs/types/Tag2D.html +3 -3
- package/docs/types/Tag3D.html +3 -3
- package/docs/types/TagConfigByKey.html +3 -3
- package/docs/types/TagContentType.html +3 -3
- package/docs/types/TagContentTypeMapping.html +3 -3
- package/docs/types/TagDimensionType.html +3 -3
- package/docs/types/TagElement.html +3 -3
- package/docs/types/TagEvents.html +3 -3
- package/docs/types/TagGLTFObject.html +3 -3
- package/docs/types/TagHooks.html +3 -3
- package/docs/types/TagId.html +3 -3
- package/docs/types/TagInstance.html +3 -3
- package/docs/types/TagPointType.html +3 -3
- package/docs/types/TagRendererMap.html +3 -3
- package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/WorkCode.html +3 -3
- package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
- package/docs/variables/PLUGIN.html +3 -3
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
- package/docs/variables/ROOM_TYPE_MAP.html +3 -3
- package/docs/variables/defaultGlobalConfig.html +3 -3
- package/docs/variables/itemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
- package/libs/PanoTagPlugin/controller/TagUtil.d.ts +1 -0
- package/libs/PanoTagPlugin/controller/TagUtil.js +76 -72
- package/libs/PanoTagPlugin/controller/index.js +23 -22
- package/libs/PanoTagPlugin/typings/tag/TagData.d.ts +0 -10
- package/libs/PanoVideoPlugin/Controller.js +2 -0
- package/libs/PanoVideoPlugin/VideoMeshController.d.ts +7 -1
- package/libs/PanoVideoPlugin/VideoMeshController.js +29 -20
- package/libs/PanoVideoPlugin/typings.d.ts +6 -0
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelItemLabelPluginServerParams | 如视空间交互插件合集 - v3.36.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelItemLabelPluginServerParams | 如视空间交互插件合集 - v3.36.3</title><meta name="description" content="Documentation for 如视空间交互插件合集"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><link rel="stylesheet" href="../assets/custom.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div id="tsd-toolbar-links"></div></div>
|
|
7
7
|
<ul class="results">
|
|
8
8
|
<li class="state loading">Preparing search index...</li>
|
|
9
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视空间交互插件合集 - v3.36.
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视空间交互插件合集 - v3.36.3</a></div>
|
|
10
10
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
11
|
<div class="container container-main">
|
|
12
12
|
<div class="col-content">
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<div class="tsd-theme-toggle">
|
|
39
39
|
<h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
|
|
40
40
|
<div class="site-menu">
|
|
41
|
-
<nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>如视空间交互插件合集 -<wbr/> v3.36.
|
|
41
|
+
<nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>如视空间交互插件合集 -<wbr/> v3.36.3</span></a>
|
|
42
42
|
<ul class="tsd-small-nested-navigation">
|
|
43
43
|
<li><a href="../modules.html#CruisePluginController"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-8388608"><rect fill="var(--color-icon-background)" stroke="#FF4D82" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M10.354 17V8.24H13.066C13.586 8.24 14.042 8.348 14.434 8.564C14.826 8.772 15.13 9.064 15.346 9.44C15.562 9.816 15.67 10.256 15.67 10.76C15.67 11.352 15.514 11.86 15.202 12.284C14.898 12.708 14.482 13 13.954 13.16L15.79 17H14.518L12.838 13.28H11.434V17H10.354ZM11.434 12.308H13.066C13.514 12.308 13.874 12.168 14.146 11.888C14.418 11.6 14.554 11.224 14.554 10.76C14.554 10.288 14.418 9.912 14.146 9.632C13.874 9.352 13.514 9.212 13.066 9.212H11.434V12.308Z" fill="var(--color-text)"></path></g></svg><span>Cruise<wbr/>Plugin<wbr/>Controller</span></a></li>
|
|
44
44
|
<li><a href="../modules.html#Magnifier"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>Magnifier</span></a></li>
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视空间交互插件合集 - v3.36.
|
|
1
|
+
<!DOCTYPE html><html class="default" lang="en"><head><meta charSet="utf-8"/><meta http-equiv="x-ua-compatible" content="IE=edge"/><title>modelRoomLabelPluginServerParams | 如视空间交互插件合集 - v3.36.3</title><meta name="description" content="Documentation for 如视空间交互插件合集"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="stylesheet" href="../assets/style.css"/><link rel="stylesheet" href="../assets/highlight.css"/><link rel="stylesheet" href="../assets/custom.css"/><script defer src="../assets/main.js"></script><script async src="../assets/search.js" id="tsd-search-script"></script></head><body><script>document.documentElement.dataset.theme = localStorage.getItem("tsd-theme") || "os"</script><header class="tsd-page-toolbar">
|
|
2
2
|
<div class="tsd-toolbar-contents container">
|
|
3
3
|
<div class="table-cell" id="tsd-search" data-base="..">
|
|
4
4
|
<div class="field"><label for="tsd-search-field" class="tsd-widget tsd-toolbar-icon search no-caption"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M15.7824 13.833L12.6666 10.7177C12.5259 10.5771 12.3353 10.499 12.1353 10.499H11.6259C12.4884 9.39596 13.001 8.00859 13.001 6.49937C13.001 2.90909 10.0914 0 6.50048 0C2.90959 0 0 2.90909 0 6.49937C0 10.0896 2.90959 12.9987 6.50048 12.9987C8.00996 12.9987 9.39756 12.4863 10.5008 11.6239V12.1332C10.5008 12.3332 10.5789 12.5238 10.7195 12.6644L13.8354 15.7797C14.1292 16.0734 14.6042 16.0734 14.8948 15.7797L15.7793 14.8954C16.0731 14.6017 16.0731 14.1267 15.7824 13.833ZM6.50048 10.499C4.29094 10.499 2.50018 8.71165 2.50018 6.49937C2.50018 4.29021 4.28781 2.49976 6.50048 2.49976C8.71001 2.49976 10.5008 4.28708 10.5008 6.49937C10.5008 8.70852 8.71314 10.499 6.50048 10.499Z" fill="var(--color-text)"></path></svg></label><input type="text" id="tsd-search-field" aria-label="Search"/></div>
|
|
@@ -6,7 +6,7 @@
|
|
|
6
6
|
<div id="tsd-toolbar-links"></div></div>
|
|
7
7
|
<ul class="results">
|
|
8
8
|
<li class="state loading">Preparing search index...</li>
|
|
9
|
-
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视空间交互插件合集 - v3.36.
|
|
9
|
+
<li class="state failure">The search index is not available</li></ul><a href="../index.html" class="title">如视空间交互插件合集 - v3.36.3</a></div>
|
|
10
10
|
<div class="table-cell" id="tsd-widgets"><a href="#" class="tsd-widget tsd-toolbar-icon menu no-caption" data-toggle="menu" aria-label="Menu"><svg width="16" height="16" viewBox="0 0 16 16" fill="none"><rect x="1" y="3" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="7" width="14" height="2" fill="var(--color-text)"></rect><rect x="1" y="11" width="14" height="2" fill="var(--color-text)"></rect></svg></a></div></div></header>
|
|
11
11
|
<div class="container container-main">
|
|
12
12
|
<div class="col-content">
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
<div class="tsd-theme-toggle">
|
|
39
39
|
<h4 class="uppercase">Theme</h4><select id="tsd-theme"><option value="os">OS</option><option value="light">Light</option><option value="dark">Dark</option></select></div></div></details></div></div>
|
|
40
40
|
<div class="site-menu">
|
|
41
|
-
<nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>如视空间交互插件合集 -<wbr/> v3.36.
|
|
41
|
+
<nav class="tsd-navigation"><a href="../modules.html"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-4"><rect fill="var(--color-icon-background)" stroke="var(--color-ts-namespace)" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="6"></rect><path d="M9.33 16V7.24H10.77L13.446 14.74C13.43 14.54 13.41 14.296 13.386 14.008C13.37 13.712 13.354 13.404 13.338 13.084C13.33 12.756 13.326 12.448 13.326 12.16V7.24H14.37V16H12.93L10.266 8.5C10.282 8.692 10.298 8.936 10.314 9.232C10.33 9.52 10.342 9.828 10.35 10.156C10.366 10.476 10.374 10.784 10.374 11.08V16H9.33Z" fill="var(--color-text)"></path></g></svg><span>如视空间交互插件合集 -<wbr/> v3.36.3</span></a>
|
|
42
42
|
<ul class="tsd-small-nested-navigation">
|
|
43
43
|
<li><a href="../modules.html#CruisePluginController"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><g id="icon-8388608"><rect fill="var(--color-icon-background)" stroke="#FF4D82" stroke-width="1.5" x="1" y="1" width="22" height="22" rx="12"></rect><path d="M10.354 17V8.24H13.066C13.586 8.24 14.042 8.348 14.434 8.564C14.826 8.772 15.13 9.064 15.346 9.44C15.562 9.816 15.67 10.256 15.67 10.76C15.67 11.352 15.514 11.86 15.202 12.284C14.898 12.708 14.482 13 13.954 13.16L15.79 17H14.518L12.838 13.28H11.434V17H10.354ZM11.434 12.308H13.066C13.514 12.308 13.874 12.168 14.146 11.888C14.418 11.6 14.554 11.224 14.554 10.76C14.554 10.288 14.418 9.912 14.146 9.632C13.874 9.352 13.514 9.212 13.066 9.212H11.434V12.308Z" fill="var(--color-text)"></path></g></svg><span>Cruise<wbr/>Plugin<wbr/>Controller</span></a></li>
|
|
44
44
|
<li><a href="../modules.html#Magnifier"><svg class="tsd-kind-icon" viewBox="0 0 24 24"><use href="#icon-8388608"></use></svg><span>Magnifier</span></a></li>
|
|
@@ -79,6 +79,7 @@ export declare abstract class TagUtil extends TagCache {
|
|
|
79
79
|
protected addObjectClickHandler(tag: TagInstance, object: THREE.Object3D | undefined, handler: (event: Event) => any): () => void;
|
|
80
80
|
protected getTagNormal(tag: TagInstance): THREE.Vector3 | undefined;
|
|
81
81
|
protected getTransformedPostion(position: Tag['position']): THREE.Vector3 | [THREE.Vector3, THREE.Vector3, THREE.Vector3, THREE.Vector3];
|
|
82
|
+
protected getTransformedMatrix(matrix: number[]): number[];
|
|
82
83
|
/**
|
|
83
84
|
* @description 检查是否已经销毁
|
|
84
85
|
* @returns isDisposed; 已经销毁返回 true,否则返回 false
|
|
@@ -1,40 +1,40 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
1
|
+
var q = Object.defineProperty, K = Object.defineProperties;
|
|
2
|
+
var Q = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var L = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
5
|
-
var _ = (l, s, e) => s in l ?
|
|
4
|
+
var Y = Object.prototype.hasOwnProperty, ee = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var _ = (l, s, e) => s in l ? q(l, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : l[s] = e, D = (l, s) => {
|
|
6
6
|
for (var e in s || (s = {}))
|
|
7
|
-
|
|
7
|
+
Y.call(s, e) && _(l, e, s[e]);
|
|
8
8
|
if (L)
|
|
9
9
|
for (var e of L(s))
|
|
10
|
-
|
|
10
|
+
ee.call(s, e) && _(l, e, s[e]);
|
|
11
11
|
return l;
|
|
12
|
-
}, U = (l, s) =>
|
|
12
|
+
}, U = (l, s) => K(l, Q(s));
|
|
13
13
|
var f = (l, s, e) => (_(l, typeof s != "symbol" ? s + "" : s, e), e);
|
|
14
|
-
import { defaultGlobalConfig as
|
|
15
|
-
import { objectAssignDeepExports as
|
|
16
|
-
import * as
|
|
14
|
+
import { defaultGlobalConfig as ie } from "../typings/tag/TagConfig.js";
|
|
15
|
+
import { objectAssignDeepExports as y } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
16
|
+
import * as V from "three";
|
|
17
17
|
import { DefaultConfig as te } from "../tag.config.js";
|
|
18
|
-
import { anyPositionToVector3 as
|
|
19
|
-
import { planeNormal as
|
|
20
|
-
import { getTagCenterPosition as
|
|
18
|
+
import { anyPositionToVector3 as P } from "../../shared-utils/positionToVector3.js";
|
|
19
|
+
import { planeNormal as w } from "../utils/planeNormal.js";
|
|
20
|
+
import { getTagCenterPosition as B } from "../utils/tagPosition.js";
|
|
21
21
|
import { normalPositionToPositions as oe } from "../utils/normalPositionToPositions.js";
|
|
22
|
-
import { TagCache as
|
|
23
|
-
import { writable as
|
|
22
|
+
import { TagCache as re } from "./TagCache.js";
|
|
23
|
+
import { writable as ne } from "../../vendor/svelte/store/index.js";
|
|
24
24
|
import { isIOSWX as se } from "../../shared-utils/device.js";
|
|
25
25
|
import { CSS3DRenderPlugin as fe } from "../../CSS3DRenderPlugin/index.js";
|
|
26
26
|
import { Five as ae } from "@realsee/five";
|
|
27
|
-
import { isMediaPlaneTag as ce, isMediaModelTag as
|
|
27
|
+
import { isMediaPlaneTag as ce, isMediaModelTag as N, isPlaneTag as le, isPoint3DTag as de } from "../utils/tag/tagCheck.js";
|
|
28
28
|
import { VideoPlane as ue } from "../utils/model/mediaPlane.js";
|
|
29
29
|
import { FiveDomEvents as me } from "../../shared-utils/five/FiveDomEvents.js";
|
|
30
|
-
import
|
|
31
|
-
import { isPanoramaLike as
|
|
30
|
+
import z from "../utils/tag/adaptConfig.js";
|
|
31
|
+
import { isPanoramaLike as E, isModelLike as $ } from "../../shared-utils/five/mode.js";
|
|
32
32
|
import "hammerjs";
|
|
33
33
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
34
34
|
import "animejs";
|
|
35
|
-
import { entries as
|
|
36
|
-
import { getUrlExt as
|
|
37
|
-
import { transformPosition as
|
|
35
|
+
import { entries as H } from "../../shared-utils/typescript/entries.js";
|
|
36
|
+
import { getUrlExt as J } from "../../shared-utils/url/getUrl.js";
|
|
37
|
+
import { transformPosition as G } from "../../shared-utils/five/transformPosition.js";
|
|
38
38
|
import { WorkUtil as he } from "../../shared-utils/Utils/WorkUtil.js";
|
|
39
39
|
import "../../shared-utils/three/centerPoint.js";
|
|
40
40
|
import "../../base/BasePlugin.js";
|
|
@@ -66,7 +66,7 @@ import "../../shared-utils/three/FragmentTransparencyMaterial.js";
|
|
|
66
66
|
import "../../shared-utils/three/getNormal.js";
|
|
67
67
|
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
68
68
|
import "../../shared-utils/Utils/BaseUtil.js";
|
|
69
|
-
class gi extends
|
|
69
|
+
class gi extends re {
|
|
70
70
|
constructor(e) {
|
|
71
71
|
super(e);
|
|
72
72
|
f(this, "tags", []);
|
|
@@ -74,7 +74,7 @@ class gi extends ne {
|
|
|
74
74
|
f(this, "workUtil", new he(this.five));
|
|
75
75
|
/** 插件参数 */
|
|
76
76
|
f(this, "params");
|
|
77
|
-
f(this, "mediaStore",
|
|
77
|
+
f(this, "mediaStore", ne({
|
|
78
78
|
currentMediaElement: null
|
|
79
79
|
}));
|
|
80
80
|
f(this, "store", {
|
|
@@ -174,9 +174,9 @@ class gi extends ne {
|
|
|
174
174
|
* @description 获取标签配置
|
|
175
175
|
*/
|
|
176
176
|
getTagConfig(e, i) {
|
|
177
|
-
var
|
|
178
|
-
const o = this.calculateTagConfig(e, { useCache: i == null ? void 0 : i.useCache }), t = (
|
|
179
|
-
return (d =
|
|
177
|
+
var n, a, d;
|
|
178
|
+
const o = this.calculateTagConfig(e, { useCache: i == null ? void 0 : i.useCache }), t = (n = i == null ? void 0 : i.fiveMode) != null ? n : this.five.getCurrentState().mode, r = (a = o.configWithFiveMode) == null ? void 0 : a[t];
|
|
179
|
+
return (d = r != null ? r : o) != null ? d : {};
|
|
180
180
|
}
|
|
181
181
|
/**
|
|
182
182
|
* @description 获取标签当前状态
|
|
@@ -191,8 +191,8 @@ class gi extends ne {
|
|
|
191
191
|
e.computedConfig = i;
|
|
192
192
|
const o = this.getTagConfig(e);
|
|
193
193
|
if (e.config = o, e.config.initialData) {
|
|
194
|
-
const
|
|
195
|
-
e.data = (t = o.initialData) != null && t.important ?
|
|
194
|
+
const r = JSON.parse(JSON.stringify(e.data));
|
|
195
|
+
e.data = (t = o.initialData) != null && t.important ? y(e.data, r, o.initialData) : y(e.data, o.initialData, r);
|
|
196
196
|
}
|
|
197
197
|
});
|
|
198
198
|
}
|
|
@@ -228,10 +228,10 @@ class gi extends ne {
|
|
|
228
228
|
if (t[0].type === "Video")
|
|
229
229
|
return navigator.userAgent.toLowerCase().indexOf("firefox") > -1 && navigator.userAgent.toLowerCase().indexOf("mobile") > -1 ? "Dom" : "Mesh";
|
|
230
230
|
if (t[0].type === "Image")
|
|
231
|
-
return
|
|
231
|
+
return J(t[0].url) === "gif" ? "Dom" : "Mesh";
|
|
232
232
|
}
|
|
233
|
-
} else if (
|
|
234
|
-
return t.length === 1 && t[0].type === "Image" ?
|
|
233
|
+
} else if (N(e))
|
|
234
|
+
return t.length === 1 && t[0].type === "Image" ? J(t[0].url) === "gif" ? "Dom" : "Mesh" : "BehindDom";
|
|
235
235
|
}
|
|
236
236
|
})();
|
|
237
237
|
return i != null ? i : "Dom";
|
|
@@ -247,16 +247,16 @@ class gi extends ne {
|
|
|
247
247
|
if (t.angle !== void 0)
|
|
248
248
|
return t.angle;
|
|
249
249
|
{
|
|
250
|
-
const
|
|
251
|
-
if (
|
|
252
|
-
throw new Error(`getAngle(): observerPosition is ${
|
|
253
|
-
const
|
|
254
|
-
if (!
|
|
250
|
+
const r = this.workUtil.getObserverPosition(o);
|
|
251
|
+
if (r === void 0)
|
|
252
|
+
throw new Error(`getAngle(): observerPosition is ${r}`);
|
|
253
|
+
const n = (() => e.stickType === "3DPoint" ? P(e.normal) : w(e.position))();
|
|
254
|
+
if (!n)
|
|
255
255
|
return;
|
|
256
|
-
const a =
|
|
256
|
+
const a = B(e);
|
|
257
257
|
if (!a)
|
|
258
258
|
return;
|
|
259
|
-
const d = new
|
|
259
|
+
const d = new V.Vector3().copy(r).sub(a), g = n.angleTo(d) * 180 / Math.PI;
|
|
260
260
|
return t.angle = g, t.angle;
|
|
261
261
|
}
|
|
262
262
|
}
|
|
@@ -264,57 +264,61 @@ class gi extends ne {
|
|
|
264
264
|
* @description 获取距离
|
|
265
265
|
*/
|
|
266
266
|
getDistance(e, i) {
|
|
267
|
-
const o = D(D({}, this.five.getCurrentState()), i), { panoIndex: t, mode:
|
|
268
|
-
if ((
|
|
269
|
-
return
|
|
270
|
-
const a =
|
|
267
|
+
const o = D(D({}, this.five.getCurrentState()), i), { panoIndex: t, mode: r } = o, n = E(r) ? this.getPanoIndexCache({ panoIndex: t, id: e.id }) : void 0;
|
|
268
|
+
if ((n == null ? void 0 : n.distance) !== void 0)
|
|
269
|
+
return n.distance;
|
|
270
|
+
const a = B(e);
|
|
271
271
|
if (!a)
|
|
272
272
|
return -1;
|
|
273
|
-
if (
|
|
273
|
+
if (E(r)) {
|
|
274
274
|
const d = this.workUtil.getObserverPosition(t);
|
|
275
275
|
if (d === void 0)
|
|
276
276
|
return -1;
|
|
277
277
|
const g = d.distanceTo(a);
|
|
278
|
-
return
|
|
278
|
+
return n && (n.distance = g), g;
|
|
279
279
|
}
|
|
280
|
-
if (
|
|
280
|
+
if ($(r))
|
|
281
281
|
return this.five.camera.position.distanceTo(a);
|
|
282
282
|
}
|
|
283
283
|
getPositions(e) {
|
|
284
284
|
if (le(e))
|
|
285
285
|
return e.position;
|
|
286
|
-
if (
|
|
286
|
+
if (N(e))
|
|
287
287
|
return e.data.mediaPosition;
|
|
288
288
|
if (de(e))
|
|
289
|
-
return oe(this.five.camera.position,
|
|
289
|
+
return oe(this.five.camera.position, P(e.position), P(e.normal));
|
|
290
290
|
}
|
|
291
291
|
addObjectClickHandler(e, i, o) {
|
|
292
292
|
if (!i || !this.domEvents)
|
|
293
293
|
return () => {
|
|
294
294
|
};
|
|
295
|
-
const t = () => !(!this.getCurrentVisibleState(e) || e.loading),
|
|
295
|
+
const t = () => !(!this.getCurrentVisibleState(e) || e.loading), r = (n) => {
|
|
296
296
|
if (!t())
|
|
297
297
|
return !1;
|
|
298
|
-
o(
|
|
298
|
+
o(n.origDomEvent);
|
|
299
299
|
};
|
|
300
|
-
return this.domEvents.addEventListener(i, "click",
|
|
301
|
-
var
|
|
302
|
-
(
|
|
300
|
+
return this.domEvents.addEventListener(i, "click", r), () => {
|
|
301
|
+
var n;
|
|
302
|
+
(n = this.domEvents) == null || n.removeEventListener(i, "click", r);
|
|
303
303
|
};
|
|
304
304
|
}
|
|
305
305
|
getTagNormal(e) {
|
|
306
306
|
if (e.normal)
|
|
307
|
-
return
|
|
307
|
+
return P(e.normal);
|
|
308
308
|
if (e.stickType === "Plane")
|
|
309
|
-
return
|
|
309
|
+
return w(e.position);
|
|
310
310
|
if (e.stickType === "Model")
|
|
311
|
-
return
|
|
311
|
+
return w(this.getPositions(e));
|
|
312
312
|
}
|
|
313
313
|
getTransformedPostion(e) {
|
|
314
314
|
if (!e)
|
|
315
315
|
return;
|
|
316
316
|
const i = this.workUtil.transform;
|
|
317
|
-
return Array.isArray(e) && e.length === 4 ? e.map(
|
|
317
|
+
return Array.isArray(e) && e.length === 4 ? e.map(P).map((o) => G(o, i)) : G(P(e), i);
|
|
318
|
+
}
|
|
319
|
+
getTransformedMatrix(e) {
|
|
320
|
+
const i = new V.Matrix4().fromArray(e);
|
|
321
|
+
return i.premultiply(this.workUtil.transform), i.elements;
|
|
318
322
|
}
|
|
319
323
|
/**
|
|
320
324
|
* @description 检查是否已经销毁
|
|
@@ -327,20 +331,20 @@ class gi extends ne {
|
|
|
327
331
|
* @description 获取merge后的配置
|
|
328
332
|
*/
|
|
329
333
|
calculateTagConfig(e, i) {
|
|
330
|
-
var S, A, O, I
|
|
334
|
+
var S, A, x, O, I;
|
|
331
335
|
const o = (S = i == null ? void 0 : i.useCache) != null ? S : !0;
|
|
332
336
|
if (!e)
|
|
333
337
|
return (A = this.config.globalConfig) != null ? A : {};
|
|
334
338
|
if (o) {
|
|
335
|
-
if ((
|
|
339
|
+
if ((x = e == null ? void 0 : e.computedConfig) != null && x._isMerged)
|
|
336
340
|
return e.computedConfig;
|
|
337
|
-
if ((
|
|
341
|
+
if ((O = e == null ? void 0 : e.config) != null && O._isMerged)
|
|
338
342
|
return e.config;
|
|
339
343
|
}
|
|
340
|
-
const t = {},
|
|
344
|
+
const t = {}, r = {}, n = {};
|
|
341
345
|
this.config.contentTypeConfig && Object.entries(this.config.contentTypeConfig).forEach(([u, m]) => {
|
|
342
|
-
var
|
|
343
|
-
const c = u,
|
|
346
|
+
var j, R;
|
|
347
|
+
const c = u, b = c.split("-"), W = u.startsWith("["), T = W ? b[0].slice(1, -1) : void 0, p = W ? b.slice(1) : b, v = T ? ["PanoramaLike", "ModelLike"].includes(T) ? (j = r[T]) != null ? j : r[T] = {} : (R = n[T]) != null ? R : n[T] = {} : t;
|
|
344
348
|
if (!v[c]) {
|
|
345
349
|
if (p.length === 0 && (v[c] = m), p.length === 1) {
|
|
346
350
|
const [h] = p;
|
|
@@ -351,25 +355,25 @@ class gi extends ne {
|
|
|
351
355
|
h === "Mixin" && e.contentType === M && (v[c] = m), (e.stickType === h || h === "Any") && (e.contentType === M || M === "Any") && (v[c] = m);
|
|
352
356
|
}
|
|
353
357
|
if (p.length === 3) {
|
|
354
|
-
const [h = "Any", M,
|
|
358
|
+
const [h = "Any", M, Z] = p;
|
|
355
359
|
if (M === "Audio" && e.contentType === "Audio") {
|
|
356
360
|
const F = e;
|
|
357
|
-
(F.stickType === h || h === "Any") && F.data.appearance ===
|
|
361
|
+
(F.stickType === h || h === "Any") && F.data.appearance === Z && (v[c] = m);
|
|
358
362
|
}
|
|
359
363
|
}
|
|
360
364
|
}
|
|
361
365
|
});
|
|
362
|
-
const a = (
|
|
363
|
-
|
|
364
|
-
|
|
365
|
-
(u === "PanoramaLike" &&
|
|
366
|
+
const a = (I = e.initialConfig) != null ? I : {}, d = y({}, ie, this.config.globalConfig, ...Object.values(t)), g = y({}, d, a), C = {}, X = Object.values(ae.Mode);
|
|
367
|
+
H(r).forEach(([u, m]) => {
|
|
368
|
+
X.forEach((c) => {
|
|
369
|
+
(u === "PanoramaLike" && E(c) || u === "ModelLike" && $(c)) && (C[c] = y({}, d, ...Object.values(m), a, { _isMerged: !0 }));
|
|
366
370
|
});
|
|
367
|
-
}),
|
|
371
|
+
}), H(n).forEach(([u, m]) => {
|
|
368
372
|
const c = C[u];
|
|
369
|
-
C[u] =
|
|
373
|
+
C[u] = y({}, d, c, ...Object.values(m), a, { _isMerged: !0 });
|
|
370
374
|
});
|
|
371
|
-
const
|
|
372
|
-
return
|
|
375
|
+
const k = U(D({}, g), { configWithFiveMode: C });
|
|
376
|
+
return z(k), Object.values(C).forEach((u) => z(u)), k._isMerged = !0, k;
|
|
373
377
|
}
|
|
374
378
|
}
|
|
375
379
|
export {
|
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
var k = Object.defineProperty, E = Object.defineProperties;
|
|
2
2
|
var F = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var P = Object.getOwnPropertySymbols;
|
|
4
|
-
var
|
|
4
|
+
var M = Object.prototype.hasOwnProperty, R = Object.prototype.propertyIsEnumerable;
|
|
5
5
|
var D = (d, a, e) => a in d ? k(d, a, { enumerable: !0, configurable: !0, writable: !0, value: e }) : d[a] = e, c = (d, a) => {
|
|
6
6
|
for (var e in a || (a = {}))
|
|
7
|
-
|
|
7
|
+
M.call(a, e) && D(d, e, a[e]);
|
|
8
8
|
if (P)
|
|
9
9
|
for (var e of P(a))
|
|
10
|
-
|
|
10
|
+
R.call(a, e) && D(d, e, a[e]);
|
|
11
11
|
return d;
|
|
12
12
|
}, C = (d, a) => E(d, F(a));
|
|
13
13
|
var f = (d, a, e) => (D(d, typeof a != "symbol" ? a + "" : a, e), e);
|
|
@@ -29,14 +29,14 @@ var g = (d, a, e) => new Promise((t, i) => {
|
|
|
29
29
|
});
|
|
30
30
|
import * as A from "three";
|
|
31
31
|
import { Subscribe as O } from "@realsee/five";
|
|
32
|
-
import { objectAssignDeepExports as
|
|
32
|
+
import { objectAssignDeepExports as m } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
33
33
|
import { addDebugPoints as _ } from "../utils/addDebugPoints.js";
|
|
34
34
|
import { arrayPositionToVector3 as w } from "../../shared-utils/positionToVector3.js";
|
|
35
35
|
import { isMediaModelTag as L, isModelTag as G } from "../utils/tag/tagCheck.js";
|
|
36
36
|
import { debounce as N } from "../utils/debounce.js";
|
|
37
37
|
import { throttle as S } from "../utils/throttle.js";
|
|
38
|
-
import
|
|
39
|
-
import { generateBlankAudio as
|
|
38
|
+
import x, { getTagStickType as z } from "../utils/tag/format.js";
|
|
39
|
+
import { generateBlankAudio as W, AudioNamespace as $ } from "../../shared-utils/audio.js";
|
|
40
40
|
import { resizeObserver as U } from "../../shared-utils/dom/resizeObserver.js";
|
|
41
41
|
import { TagRender as j } from "./TagRender.js";
|
|
42
42
|
import { uuid as J } from "../../shared-utils/uuid.js";
|
|
@@ -184,7 +184,7 @@ class Ni extends j {
|
|
|
184
184
|
f(this, "debugUtil", new K(this));
|
|
185
185
|
/** 更改 tag 模型 */
|
|
186
186
|
f(this, "changeTagModel", (e, t) => g(this, null, function* () {
|
|
187
|
-
e.data =
|
|
187
|
+
e.data = m({}, e.data, t), yield this.loadModel(e), this.updateTag(e);
|
|
188
188
|
}));
|
|
189
189
|
f(this, "whyHide", (e) => {
|
|
190
190
|
var s;
|
|
@@ -274,7 +274,7 @@ class Ni extends j {
|
|
|
274
274
|
f(this, "onFiveEveryReady", () => {
|
|
275
275
|
this.setUnfoldedByCamera(), q(this.five.getCurrentState().mode) && (this.setTagZIndex(this.filterPointTag), this.setVisible(), this.setPointTagPosition()), this.updateDomView({ withAnimation: !0 }), this.updateRenderVideoPlane(), this.updateRenderImagePlane(), this.updateTagModelVisible();
|
|
276
276
|
});
|
|
277
|
-
this.params =
|
|
277
|
+
this.params = m({}, { debug: !1, config: this.config }, c({}, t)), this.debug = this.params.debug, this.config = this.params.config, W(1, { namespace: $.PlayAudio });
|
|
278
278
|
try {
|
|
279
279
|
Array.isArray(window.__PANOTAGPLUGIN_DEBUG_LIST__) || (window.__PANOTAGPLUGIN_DEBUG_LIST__ = []), window.__PANOTAGPLUGIN_DEBUG_LIST__.push(this), window.__PANOTAGPLUGIN_DEBUG__ || Object.defineProperty(window, "__PANOTAGPLUGIN_DEBUG__", {
|
|
280
280
|
get: function() {
|
|
@@ -296,7 +296,7 @@ class Ni extends j {
|
|
|
296
296
|
load(e, t) {
|
|
297
297
|
return g(this, null, function* () {
|
|
298
298
|
var s, o;
|
|
299
|
-
this.clearTags(), console.debug(V, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config =
|
|
299
|
+
this.clearTags(), console.debug(V, " load:", { data: JSON.parse(JSON.stringify(e)) }), this.config = m({}, this.config, {
|
|
300
300
|
globalConfig: (s = e.globalConfig) != null ? s : {},
|
|
301
301
|
contentTypeConfig: (o = e.contentTypeConfig) != null ? o : {}
|
|
302
302
|
}), this.store.visibleWithAnimation = !0;
|
|
@@ -317,7 +317,7 @@ class Ni extends j {
|
|
|
317
317
|
return g(this, null, function* () {
|
|
318
318
|
const s = (Array.isArray(e) ? e : [e]).filter((o) => o.position).map((o) => {
|
|
319
319
|
var b, v, T, y;
|
|
320
|
-
o.stickType =
|
|
320
|
+
o.stickType = z(o);
|
|
321
321
|
const r = JSON.parse(JSON.stringify(o.data)), n = (b = o.initialConfig) != null ? b : o.config ? JSON.parse(JSON.stringify(o.config)) : {};
|
|
322
322
|
o.initialConfig = n;
|
|
323
323
|
const h = this.calculateTagConfig(o), l = this.getTagConfig(o);
|
|
@@ -325,7 +325,7 @@ class Ni extends j {
|
|
|
325
325
|
const p = C(c({}, o), {
|
|
326
326
|
enabled: (v = o.enabled) != null ? v : !0,
|
|
327
327
|
id: (T = o.id) != null ? T : J(),
|
|
328
|
-
data: (y = l.initialData) != null && y.important ?
|
|
328
|
+
data: (y = l.initialData) != null && y.important ? m(o.data, r, l.initialData) : m(o.data, l.initialData, r),
|
|
329
329
|
state: c({
|
|
330
330
|
visible: void 0,
|
|
331
331
|
unfolded: !this.can("fold", o)
|
|
@@ -333,9 +333,10 @@ class Ni extends j {
|
|
|
333
333
|
hooks: new O(),
|
|
334
334
|
originPosition: o.position,
|
|
335
335
|
position: (() => {
|
|
336
|
-
const
|
|
337
|
-
return Array.isArray(
|
|
336
|
+
const u = this.getTransformedPostion(o.position);
|
|
337
|
+
return Array.isArray(u) ? u.map((B) => B.toArray()) : u.toArray();
|
|
338
338
|
})(),
|
|
339
|
+
matrix: o.matrix ? this.getTransformedMatrix(o.matrix) : o.matrix,
|
|
339
340
|
initialConfig: n,
|
|
340
341
|
computedConfig: h,
|
|
341
342
|
config: l,
|
|
@@ -344,13 +345,13 @@ class Ni extends j {
|
|
|
344
345
|
enable: () => this.changeEnabledById(p.id, !0),
|
|
345
346
|
disable: () => this.changeEnabledById(p.id, !1),
|
|
346
347
|
destroy: () => this.destroyTagById(p.id),
|
|
347
|
-
changeData: (
|
|
348
|
-
changePosition: (
|
|
349
|
-
blink: (
|
|
348
|
+
changeData: (u) => this.changeDataById(p.id, u),
|
|
349
|
+
changePosition: (u) => this.changePositionById(p.id, u),
|
|
350
|
+
blink: (u) => this.blinkTagById(p.id, u)
|
|
350
351
|
});
|
|
351
352
|
return p;
|
|
352
353
|
});
|
|
353
|
-
return s.forEach(
|
|
354
|
+
return s.forEach(x), this.tags.push(...s), this.tagsLengthWillUpdate = !0, H(this.five).then(() => g(this, null, function* () {
|
|
354
355
|
var o, r, n;
|
|
355
356
|
this.store.eventListenerDisposer && ((r = (o = this.store).eventListenerDisposer) == null || r.call(o)), this.state.enabled && this.handleEnable(), this.addResizeListener(), this.clearUnusedPanelTag(), this.addMediaModelTag(s), this.setVisibleAndUnfolded({ withAnimation: (n = t == null ? void 0 : t.withAnimation) != null ? n : !0 }), this.updateRenderAllTags();
|
|
356
357
|
}));
|
|
@@ -360,19 +361,19 @@ class Ni extends j {
|
|
|
360
361
|
* @description 改变配置
|
|
361
362
|
*/
|
|
362
363
|
changeConfig(e, t = !0) {
|
|
363
|
-
t ? this.config =
|
|
364
|
+
t ? this.config = m({}, this.config, e) : this.config = e, this.updateTagConfig(), this.setVisible(), this.updateRenderAllTags();
|
|
364
365
|
}
|
|
365
366
|
/**
|
|
366
367
|
* @description 改变全局配置
|
|
367
368
|
*/
|
|
368
369
|
changeGlobalConfig(e, t = !0) {
|
|
369
|
-
t ? this.config.globalConfig =
|
|
370
|
+
t ? this.config.globalConfig = m({}, this.config.globalConfig, e) : this.config.globalConfig = e, this.updateTagConfig(), this.setVisible(), this.updateRenderAllTags();
|
|
370
371
|
}
|
|
371
372
|
/**
|
|
372
373
|
* @description 改变类型配置
|
|
373
374
|
*/
|
|
374
375
|
changeContentTypeConfig(e, t, i = !0) {
|
|
375
|
-
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] =
|
|
376
|
+
this.config.contentTypeConfig || (this.config.contentTypeConfig = {}), i ? this.config.contentTypeConfig[e] = m({}, this.config.contentTypeConfig[e], t) : this.config.contentTypeConfig[e] = t, this.updateTagConfig(), this.setVisible(), this.updateRenderAllTags();
|
|
376
377
|
}
|
|
377
378
|
show(e) {
|
|
378
379
|
return g(this, null, function* () {
|
|
@@ -502,7 +503,7 @@ class Ni extends j {
|
|
|
502
503
|
changeDataById(e, t, i = !0) {
|
|
503
504
|
const s = this.getTagById(e);
|
|
504
505
|
let o = !1;
|
|
505
|
-
s && (s.data && (o = !0), i ? s.data =
|
|
506
|
+
s && (s.data && (o = !0), i ? s.data = m(s.data, t) : s.data = c(c({}, s.data), t), this.clearUnusedPanelTag(), this.updateTag(s), o && s.hooks.emit("dataChanged", s.data));
|
|
506
507
|
}
|
|
507
508
|
/**
|
|
508
509
|
* @description 改变tag的stickType
|
|
@@ -516,7 +517,7 @@ class Ni extends j {
|
|
|
516
517
|
changeTagById(e, t, i = !0) {
|
|
517
518
|
const s = this.getTagById(e);
|
|
518
519
|
let o = !1;
|
|
519
|
-
t && (this.tagsLengthWillUpdate = !0, t.data && (o = !0), i ?
|
|
520
|
+
t && (this.tagsLengthWillUpdate = !0, t.data && (o = !0), i ? m(s, t) : Object.assign(s, t), s != null && s.tag3DContentSvelte && (t != null && t.normal) && (s.tag3DContentSvelte.currentNormal = w(t.normal)), this.clearCacheById(e), this.setVisible(), this.updateRenderAllTags(), this.clearUnusedPanelTag(), o && s.hooks.emit("dataChanged", s.data));
|
|
520
521
|
}
|
|
521
522
|
/**
|
|
522
523
|
* @description 销毁tag
|
|
@@ -140,21 +140,11 @@ export interface ContentTypeMapInterface {
|
|
|
140
140
|
modelUrl: string;
|
|
141
141
|
mediaData: MediaData[];
|
|
142
142
|
mediaPosition: [Position, Position, Position, Position];
|
|
143
|
-
matrix?: number[];
|
|
144
143
|
/** 多媒体在容器中的适配规则 {@link https://developer.mozilla.org/zh-CN/docs/Web/CSS/object-fit} */
|
|
145
144
|
objectFit?: ObjectFit;
|
|
146
|
-
action?: {
|
|
147
|
-
url: string;
|
|
148
|
-
type: 'iframe' | 'window';
|
|
149
|
-
};
|
|
150
145
|
};
|
|
151
146
|
Model: {
|
|
152
147
|
modelUrl: string;
|
|
153
|
-
matrix?: number[];
|
|
154
|
-
action?: {
|
|
155
|
-
url?: string;
|
|
156
|
-
type: 'iframe' | 'window' | 'custom';
|
|
157
|
-
};
|
|
158
148
|
};
|
|
159
149
|
Custom: Object;
|
|
160
150
|
Unknown: Object;
|
|
@@ -69,6 +69,7 @@ class T extends _ {
|
|
|
69
69
|
new c(this.five, d(a({}, h), {
|
|
70
70
|
panoIndex: u,
|
|
71
71
|
renderID: g,
|
|
72
|
+
hooks: this.hooks,
|
|
72
73
|
initialState: { enabled: this.enabled }
|
|
73
74
|
}))
|
|
74
75
|
);
|
|
@@ -146,6 +147,7 @@ class T extends _ {
|
|
|
146
147
|
new c(this.five, d(a({}, i), {
|
|
147
148
|
panoIndex: e,
|
|
148
149
|
renderID: n,
|
|
150
|
+
hooks: this.hooks,
|
|
149
151
|
initialState: { enabled: this.enabled }
|
|
150
152
|
}))
|
|
151
153
|
);
|
|
@@ -1,5 +1,8 @@
|
|
|
1
1
|
import type { Five } from '@realsee/five';
|
|
2
2
|
import type { VideoMeshParams } from './typings';
|
|
3
|
+
import type { Subscribe } from '../shared-utils/Subscribe';
|
|
4
|
+
import type { PluginEventMap } from './typings';
|
|
5
|
+
import type { Simplify } from 'type-fest';
|
|
3
6
|
/** 点位视频控制器
|
|
4
7
|
* @description 控制器存在副作用,包括:
|
|
5
8
|
* - 对 Five 事件的监听。
|
|
@@ -44,8 +47,11 @@ export declare class VideoMeshController {
|
|
|
44
47
|
* @remark 由于 render video 依赖 Five render,因此需要自动 render five。
|
|
45
48
|
*/
|
|
46
49
|
private renderFiveDisposer?;
|
|
50
|
+
private hooks;
|
|
47
51
|
/** 初始化视频、模型以及相关事件监听。 */
|
|
48
|
-
constructor(five: Five, params: VideoMeshParams
|
|
52
|
+
constructor(five: Five, params: VideoMeshParams & {
|
|
53
|
+
hooks: Subscribe<Simplify<PluginEventMap>>;
|
|
54
|
+
});
|
|
49
55
|
/**
|
|
50
56
|
* 取消静音
|
|
51
57
|
*
|