@realsee/dnalogel 3.77.4-alpha.0 → 3.77.4-alpha.2
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 +837 -846
- package/dist/DigitalPerformancePlugin/controller/index.d.ts +224 -0
- package/dist/DigitalPerformancePlugin/core/DigitalHuman.d.ts +54 -0
- package/dist/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +40 -0
- package/dist/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +150 -0
- package/dist/DigitalPerformancePlugin/core/Trace.d.ts +9 -0
- package/dist/DigitalPerformancePlugin/index.d.ts +11 -0
- package/dist/DigitalPerformancePlugin/mock.d.ts +76 -0
- package/dist/DigitalPerformancePlugin/typings/index.d.ts +79 -0
- package/dist/GuideLinePlugin/Controller.d.ts +2 -34
- package/dist/GuideLinePlugin/GuideLineModeItem.d.ts +2 -7
- package/dist/index.cjs.js +86 -73
- package/dist/index.d.ts +1 -0
- package/dist/index.js +12911 -11239
- package/dist/index.umd.js +87 -74
- package/libs/DigitalPerformancePlugin/controller/index.d.ts +2 -2
- package/libs/DigitalPerformancePlugin/controller/index.js +164 -173
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.d.ts +15 -6
- package/libs/DigitalPerformancePlugin/core/DigitalHuman.js +125 -98
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.d.ts +11 -5
- package/libs/DigitalPerformancePlugin/core/DigitalPlayground.js +84 -74
- package/libs/DigitalPerformancePlugin/core/DigitalStateMachine.d.ts +7 -0
- package/libs/DigitalPerformancePlugin/mock.d.ts +6 -0
- package/libs/DigitalPerformancePlugin/mock.js +270 -273
- package/libs/GuideLinePlugin/Components/Tag.js +163 -151
- package/libs/GuideLinePlugin/Controller.d.ts +2 -34
- package/libs/GuideLinePlugin/Controller.js +22 -56
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +69 -76
- package/libs/GuideLinePlugin/GuideLineModeItem.d.ts +2 -7
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.d.ts +1 -0
- package/libs/index.js +161 -150
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +2 -2
- package/docs/.nojekyll +0 -1
- package/docs/assets/custom.css +0 -0
- package/docs/assets/highlight.css +0 -127
- package/docs/assets/icons.js +0 -18
- package/docs/assets/icons.svg +0 -1
- package/docs/assets/main.js +0 -60
- package/docs/assets/navigation.js +0 -1
- package/docs/assets/search.js +0 -1
- package/docs/assets/style.css +0 -1493
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +0 -59
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +0 -71
- package/docs/classes/CSS3DRender.html +0 -100
- package/docs/classes/GuideLineItem.GuideLineItem.html +0 -21
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +0 -72
- package/docs/classes/ModelMakerPluginInstance.html +0 -116
- package/docs/classes/ModelMakerPluginType.ModelMakerBoxItem.html +0 -52
- package/docs/classes/ModelMakerPluginType.ModelMakerPolygonItem.html +0 -52
- package/docs/classes/ModelMakerPluginType.ModelMakerPrismItem.html +0 -53
- package/docs/classes/ModelRoomLabelController.html +0 -19
- package/docs/classes/MoveController.html +0 -45
- package/docs/classes/Object3DHelperController.html +0 -45
- package/docs/classes/PaintBrush.html +0 -15
- package/docs/classes/PanoMeasurePluginLine.html +0 -24
- package/docs/classes/PanoMeasurePluginModel.html +0 -23
- package/docs/classes/PanoMeasurePluginPoint.html +0 -7
- package/docs/classes/PanoMeasurePluginPolyline.html +0 -27
- package/docs/classes/PanoTagPluginController.html +0 -111
- package/docs/classes/Sculpt.html +0 -77
- package/docs/classes/Util.BetterTween.html +0 -6
- package/docs/classes/Util.FiveDomEvents.html +0 -13
- package/docs/classes/Util.FivePuppet.html +0 -20
- package/docs/classes/Util.Interval.html +0 -11
- package/docs/classes/Util.LegacyPointHelper.html +0 -7
- package/docs/classes/Util.LightTag.html +0 -47
- package/docs/classes/Util.LineSegments.html +0 -4
- package/docs/classes/Util.Magnifier.html +0 -26
- package/docs/classes/Util.Object3D.html +0 -8
- package/docs/classes/Util.PointDomHelper.html +0 -8
- package/docs/classes/Util.PointHelper.html +0 -10
- package/docs/classes/Util.PointSelector.html +0 -66
- package/docs/classes/Util.PointSelectorHelper.html +0 -14
- package/docs/classes/Util.Rectangle.html +0 -12
- package/docs/classes/Util.sculpt.BaseEditor.html +0 -17
- package/docs/classes/Util.sculpt.BoxMesh.html +0 -48
- package/docs/classes/Util.sculpt.BoxMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.CircleMesh.html +0 -26
- package/docs/classes/Util.sculpt.CircleMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.CircleWithEdgeMesh.html +0 -26
- package/docs/classes/Util.sculpt.CylinderMesh.html +0 -25
- package/docs/classes/Util.sculpt.CylinderMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.LineMesh.html +0 -34
- package/docs/classes/Util.sculpt.PointMesh.html +0 -24
- package/docs/classes/Util.sculpt.PolygonMesh.html +0 -40
- package/docs/classes/Util.sculpt.PrismMesh.html +0 -48
- package/docs/classes/Util.sculpt.PrismMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.RectangleMesh.html +0 -41
- package/docs/classes/Util.sculpt.RectangleMeshEditor.html +0 -18
- package/docs/classes/Util.sculpt.RectangleWithEdgeMesh.html +0 -44
- package/docs/classes/WalkController.html +0 -42
- package/docs/enums/CameraMovementEffect.html +0 -4
- package/docs/enums/ContentType.html +0 -34
- package/docs/enums/DIRECTION.html +0 -5
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +0 -5
- package/docs/enums/DimensionType.html +0 -4
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +0 -4
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +0 -5
- package/docs/enums/PaintBrushTypeEnum.html +0 -4
- package/docs/enums/PointType.html +0 -4
- package/docs/enums/Rotation.html +0 -5
- package/docs/functions/AreaMakerPlugin.html +0 -1
- package/docs/functions/CSS3DRenderPlugin.html +0 -1
- package/docs/functions/CameraMovementPlugin.html +0 -2
- package/docs/functions/CruisePlugin.html +0 -1
- package/docs/functions/CurrentPanoImagePlugin.html +0 -1
- package/docs/functions/FloorplanGuidePlugin.html +0 -1
- package/docs/functions/GuideLinePlugin.html +0 -1
- package/docs/functions/ItemLabelPlugin.html +0 -1
- package/docs/functions/MapviewFloorplanPlugin.html +0 -1
- package/docs/functions/MeasurePlugin.html +0 -1
- package/docs/functions/ModelChassisCompassPlugin.html +0 -2
- package/docs/functions/ModelEntryDoorGuidePlugin.html +0 -2
- package/docs/functions/ModelFloorplanPlugin.html +0 -1
- package/docs/functions/ModelItemLabelPlugin.html +0 -1
- package/docs/functions/ModelMakerPlugin.html +0 -1
- package/docs/functions/ModelRoomLabelPlugin.html +0 -1
- package/docs/functions/ModelTVVideoPlugin.html +0 -1
- package/docs/functions/ModelViewPlugin.html +0 -2
- package/docs/functions/MovePlugin.html +0 -1
- package/docs/functions/Object3DHelperPlugin.html +0 -1
- package/docs/functions/PanoCompassPlugin.html +0 -1
- package/docs/functions/PanoCursorRaycasterPlugin.html +0 -2
- package/docs/functions/PanoDoorLabelPlugin.html +0 -1
- package/docs/functions/PanoFloorplanRadarPlugin.html +0 -1
- package/docs/functions/PanoMeasurePlugin.html +0 -1
- package/docs/functions/PanoRulerPlugin.html +0 -2
- package/docs/functions/PanoRulerProPlugin.html +0 -2
- package/docs/functions/PanoSpatialTagPlugin.html +0 -2
- package/docs/functions/PanoTagPlugin.html +0 -1
- package/docs/functions/PanoVideoPlugin.html +0 -10
- package/docs/functions/PipelinePlugin.html +0 -1
- package/docs/functions/SculptPlugin.html +0 -2
- package/docs/functions/SculptPluginForFive.html +0 -2
- package/docs/functions/TopviewFloorplanPlugin.html +0 -1
- package/docs/functions/Util.awaitNextFrame.html +0 -1
- package/docs/functions/Util.blink.html +0 -13
- package/docs/functions/Util.blinkWithPreset.html +0 -6
- package/docs/functions/Util.bounding.html +0 -1
- package/docs/functions/Util.boundingBox.html +0 -1
- package/docs/functions/Util.boundingSphere.html +0 -1
- package/docs/functions/Util.boxVertex.html +0 -7
- package/docs/functions/Util.boxVertexes.html +0 -1
- package/docs/functions/Util.checkFiveModelLoaded.html +0 -2
- package/docs/functions/Util.cleanup.html +0 -3
- package/docs/functions/Util.convexHull.html +0 -2
- package/docs/functions/Util.equal.html +0 -5
- package/docs/functions/Util.fiveModelIsLoaded.html +0 -2
- package/docs/functions/Util.generatePolygonGeometry.html +0 -2
- package/docs/functions/Util.getCoordsFromClient.html +0 -1
- package/docs/functions/Util.getCoordsFromElement.html +0 -1
- package/docs/functions/Util.getFrameTime.html +0 -3
- package/docs/functions/Util.getGeometryArea.html +0 -1
- package/docs/functions/Util.getGeometryInfo.html +0 -1
- package/docs/functions/Util.getIntersectFromRelativePosition.html +0 -1
- package/docs/functions/Util.getRaycasterFromFivePointer.html +0 -1
- package/docs/functions/Util.initialCSS3DRender.html +0 -1
- package/docs/functions/Util.inside.html +0 -1
- package/docs/functions/Util.isModelLike.html +0 -1
- package/docs/functions/Util.isNil.html +0 -2
- package/docs/functions/Util.isPanoramaLike.html +0 -1
- package/docs/functions/Util.lookObject.html +0 -7
- package/docs/functions/Util.lookPoint.html +0 -5
- package/docs/functions/Util.nextFrame.html +0 -1
- package/docs/functions/Util.notNil.html +0 -2
- package/docs/functions/Util.reblink.html +0 -13
- package/docs/functions/Util.replaceStaticPrefix.html +0 -8
- package/docs/functions/Util.requestAnimationFrameInterval.html +0 -5
- package/docs/functions/Util.sculpt.createBox.html +0 -1
- package/docs/functions/Util.sculpt.createCircle.html +0 -1
- package/docs/functions/Util.sculpt.createCylinder.html +0 -1
- package/docs/functions/Util.sculpt.createLine.html +0 -2
- package/docs/functions/Util.sculpt.createPoint.html +0 -1
- package/docs/functions/Util.sculpt.createPolygon.html +0 -1
- package/docs/functions/Util.sculpt.createPrism.html +0 -1
- package/docs/functions/Util.sculpt.createRectangle.html +0 -2
- package/docs/functions/Util.sculpt.transformUnit.html +0 -1
- package/docs/functions/Util.sculpt.transformUnitSquare.html +0 -1
- package/docs/functions/Util.tag.html +0 -1
- package/docs/functions/Util.triangleArea.html +0 -2
- package/docs/functions/Util.triangleCenter.html +0 -2
- package/docs/functions/Util.tweenProgress.html +0 -1
- package/docs/functions/Util.uuid.html +0 -2
- package/docs/functions/Util.waitFiveModelLoaded.html +0 -2
- package/docs/functions/Util.worldBounding.html +0 -1
- package/docs/functions/Util.worldBoundingBox.html +0 -1
- package/docs/functions/Util.worldBoundingSphere.html +0 -1
- package/docs/functions/createPolyline.html +0 -2
- package/docs/functions/pluginFlag.html +0 -1
- package/docs/functions/validatePolygon.html +0 -1
- package/docs/hierarchy.html +0 -1
- package/docs/index.html +0 -70
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +0 -4
- package/docs/interfaces/AreaMakerPluginType.Config.html +0 -8
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +0 -25
- package/docs/interfaces/AreaMakerPluginType.Params.html +0 -4
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +0 -20
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +0 -13
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +0 -9
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +0 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +0 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +0 -8
- package/docs/interfaces/BoxAnimationConfig.html +0 -6
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +0 -9
- package/docs/interfaces/CSS3DRenderPluginState.html +0 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +0 -11
- package/docs/interfaces/ContentTypeMapInterface.html +0 -73
- package/docs/interfaces/CruisePluginTypes.Config.html +0 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +0 -8
- package/docs/interfaces/CruisePluginTypes.EventMap.html +0 -33
- package/docs/interfaces/CruisePluginTypes.GuildLineConfig.html +0 -6
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +0 -16
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +0 -19
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +0 -20
- package/docs/interfaces/CruisePluginTypes.PluginData.html +0 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +0 -2
- package/docs/interfaces/CruisePluginTypes.PluginState.html +0 -15
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +0 -13
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +0 -15
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +0 -4
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +0 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +0 -7
- package/docs/interfaces/FloorplanBounding.html +0 -9
- package/docs/interfaces/FloorplanData.html +0 -7
- package/docs/interfaces/FloorplanEntrance.html +0 -14
- package/docs/interfaces/FloorplanExtraObject.html +0 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +0 -5
- package/docs/interfaces/FloorplanFloorData.html +0 -9
- package/docs/interfaces/FloorplanImagePosition.html +0 -4
- package/docs/interfaces/FloorplanObserver.html +0 -8
- package/docs/interfaces/FloorplanOutlineItem.html +0 -6
- package/docs/interfaces/FloorplanPosition.html +0 -4
- package/docs/interfaces/FloorplanRoomItem.html +0 -24
- package/docs/interfaces/FloorplanRoomLabelItem.html +0 -6
- package/docs/interfaces/FloorplanServerBounding.html +0 -9
- package/docs/interfaces/FloorplanServerComputedData.html +0 -6
- package/docs/interfaces/FloorplanServerData.html +0 -4
- package/docs/interfaces/FloorplanServerDoorItem.html +0 -6
- package/docs/interfaces/FloorplanServerDoorPosition.html +0 -4
- package/docs/interfaces/FloorplanServerEntrance.html +0 -14
- package/docs/interfaces/FloorplanServerFloorData.html +0 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +0 -4
- package/docs/interfaces/FloorplanServerObserver.html +0 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +0 -6
- package/docs/interfaces/FloorplanServerPosition.html +0 -4
- package/docs/interfaces/FloorplanServerRoomItem.html +0 -27
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +0 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +0 -4
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +0 -7
- package/docs/interfaces/GuideLinePluginType.EventMap.html +0 -13
- package/docs/interfaces/GuideLinePluginType.ExtraRouteData.html +0 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +0 -8
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +0 -2
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +0 -32
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +0 -4
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +0 -5
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +0 -42
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +0 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +0 -57
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +0 -1
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +0 -2
- package/docs/interfaces/GuideLinePluginType.PluginState.html +0 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +0 -13
- package/docs/interfaces/HelperOffset.html +0 -4
- package/docs/interfaces/ImagePlaneGroup.html +0 -3
- package/docs/interfaces/ItemLabelPluginData.html +0 -2
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +0 -7
- package/docs/interfaces/ItemLabelPluginParametersType.html +0 -5
- package/docs/interfaces/MinMax.html +0 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +0 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +0 -4
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +0 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +0 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +0 -4
- package/docs/interfaces/ModelItemLabelPluginData.html +0 -2
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +0 -7
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +0 -3
- package/docs/interfaces/ModelMakerPluginType.BoxItemObjectData.html +0 -17
- package/docs/interfaces/ModelMakerPluginType.EventMap.html +0 -18
- package/docs/interfaces/ModelMakerPluginType.PrismItemObjectData.html +0 -23
- package/docs/interfaces/ModelMakerPluginType.ServerBaseItem.html +0 -11
- package/docs/interfaces/ModelMakerPluginType.ServerBoxItem.html +0 -10
- package/docs/interfaces/ModelMakerPluginType.ServerData.html +0 -3
- package/docs/interfaces/ModelMakerPluginType.ServerPrismItem.html +0 -10
- package/docs/interfaces/ModelMakerPluginType.ServerTrianglesItem.html +0 -10
- package/docs/interfaces/ModelMakerPluginType.State.html +0 -8
- package/docs/interfaces/ModelMakerPluginType.TrianglesItemObjectData.html +0 -11
- package/docs/interfaces/ModelRoomLabelPluginData.html +0 -2
- package/docs/interfaces/ModelTVVideoPluginData.html +0 -5
- package/docs/interfaces/ModelTVVideoPluginExportType.html +0 -4
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +0 -2
- package/docs/interfaces/ModelViewPluginExportType.html +0 -8
- package/docs/interfaces/Object3DHelperState.html +0 -4
- package/docs/interfaces/ObjectHelperControllers.html +0 -5
- package/docs/interfaces/PaintBrushAction.html +0 -14
- package/docs/interfaces/PaintBrushConfigs.html +0 -8
- package/docs/interfaces/PaintBrushState.html +0 -6
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +0 -16
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +0 -1
- package/docs/interfaces/PanoMeasureParameterType.html +0 -20
- package/docs/interfaces/PanoMeasurePluginLineJson.html +0 -4
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +0 -4
- package/docs/interfaces/PanoMeasurePluginPointJson.html +0 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +0 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +0 -6
- package/docs/interfaces/PanoRulerPluginOptions.html +0 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +0 -4
- package/docs/interfaces/PanoRulerProPluginExportType.html +0 -5
- package/docs/interfaces/PanoRulerProPluginOptions.html +0 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +0 -3
- package/docs/interfaces/PanoRulerProPluginState.html +0 -4
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +0 -1
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +0 -1
- package/docs/interfaces/PanoSpatialTagPluginData.html +0 -7
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +0 -6
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +0 -9
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +0 -6
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +0 -9
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +0 -7
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +0 -6
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +0 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +0 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +0 -2
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +0 -15
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +0 -2
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +0 -14
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +0 -13
- package/docs/interfaces/PluginEventMap.html +0 -16
- package/docs/interfaces/Point.html +0 -4
- package/docs/interfaces/Room.html +0 -5
- package/docs/interfaces/RoomInfo.html +0 -3
- package/docs/interfaces/RoomLabel.html +0 -16
- package/docs/interfaces/RoomRules.html +0 -1
- package/docs/interfaces/Rooms.html +0 -1
- package/docs/interfaces/Scissor.html +0 -13
- package/docs/interfaces/SculptConfig.html +0 -19
- package/docs/interfaces/State.html +0 -7
- package/docs/interfaces/TagCacheInterface.html +0 -9
- package/docs/interfaces/TagConfig.html +0 -174
- package/docs/interfaces/TagGLTFObjectGroup.html +0 -3
- package/docs/interfaces/TagIconAnimationConfig.html +0 -7
- package/docs/interfaces/TagIconUrl.html +0 -22
- package/docs/interfaces/TagObjectGroup.html +0 -3
- package/docs/interfaces/TagState.html +0 -3
- package/docs/interfaces/TagStyle.html +0 -5
- package/docs/interfaces/Tags.html +0 -8
- package/docs/interfaces/TemporaryState.html +0 -2
- package/docs/interfaces/Util.AnimeInstance.html +0 -14
- package/docs/interfaces/Util.BlinkAnimeOptions.html +0 -21
- package/docs/interfaces/Util.EventHandlerConfig.html +0 -21
- package/docs/interfaces/Util.FiveDomEvent.html +0 -7
- package/docs/interfaces/Util.FiveDomEventMap.html +0 -20
- package/docs/interfaces/Util.LegacyMouseGroupParameter.html +0 -4
- package/docs/interfaces/Util.MagnifierParameter.html +0 -13
- package/docs/interfaces/Util.MouseGroupParameter.html +0 -4
- package/docs/interfaces/Util.ObjectInitialState.html +0 -9
- package/docs/interfaces/Util.PointIntersection.html +0 -21
- package/docs/interfaces/Util.PointSelectorHelperConfig.html +0 -6
- package/docs/interfaces/Util.ReBlinkAnimeOptions.html +0 -27
- package/docs/modules/AreaMakerPluginType.html +0 -17
- package/docs/modules/CruisePluginTypes.html +0 -14
- package/docs/modules/CurrentPanoImagePluginType.html +0 -6
- package/docs/modules/GuideLineItem.html +0 -2
- package/docs/modules/GuideLineModeItem.html +0 -3
- package/docs/modules/GuideLinePluginType.html +0 -25
- package/docs/modules/ModelMakerPluginType.html +0 -19
- package/docs/modules/PanoVideoPluginType.html +0 -8
- package/docs/modules/SculptData.html +0 -9
- package/docs/modules/SculptType.html +0 -2
- package/docs/modules/Util.html +0 -91
- package/docs/modules/Util.sculpt.html +0 -27
- package/docs/modules.html +0 -281
- package/docs/types/AddObject3DHelperConfig.html +0 -19
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +0 -7
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +0 -1
- package/docs/types/AreaMakerPluginType.PluginData.html +0 -2
- package/docs/types/AreaMakerPluginType.ServerData.html +0 -2
- package/docs/types/ArrayPosition.html +0 -1
- package/docs/types/AudioAppearance.html +0 -1
- package/docs/types/CSS3DRenderExportType.html +0 -1
- package/docs/types/CSS3DRenderPluginExportType.html +0 -1
- package/docs/types/CSS3DRenderPluginParameterType.html +0 -1
- package/docs/types/ClassFunctionParameters.html +0 -1
- package/docs/types/Color.html +0 -1
- package/docs/types/ContentTypeConfigKey.html +0 -1
- package/docs/types/ContentTypeConfigKeySplit.html +0 -1
- package/docs/types/ContentTypeMap.html +0 -1
- package/docs/types/Create3DDomContainerReturnType.html +0 -1
- package/docs/types/Create3DElementReturnType.html +0 -1
- package/docs/types/CruisePluginExportType.html +0 -1
- package/docs/types/CruisePluginTypes.CruiseData.html +0 -6
- package/docs/types/CruisePluginTypes.MoveEffect.html +0 -1
- package/docs/types/CurrentPanoImagePluginExportType.html +0 -1
- package/docs/types/DeprecatedMediaPlaneProperty.html +0 -3
- package/docs/types/DeprecatedTagProperty.html +0 -3
- package/docs/types/Direction-1.html +0 -1
- package/docs/types/Direction4.html +0 -1
- package/docs/types/ElementRenderer.html +0 -2
- package/docs/types/FloorplanGuidePluginParameterType.html +0 -1
- package/docs/types/FloorplanGuidePluginReturnType.html +0 -1
- package/docs/types/FloorplanRuleLabels.html +0 -2
- package/docs/types/FloorplanServerRuleLabels.html +0 -1
- package/docs/types/GuideLinePluginExportType.html +0 -1
- package/docs/types/GuideLinePluginType.GuideLineItem.html +0 -2
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +0 -1
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +0 -1
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +0 -2
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +0 -2
- package/docs/types/GuideLinePluginType.PathItem.html +0 -2
- package/docs/types/GuideLinePluginType.PluginData.html +0 -2
- package/docs/types/GuideLinePluginType.RouteConfig.html +0 -4
- package/docs/types/HelperEventMap.html +0 -1
- package/docs/types/InternalHelperEventMap.html +0 -1
- package/docs/types/MapviewFloorplanPluginParameterType.html +0 -1
- package/docs/types/MapviewFloorplanPluginReturnType.html +0 -1
- package/docs/types/MeasureEndReason.html +0 -1
- package/docs/types/MeasurePluginConfig.html +0 -5
- package/docs/types/MeasurePluginEventMap.html +0 -1
- package/docs/types/MediaData.html +0 -2
- package/docs/types/MediaStore.html +0 -1
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +0 -1
- package/docs/types/ModelFloorplanPluginParameterType.html +0 -1
- package/docs/types/ModelFloorplanPluginReturnType.html +0 -1
- package/docs/types/ModelId.html +0 -1
- package/docs/types/ModelMakerPluginType.ElementRenderer.html +0 -1
- package/docs/types/ModelMakerPluginType.ItemType.html +0 -2
- package/docs/types/ModelMakerPluginType.MarkerItem.html +0 -1
- package/docs/types/ModelMakerPluginType.ServerItem.html +0 -2
- package/docs/types/ModelRoomLabelPluginParameters.html +0 -1
- package/docs/types/ModelRoomLabelPluginReturnType.html +0 -1
- package/docs/types/MoveArgs.html +0 -2
- package/docs/types/MoveOpts.html +0 -2
- package/docs/types/Object3DHelperEventMap.html +0 -1
- package/docs/types/ObjectFit.html +0 -1
- package/docs/types/PaintBrushEventMap.html +0 -1
- package/docs/types/PanoCompassPluginData.html +0 -1
- package/docs/types/PanoCompassPluginExportType.html +0 -1
- package/docs/types/PanoCompassPluginParameterType.html +0 -1
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +0 -1
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +0 -1
- package/docs/types/PanoIndex.html +0 -1
- package/docs/types/PanoMeasurePluginEvent.html +0 -1
- package/docs/types/PanoMeasureReturnType.html +0 -1
- package/docs/types/PanoSpatialTagPluginId.html +0 -1
- package/docs/types/PanoTagPluginExportInterface.html +0 -1
- package/docs/types/PanoTagPluginParamsInterface.html +0 -1
- package/docs/types/PanoVideoPluginParameterType.html +0 -1
- package/docs/types/PanoVideoPluginReturnType.html +0 -1
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +0 -2
- package/docs/types/PipelinePluginParameterType.html +0 -1
- package/docs/types/PipelinePluginReturnType.html +0 -1
- package/docs/types/PlaneTag.html +0 -2
- package/docs/types/Point2DTag.html +0 -2
- package/docs/types/Point3DTag.html +0 -2
- package/docs/types/PointTagInstance.html +0 -1
- package/docs/types/Position.html +0 -1
- package/docs/types/PositionFrom.html +0 -1
- package/docs/types/RotateArgs.html +0 -2
- package/docs/types/RotateOpts.html +0 -2
- package/docs/types/RuleLabelsKey.html +0 -1
- package/docs/types/RuleLabelsValue.html +0 -1
- package/docs/types/ScaleCallback.html +0 -1
- package/docs/types/ScalePosition.html +0 -3
- package/docs/types/SculptData.BoxData.html +0 -1
- package/docs/types/SculptData.CircleData.html +0 -1
- package/docs/types/SculptData.CylinderData.html +0 -1
- package/docs/types/SculptData.PointData.html +0 -1
- package/docs/types/SculptData.PolygonData.html +0 -1
- package/docs/types/SculptData.PolylineData.html +0 -1
- package/docs/types/SculptData.PrismData.html +0 -1
- package/docs/types/SculptData.RectangleData.html +0 -1
- package/docs/types/SculptType.Theme.html +0 -10
- package/docs/types/StickType.html +0 -1
- package/docs/types/Tag.html +0 -17
- package/docs/types/Tag2D.html +0 -2
- package/docs/types/Tag3D.html +0 -2
- package/docs/types/TagClickParams.html +0 -1
- package/docs/types/TagConfigByKey.html +0 -1
- package/docs/types/TagContentType.html +0 -1
- package/docs/types/TagContentTypeMapping.html +0 -1
- package/docs/types/TagDimensionType.html +0 -1
- package/docs/types/TagElement.html +0 -2
- package/docs/types/TagEvents.html +0 -1
- package/docs/types/TagGLTFObject.html +0 -1
- package/docs/types/TagHooks.html +0 -1
- package/docs/types/TagId.html +0 -1
- package/docs/types/TagInstance.html +0 -1
- package/docs/types/TagPlacement.html +0 -5
- package/docs/types/TagPointType.html +0 -2
- package/docs/types/TagRendererMap.html +0 -1
- package/docs/types/TopviewFloorplanPluginParameterType.html +0 -1
- package/docs/types/TopviewFloorplanPluginReturnType.html +0 -1
- package/docs/types/Util.ActionIfNoIntersection.html +0 -1
- package/docs/types/Util.AdherePoint.html +0 -2
- package/docs/types/Util.PointSelectorConfig.html +0 -1
- package/docs/types/Util.SupportedTarget.html +0 -2
- package/docs/types/Util.Target.html +0 -2
- package/docs/types/Util.ThreeObject.html +0 -2
- package/docs/types/WorkCode.html +0 -1
- package/docs/variables/FLOOR_TYPE_MAP.html +0 -2
- package/docs/variables/PLUGIN.html +0 -1
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +0 -2
- package/docs/variables/ROOM_TYPE_MAP.html +0 -2
- package/docs/variables/Util.ANIME_PRESETS.html +0 -2
- package/docs/variables/Util.CURRENT_PANO_IMAGE_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.DEFAULT_ANIME_CONFIG.html +0 -2
- package/docs/variables/Util.DEFAULT_STATIC_PREFIX.html +0 -2
- package/docs/variables/Util.DNALOGEL_DEFAULT_ASSETS.html +0 -2
- package/docs/variables/Util.ENTRY_DOOR_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.FLOORPLAN_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.GUIDELINE_DEFAULT_ARROW_TEXTURE.html +0 -2
- package/docs/variables/Util.GUIDELINE_WHITE_ARROW_TEXTURE.html +0 -2
- package/docs/variables/Util.MODEL_CHASSIS_COMPASS_DEFAULT_MODEL.html +0 -2
- package/docs/variables/Util.MODEL_ENTRY_DOOR_GUIDE_PLUGIN_DEFAULT_MODEL.html +0 -2
- package/docs/variables/Util.PANO_COMPASS_DEFAULT_IMAGE.html +0 -2
- package/docs/variables/Util.PANO_SPATIAL_TAG_BLUR_IMAGE.html +0 -2
- package/docs/variables/Util.PANO_TAG_DEFAULT_LINK_ICON.html +0 -2
- package/docs/variables/defaultGlobalConfig.html +0 -1
- package/docs/variables/itemLabelPluginServerParams.html +0 -1
- package/docs/variables/modelItemLabelPluginServerParams.html +0 -1
- package/docs/variables/modelRoomLabelPluginServerParams.html +0 -1
|
@@ -0,0 +1,224 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import { DigitalPlayground } from '../core/DigitalPlayground';
|
|
3
|
+
import type { DigitalHuman } from '../core/DigitalHuman';
|
|
4
|
+
import type { DigitalScript, DigitalChapter, DigitalPerformancePluginConfig, GlobalProgress, ChapterTimeInfo, ChapterLocation, ProgressListener } from '../typings';
|
|
5
|
+
export default class DigitalPerformancePluginController {
|
|
6
|
+
five: Five;
|
|
7
|
+
playground: DigitalPlayground;
|
|
8
|
+
config: DigitalPerformancePluginConfig;
|
|
9
|
+
state: {
|
|
10
|
+
enabled: boolean;
|
|
11
|
+
playing: boolean;
|
|
12
|
+
currentChapter: DigitalChapter | null;
|
|
13
|
+
currentScript: DigitalScript | null;
|
|
14
|
+
continuousPlaying: boolean;
|
|
15
|
+
playMode: 'single' | 'continuous';
|
|
16
|
+
};
|
|
17
|
+
NAME: string;
|
|
18
|
+
private totalDurationCache;
|
|
19
|
+
private chapterTimeMapCache;
|
|
20
|
+
private progressListeners;
|
|
21
|
+
private progressUpdateInterval;
|
|
22
|
+
private progressUpdateTimer;
|
|
23
|
+
private _autoPlayOnNaturalEnd;
|
|
24
|
+
private playingPlayersListeners;
|
|
25
|
+
constructor(five: Five, config?: DigitalPerformancePluginConfig);
|
|
26
|
+
/**
|
|
27
|
+
* 加载剧本数据
|
|
28
|
+
*/
|
|
29
|
+
loadScript(script: DigitalScript): Promise<void>;
|
|
30
|
+
private init;
|
|
31
|
+
/**
|
|
32
|
+
* 预加载资源
|
|
33
|
+
*/
|
|
34
|
+
private preloadResources;
|
|
35
|
+
/**
|
|
36
|
+
* 播放指定章节
|
|
37
|
+
*/
|
|
38
|
+
playChapter(chapter: DigitalChapter): Promise<void>;
|
|
39
|
+
/**
|
|
40
|
+
* 播放指定章节(内部方法,用于连续播放)
|
|
41
|
+
*/
|
|
42
|
+
private playChapterForContinuous;
|
|
43
|
+
/**
|
|
44
|
+
* 播放指定章节(通过索引)
|
|
45
|
+
*/
|
|
46
|
+
playChapterByIndex(index: number): Promise<void>;
|
|
47
|
+
/**
|
|
48
|
+
* 暂停播放
|
|
49
|
+
*/
|
|
50
|
+
pause(): void;
|
|
51
|
+
/**
|
|
52
|
+
* 继续播放
|
|
53
|
+
*/
|
|
54
|
+
continue(): Promise<void>;
|
|
55
|
+
/**
|
|
56
|
+
* 连续播放模式下的继续播放(从暂停位置继续播放所有剩余章节)
|
|
57
|
+
*/
|
|
58
|
+
private continueAllRemaining;
|
|
59
|
+
/**
|
|
60
|
+
* 从当前章节播放到最后一个章节(连续自动播放)
|
|
61
|
+
*/
|
|
62
|
+
playAllRemaining(): Promise<void>;
|
|
63
|
+
/**
|
|
64
|
+
* 重置播放
|
|
65
|
+
*/
|
|
66
|
+
reset(): void;
|
|
67
|
+
/**
|
|
68
|
+
* 设置时间线
|
|
69
|
+
*/
|
|
70
|
+
setTimelineTo(time: number): void;
|
|
71
|
+
/**
|
|
72
|
+
* 启用插件
|
|
73
|
+
*/
|
|
74
|
+
enable(): void;
|
|
75
|
+
/**
|
|
76
|
+
* 禁用插件
|
|
77
|
+
*/
|
|
78
|
+
disable(): void;
|
|
79
|
+
/**
|
|
80
|
+
* 重置并清理(完全重置插件状态,包括对 five 的操作和 DigitalHuman)
|
|
81
|
+
*/
|
|
82
|
+
private resetAndCleanup;
|
|
83
|
+
/**
|
|
84
|
+
* 销毁插件(彻底释放资源)
|
|
85
|
+
*/
|
|
86
|
+
dispose(): void;
|
|
87
|
+
/**
|
|
88
|
+
* 获取当前状态
|
|
89
|
+
*/
|
|
90
|
+
getState(): {
|
|
91
|
+
enabled: boolean;
|
|
92
|
+
playing: boolean;
|
|
93
|
+
currentChapter: DigitalChapter;
|
|
94
|
+
currentScript: DigitalScript;
|
|
95
|
+
continuousPlaying: boolean;
|
|
96
|
+
playMode: "single" | "continuous";
|
|
97
|
+
};
|
|
98
|
+
/**
|
|
99
|
+
* 获取可用章节列表
|
|
100
|
+
*/
|
|
101
|
+
getChapters(): DigitalChapter[];
|
|
102
|
+
/**
|
|
103
|
+
* 获取数字人实例
|
|
104
|
+
*/
|
|
105
|
+
getDigitalHuman(modelUrl: string, id?: string): DigitalHuman | null;
|
|
106
|
+
/**
|
|
107
|
+
* 获取当前播放进度信息
|
|
108
|
+
*/
|
|
109
|
+
getProgress(): {
|
|
110
|
+
currentTime: number;
|
|
111
|
+
totalTime: number;
|
|
112
|
+
} | null;
|
|
113
|
+
/**
|
|
114
|
+
* 对原始 res 数据进行 transformPosition 处理和章节分组,返回完整结构
|
|
115
|
+
* @param res 原始数据
|
|
116
|
+
* @param work 可选,存在时才做transformPosition
|
|
117
|
+
* @param totalDelay 可选,默认0
|
|
118
|
+
*/
|
|
119
|
+
transformScriptData(res: any, work?: any, totalDelay?: number): any;
|
|
120
|
+
/**
|
|
121
|
+
* 清理进度缓存
|
|
122
|
+
*/
|
|
123
|
+
private clearProgressCache;
|
|
124
|
+
/**
|
|
125
|
+
* 计算单个章节的时长
|
|
126
|
+
*/
|
|
127
|
+
private calculateChapterDuration;
|
|
128
|
+
/**
|
|
129
|
+
* 获取所有章节的总时长(毫秒)
|
|
130
|
+
*/
|
|
131
|
+
getTotalDuration(): number;
|
|
132
|
+
/**
|
|
133
|
+
* 获取章节时间映射信息
|
|
134
|
+
*/
|
|
135
|
+
getChapterTimeMap(): ChapterTimeInfo[];
|
|
136
|
+
/**
|
|
137
|
+
* 获取当前全局播放时间(毫秒)
|
|
138
|
+
*
|
|
139
|
+
* @deprecated 建议使用 getGlobalProgress().currentTime 获取更完整的信息
|
|
140
|
+
* @returns 当前全局时间(毫秒)
|
|
141
|
+
*/
|
|
142
|
+
getCurrentGlobalTime(): number;
|
|
143
|
+
/**
|
|
144
|
+
* 获取全局进度信息
|
|
145
|
+
*/
|
|
146
|
+
getGlobalProgress(): GlobalProgress;
|
|
147
|
+
/**
|
|
148
|
+
* 根据全局时间获取对应的章节信息
|
|
149
|
+
*/
|
|
150
|
+
getChapterByGlobalTime(globalTime: number): ChapterLocation | null;
|
|
151
|
+
/**
|
|
152
|
+
* 跳转到指定的全局时间
|
|
153
|
+
*/
|
|
154
|
+
seekToGlobalTime(globalTime: number, autoPlay?: boolean): Promise<void>;
|
|
155
|
+
/**
|
|
156
|
+
* 初始化章节用于跳转(不自动播放)
|
|
157
|
+
*/
|
|
158
|
+
private initializeChapterForSeek;
|
|
159
|
+
/**
|
|
160
|
+
* 跳转到指定百分比位置
|
|
161
|
+
*/
|
|
162
|
+
seekToPercentage(percentage: number, autoPlay?: boolean): Promise<void>;
|
|
163
|
+
/**
|
|
164
|
+
* 跳转到指定章节的指定时间
|
|
165
|
+
*/
|
|
166
|
+
seekToChapter(chapterIndex: number, chapterTime?: number, autoPlay?: boolean): Promise<void>;
|
|
167
|
+
/**
|
|
168
|
+
* 从指定全局时间开始播放所有剩余内容
|
|
169
|
+
*/
|
|
170
|
+
playFromGlobalTime(globalTime: number): Promise<void>;
|
|
171
|
+
/**
|
|
172
|
+
* 注册进度变化监听器
|
|
173
|
+
*/
|
|
174
|
+
onProgressChanged(callback: ProgressListener): () => void;
|
|
175
|
+
/**
|
|
176
|
+
* 移除进度监听器
|
|
177
|
+
*/
|
|
178
|
+
offProgressChanged(callback: ProgressListener): void;
|
|
179
|
+
/**
|
|
180
|
+
* 设置进度回调频率(毫秒)
|
|
181
|
+
*/
|
|
182
|
+
setProgressUpdateInterval(interval: number): void;
|
|
183
|
+
/**
|
|
184
|
+
* 启动进度更新定时器
|
|
185
|
+
*/
|
|
186
|
+
private startProgressUpdateTimer;
|
|
187
|
+
/**
|
|
188
|
+
* 停止进度更新定时器
|
|
189
|
+
*/
|
|
190
|
+
private stopProgressUpdateTimer;
|
|
191
|
+
/**
|
|
192
|
+
* 播放完整的所有章节(从头开始)
|
|
193
|
+
*/
|
|
194
|
+
playAllChapters(): Promise<void>;
|
|
195
|
+
/**
|
|
196
|
+
* 获取播放范围信息
|
|
197
|
+
*/
|
|
198
|
+
getPlaybackRange(): {
|
|
199
|
+
startTime: number;
|
|
200
|
+
endTime: number;
|
|
201
|
+
estimatedDuration: number;
|
|
202
|
+
};
|
|
203
|
+
/**
|
|
204
|
+
* 停止所有 player 的播放状态
|
|
205
|
+
*/
|
|
206
|
+
private stopAllPlayers;
|
|
207
|
+
private emit;
|
|
208
|
+
/**
|
|
209
|
+
* 注册监听当前正在播放的所有player变化
|
|
210
|
+
*/
|
|
211
|
+
onPlayingPlayersChanged(callback: (players: any[]) => void): () => void;
|
|
212
|
+
/**
|
|
213
|
+
* 获取当前正在播放的所有player(数组)
|
|
214
|
+
*/
|
|
215
|
+
private getCurrentPlayingPlayers;
|
|
216
|
+
/**
|
|
217
|
+
* 从指定章节获取正在播放的players
|
|
218
|
+
*/
|
|
219
|
+
private getPlayingPlayersFromChapter;
|
|
220
|
+
/**
|
|
221
|
+
* 触发 playing-players-changed 事件
|
|
222
|
+
*/
|
|
223
|
+
private emitPlayingPlayersChanged;
|
|
224
|
+
}
|
|
@@ -0,0 +1,54 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import type { GLTFObject } from '@realsee/five/gltf-loader';
|
|
3
|
+
import { DigitalStateMachine } from './DigitalStateMachine';
|
|
4
|
+
import type { DigitalModelKeyframe, DigitalModelPlayerItem, DigitalModelPlayerEffect } from './DigitalStateMachine';
|
|
5
|
+
export declare class DigitalHuman {
|
|
6
|
+
model: GLTFObject;
|
|
7
|
+
keyframesManager: DigitalStateMachine;
|
|
8
|
+
keyframes: DigitalModelKeyframe[];
|
|
9
|
+
items: DigitalModelPlayerItem[];
|
|
10
|
+
effects: DigitalModelPlayerEffect[];
|
|
11
|
+
digitalPlayground: any;
|
|
12
|
+
state: {
|
|
13
|
+
currentTime: number;
|
|
14
|
+
currentAnimation: THREE.AnimationClip | null;
|
|
15
|
+
playing: boolean;
|
|
16
|
+
};
|
|
17
|
+
animationFrameId: number | null;
|
|
18
|
+
curveLine: THREE.Line;
|
|
19
|
+
effectsGroup: THREE.Group;
|
|
20
|
+
effectObjects: Map<string, THREE.Mesh>;
|
|
21
|
+
container: THREE.Group;
|
|
22
|
+
private mixer;
|
|
23
|
+
private action;
|
|
24
|
+
private itemMatrixMap;
|
|
25
|
+
private trace;
|
|
26
|
+
private processedNeedRenderKeyframeIndices;
|
|
27
|
+
private attachedItems;
|
|
28
|
+
private rightHandBone;
|
|
29
|
+
constructor(model: GLTFObject, digitalPlayground: any);
|
|
30
|
+
playAnimation({ animation, repeat, switchDuration }: {
|
|
31
|
+
animation: THREE.AnimationClip;
|
|
32
|
+
repeat: boolean;
|
|
33
|
+
switchDuration: number;
|
|
34
|
+
}): void;
|
|
35
|
+
pauseAnimation(): void;
|
|
36
|
+
stopAnimation(): void;
|
|
37
|
+
continueAnimation(): void;
|
|
38
|
+
attachItem(): void;
|
|
39
|
+
init(): void;
|
|
40
|
+
reset(): void;
|
|
41
|
+
play(option?: {
|
|
42
|
+
keyframes: DigitalModelKeyframe[];
|
|
43
|
+
items: DigitalModelPlayerItem[];
|
|
44
|
+
effects: DigitalModelPlayerEffect[];
|
|
45
|
+
}): Promise<boolean>;
|
|
46
|
+
traceUpDate(): void;
|
|
47
|
+
clearTrace(): void;
|
|
48
|
+
clearProcessedNeedRenderKeyframeIndices(): void;
|
|
49
|
+
private hasProcessedNeedRenderForTimestamp;
|
|
50
|
+
private markNeedRenderProcessedForTimestamp;
|
|
51
|
+
private getRightHandBone;
|
|
52
|
+
private updateKeyframeItems;
|
|
53
|
+
private detachAllKeyframeItems;
|
|
54
|
+
}
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import { GLTFLoader } from '@realsee/five/gltf-loader';
|
|
3
|
+
import { DigitalHuman } from './DigitalHuman';
|
|
4
|
+
import type { DigitalScript, DigitalChapter } from './DigitalStateMachine';
|
|
5
|
+
export declare class DigitalPlayground {
|
|
6
|
+
gltfLoader: GLTFLoader;
|
|
7
|
+
script: DigitalScript | null;
|
|
8
|
+
currentChapter: DigitalChapter | null;
|
|
9
|
+
private digitalHumanMap;
|
|
10
|
+
private digitalItemMap;
|
|
11
|
+
private skeletalAnimationMap;
|
|
12
|
+
private debugMode;
|
|
13
|
+
constructor(debugMode?: boolean);
|
|
14
|
+
setScript(script: DigitalScript): void;
|
|
15
|
+
loadModel(url: string, id?: string): Promise<DigitalHuman>;
|
|
16
|
+
loadModels(urls: string[], ids?: string[]): Promise<DigitalHuman[]>;
|
|
17
|
+
loadAnimation(url: string): Promise<THREE.AnimationClip>;
|
|
18
|
+
loadAnimations(urls: string[]): Promise<THREE.AnimationClip[]>;
|
|
19
|
+
getAnimation(url: string): THREE.AnimationClip | null;
|
|
20
|
+
getDigitalHuman(url: string, id?: string): DigitalHuman | null;
|
|
21
|
+
playByChapter(chapter: DigitalChapter): Promise<any[]>;
|
|
22
|
+
loadItems(urls: string[], offsets?: Map<string, {
|
|
23
|
+
position: number[];
|
|
24
|
+
rotation: number[];
|
|
25
|
+
}>): Promise<any[]>;
|
|
26
|
+
loadItem(url: string, offset?: {
|
|
27
|
+
position: number[];
|
|
28
|
+
rotation: number[];
|
|
29
|
+
}): Promise<any>;
|
|
30
|
+
getDigitalItem(url: string): any | null;
|
|
31
|
+
pause(): void;
|
|
32
|
+
continue(): void;
|
|
33
|
+
reset(): void;
|
|
34
|
+
setTimelineTo(time: number): void;
|
|
35
|
+
/**
|
|
36
|
+
* 销毁 playground
|
|
37
|
+
*/
|
|
38
|
+
dispose(): void;
|
|
39
|
+
private loadGLTF;
|
|
40
|
+
}
|
|
@@ -0,0 +1,150 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
interface DigitalScript {
|
|
3
|
+
name: string;
|
|
4
|
+
uuid: string;
|
|
5
|
+
assets: {
|
|
6
|
+
models: string[];
|
|
7
|
+
animations: string[];
|
|
8
|
+
};
|
|
9
|
+
chapters: DigitalChapter[];
|
|
10
|
+
}
|
|
11
|
+
interface DigitalDataPlayer {
|
|
12
|
+
name: string;
|
|
13
|
+
type: 'data';
|
|
14
|
+
data: DigitalModelKeyframe[];
|
|
15
|
+
}
|
|
16
|
+
interface DigitalModelPlayerItem {
|
|
17
|
+
name: string;
|
|
18
|
+
initialMatrix: number[];
|
|
19
|
+
attachedBone: string;
|
|
20
|
+
model: string;
|
|
21
|
+
keyframes: DigitalItemKeyframe[];
|
|
22
|
+
}
|
|
23
|
+
interface DigitalEffectKeyframe {
|
|
24
|
+
timeStamp: number;
|
|
25
|
+
image: string;
|
|
26
|
+
visible: boolean;
|
|
27
|
+
}
|
|
28
|
+
interface DigitalModelPlayerEffect {
|
|
29
|
+
type: 'frameSequence';
|
|
30
|
+
position: number[];
|
|
31
|
+
keyframes: DigitalEffectKeyframe[];
|
|
32
|
+
}
|
|
33
|
+
interface DigitalModelPlayer {
|
|
34
|
+
id: string;
|
|
35
|
+
name: string;
|
|
36
|
+
type: 'model';
|
|
37
|
+
model: string;
|
|
38
|
+
keyframes: DigitalModelKeyframe[];
|
|
39
|
+
items: DigitalModelPlayerItem[];
|
|
40
|
+
effects: DigitalModelPlayerEffect[];
|
|
41
|
+
}
|
|
42
|
+
interface DigitalSubTitlePlayer {
|
|
43
|
+
name: string;
|
|
44
|
+
type: 'subTitle';
|
|
45
|
+
keyframes: DigitalSubTitleKeyframe[];
|
|
46
|
+
}
|
|
47
|
+
interface DigitalCameraPlayer {
|
|
48
|
+
name: string;
|
|
49
|
+
type: 'camera';
|
|
50
|
+
keyframes: DigitalCameraKeyframe[];
|
|
51
|
+
}
|
|
52
|
+
interface DigitalChapter {
|
|
53
|
+
name: string;
|
|
54
|
+
players: Array<DigitalModelPlayer | DigitalSubTitlePlayer | DigitalCameraPlayer>;
|
|
55
|
+
}
|
|
56
|
+
interface DigitalItemKeyframe {
|
|
57
|
+
timeStamp: number;
|
|
58
|
+
visible: boolean;
|
|
59
|
+
}
|
|
60
|
+
interface DigitalCameraKeyframe {
|
|
61
|
+
timeStamp: number;
|
|
62
|
+
matrix: number[];
|
|
63
|
+
fov: number;
|
|
64
|
+
}
|
|
65
|
+
interface DigitalSubTitleKeyframe {
|
|
66
|
+
visible: boolean;
|
|
67
|
+
timeStamp: number;
|
|
68
|
+
title: string;
|
|
69
|
+
content: string;
|
|
70
|
+
audio?: string;
|
|
71
|
+
image?: string;
|
|
72
|
+
}
|
|
73
|
+
interface DigitalModelKeyframe {
|
|
74
|
+
visible: boolean;
|
|
75
|
+
timeStamp: number;
|
|
76
|
+
animation?: {
|
|
77
|
+
url: string;
|
|
78
|
+
repeat: boolean;
|
|
79
|
+
isOver?: boolean;
|
|
80
|
+
switchDuration?: number;
|
|
81
|
+
duration?: number;
|
|
82
|
+
item?: {
|
|
83
|
+
url: string;
|
|
84
|
+
position?: number[];
|
|
85
|
+
name?: string;
|
|
86
|
+
rotation?: number[];
|
|
87
|
+
};
|
|
88
|
+
};
|
|
89
|
+
position: number[];
|
|
90
|
+
interpolationType?: 'linear' | 'parabola';
|
|
91
|
+
quaternion: number[];
|
|
92
|
+
scale: number[];
|
|
93
|
+
adddon?: {
|
|
94
|
+
text?: string;
|
|
95
|
+
audio?: string;
|
|
96
|
+
};
|
|
97
|
+
}
|
|
98
|
+
interface DigitalDataKeyframe {
|
|
99
|
+
timeStamp: number;
|
|
100
|
+
data: any;
|
|
101
|
+
}
|
|
102
|
+
interface DigitalModelState {
|
|
103
|
+
translation: THREE.Vector3;
|
|
104
|
+
quaternion: THREE.Quaternion;
|
|
105
|
+
scale: THREE.Vector3;
|
|
106
|
+
animation?: DigitalModelKeyframe['animation'];
|
|
107
|
+
keyframeIndex: number;
|
|
108
|
+
visible: boolean;
|
|
109
|
+
isFinal: boolean;
|
|
110
|
+
}
|
|
111
|
+
interface DigitalSubTitleState {
|
|
112
|
+
title: string;
|
|
113
|
+
content: string;
|
|
114
|
+
audio?: string;
|
|
115
|
+
image?: string;
|
|
116
|
+
keyframeIndex: number;
|
|
117
|
+
}
|
|
118
|
+
interface DigitalCameraState {
|
|
119
|
+
matrix: number[];
|
|
120
|
+
fov: number;
|
|
121
|
+
transitionType: 'linear' | 'instant';
|
|
122
|
+
}
|
|
123
|
+
interface DigitalDataState {
|
|
124
|
+
currentFrameData: DigitalDataKeyframe['data'];
|
|
125
|
+
nextFrameData: DigitalDataKeyframe['data'] | null;
|
|
126
|
+
progress: number;
|
|
127
|
+
}
|
|
128
|
+
interface DigitalItemState {
|
|
129
|
+
timeStamp: number;
|
|
130
|
+
visible: boolean;
|
|
131
|
+
}
|
|
132
|
+
interface DigitalEffectState {
|
|
133
|
+
image: string;
|
|
134
|
+
visible: boolean;
|
|
135
|
+
}
|
|
136
|
+
type KeyframeType<T> = T extends 'model' ? DigitalModelKeyframe : T extends 'camera' ? DigitalCameraKeyframe : T extends 'subtitle' ? DigitalSubTitleKeyframe : T extends 'data' ? DigitalDataKeyframe : T extends 'item' ? DigitalItemKeyframe : T extends 'effect' ? DigitalEffectKeyframe : never;
|
|
137
|
+
type StateType<T> = T extends 'model' ? DigitalModelState : T extends 'camera' ? DigitalCameraState : T extends 'subtitle' ? DigitalSubTitleState : T extends 'data' ? DigitalDataState : T extends 'item' ? DigitalItemState : T extends 'effect' ? DigitalEffectState : never;
|
|
138
|
+
declare class DigitalStateMachine {
|
|
139
|
+
constructor();
|
|
140
|
+
getStateByTime<T extends 'model' | 'camera' | 'subtitle' | 'data' | 'item' | 'effect'>(time: number, keyframes: Array<KeyframeType<T>>, type: T): StateType<T>;
|
|
141
|
+
private getDataStateByTime;
|
|
142
|
+
private getEffectStateByTime;
|
|
143
|
+
private getItemStateByTime;
|
|
144
|
+
private getCameraStateByTime;
|
|
145
|
+
private getSubtitleStateByTime;
|
|
146
|
+
private getModelStateByTime;
|
|
147
|
+
private getKeyframeIndexByTime;
|
|
148
|
+
}
|
|
149
|
+
export { DigitalStateMachine };
|
|
150
|
+
export type { DigitalModelPlayerEffect, DigitalEffectKeyframe, DigitalDataState, DigitalModelPlayerItem, DigitalDataPlayer, DigitalCameraKeyframe, DigitalChapter, DigitalModelKeyframe, DigitalScript, DigitalSubTitleKeyframe, DigitalModelPlayer, DigitalSubTitlePlayer, DigitalCameraPlayer, DigitalModelState, DigitalSubTitleState, DigitalCameraState, KeyframeType, StateType, };
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import DigitalPerformancePluginController from './controller';
|
|
3
|
+
export { DigitalHuman } from './core/DigitalHuman';
|
|
4
|
+
export { DigitalPlayground } from './core/DigitalPlayground';
|
|
5
|
+
export { DigitalStateMachine } from './core/DigitalStateMachine';
|
|
6
|
+
export * from './controller';
|
|
7
|
+
export * from './typings';
|
|
8
|
+
export type DigitalPerformancePluginExportInterface = InstanceType<typeof DigitalPerformancePluginController>;
|
|
9
|
+
export type DigitalPerformancePluginParamsInterface = ConstructorParameters<typeof DigitalPerformancePluginController>[1];
|
|
10
|
+
export declare const DigitalPerformancePlugin: (five: Five, params?: DigitalPerformancePluginParamsInterface) => DigitalPerformancePluginController;
|
|
11
|
+
export default DigitalPerformancePlugin;
|
|
@@ -0,0 +1,76 @@
|
|
|
1
|
+
interface MockAction {
|
|
2
|
+
repeat: boolean;
|
|
3
|
+
name: string;
|
|
4
|
+
animationUrl: string;
|
|
5
|
+
duration: number;
|
|
6
|
+
rotation?: any;
|
|
7
|
+
subAction?: {
|
|
8
|
+
url: string;
|
|
9
|
+
position?: number[];
|
|
10
|
+
rotation?: number[];
|
|
11
|
+
};
|
|
12
|
+
}
|
|
13
|
+
interface MockPoint {
|
|
14
|
+
point: {
|
|
15
|
+
x: number;
|
|
16
|
+
y: number;
|
|
17
|
+
z: number;
|
|
18
|
+
};
|
|
19
|
+
curveIndex?: number;
|
|
20
|
+
actions: MockAction[];
|
|
21
|
+
}
|
|
22
|
+
interface MockTrack {
|
|
23
|
+
easing: string;
|
|
24
|
+
duration: number;
|
|
25
|
+
path: {
|
|
26
|
+
x: number;
|
|
27
|
+
y: number;
|
|
28
|
+
z: number;
|
|
29
|
+
}[];
|
|
30
|
+
points: MockPoint[];
|
|
31
|
+
}
|
|
32
|
+
interface MockFiveState {
|
|
33
|
+
longitude: number;
|
|
34
|
+
latitude: number;
|
|
35
|
+
fov: number;
|
|
36
|
+
offset: {
|
|
37
|
+
x: number;
|
|
38
|
+
y: number;
|
|
39
|
+
z: number;
|
|
40
|
+
};
|
|
41
|
+
distance: number;
|
|
42
|
+
mode: string;
|
|
43
|
+
workCode: string;
|
|
44
|
+
panoIndex: number;
|
|
45
|
+
}
|
|
46
|
+
interface Mock {
|
|
47
|
+
id: number;
|
|
48
|
+
matrix: number[];
|
|
49
|
+
modelUrl: string;
|
|
50
|
+
name: string;
|
|
51
|
+
animationUrl: string;
|
|
52
|
+
repeat: string;
|
|
53
|
+
track: MockTrack;
|
|
54
|
+
cover_img?: string;
|
|
55
|
+
fiveState?: MockFiveState;
|
|
56
|
+
}
|
|
57
|
+
export declare function convertMockToPlayer(mockData: Mock, totalDelay?: number, rotationWalkDuration?: number): {
|
|
58
|
+
name: string;
|
|
59
|
+
type: "model";
|
|
60
|
+
model: string;
|
|
61
|
+
keyframes: {
|
|
62
|
+
visible: boolean;
|
|
63
|
+
timeStamp: number;
|
|
64
|
+
position: number[];
|
|
65
|
+
quaternion: number[];
|
|
66
|
+
scale: number[];
|
|
67
|
+
}[];
|
|
68
|
+
id?: undefined;
|
|
69
|
+
} | {
|
|
70
|
+
id: number;
|
|
71
|
+
name: string;
|
|
72
|
+
type: "model";
|
|
73
|
+
model: string;
|
|
74
|
+
keyframes: any[];
|
|
75
|
+
};
|
|
76
|
+
export {};
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
import type { DigitalChapter } from '../core/DigitalStateMachine';
|
|
3
|
+
export type { DigitalScript, DigitalChapter, DigitalModelPlayer, DigitalSubTitlePlayer, DigitalCameraPlayer, DigitalModelKeyframe, DigitalSubTitleKeyframe, DigitalCameraKeyframe, DigitalModelState, DigitalSubTitleState, DigitalCameraState, DigitalModelPlayerItem, DigitalModelPlayerEffect, DigitalEffectKeyframe, DigitalDataState, DigitalDataPlayer, KeyframeType, StateType, } from '../core/DigitalStateMachine';
|
|
4
|
+
export interface DigitalPerformancePluginConfig {
|
|
5
|
+
autoPlay?: boolean;
|
|
6
|
+
loop?: boolean;
|
|
7
|
+
debug?: boolean;
|
|
8
|
+
}
|
|
9
|
+
export interface GlobalProgress {
|
|
10
|
+
currentTime: number;
|
|
11
|
+
totalTime: number;
|
|
12
|
+
percentage: number;
|
|
13
|
+
currentChapterIndex: number;
|
|
14
|
+
currentChapterTime: number;
|
|
15
|
+
currentChapter?: DigitalChapter;
|
|
16
|
+
}
|
|
17
|
+
export interface ChapterTimeInfo {
|
|
18
|
+
chapterIndex: number;
|
|
19
|
+
chapterName: string;
|
|
20
|
+
startTime: number;
|
|
21
|
+
duration: number;
|
|
22
|
+
endTime: number;
|
|
23
|
+
chapter: DigitalChapter;
|
|
24
|
+
}
|
|
25
|
+
export interface ChapterLocation {
|
|
26
|
+
chapterIndex: number;
|
|
27
|
+
chapterTime: number;
|
|
28
|
+
chapter: DigitalChapter;
|
|
29
|
+
}
|
|
30
|
+
export type ProgressListener = (progress: GlobalProgress) => void;
|
|
31
|
+
export interface ProgressBarEvents {
|
|
32
|
+
'progress-changed': ProgressListener;
|
|
33
|
+
'chapter-changed': (chapterIndex: number, chapter: DigitalChapter) => void;
|
|
34
|
+
'seek-started': (targetTime: number) => void;
|
|
35
|
+
'seek-completed': (actualTime: number) => void;
|
|
36
|
+
'playback-started': (startTime: number) => void;
|
|
37
|
+
'playback-completed': () => void;
|
|
38
|
+
}
|
|
39
|
+
export interface ExtendedAnimationConfig {
|
|
40
|
+
url: string;
|
|
41
|
+
repeat: boolean;
|
|
42
|
+
switchDuration?: number;
|
|
43
|
+
isOver?: boolean;
|
|
44
|
+
}
|
|
45
|
+
export interface DigitalItemKeyframe {
|
|
46
|
+
visible: boolean;
|
|
47
|
+
timeStamp: number;
|
|
48
|
+
position?: number[];
|
|
49
|
+
quaternion?: number[];
|
|
50
|
+
scale?: number[];
|
|
51
|
+
}
|
|
52
|
+
export interface DigitalItemState {
|
|
53
|
+
visible: boolean;
|
|
54
|
+
translation?: THREE.Vector3;
|
|
55
|
+
quaternion?: THREE.Quaternion;
|
|
56
|
+
scale?: THREE.Vector3;
|
|
57
|
+
keyframeIndex: number;
|
|
58
|
+
isFinal: boolean;
|
|
59
|
+
}
|
|
60
|
+
export interface DigitalEffectState {
|
|
61
|
+
visible: boolean;
|
|
62
|
+
image?: string;
|
|
63
|
+
intensity?: number;
|
|
64
|
+
color?: THREE.Color;
|
|
65
|
+
scale?: THREE.Vector3;
|
|
66
|
+
keyframeIndex: number;
|
|
67
|
+
isFinal: boolean;
|
|
68
|
+
}
|
|
69
|
+
export interface TracePoint {
|
|
70
|
+
position: THREE.Vector3;
|
|
71
|
+
timestamp: number;
|
|
72
|
+
}
|
|
73
|
+
export interface TraceManager {
|
|
74
|
+
tracePoints: THREE.Vector3[];
|
|
75
|
+
maxPoints: number;
|
|
76
|
+
addPoint(point: THREE.Vector3): void;
|
|
77
|
+
clear(): void;
|
|
78
|
+
getPoints(): THREE.Vector3[];
|
|
79
|
+
}
|
|
@@ -6,20 +6,13 @@ import type { Config as BaseConfig } from '../base/BasePlugin';
|
|
|
6
6
|
import { GuideLineItem } from './GuideLineItem';
|
|
7
7
|
import CruisePluginController from '../CruisePlugin/Work';
|
|
8
8
|
export declare const pluginFlag: (name: string) => string;
|
|
9
|
-
type Config = BaseConfig
|
|
10
|
-
/**
|
|
11
|
-
* @description 格式化距离函数,用于将米转换为显示文本(包含单位)
|
|
12
|
-
* @param distanceInMeter 距离(单位:米)
|
|
13
|
-
* @returns 格式化后的距离字符串,例如 "10m" 或 "32'10""
|
|
14
|
-
*/
|
|
15
|
-
formatDistance?: (distanceInMeter: number) => string;
|
|
16
|
-
};
|
|
9
|
+
type Config = BaseConfig;
|
|
17
10
|
export default class Controller extends BasePluginWithData.Controller<PluginState, EventMap, PluginServerData, PluginData> {
|
|
18
11
|
readonly name = "GuideLinePlugin";
|
|
19
12
|
readonly cruisePlugin: CruisePluginController;
|
|
20
13
|
/** GuideLineItem 索引 */
|
|
21
14
|
readonly itemMap: Map<string | number, GuideLineItem>;
|
|
22
|
-
get config():
|
|
15
|
+
get config(): BaseConfig;
|
|
23
16
|
state: {
|
|
24
17
|
visible: boolean;
|
|
25
18
|
enabled: boolean;
|
|
@@ -61,31 +54,6 @@ export default class Controller extends BasePluginWithData.Controller<PluginStat
|
|
|
61
54
|
getGuideLineItemByID(id: string | number): GuideLineItem;
|
|
62
55
|
/** 移除一个 GuideLineItem */
|
|
63
56
|
removeGuideLineItem(item: GuideLineItem): void;
|
|
64
|
-
/**
|
|
65
|
-
* 动态更新距离格式化函数,立即刷新所有路线标签的距离显示。
|
|
66
|
-
* 不传参时恢复为默认格式(i18n('全程') + 距离 + i18n('米'))。
|
|
67
|
-
* @param fn 格式化函数,输入米数,返回带单位的完整字符串
|
|
68
|
-
* @example
|
|
69
|
-
* // 室内英制:英尺 + 英寸(如 "5'10"")
|
|
70
|
-
* plugin.setDistanceFormatter((m) => {
|
|
71
|
-
* const totalInches = Math.round(m * 39.3701)
|
|
72
|
-
* const feet = Math.floor(totalInches / 12)
|
|
73
|
-
* const inches = totalInches % 12
|
|
74
|
-
* return `${feet}'${inches}"`
|
|
75
|
-
* })
|
|
76
|
-
* // 室外英制:英里(如 "1.24 mi")
|
|
77
|
-
* plugin.setDistanceFormatter((m) => `${(m * 0.000621371).toFixed(2)} mi`)
|
|
78
|
-
* // 自动切换:近距离用英尺,远距离用英里
|
|
79
|
-
* plugin.setDistanceFormatter((m) => {
|
|
80
|
-
* if (m < 300) return `${Math.round(m * 3.28084)} ft`
|
|
81
|
-
* return `${(m * 0.000621371).toFixed(2)} mi`
|
|
82
|
-
* })
|
|
83
|
-
* // 恢复默认(i18n '米')
|
|
84
|
-
* plugin.setDistanceFormatter()
|
|
85
|
-
*/
|
|
86
|
-
setDistanceFormatter(fn?: (distanceInMeter: number) => string): void;
|
|
87
|
-
/** 更新所有 tag 的距离显示(当 formatDistance 函数改变时调用) */
|
|
88
|
-
private updateTagDistances;
|
|
89
57
|
/** 全量更新 tag */
|
|
90
58
|
updateTagsEnable(): void;
|
|
91
59
|
/** 清空所有 GuideLineItem */
|