@realsee/dnalogel 3.4.0 → 3.5.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CruisePlugin/CruiseController.d.ts +147 -0
- package/dist/CruisePlugin/Move.d.ts +29 -0
- package/dist/CruisePlugin/{Controller.d.ts → Work.d.ts} +1 -8
- package/dist/CruisePlugin/index.d.ts +4 -3
- package/dist/CruisePlugin/typing.d.ts +2 -2
- package/dist/CruisePlugin/utils/getFiveStateOnCurve.d.ts +11 -0
- package/dist/GuideLinePlugin/Controller.d.ts +1 -6
- package/dist/index.cjs.js +54 -54
- package/dist/index.js +3220 -2998
- package/dist/index.umd.js +47 -47
- package/dist/shared-utils/five/fiveLoaded.d.ts +2 -0
- package/docs/.nojekyll +1 -0
- package/docs/assets/highlight.css +120 -0
- package/docs/assets/main.js +58 -0
- package/docs/assets/search.js +1 -0
- package/docs/assets/style.css +1367 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +727 -0
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +680 -0
- package/docs/classes/CSS3DRender.html +775 -0
- package/docs/classes/GuideLineItem.GuideLineItem.html +478 -0
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +858 -0
- package/docs/classes/Magnifier.html +482 -0
- package/docs/classes/ModelRoomLabelController.html +400 -0
- package/docs/classes/MoveController.html +641 -0
- package/docs/classes/Object3DHelperController.html +642 -0
- package/docs/classes/PaintBrush.html +504 -0
- package/docs/classes/PanoMeasurePluginLine.html +524 -0
- package/docs/classes/PanoMeasurePluginModel.html +573 -0
- package/docs/classes/PanoMeasurePluginPoint.html +364 -0
- package/docs/classes/PanoMeasurePluginPolyline.html +569 -0
- package/docs/classes/PanoTagPluginController.html +1079 -0
- package/docs/classes/Util.BetterTween.html +418 -0
- package/docs/classes/Util.Interval.html +434 -0
- package/docs/classes/Util.LineSegments.html +386 -0
- package/docs/classes/Util.Magnifier.html +505 -0
- package/docs/classes/Util.Object3D.html +408 -0
- package/docs/classes/Util.PointDomHelper.html +409 -0
- package/docs/classes/Util.PointHelper.html +400 -0
- package/docs/classes/Util.PointSelectorHelper.html +456 -0
- package/docs/classes/Util.Rectangle.html +457 -0
- package/docs/classes/WalkController.html +667 -0
- package/docs/enums/CameraMovementEffect.html +312 -0
- package/docs/enums/ContentType.html +458 -0
- package/docs/enums/DIRECTION.html +322 -0
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +322 -0
- package/docs/enums/DimensionType.html +312 -0
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +315 -0
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +322 -0
- package/docs/enums/PaintBrushTypeEnum.html +315 -0
- package/docs/enums/PointType.html +312 -0
- package/docs/enums/Rotation.html +319 -0
- package/docs/functions/AreaMakerPlugin.html +292 -0
- package/docs/functions/CSS3DRenderPlugin.html +290 -0
- package/docs/functions/CameraMovementPlugin.html +295 -0
- package/docs/functions/CruisePlugin.html +292 -0
- package/docs/functions/CurrentPanoImagePlugin.html +292 -0
- package/docs/functions/GuideLinePlugin.html +292 -0
- package/docs/functions/ItemLabelPlugin.html +292 -0
- package/docs/functions/MapviewFloorplanPlugin.html +292 -0
- package/docs/functions/ModelChassisCompassPlugin.html +295 -0
- package/docs/functions/ModelEntryDoorGuidePlugin.html +295 -0
- package/docs/functions/ModelFloorplanPlugin.html +292 -0
- package/docs/functions/ModelItemLabelPlugin.html +292 -0
- package/docs/functions/ModelRoomLabelPlugin.html +290 -0
- package/docs/functions/ModelTVVideoPlugin.html +292 -0
- package/docs/functions/ModelViewPlugin.html +295 -0
- package/docs/functions/Object3DHelperPlugin.html +290 -0
- package/docs/functions/PanoCompassPlugin.html +292 -0
- package/docs/functions/PanoCursorRaycasterPlugin.html +296 -0
- package/docs/functions/PanoDoorLabelPlugin.html +292 -0
- package/docs/functions/PanoFloorplanRadarPlugin.html +292 -0
- package/docs/functions/PanoMeasurePlugin.html +292 -0
- package/docs/functions/PanoRulerPlugin.html +295 -0
- package/docs/functions/PanoRulerProPlugin.html +295 -0
- package/docs/functions/PanoSpatialTagPlugin.html +295 -0
- package/docs/functions/PanoTagPlugin.html +297 -0
- package/docs/functions/PanoVideoPlugin.html +301 -0
- package/docs/functions/PipelinePlugin.html +290 -0
- package/docs/functions/TopviewFloorplanPlugin.html +292 -0
- package/docs/functions/Util.absoluteUrl.html +328 -0
- package/docs/functions/Util.checkFiveModelLoaded.html +331 -0
- package/docs/functions/Util.equal.html +340 -0
- package/docs/functions/Util.getCoordsFromClient.html +330 -0
- package/docs/functions/Util.getCoordsFromElement.html +330 -0
- package/docs/functions/Util.getFrameTime.html +322 -0
- package/docs/functions/Util.getIntersectFromRelativePosition.html +330 -0
- package/docs/functions/Util.getRaycasterFromFivePointer.html +330 -0
- package/docs/functions/Util.isAbsoluteURL.html +323 -0
- package/docs/functions/Util.isModelLike.html +323 -0
- package/docs/functions/Util.isNil.html +331 -0
- package/docs/functions/Util.isPanoramaLike.html +323 -0
- package/docs/functions/Util.nextFrame.html +336 -0
- package/docs/functions/Util.notNil.html +331 -0
- package/docs/functions/Util.requestAnimationFrameInterval.html +352 -0
- package/docs/functions/Util.tweenProgress.html +325 -0
- package/docs/functions/Util.uuid.html +321 -0
- package/docs/functions/pluginFlag.html +290 -0
- package/docs/index.html +356 -0
- package/docs/interfaces/AddTagConfig.html +305 -0
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +331 -0
- package/docs/interfaces/AreaMakerPluginType.Config.html +336 -0
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +622 -0
- package/docs/interfaces/AreaMakerPluginType.Params.html +335 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +385 -0
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +370 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +335 -0
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +328 -0
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +327 -0
- package/docs/interfaces/AreaMakerPluginType.State.html +356 -0
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +451 -0
- package/docs/interfaces/CSS3DRenderPluginState.html +327 -0
- package/docs/interfaces/CameraMovementPluginExportType.html +360 -0
- package/docs/interfaces/CruisePluginTypes.Config.html +361 -0
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +363 -0
- package/docs/interfaces/CruisePluginTypes.EventMap.html +698 -0
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +387 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +423 -0
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +413 -0
- package/docs/interfaces/CruisePluginTypes.PluginData.html +353 -0
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +321 -0
- package/docs/interfaces/CruisePluginTypes.PluginState.html +389 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +384 -0
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +523 -0
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +325 -0
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +317 -0
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +339 -0
- package/docs/interfaces/EventMap.html +544 -0
- package/docs/interfaces/FloorplanBounding.html +334 -0
- package/docs/interfaces/FloorplanData.html +337 -0
- package/docs/interfaces/FloorplanEntrance.html +362 -0
- package/docs/interfaces/FloorplanExtraObject.html +352 -0
- package/docs/interfaces/FloorplanExtraObject3D.html +341 -0
- package/docs/interfaces/FloorplanFloorData.html +330 -0
- package/docs/interfaces/FloorplanImagePosition.html +316 -0
- package/docs/interfaces/FloorplanObserver.html +334 -0
- package/docs/interfaces/FloorplanOutlineItem.html +330 -0
- package/docs/interfaces/FloorplanPosition.html +316 -0
- package/docs/interfaces/FloorplanRoomItem.html +381 -0
- package/docs/interfaces/FloorplanRoomLabelItem.html +322 -0
- package/docs/interfaces/FloorplanServerBounding.html +334 -0
- package/docs/interfaces/FloorplanServerComputedData.html +333 -0
- package/docs/interfaces/FloorplanServerData.html +316 -0
- package/docs/interfaces/FloorplanServerDoorItem.html +333 -0
- package/docs/interfaces/FloorplanServerDoorPosition.html +319 -0
- package/docs/interfaces/FloorplanServerEntrance.html +362 -0
- package/docs/interfaces/FloorplanServerFloorData.html +330 -0
- package/docs/interfaces/FloorplanServerImagePosition.html +316 -0
- package/docs/interfaces/FloorplanServerObserver.html +334 -0
- package/docs/interfaces/FloorplanServerOutlineItem.html +330 -0
- package/docs/interfaces/FloorplanServerPosition.html +316 -0
- package/docs/interfaces/FloorplanServerRoomItem.html +393 -0
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +322 -0
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +325 -0
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +364 -0
- package/docs/interfaces/GuideLinePluginType.EventMap.html +528 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +359 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +350 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +417 -0
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +339 -0
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +349 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +485 -0
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +346 -0
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +485 -0
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +311 -0
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +332 -0
- package/docs/interfaces/GuideLinePluginType.PluginState.html +357 -0
- package/docs/interfaces/GuideLinePluginType.Route.html +373 -0
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +355 -0
- package/docs/interfaces/HelperOffset.html +334 -0
- package/docs/interfaces/ImagePlaneGroup.html +308 -0
- package/docs/interfaces/ItemLabelPluginData.html +305 -0
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +390 -0
- package/docs/interfaces/ItemLabelPluginParametersType.html +326 -0
- package/docs/interfaces/MinMax.html +312 -0
- package/docs/interfaces/ModelChassisCompassPluginData.html +312 -0
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +348 -0
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +312 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +319 -0
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +356 -0
- package/docs/interfaces/ModelItemLabelPluginData.html +305 -0
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +390 -0
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +312 -0
- package/docs/interfaces/ModelRoomLabelPluginData.html +305 -0
- package/docs/interfaces/ModelTVVideoPluginData.html +326 -0
- package/docs/interfaces/ModelTVVideoPluginExportType.html +350 -0
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +305 -0
- package/docs/interfaces/ModelViewPluginExportType.html +418 -0
- package/docs/interfaces/Object3DHelperState.html +319 -0
- package/docs/interfaces/ObjectHelperControllers.html +326 -0
- package/docs/interfaces/PaintBrushAction.html +365 -0
- package/docs/interfaces/PaintBrushConfigs.html +363 -0
- package/docs/interfaces/PaintBrushState.html +347 -0
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +427 -0
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +284 -0
- package/docs/interfaces/PanoMeasureParameterType.html +451 -0
- package/docs/interfaces/PanoMeasurePluginLineJson.html +319 -0
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +316 -0
- package/docs/interfaces/PanoMeasurePluginPointJson.html +312 -0
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +322 -0
- package/docs/interfaces/PanoRulerPluginExportType.html +379 -0
- package/docs/interfaces/PanoRulerPluginOptions.html +328 -0
- package/docs/interfaces/PanoRulerPluginParameterType.html +319 -0
- package/docs/interfaces/PanoRulerProPluginExportType.html +355 -0
- package/docs/interfaces/PanoRulerProPluginOptions.html +325 -0
- package/docs/interfaces/PanoRulerProPluginParameterType.html +312 -0
- package/docs/interfaces/PanoRulerProPluginState.html +319 -0
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +298 -0
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +287 -0
- package/docs/interfaces/PanoSpatialTagPluginData.html +355 -0
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +337 -0
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +433 -0
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +333 -0
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +354 -0
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +340 -0
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +333 -0
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +325 -0
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +343 -0
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +316 -0
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +422 -0
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +316 -0
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +351 -0
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +370 -0
- package/docs/interfaces/Point.html +319 -0
- package/docs/interfaces/Room.html +326 -0
- package/docs/interfaces/RoomInfo.html +312 -0
- package/docs/interfaces/RoomLabel.html +388 -0
- package/docs/interfaces/RoomRules.html +287 -0
- package/docs/interfaces/Rooms.html +287 -0
- package/docs/interfaces/Scissor.html +346 -0
- package/docs/interfaces/State.html +333 -0
- package/docs/interfaces/TagCacheInterface.html +364 -0
- package/docs/interfaces/TagConfig.html +567 -0
- package/docs/interfaces/TagGLTFObjectGroup.html +308 -0
- package/docs/interfaces/TagIconUrl.html +365 -0
- package/docs/interfaces/TagObjectGroup.html +308 -0
- package/docs/interfaces/TagStyle.html +318 -0
- package/docs/interfaces/Tags.html +2822 -0
- package/docs/interfaces/TemporaryState.html +305 -0
- package/docs/interfaces/Util.MagnifierParameter.html +393 -0
- package/docs/interfaces/Util.MouseGroupParameter.html +352 -0
- package/docs/interfaces/Util.PointIntersection.html +367 -0
- package/docs/modules/AreaMakerPluginType.html +325 -0
- package/docs/modules/CruisePluginTypes.html +330 -0
- package/docs/modules/CurrentPanoImagePluginType.html +299 -0
- package/docs/modules/GuideLineItem.html +291 -0
- package/docs/modules/GuideLineModeItem.html +296 -0
- package/docs/modules/GuideLinePluginType.html +352 -0
- package/docs/modules/PanoVideoPluginType.html +303 -0
- package/docs/modules/Util.html +353 -0
- package/docs/modules.html +558 -0
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +333 -0
- package/docs/types/AreaMakerPluginType.PluginData.html +303 -0
- package/docs/types/AreaMakerPluginType.ServerData.html +303 -0
- package/docs/types/ArrayPosition.html +281 -0
- package/docs/types/AudioAppearance.html +281 -0
- package/docs/types/AudioTagTypeConfigKey.html +281 -0
- package/docs/types/CSS3DRenderExportType.html +281 -0
- package/docs/types/CSS3DRenderPluginExportType.html +281 -0
- package/docs/types/CSS3DRenderPluginParameterType.html +281 -0
- package/docs/types/ClassFunctionParameters.html +288 -0
- package/docs/types/Color.html +281 -0
- package/docs/types/ContentTypeConfigKey.html +281 -0
- package/docs/types/ContentTypeConfigKeySplit.html +281 -0
- package/docs/types/ContentTypeMap.html +281 -0
- package/docs/types/Create3DDomContainerReturnType.html +281 -0
- package/docs/types/Create3DElementReturnType.html +281 -0
- package/docs/types/CruisePluginExportType.html +281 -0
- package/docs/types/CruisePluginTypes.CruiseData.html +320 -0
- package/docs/types/CruisePluginTypes.MoveEffect.html +297 -0
- package/docs/types/CurrentPanoImagePluginExportType.html +281 -0
- package/docs/types/DeprecatedMediaPlaneProperty.html +293 -0
- package/docs/types/DeprecatedTagProperty.html +296 -0
- package/docs/types/Direction-1.html +281 -0
- package/docs/types/Direction4.html +281 -0
- package/docs/types/ElementRenderer.html +305 -0
- package/docs/types/FloorplanRuleLabels.html +284 -0
- package/docs/types/FloorplanServerRuleLabels.html +281 -0
- package/docs/types/GuideLinePluginExportType.html +281 -0
- package/docs/types/GuideLinePluginType.GuideLineItem.html +354 -0
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +375 -0
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +308 -0
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +311 -0
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +311 -0
- package/docs/types/GuideLinePluginType.PathItem.html +311 -0
- package/docs/types/GuideLinePluginType.PluginData.html +320 -0
- package/docs/types/HelperEventMap.html +519 -0
- package/docs/types/LoadTagConfig.html +281 -0
- package/docs/types/MapviewFloorplanPluginParameterType.html +281 -0
- package/docs/types/MapviewFloorplanPluginReturnType.html +281 -0
- package/docs/types/MediaData.html +302 -0
- package/docs/types/MediaStore.html +286 -0
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +288 -0
- package/docs/types/ModelFloorplanPluginParameterType.html +281 -0
- package/docs/types/ModelFloorplanPluginReturnType.html +281 -0
- package/docs/types/ModelId.html +281 -0
- package/docs/types/ModelRoomLabelPluginParameters.html +281 -0
- package/docs/types/ModelRoomLabelPluginReturnType.html +281 -0
- package/docs/types/MoveArgs.html +291 -0
- package/docs/types/MoveOpts.html +289 -0
- package/docs/types/Object3DHelperEventMap.html +374 -0
- package/docs/types/ObjectFit.html +281 -0
- package/docs/types/PaintBrushEventMap.html +312 -0
- package/docs/types/PanoCompassPluginData.html +281 -0
- package/docs/types/PanoCompassPluginExportType.html +281 -0
- package/docs/types/PanoCompassPluginParameterType.html +281 -0
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +281 -0
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +281 -0
- package/docs/types/PanoIndex.html +281 -0
- package/docs/types/PanoMeasurePluginEvent.html +281 -0
- package/docs/types/PanoMeasureReturnType.html +281 -0
- package/docs/types/PanoSpatialTagPluginId.html +281 -0
- package/docs/types/PanoTagPluginExportInterface.html +281 -0
- package/docs/types/PanoTagPluginParamsInterface.html +281 -0
- package/docs/types/PanoVideoPluginParameterType.html +281 -0
- package/docs/types/PanoVideoPluginReturnType.html +281 -0
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +289 -0
- package/docs/types/PipelinePluginParameterType.html +281 -0
- package/docs/types/PipelinePluginReturnType.html +281 -0
- package/docs/types/PlaneTag.html +289 -0
- package/docs/types/Point2DTag.html +289 -0
- package/docs/types/Point3DTag.html +289 -0
- package/docs/types/PointTag.html +286 -0
- package/docs/types/PointTagInstance.html +286 -0
- package/docs/types/Position.html +281 -0
- package/docs/types/RotateArgs.html +293 -0
- package/docs/types/RotateOpts.html +289 -0
- package/docs/types/RuleLabelsKey.html +281 -0
- package/docs/types/RuleLabelsValue.html +281 -0
- package/docs/types/StickType.html +281 -0
- package/docs/types/Tag.html +347 -0
- package/docs/types/Tag2D.html +289 -0
- package/docs/types/Tag3D.html +289 -0
- package/docs/types/TagConfigByKey.html +286 -0
- package/docs/types/TagContentType.html +281 -0
- package/docs/types/TagDimensionType.html +283 -0
- package/docs/types/TagElement.html +291 -0
- package/docs/types/TagEvents.html +334 -0
- package/docs/types/TagGLTFObject.html +304 -0
- package/docs/types/TagHooks.html +281 -0
- package/docs/types/TagId.html +281 -0
- package/docs/types/TagInstance.html +357 -0
- package/docs/types/TagPointType.html +284 -0
- package/docs/types/TagRendererMap.html +286 -0
- package/docs/types/TopviewFloorplanPluginParameterType.html +281 -0
- package/docs/types/TopviewFloorplanPluginReturnType.html +281 -0
- package/docs/types/WorkCode.html +281 -0
- package/docs/variables/FLOOR_TYPE_MAP.html +291 -0
- package/docs/variables/PLUGIN.html +281 -0
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +284 -0
- package/docs/variables/ROOM_TYPE_MAP.html +291 -0
- package/docs/variables/defaultGlobalConfig.html +281 -0
- package/docs/variables/itemLabelPluginServerParams.html +288 -0
- package/docs/variables/modelItemLabelPluginServerParams.html +288 -0
- package/docs/variables/modelRoomLabelPluginServerParams.html +288 -0
- package/libs/CruisePlugin/CruiseController.d.ts +147 -0
- package/libs/CruisePlugin/CruiseController.js +237 -0
- package/libs/CruisePlugin/Move.d.ts +29 -0
- package/libs/CruisePlugin/Move.js +113 -0
- package/libs/CruisePlugin/{Controller.d.ts → Work.d.ts} +1 -8
- package/libs/CruisePlugin/{Controller.js → Work.js} +149 -177
- package/libs/CruisePlugin/index.d.ts +4 -3
- package/libs/CruisePlugin/index.js +15 -10
- package/libs/CruisePlugin/typing.d.ts +2 -2
- package/libs/CruisePlugin/utils/getFiveStateOnCurve.d.ts +11 -0
- package/libs/CruisePlugin/utils/getFiveStateOnCurve.js +11 -0
- package/libs/GuideLinePlugin/Controller.d.ts +1 -6
- package/libs/GuideLinePlugin/Controller.js +48 -62
- package/libs/GuideLinePlugin/GuideLineItem/index.js +53 -43
- package/libs/GuideLinePlugin/GuideLineItem.js +12 -9
- package/libs/GuideLinePlugin/index.js +20 -17
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +124 -119
- package/libs/shared-utils/five/fiveLoaded.d.ts +2 -0
- package/libs/shared-utils/five/fiveLoaded.js +30 -0
- package/libs/shared-utils/formatRad.d.ts +7 -0
- package/libs/shared-utils/formatRad.js +7 -0
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +2 -2
- package/dist/CruisePlugin/utils/linerValue.d.ts +0 -1
- /package/dist/{CruisePlugin/utils → shared-utils}/formatRad.d.ts +0 -0
- /package/dist/{CruisePlugin/utils/vectorToCoordinates.d.ts → shared-utils/vectorToCoordinate.d.ts} +0 -0
- /package/libs/{CruisePlugin/utils/vectorToCoordinates.d.ts → shared-utils/vectorToCoordinate.d.ts} +0 -0
- /package/libs/{CruisePlugin/utils/vectorToCoordinates.js → shared-utils/vectorToCoordinate.js} +0 -0
|
@@ -0,0 +1,237 @@
|
|
|
1
|
+
var v = Object.defineProperty;
|
|
2
|
+
var g = Object.getOwnPropertySymbols;
|
|
3
|
+
var S = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var f = (a, s, e) => s in a ? v(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e, c = (a, s) => {
|
|
5
|
+
for (var e in s || (s = {}))
|
|
6
|
+
S.call(s, e) && f(a, e, s[e]);
|
|
7
|
+
if (g)
|
|
8
|
+
for (var e of g(s))
|
|
9
|
+
y.call(s, e) && f(a, e, s[e]);
|
|
10
|
+
return a;
|
|
11
|
+
};
|
|
12
|
+
var h = (a, s, e) => (f(a, typeof s != "symbol" ? s + "" : s, e), e);
|
|
13
|
+
var n = (a, s, e) => new Promise((t, i) => {
|
|
14
|
+
var r = (d) => {
|
|
15
|
+
try {
|
|
16
|
+
o(e.next(d));
|
|
17
|
+
} catch (u) {
|
|
18
|
+
i(u);
|
|
19
|
+
}
|
|
20
|
+
}, b = (d) => {
|
|
21
|
+
try {
|
|
22
|
+
o(e.throw(d));
|
|
23
|
+
} catch (u) {
|
|
24
|
+
i(u);
|
|
25
|
+
}
|
|
26
|
+
}, o = (d) => d.done ? t(d.value) : Promise.resolve(d.value).then(r, b);
|
|
27
|
+
o((e = e.apply(a, s)).next());
|
|
28
|
+
});
|
|
29
|
+
import { Controller as C } from "../base/BasePlugin.js";
|
|
30
|
+
import { equal as P } from "../shared-utils/equal.js";
|
|
31
|
+
import { objectAssignDeepExports as L } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
32
|
+
import "../shared-utils/Subscribe.js";
|
|
33
|
+
import "hammerjs";
|
|
34
|
+
import "three";
|
|
35
|
+
import "@realsee/five";
|
|
36
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
37
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
38
|
+
import "../shared-utils/positionToVector3.js";
|
|
39
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
40
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
41
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
42
|
+
import "../shared-utils/util.js";
|
|
43
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
44
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
45
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
46
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
47
|
+
import "../shared-utils/three/centerPoint.js";
|
|
48
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
49
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
50
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
51
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
52
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
53
|
+
import "../shared-utils/isTruelyObject.js";
|
|
54
|
+
const m = "CruisePlugin", l = `${m}`, Z = (a) => `${l}--${a}`, w = () => {
|
|
55
|
+
console.error(`${l} is disposed`);
|
|
56
|
+
}, I = () => {
|
|
57
|
+
console.warn(`${l} is disabled`);
|
|
58
|
+
}, D = () => {
|
|
59
|
+
console.error(`${l} is disabled`);
|
|
60
|
+
}, p = /* @__PURE__ */ new Map();
|
|
61
|
+
class ee extends C {
|
|
62
|
+
constructor(e, t) {
|
|
63
|
+
super(e, t);
|
|
64
|
+
h(this, "state", {
|
|
65
|
+
visible: !0,
|
|
66
|
+
enabled: !0,
|
|
67
|
+
disposed: !1,
|
|
68
|
+
playing: !1,
|
|
69
|
+
speed: 1
|
|
70
|
+
});
|
|
71
|
+
h(this, "data");
|
|
72
|
+
h(this, "config");
|
|
73
|
+
// What is your use case? This line meaning don't need re if UnknownRecord and UnknownArray
|
|
74
|
+
h(this, "privateState", {
|
|
75
|
+
playing: !1,
|
|
76
|
+
broke: !1,
|
|
77
|
+
modeChanging: !1
|
|
78
|
+
});
|
|
79
|
+
h(this, "GuideLine");
|
|
80
|
+
this.config = t, Object.assign(window, { [`__${m}_DEBUG__`]: this });
|
|
81
|
+
}
|
|
82
|
+
/**
|
|
83
|
+
* @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
|
|
84
|
+
*/
|
|
85
|
+
play(e) {
|
|
86
|
+
this.setState({ playing: !0 }, e);
|
|
87
|
+
}
|
|
88
|
+
/**
|
|
89
|
+
* @description Pause
|
|
90
|
+
*/
|
|
91
|
+
pause(e) {
|
|
92
|
+
this.setState({ playing: !1 }, e);
|
|
93
|
+
}
|
|
94
|
+
/**
|
|
95
|
+
* @description Show guide line
|
|
96
|
+
*/
|
|
97
|
+
show(e) {
|
|
98
|
+
return n(this, null, function* () {
|
|
99
|
+
this.setState({ visible: !0 }, e);
|
|
100
|
+
});
|
|
101
|
+
}
|
|
102
|
+
/**
|
|
103
|
+
* @description Hide guide line
|
|
104
|
+
*/
|
|
105
|
+
hide(e) {
|
|
106
|
+
return n(this, null, function* () {
|
|
107
|
+
this.setState({ visible: !1 }, e);
|
|
108
|
+
});
|
|
109
|
+
}
|
|
110
|
+
/**
|
|
111
|
+
* @description Enable
|
|
112
|
+
*/
|
|
113
|
+
enable(e) {
|
|
114
|
+
this.setState({ enabled: !0 }, e);
|
|
115
|
+
}
|
|
116
|
+
/**
|
|
117
|
+
* @description Disable
|
|
118
|
+
*/
|
|
119
|
+
disable(e) {
|
|
120
|
+
this.setState({ enabled: !1 }, e);
|
|
121
|
+
}
|
|
122
|
+
/**
|
|
123
|
+
* @description Dispose
|
|
124
|
+
*/
|
|
125
|
+
dispose() {
|
|
126
|
+
this.setState({ disposed: !0 });
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* @description Set state
|
|
130
|
+
*/
|
|
131
|
+
setState(e, t) {
|
|
132
|
+
var r;
|
|
133
|
+
if (this.state.disposed)
|
|
134
|
+
return w();
|
|
135
|
+
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
136
|
+
return D();
|
|
137
|
+
const i = c({}, this.state);
|
|
138
|
+
this.state = L({}, this.state, e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed), P(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (r = t == null ? void 0 : t.userAction) != null ? r : !0 });
|
|
139
|
+
}
|
|
140
|
+
/**
|
|
141
|
+
* @description Clear pause data
|
|
142
|
+
*/
|
|
143
|
+
clearPauseData() {
|
|
144
|
+
var e, t;
|
|
145
|
+
if ((e = this.data) != null && e.id)
|
|
146
|
+
return p.delete((t = this.data) == null ? void 0 : t.id);
|
|
147
|
+
}
|
|
148
|
+
changePlayState(e, t) {
|
|
149
|
+
this.actionIfStateIsEnabled(
|
|
150
|
+
() => {
|
|
151
|
+
var i;
|
|
152
|
+
return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (i = t == null ? void 0 : t.userAction) != null ? i : !0 });
|
|
153
|
+
}
|
|
154
|
+
), e ? this.handlePlay(t) : this.handlePause(t), this.state.playing = e;
|
|
155
|
+
}
|
|
156
|
+
handleEnable(e, t = !0) {
|
|
157
|
+
var i, r;
|
|
158
|
+
e ? ((i = this.GuideLine) == null || i.enable(), this.hooks.emit("enable", { userAction: t })) : ((r = this.GuideLine) == null || r.disable(), this.changePlayState(!1, { userAction: t }), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
|
|
159
|
+
}
|
|
160
|
+
handleVisible(e, t = !0) {
|
|
161
|
+
var i, r;
|
|
162
|
+
e ? ((i = this.GuideLine) == null || i.show(), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: t }))) : ((r = this.GuideLine) == null || r.hide(), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: t }))), this.state.visible = e;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* @description: listen interupted by five gesture
|
|
166
|
+
*/
|
|
167
|
+
addInterruptListener(e) {
|
|
168
|
+
const t = () => {
|
|
169
|
+
this.privateState.modeChanging || e();
|
|
170
|
+
}, i = (r) => {
|
|
171
|
+
r !== "mouseMove" && (e(), this.five.off("gesture", i));
|
|
172
|
+
};
|
|
173
|
+
return this.five.on("gesture", i), this.five.once("wantsChangeMode", t), () => {
|
|
174
|
+
this.five.off("gesture", i), this.five.off("wantsChangeMode", t);
|
|
175
|
+
};
|
|
176
|
+
}
|
|
177
|
+
/**
|
|
178
|
+
* @description Get duration by speed
|
|
179
|
+
*/
|
|
180
|
+
getSpeededDuration(e) {
|
|
181
|
+
return e / this.state.speed;
|
|
182
|
+
}
|
|
183
|
+
/**
|
|
184
|
+
* @description Change five mode
|
|
185
|
+
*/
|
|
186
|
+
changeMode(e, t) {
|
|
187
|
+
return n(this, null, function* () {
|
|
188
|
+
e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(e.mode, e, t), this.privateState.modeChanging = !1);
|
|
189
|
+
});
|
|
190
|
+
}
|
|
191
|
+
/**
|
|
192
|
+
* @description Force interupt five updateCamera
|
|
193
|
+
*/
|
|
194
|
+
forceInteruptUpdateCamera() {
|
|
195
|
+
this.five.updateCamera({}, 0);
|
|
196
|
+
}
|
|
197
|
+
getPauseData() {
|
|
198
|
+
var e;
|
|
199
|
+
if ((e = this.data) != null && e.id)
|
|
200
|
+
return p.get(this.data.id);
|
|
201
|
+
}
|
|
202
|
+
/**
|
|
203
|
+
* @description Set pause data
|
|
204
|
+
*/
|
|
205
|
+
setPauseData() {
|
|
206
|
+
var t;
|
|
207
|
+
const e = (t = this.data) == null ? void 0 : t.id;
|
|
208
|
+
if (e)
|
|
209
|
+
return p.set(e, {
|
|
210
|
+
fiveState: this.five.getCurrentState(),
|
|
211
|
+
playedProgress: this.getProgress()
|
|
212
|
+
});
|
|
213
|
+
}
|
|
214
|
+
/**
|
|
215
|
+
* @description: Restore state that before loaded
|
|
216
|
+
*/
|
|
217
|
+
clear() {
|
|
218
|
+
this.clearPauseData();
|
|
219
|
+
}
|
|
220
|
+
// TODO
|
|
221
|
+
handleDispose() {
|
|
222
|
+
var e;
|
|
223
|
+
this.setState({ playing: !1 }), this.clearPauseData(), this.clear(), (e = this.GuideLine) == null || e.dispose(), this.GuideLine = void 0;
|
|
224
|
+
}
|
|
225
|
+
/**
|
|
226
|
+
* @description Action function if plugin is enable
|
|
227
|
+
*/
|
|
228
|
+
actionIfStateIsEnabled(e, t) {
|
|
229
|
+
if (this.state.enabled)
|
|
230
|
+
return e();
|
|
231
|
+
t != null && t.warnLog && I();
|
|
232
|
+
}
|
|
233
|
+
}
|
|
234
|
+
export {
|
|
235
|
+
ee as default,
|
|
236
|
+
Z as pluginFlag
|
|
237
|
+
};
|
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import CruiseController from './CruiseController';
|
|
3
|
+
import type { PluginState } from './typing';
|
|
4
|
+
import type { PartialDeep } from 'type-fest';
|
|
5
|
+
import type * as THREE from 'three';
|
|
6
|
+
type Data = {
|
|
7
|
+
path: THREE.CurvePath<THREE.Vector3>;
|
|
8
|
+
};
|
|
9
|
+
type Config = {
|
|
10
|
+
offsetY?: number;
|
|
11
|
+
allowBroke?: boolean;
|
|
12
|
+
};
|
|
13
|
+
export default class MoveController extends CruiseController<Data, Config> {
|
|
14
|
+
private curve;
|
|
15
|
+
private curveOffset;
|
|
16
|
+
private playStartedTime;
|
|
17
|
+
private duration;
|
|
18
|
+
constructor(five: Five, config?: Config);
|
|
19
|
+
load(data: Data, state?: PartialDeep<PluginState>): Promise<void>;
|
|
20
|
+
changeSpeed: (speed: number, userAction?: boolean) => void;
|
|
21
|
+
playFromStart(): void;
|
|
22
|
+
protected getDuration(): number;
|
|
23
|
+
protected getProgress(): number;
|
|
24
|
+
protected handlePlay(): Promise<string>;
|
|
25
|
+
protected handlePause(options?: {
|
|
26
|
+
userAction?: boolean;
|
|
27
|
+
}): void;
|
|
28
|
+
}
|
|
29
|
+
export {};
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
var g = Object.defineProperty;
|
|
2
|
+
var c = Object.getOwnPropertySymbols;
|
|
3
|
+
var v = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var m = (i, e, t) => e in i ? g(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, f = (i, e) => {
|
|
5
|
+
for (var t in e || (e = {}))
|
|
6
|
+
v.call(e, t) && m(i, t, e[t]);
|
|
7
|
+
if (c)
|
|
8
|
+
for (var t of c(e))
|
|
9
|
+
S.call(e, t) && m(i, t, e[t]);
|
|
10
|
+
return i;
|
|
11
|
+
};
|
|
12
|
+
var n = (i, e, t) => (m(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
+
import P from "./CruiseController.js";
|
|
14
|
+
import { objectAssignDeepExports as d } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
15
|
+
import "hammerjs";
|
|
16
|
+
import "three";
|
|
17
|
+
import "@realsee/five";
|
|
18
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
19
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
20
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
21
|
+
import { uuid as y } from "../shared-utils/uuid.js";
|
|
22
|
+
import { getFiveStateOnCurve as u } from "./utils/getFiveStateOnCurve.js";
|
|
23
|
+
import "../base/BasePlugin.js";
|
|
24
|
+
import "../shared-utils/Subscribe.js";
|
|
25
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
26
|
+
import "../shared-utils/equal.js";
|
|
27
|
+
import "../shared-utils/isTruelyObject.js";
|
|
28
|
+
import "../shared-utils/positionToVector3.js";
|
|
29
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
30
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
31
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
32
|
+
import "../shared-utils/util.js";
|
|
33
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
34
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
35
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
36
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
37
|
+
import "../shared-utils/three/centerPoint.js";
|
|
38
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
39
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
40
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
41
|
+
import "../shared-utils/vectorToCoordinate.js";
|
|
42
|
+
import "../shared-utils/formatRad.js";
|
|
43
|
+
class _ extends P {
|
|
44
|
+
constructor(t, s) {
|
|
45
|
+
var o;
|
|
46
|
+
super(t, s);
|
|
47
|
+
n(this, "curve");
|
|
48
|
+
n(this, "curveOffset");
|
|
49
|
+
n(this, "playStartedTime", performance.now());
|
|
50
|
+
n(this, "duration");
|
|
51
|
+
n(this, "changeSpeed", (t, s = !0) => {
|
|
52
|
+
this.state.speed = t, this.hooks.emit("speedChange", t, { userAction: s });
|
|
53
|
+
});
|
|
54
|
+
const r = {
|
|
55
|
+
config: {
|
|
56
|
+
speedConfig: {
|
|
57
|
+
moveSpeed: 2,
|
|
58
|
+
moveSpeedUnit: "m/s"
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}, a = {
|
|
62
|
+
allowBroke: !0
|
|
63
|
+
};
|
|
64
|
+
this.state = d({}, r, this.state), this.config = d({}, a, this.config), this.curveOffset = { y: (o = this.config.offsetY) != null ? o : 2 };
|
|
65
|
+
}
|
|
66
|
+
load(t, s) {
|
|
67
|
+
if (this.clearPauseData(), this.data = f({ id: y() }, t), this.curve = this.data.path.curves[0], !this.curve)
|
|
68
|
+
throw new Error("curve is not defined");
|
|
69
|
+
const r = this.curve.getLength(), a = this.state.config.speedConfig.moveSpeedUnit === "m/ms" ? 1 : 1e3;
|
|
70
|
+
return this.duration = r / (this.state.config.speedConfig.moveSpeed / a), s ? this.setState(s) : (this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed)), Promise.resolve();
|
|
71
|
+
}
|
|
72
|
+
playFromStart() {
|
|
73
|
+
this.clearPauseData(), this.setState({ playing: !0 });
|
|
74
|
+
}
|
|
75
|
+
getDuration() {
|
|
76
|
+
return this.getSpeededDuration(this.duration);
|
|
77
|
+
}
|
|
78
|
+
getProgress() {
|
|
79
|
+
var h;
|
|
80
|
+
const t = this.getPauseData(), s = 1 - ((h = t == null ? void 0 : t.playedProgress) != null ? h : 0), r = this.getDuration(), o = (performance.now() - this.playStartedTime) / r;
|
|
81
|
+
return 1 - s + o;
|
|
82
|
+
}
|
|
83
|
+
handlePlay() {
|
|
84
|
+
return new Promise((t, s) => {
|
|
85
|
+
var h;
|
|
86
|
+
const r = this.getPauseData(), a = u(this.curve, (h = r == null ? void 0 : r.playedProgress) != null ? h : 0, this.curveOffset);
|
|
87
|
+
if (this.five.setState(a), this.playStartedTime = performance.now(), this.config.allowBroke) {
|
|
88
|
+
const p = this.addInterruptListener(() => {
|
|
89
|
+
this.hooks.emit("broke"), this.handlePause(), p();
|
|
90
|
+
});
|
|
91
|
+
}
|
|
92
|
+
const o = () => {
|
|
93
|
+
const p = this.getProgress();
|
|
94
|
+
if (p >= 1)
|
|
95
|
+
this.five.off("renderFrame", o), t("end");
|
|
96
|
+
else if (this.state.playing === !1)
|
|
97
|
+
this.five.off("renderFrame", o);
|
|
98
|
+
else if (p >= 0) {
|
|
99
|
+
const l = u(this.curve, p, this.curveOffset);
|
|
100
|
+
this.five.setState(l);
|
|
101
|
+
}
|
|
102
|
+
};
|
|
103
|
+
this.five.on("renderFrame", o);
|
|
104
|
+
});
|
|
105
|
+
}
|
|
106
|
+
handlePause(t) {
|
|
107
|
+
var s;
|
|
108
|
+
this.state.playing = !1, this.hooks.emit("pause", { userAction: (s = t == null ? void 0 : t.userAction) != null ? s : !0 }), this.setPauseData();
|
|
109
|
+
}
|
|
110
|
+
}
|
|
111
|
+
export {
|
|
112
|
+
_ as default
|
|
113
|
+
};
|
|
@@ -3,8 +3,7 @@ import type { BaseOptions } from '../base/BasePlugin';
|
|
|
3
3
|
import * as BasePluginWithData from '../base/BasePluginWithData';
|
|
4
4
|
import type { PluginState, EventMap, PluginServerData, PluginData, Config } from './typing';
|
|
5
5
|
export declare const pluginFlag: (name: string) => string;
|
|
6
|
-
export default class
|
|
7
|
-
static PluginVersion: string;
|
|
6
|
+
export default class WalkController extends BasePluginWithData.Controller<PluginState, EventMap, PluginServerData, PluginData> {
|
|
8
7
|
state: PluginState;
|
|
9
8
|
protected data?: PluginData;
|
|
10
9
|
private config?;
|
|
@@ -162,10 +161,4 @@ export default class CruisePluginController extends BasePluginWithData.Controlle
|
|
|
162
161
|
* @description Action function if plugin is enable
|
|
163
162
|
*/
|
|
164
163
|
private actionIfStateIsEnabled;
|
|
165
|
-
/**
|
|
166
|
-
* @description: Wait for five work ready
|
|
167
|
-
*/
|
|
168
|
-
private waitFiveLoaded;
|
|
169
|
-
private setFiveLinearUpdateCamera;
|
|
170
|
-
private setFiveOriginUpdateCamera;
|
|
171
164
|
}
|