@realsee/dnalogel 3.5.0-dev.0 → 3.5.0-dev.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/dist/CruisePlugin/{CruiseController.d.ts → BaseController.d.ts} +19 -7
- package/dist/CruisePlugin/Move.d.ts +12 -5
- package/dist/CruisePlugin/Work.d.ts +48 -92
- package/dist/index.cjs.js +49 -49
- package/dist/index.js +2681 -2814
- package/dist/index.umd.js +44 -44
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +30 -30
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +31 -31
- package/docs/classes/CSS3DRender.html +30 -30
- package/docs/classes/GuideLineItem.GuideLineItem.html +18 -18
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +40 -40
- package/docs/classes/Magnifier.html +19 -19
- package/docs/classes/ModelRoomLabelController.html +10 -10
- package/docs/classes/MoveController.html +34 -24
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +14 -14
- package/docs/classes/PanoMeasurePluginLine.html +26 -26
- package/docs/classes/PanoMeasurePluginModel.html +26 -26
- package/docs/classes/PanoMeasurePluginPoint.html +10 -10
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +46 -46
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.LineSegments.html +7 -7
- package/docs/classes/Util.Magnifier.html +19 -19
- package/docs/classes/Util.Object3D.html +7 -7
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.PointSelectorHelper.html +15 -15
- package/docs/classes/Util.Rectangle.html +12 -12
- package/docs/classes/WalkController.html +77 -74
- package/docs/enums/CameraMovementEffect.html +6 -6
- package/docs/enums/ContentType.html +20 -20
- package/docs/enums/DIRECTION.html +8 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/DimensionType.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/PaintBrushTypeEnum.html +7 -7
- package/docs/enums/PointType.html +6 -6
- package/docs/enums/Rotation.html +7 -7
- package/docs/functions/AreaMakerPlugin.html +4 -4
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/CurrentPanoImagePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/PipelinePlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +4 -4
- package/docs/functions/Util.checkFiveModelLoaded.html +4 -4
- package/docs/functions/Util.equal.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isAbsoluteURL.html +4 -4
- package/docs/functions/Util.isModelLike.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.isPanoramaLike.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/Util.uuid.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.Config.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +14 -14
- package/docs/interfaces/AreaMakerPluginType.Params.html +6 -6
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +8 -8
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +7 -7
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.State.html +7 -7
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +5 -5
- package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +10 -10
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +11 -11
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +6 -6
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +5 -5
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +7 -7
- package/docs/interfaces/EventMap.html +14 -14
- package/docs/interfaces/FloorplanBounding.html +7 -7
- package/docs/interfaces/FloorplanData.html +9 -9
- package/docs/interfaces/FloorplanEntrance.html +10 -10
- package/docs/interfaces/FloorplanExtraObject.html +9 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
- package/docs/interfaces/FloorplanFloorData.html +8 -8
- package/docs/interfaces/FloorplanImagePosition.html +6 -6
- package/docs/interfaces/FloorplanObserver.html +8 -8
- package/docs/interfaces/FloorplanOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanPosition.html +6 -6
- package/docs/interfaces/FloorplanRoomItem.html +12 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
- package/docs/interfaces/FloorplanServerBounding.html +7 -7
- package/docs/interfaces/FloorplanServerComputedData.html +9 -9
- package/docs/interfaces/FloorplanServerData.html +6 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
- package/docs/interfaces/FloorplanServerEntrance.html +10 -10
- package/docs/interfaces/FloorplanServerFloorData.html +8 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
- package/docs/interfaces/FloorplanServerObserver.html +8 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanServerPosition.html +6 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +5 -5
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +18 -18
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +18 -18
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -5
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
- package/docs/interfaces/HelperOffset.html +7 -7
- package/docs/interfaces/ImagePlaneGroup.html +5 -5
- package/docs/interfaces/ItemLabelPluginData.html +5 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
- package/docs/interfaces/MinMax.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -10
- package/docs/interfaces/Object3DHelperState.html +7 -7
- package/docs/interfaces/ObjectHelperControllers.html +8 -8
- package/docs/interfaces/PaintBrushAction.html +11 -11
- package/docs/interfaces/PaintBrushConfigs.html +11 -11
- package/docs/interfaces/PaintBrushState.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +15 -15
- package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
- package/docs/interfaces/PanoRulerProPluginState.html +7 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
- package/docs/interfaces/Point.html +7 -7
- package/docs/interfaces/Room.html +8 -8
- package/docs/interfaces/RoomInfo.html +6 -6
- package/docs/interfaces/RoomLabel.html +13 -13
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +8 -8
- package/docs/interfaces/State.html +7 -7
- package/docs/interfaces/TagCacheInterface.html +11 -11
- package/docs/interfaces/TagConfig.html +13 -13
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +5 -5
- package/docs/interfaces/TagStyle.html +5 -5
- package/docs/interfaces/Tags.html +8 -8
- package/docs/interfaces/TemporaryState.html +5 -5
- package/docs/interfaces/Util.MagnifierParameter.html +10 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
- package/docs/interfaces/Util.PointIntersection.html +7 -7
- package/docs/modules/AreaMakerPluginType.html +4 -4
- package/docs/modules/CruisePluginTypes.html +4 -4
- package/docs/modules/CurrentPanoImagePluginType.html +4 -4
- package/docs/modules/GuideLineItem.html +4 -4
- package/docs/modules/GuideLineModeItem.html +4 -4
- package/docs/modules/GuideLinePluginType.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +4 -4
- package/docs/types/AreaMakerPluginType.PluginData.html +4 -4
- package/docs/types/AreaMakerPluginType.ServerData.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
- package/docs/types/CurrentPanoImagePluginExportType.html +4 -4
- package/docs/types/DeprecatedMediaPlaneProperty.html +4 -4
- package/docs/types/DeprecatedTagProperty.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/ElementRenderer.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelId.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
- package/docs/types/PipelinePluginParameterType.html +4 -4
- package/docs/types/PipelinePluginReturnType.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagInstance.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagConfigByKey.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TagInstance.html +4 -4
- package/docs/types/TagPointType.html +4 -4
- package/docs/types/TagRendererMap.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/defaultGlobalConfig.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/CruisePlugin/{CruiseController.d.ts → BaseController.d.ts} +19 -7
- package/libs/CruisePlugin/{CruiseController.js → BaseController.js} +67 -73
- package/libs/CruisePlugin/Move.d.ts +12 -5
- package/libs/CruisePlugin/Move.js +60 -53
- package/libs/CruisePlugin/Work.d.ts +48 -92
- package/libs/CruisePlugin/Work.js +240 -375
- package/libs/CruisePlugin/index.js +3 -3
- package/libs/GuideLinePlugin/Controller.js +1 -1
- package/libs/GuideLinePlugin/GuideLineItem.js +2 -2
- package/libs/GuideLinePlugin/index.js +1 -1
- package/libs/PanoTagPlugin/Components/Tag/PanoramaTag.js +29 -29
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -1,34 +1,34 @@
|
|
|
1
1
|
var v = Object.defineProperty;
|
|
2
2
|
var g = Object.getOwnPropertySymbols;
|
|
3
3
|
var S = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var
|
|
4
|
+
var u = (a, s, e) => s in a ? v(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e, b = (a, s) => {
|
|
5
5
|
for (var e in s || (s = {}))
|
|
6
|
-
S.call(s, e) &&
|
|
6
|
+
S.call(s, e) && u(a, e, s[e]);
|
|
7
7
|
if (g)
|
|
8
8
|
for (var e of g(s))
|
|
9
|
-
y.call(s, e) &&
|
|
9
|
+
y.call(s, e) && u(a, e, s[e]);
|
|
10
10
|
return a;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
var
|
|
14
|
-
var r = (
|
|
12
|
+
var d = (a, s, e) => (u(a, typeof s != "symbol" ? s + "" : s, e), e);
|
|
13
|
+
var f = (a, s, e) => new Promise((i, t) => {
|
|
14
|
+
var r = (h) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
n(e.next(h));
|
|
17
|
+
} catch (o) {
|
|
18
|
+
t(o);
|
|
19
19
|
}
|
|
20
|
-
},
|
|
20
|
+
}, c = (h) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
n(e.throw(h));
|
|
23
|
+
} catch (o) {
|
|
24
|
+
t(o);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, n = (h) => h.done ? i(h.value) : Promise.resolve(h.value).then(r, c);
|
|
27
|
+
n((e = e.apply(a, s)).next());
|
|
28
28
|
});
|
|
29
|
-
import { Controller as
|
|
30
|
-
import { equal as
|
|
31
|
-
import { objectAssignDeepExports as
|
|
29
|
+
import { Controller as L } from "../base/BasePlugin.js";
|
|
30
|
+
import { equal as C } from "../shared-utils/equal.js";
|
|
31
|
+
import { objectAssignDeepExports as P } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
32
32
|
import "../shared-utils/Subscribe.js";
|
|
33
33
|
import "hammerjs";
|
|
34
34
|
import "three";
|
|
@@ -51,33 +51,35 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
|
51
51
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
52
52
|
import "../shared-utils/url/absoluteUrl.js";
|
|
53
53
|
import "../shared-utils/isTruelyObject.js";
|
|
54
|
-
const m = "CruisePlugin", l = `${m}`,
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
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", {
|
|
54
|
+
const m = "CruisePlugin", l = `${m}`, T = (a) => `${l}--${a}`, p = /* @__PURE__ */ new Map();
|
|
55
|
+
class X extends L {
|
|
56
|
+
constructor(e, i) {
|
|
57
|
+
super(e, i);
|
|
58
|
+
d(this, "state", {
|
|
65
59
|
visible: !0,
|
|
66
60
|
enabled: !0,
|
|
67
61
|
disposed: !1,
|
|
68
62
|
playing: !1,
|
|
69
63
|
speed: 1
|
|
70
64
|
});
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
h(this, "privateState", {
|
|
65
|
+
d(this, "data");
|
|
66
|
+
d(this, "config");
|
|
67
|
+
d(this, "privateState", {
|
|
75
68
|
playing: !1,
|
|
76
69
|
broke: !1,
|
|
77
70
|
modeChanging: !1
|
|
78
71
|
});
|
|
79
|
-
|
|
80
|
-
this
|
|
72
|
+
d(this, "GuideLine");
|
|
73
|
+
d(this, "disposedErrorLog", () => {
|
|
74
|
+
console.error(`${l} is disposed`);
|
|
75
|
+
});
|
|
76
|
+
d(this, "disableWarnLog", () => {
|
|
77
|
+
console.warn(`${l} is disabled`);
|
|
78
|
+
});
|
|
79
|
+
d(this, "disableErrorLog", () => {
|
|
80
|
+
console.error(`${l} is disabled`);
|
|
81
|
+
});
|
|
82
|
+
this.config = i, Object.assign(window, { [`__${m}_DEBUG__`]: this });
|
|
81
83
|
}
|
|
82
84
|
/**
|
|
83
85
|
* @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
|
|
@@ -95,7 +97,7 @@ class ee extends C {
|
|
|
95
97
|
* @description Show guide line
|
|
96
98
|
*/
|
|
97
99
|
show(e) {
|
|
98
|
-
return
|
|
100
|
+
return f(this, null, function* () {
|
|
99
101
|
this.setState({ visible: !0 }, e);
|
|
100
102
|
});
|
|
101
103
|
}
|
|
@@ -103,7 +105,7 @@ class ee extends C {
|
|
|
103
105
|
* @description Hide guide line
|
|
104
106
|
*/
|
|
105
107
|
hide(e) {
|
|
106
|
-
return
|
|
108
|
+
return f(this, null, function* () {
|
|
107
109
|
this.setState({ visible: !1 }, e);
|
|
108
110
|
});
|
|
109
111
|
}
|
|
@@ -128,50 +130,50 @@ class ee extends C {
|
|
|
128
130
|
/**
|
|
129
131
|
* @description Set state
|
|
130
132
|
*/
|
|
131
|
-
setState(e,
|
|
133
|
+
setState(e, i) {
|
|
132
134
|
var r;
|
|
133
135
|
if (this.state.disposed)
|
|
134
|
-
return
|
|
136
|
+
return this.disposedErrorLog();
|
|
135
137
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
136
|
-
return
|
|
137
|
-
const
|
|
138
|
-
this.state =
|
|
138
|
+
return this.disableErrorLog();
|
|
139
|
+
const t = b({}, this.state);
|
|
140
|
+
this.state = P({}, this.state, e), e.disposed !== void 0 && e.disposed !== t.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== t.visible && this.handleVisible(e.visible, i == null ? void 0 : i.userAction), e.enabled !== void 0 && e.enabled !== t.enabled && this.handleEnable(e.enabled, i == null ? void 0 : i.userAction), e.playing !== void 0 && e.playing !== t.playing && this.changePlayState(e.playing, i), e.speed !== void 0 && e.speed !== t.speed && this.changeSpeed(e.speed), C(t, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: t, userAction: (r = i == null ? void 0 : i.userAction) != null ? r : !0 });
|
|
139
141
|
}
|
|
140
142
|
/**
|
|
141
143
|
* @description Clear pause data
|
|
142
144
|
*/
|
|
143
145
|
clearPauseData() {
|
|
144
|
-
var e,
|
|
146
|
+
var e, i;
|
|
145
147
|
if ((e = this.data) != null && e.id)
|
|
146
|
-
return p.delete((
|
|
148
|
+
return p.delete((i = this.data) == null ? void 0 : i.id);
|
|
147
149
|
}
|
|
148
|
-
changePlayState(e,
|
|
150
|
+
changePlayState(e, i) {
|
|
149
151
|
this.actionIfStateIsEnabled(
|
|
150
152
|
() => {
|
|
151
|
-
var
|
|
152
|
-
return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (
|
|
153
|
+
var t;
|
|
154
|
+
return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (t = i == null ? void 0 : i.userAction) != null ? t : !0 });
|
|
153
155
|
}
|
|
154
|
-
), e ? this.handlePlay(
|
|
156
|
+
), e ? this.handlePlay(i) : this.handlePause(i), this.state.playing = e;
|
|
155
157
|
}
|
|
156
|
-
handleEnable(e,
|
|
157
|
-
var
|
|
158
|
-
e ? ((
|
|
158
|
+
handleEnable(e, i = !0) {
|
|
159
|
+
var t, r;
|
|
160
|
+
e ? ((t = this.GuideLine) == null || t.enable(), this.hooks.emit("enable", { userAction: i })) : ((r = this.GuideLine) == null || r.disable(), this.changePlayState(!1, { userAction: i }), this.hooks.emit("disable", { userAction: i })), this.state.enabled = e;
|
|
159
161
|
}
|
|
160
|
-
handleVisible(e,
|
|
161
|
-
var
|
|
162
|
-
e ? ((
|
|
162
|
+
handleVisible(e, i = !0) {
|
|
163
|
+
var t, r;
|
|
164
|
+
e ? ((t = this.GuideLine) == null || t.show(), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: i }))) : ((r = this.GuideLine) == null || r.hide(), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: i }))), this.state.visible = e;
|
|
163
165
|
}
|
|
164
166
|
/**
|
|
165
167
|
* @description: listen interupted by five gesture
|
|
166
168
|
*/
|
|
167
169
|
addInterruptListener(e) {
|
|
168
|
-
const
|
|
170
|
+
const i = () => {
|
|
169
171
|
this.privateState.modeChanging || e();
|
|
170
|
-
},
|
|
171
|
-
r !== "mouseMove" && (e(), this.five.off("gesture",
|
|
172
|
+
}, t = (r) => {
|
|
173
|
+
r !== "mouseMove" && (e(), this.five.off("gesture", t));
|
|
172
174
|
};
|
|
173
|
-
return this.five.on("gesture",
|
|
174
|
-
this.five.off("gesture",
|
|
175
|
+
return this.five.on("gesture", t), this.five.once("wantsChangeMode", i), () => {
|
|
176
|
+
this.five.off("gesture", t), this.five.off("wantsChangeMode", i);
|
|
175
177
|
};
|
|
176
178
|
}
|
|
177
179
|
/**
|
|
@@ -180,14 +182,6 @@ class ee extends C {
|
|
|
180
182
|
getSpeededDuration(e) {
|
|
181
183
|
return e / this.state.speed;
|
|
182
184
|
}
|
|
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
185
|
/**
|
|
192
186
|
* @description Force interupt five updateCamera
|
|
193
187
|
*/
|
|
@@ -203,8 +197,8 @@ class ee extends C {
|
|
|
203
197
|
* @description Set pause data
|
|
204
198
|
*/
|
|
205
199
|
setPauseData() {
|
|
206
|
-
var
|
|
207
|
-
const e = (
|
|
200
|
+
var i;
|
|
201
|
+
const e = (i = this.data) == null ? void 0 : i.id;
|
|
208
202
|
if (e)
|
|
209
203
|
return p.set(e, {
|
|
210
204
|
fiveState: this.five.getCurrentState(),
|
|
@@ -225,13 +219,13 @@ class ee extends C {
|
|
|
225
219
|
/**
|
|
226
220
|
* @description Action function if plugin is enable
|
|
227
221
|
*/
|
|
228
|
-
actionIfStateIsEnabled(e,
|
|
222
|
+
actionIfStateIsEnabled(e, i) {
|
|
229
223
|
if (this.state.enabled)
|
|
230
224
|
return e();
|
|
231
|
-
|
|
225
|
+
i != null && i.warnLog && this.disableWarnLog();
|
|
232
226
|
}
|
|
233
227
|
}
|
|
234
228
|
export {
|
|
235
|
-
|
|
236
|
-
|
|
229
|
+
X as default,
|
|
230
|
+
T as pluginFlag
|
|
237
231
|
};
|
|
@@ -1,26 +1,33 @@
|
|
|
1
1
|
import type { Five } from '@realsee/five';
|
|
2
|
-
import CruiseController from './
|
|
2
|
+
import CruiseController from './BaseController';
|
|
3
3
|
import type { PluginState } from './typing';
|
|
4
4
|
import type { PartialDeep } from 'type-fest';
|
|
5
5
|
import type * as THREE from 'three';
|
|
6
6
|
type Data = {
|
|
7
7
|
path: THREE.CurvePath<THREE.Vector3>;
|
|
8
|
+
offset?: Partial<{
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
z: number;
|
|
12
|
+
}>;
|
|
8
13
|
};
|
|
9
14
|
type Config = {
|
|
10
|
-
|
|
15
|
+
offset?: number;
|
|
11
16
|
allowBroke?: boolean;
|
|
12
17
|
};
|
|
13
18
|
export default class MoveController extends CruiseController<Data, Config> {
|
|
14
19
|
private curve;
|
|
20
|
+
private baseCurveOffset;
|
|
15
21
|
private curveOffset;
|
|
16
22
|
private playStartedTime;
|
|
17
23
|
private duration;
|
|
18
24
|
constructor(five: Five, config?: Config);
|
|
19
25
|
load(data: Data, state?: PartialDeep<PluginState>): Promise<void>;
|
|
20
26
|
changeSpeed: (speed: number, userAction?: boolean) => void;
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
protected
|
|
27
|
+
moveToStart: () => void;
|
|
28
|
+
playFromStart: () => void;
|
|
29
|
+
protected getDuration: () => number;
|
|
30
|
+
protected getProgress: () => number;
|
|
24
31
|
protected handlePlay(): Promise<string>;
|
|
25
32
|
protected handlePause(options?: {
|
|
26
33
|
userAction?: boolean;
|
|
@@ -1,25 +1,25 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var m = (
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
|
+
var g = Object.getOwnPropertySymbols;
|
|
3
|
+
var y = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var m = (o, e, t) => e in o ? S(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, v = (o, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
|
|
10
|
-
return
|
|
6
|
+
y.call(e, t) && m(o, t, e[t]);
|
|
7
|
+
if (g)
|
|
8
|
+
for (var t of g(e))
|
|
9
|
+
P.call(e, t) && m(o, t, e[t]);
|
|
10
|
+
return o;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
13
|
-
import
|
|
14
|
-
import { objectAssignDeepExports as
|
|
12
|
+
var r = (o, e, t) => (m(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
+
import C from "./BaseController.js";
|
|
14
|
+
import { objectAssignDeepExports as u } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
15
15
|
import "hammerjs";
|
|
16
16
|
import "three";
|
|
17
17
|
import "@realsee/five";
|
|
18
18
|
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
19
19
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
20
20
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
21
|
-
import { uuid as
|
|
22
|
-
import { getFiveStateOnCurve as
|
|
21
|
+
import { uuid as b } from "../shared-utils/uuid.js";
|
|
22
|
+
import { getFiveStateOnCurve as c } from "./utils/getFiveStateOnCurve.js";
|
|
23
23
|
import "../base/BasePlugin.js";
|
|
24
24
|
import "../shared-utils/Subscribe.js";
|
|
25
25
|
import "../shared-utils/url/absoluteUrl.js";
|
|
@@ -40,67 +40,74 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
40
40
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
41
41
|
import "../shared-utils/vectorToCoordinate.js";
|
|
42
42
|
import "../shared-utils/formatRad.js";
|
|
43
|
-
class
|
|
43
|
+
class tt extends C {
|
|
44
44
|
constructor(t, s) {
|
|
45
|
-
var
|
|
45
|
+
var i;
|
|
46
46
|
super(t, s);
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
47
|
+
r(this, "curve");
|
|
48
|
+
r(this, "baseCurveOffset");
|
|
49
|
+
r(this, "curveOffset");
|
|
50
|
+
r(this, "playStartedTime", performance.now());
|
|
51
|
+
r(this, "duration");
|
|
52
|
+
r(this, "changeSpeed", (t, s = !0) => {
|
|
52
53
|
this.state.speed = t, this.hooks.emit("speedChange", t, { userAction: s });
|
|
53
54
|
});
|
|
54
|
-
|
|
55
|
+
r(this, "moveToStart", () => {
|
|
56
|
+
this.five.setState(c(this.curve, 0, this.curveOffset));
|
|
57
|
+
});
|
|
58
|
+
r(this, "playFromStart", () => {
|
|
59
|
+
this.clearPauseData(), this.setState({ playing: !0 });
|
|
60
|
+
});
|
|
61
|
+
r(this, "getDuration", () => this.getSpeededDuration(this.duration));
|
|
62
|
+
r(this, "getProgress", () => {
|
|
63
|
+
var n;
|
|
64
|
+
const t = this.getPauseData(), s = 1 - ((n = t == null ? void 0 : t.playedProgress) != null ? n : 0), a = this.getDuration(), i = (performance.now() - this.playStartedTime) / a;
|
|
65
|
+
return 1 - s + i;
|
|
66
|
+
});
|
|
67
|
+
const a = {
|
|
55
68
|
config: {
|
|
56
69
|
speedConfig: {
|
|
57
70
|
moveSpeed: 2,
|
|
58
71
|
moveSpeedUnit: "m/s"
|
|
59
72
|
}
|
|
60
73
|
}
|
|
61
|
-
},
|
|
74
|
+
}, f = {
|
|
62
75
|
allowBroke: !0
|
|
63
76
|
};
|
|
64
|
-
this.state =
|
|
77
|
+
this.state = u({}, a, this.state), this.config = u({}, f, this.config), this.baseCurveOffset = u({ x: 0, y: 0, z: 0 }, { y: 2 }, (i = this.config) == null ? void 0 : i.offset);
|
|
65
78
|
}
|
|
66
79
|
load(t, s) {
|
|
67
|
-
|
|
80
|
+
var i, n, h, p, d, l;
|
|
81
|
+
if (this.clearPauseData(), this.data = v({ id: b() }, t), this.curve = this.data.path.curves[0], this.curveOffset = {
|
|
82
|
+
x: this.baseCurveOffset.x + ((n = (i = this.data.offset) == null ? void 0 : i.x) != null ? n : 0),
|
|
83
|
+
y: this.baseCurveOffset.y + ((p = (h = this.data.offset) == null ? void 0 : h.y) != null ? p : 0),
|
|
84
|
+
z: this.baseCurveOffset.z + ((l = (d = this.data.offset) == null ? void 0 : d.z) != null ? l : 0)
|
|
85
|
+
}, !this.curve)
|
|
68
86
|
throw new Error("curve is not defined");
|
|
69
|
-
const
|
|
70
|
-
return this.duration =
|
|
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;
|
|
87
|
+
const a = this.curve.getLength(), f = this.state.config.speedConfig.moveSpeedUnit === "m/ms" ? 1 : 1e3;
|
|
88
|
+
return this.duration = a / (this.state.config.speedConfig.moveSpeed / f), 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();
|
|
82
89
|
}
|
|
83
90
|
handlePlay() {
|
|
84
91
|
return new Promise((t, s) => {
|
|
85
|
-
var
|
|
86
|
-
const
|
|
87
|
-
if (this.five.setState(
|
|
88
|
-
const
|
|
89
|
-
this.hooks.emit("broke"), this.handlePause(),
|
|
92
|
+
var n;
|
|
93
|
+
const a = this.getPauseData(), f = c(this.curve, (n = a == null ? void 0 : a.playedProgress) != null ? n : 0, this.curveOffset);
|
|
94
|
+
if (this.five.setState(f), this.playStartedTime = performance.now(), this.config.allowBroke) {
|
|
95
|
+
const h = this.addInterruptListener(() => {
|
|
96
|
+
this.hooks.emit("broke"), this.handlePause(), h();
|
|
90
97
|
});
|
|
91
98
|
}
|
|
92
|
-
const
|
|
93
|
-
const
|
|
94
|
-
if (
|
|
95
|
-
this.five.off("renderFrame",
|
|
99
|
+
const i = () => {
|
|
100
|
+
const h = this.getProgress();
|
|
101
|
+
if (h >= 1)
|
|
102
|
+
this.five.off("renderFrame", i), t("end");
|
|
96
103
|
else if (this.state.playing === !1)
|
|
97
|
-
this.five.off("renderFrame",
|
|
98
|
-
else if (
|
|
99
|
-
const
|
|
100
|
-
this.five.setState(
|
|
104
|
+
this.five.off("renderFrame", i);
|
|
105
|
+
else if (h >= 0) {
|
|
106
|
+
const p = c(this.curve, h, this.curveOffset);
|
|
107
|
+
this.five.setState(p);
|
|
101
108
|
}
|
|
102
109
|
};
|
|
103
|
-
this.five.on("renderFrame",
|
|
110
|
+
this.five.on("renderFrame", i);
|
|
104
111
|
});
|
|
105
112
|
}
|
|
106
113
|
handlePause(t) {
|
|
@@ -109,5 +116,5 @@ class _ extends P {
|
|
|
109
116
|
}
|
|
110
117
|
}
|
|
111
118
|
export {
|
|
112
|
-
|
|
119
|
+
tt as default
|
|
113
120
|
};
|
|
@@ -1,25 +1,31 @@
|
|
|
1
|
-
import type { Five } from '@realsee/five';
|
|
2
|
-
import type {
|
|
3
|
-
import
|
|
4
|
-
|
|
5
|
-
export declare const pluginFlag: (name: string) => string;
|
|
6
|
-
export default class WalkController extends BasePluginWithData.Controller<PluginState, EventMap, PluginServerData, PluginData> {
|
|
1
|
+
import type { Five, State } from '@realsee/five';
|
|
2
|
+
import type { PluginState, PluginServerData, PluginData, CruiseKeyframe, MoveEffect, Config } from './typing';
|
|
3
|
+
import CruiseController from './BaseController';
|
|
4
|
+
export default class WalkController extends CruiseController<PluginData, Config> {
|
|
7
5
|
state: PluginState;
|
|
8
|
-
protected
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
6
|
+
protected privateState: {
|
|
7
|
+
/**
|
|
8
|
+
* privateState.playing 和 state.playing 的区别:
|
|
9
|
+
* state.playing 先为true,然后才 handleplay,handleplay方法内会检查privateState.playing,如果已经开始(privateState.playing === true),就不执行操作,如果为false,就执行操作
|
|
10
|
+
* 其实就是加了一个不允许重复执行handleplay的逻辑
|
|
11
|
+
*/
|
|
12
|
+
playing: boolean;
|
|
13
|
+
currentPlayKeyframe: {
|
|
14
|
+
keyframe: CruiseKeyframe;
|
|
15
|
+
originDuration?: number;
|
|
16
|
+
} | null;
|
|
17
|
+
currentPlayQueue: Promise<any>[];
|
|
18
|
+
broke: boolean;
|
|
19
|
+
playId?: string;
|
|
20
|
+
moveToFirstPanoEffect?: MoveEffect;
|
|
21
|
+
moveToFirstPanoDuration?: number;
|
|
22
|
+
modeChanging?: boolean;
|
|
23
|
+
};
|
|
12
24
|
constructor(five: Five, config?: Config);
|
|
13
25
|
/**
|
|
14
26
|
* @description Load Data and State
|
|
15
27
|
*/
|
|
16
28
|
load(serverData: PluginServerData | PluginServerData['data'], state?: PluginState, userAction?: boolean): Promise<void>;
|
|
17
|
-
/**
|
|
18
|
-
* @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
|
|
19
|
-
*/
|
|
20
|
-
play(options?: {
|
|
21
|
-
userAction?: boolean;
|
|
22
|
-
}): void;
|
|
23
29
|
/**
|
|
24
30
|
* @description If playing, first pause, then play from keyframes index/id
|
|
25
31
|
* @param {number} options.index play from keyframes index
|
|
@@ -37,68 +43,52 @@ export default class WalkController extends BasePluginWithData.Controller<Plugin
|
|
|
37
43
|
userAction?: boolean;
|
|
38
44
|
}): void;
|
|
39
45
|
/**
|
|
40
|
-
* @description
|
|
41
|
-
*/
|
|
42
|
-
pause(options?: {
|
|
43
|
-
userAction?: boolean;
|
|
44
|
-
}): void;
|
|
45
|
-
/**
|
|
46
|
-
* @description Show guide line
|
|
47
|
-
*/
|
|
48
|
-
show(options?: {
|
|
49
|
-
userAction?: boolean;
|
|
50
|
-
}): Promise<void>;
|
|
51
|
-
/**
|
|
52
|
-
* @description Hide guide line
|
|
46
|
+
* @description Format data
|
|
53
47
|
*/
|
|
54
|
-
|
|
55
|
-
userAction?: boolean;
|
|
56
|
-
}): Promise<void>;
|
|
48
|
+
protected formatData(serverData: PluginServerData | PluginServerData['data']): Promise<PluginData>;
|
|
57
49
|
/**
|
|
58
|
-
* @description
|
|
50
|
+
* @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
|
|
51
|
+
* @param {number} options.playFromIndex play from keyframes index
|
|
52
|
+
* @param {string} options.playFromId play from keyframes id
|
|
59
53
|
*/
|
|
60
|
-
|
|
54
|
+
protected handlePlay(options?: {
|
|
61
55
|
userAction?: boolean;
|
|
62
|
-
|
|
56
|
+
playFromIndex?: number;
|
|
57
|
+
playFromId?: string;
|
|
58
|
+
notEmitEvent?: true;
|
|
59
|
+
}): Promise<string>;
|
|
63
60
|
/**
|
|
64
|
-
* @description
|
|
61
|
+
* @description: Pause and record pause state
|
|
65
62
|
*/
|
|
66
|
-
|
|
63
|
+
protected handlePause(options?: {
|
|
67
64
|
userAction?: boolean;
|
|
65
|
+
notEmitEvent?: true;
|
|
68
66
|
}): void;
|
|
69
67
|
/**
|
|
70
|
-
* @description
|
|
71
|
-
*/
|
|
72
|
-
dispose(): void;
|
|
73
|
-
/**
|
|
74
|
-
* @description Set state
|
|
68
|
+
* @description: Change play speed
|
|
75
69
|
*/
|
|
76
|
-
|
|
70
|
+
protected changeSpeed(speed: number, userAction?: boolean): void;
|
|
77
71
|
/**
|
|
78
|
-
* @description
|
|
72
|
+
* @description Get ratate progress
|
|
79
73
|
*/
|
|
80
|
-
protected
|
|
81
|
-
private handleEnable;
|
|
82
|
-
private handleVisible;
|
|
83
|
-
private changePlayState;
|
|
74
|
+
protected getProgress(): any;
|
|
84
75
|
/**
|
|
85
|
-
* @description
|
|
86
|
-
* @param {number} options.playFromIndex play from keyframes index
|
|
87
|
-
* @param {string} options.playFromId play from keyframes id
|
|
76
|
+
* @description Set pause data
|
|
88
77
|
*/
|
|
89
|
-
|
|
78
|
+
protected setPauseData(): Map<string, {
|
|
79
|
+
fiveState: Partial<State>;
|
|
80
|
+
id?: string | number;
|
|
81
|
+
playedProgress: number;
|
|
82
|
+
duration?: number;
|
|
83
|
+
}>;
|
|
90
84
|
/**
|
|
91
|
-
* @description:
|
|
85
|
+
* @description: Restore state that before loaded
|
|
92
86
|
*/
|
|
93
|
-
|
|
87
|
+
protected clear(): void;
|
|
94
88
|
/**
|
|
95
89
|
* @description Play single keyframe
|
|
96
90
|
*/
|
|
97
91
|
private playKeyframe;
|
|
98
|
-
/**
|
|
99
|
-
* @description: listen interupted by five gesture
|
|
100
|
-
*/
|
|
101
|
-
private addInterruptListener;
|
|
102
92
|
/**
|
|
103
93
|
* @description: getPlayPromise
|
|
104
94
|
*/
|
|
@@ -123,42 +113,8 @@ export default class WalkController extends BasePluginWithData.Controller<Plugin
|
|
|
123
113
|
* @description: Change five pano
|
|
124
114
|
*/
|
|
125
115
|
private changePano;
|
|
126
|
-
/**
|
|
127
|
-
* @description: Change play speed
|
|
128
|
-
*/
|
|
129
|
-
private changeSpeed;
|
|
130
|
-
/**
|
|
131
|
-
* @description Get duration by speed
|
|
132
|
-
*/
|
|
133
|
-
private getSpeededDuration;
|
|
134
|
-
/**
|
|
135
|
-
* @description Get ratate progress
|
|
136
|
-
*/
|
|
137
|
-
private getProgress;
|
|
138
116
|
/**
|
|
139
117
|
* @description Change five mode
|
|
140
118
|
*/
|
|
141
119
|
private changeMode;
|
|
142
|
-
/**
|
|
143
|
-
* @description Force interupt five updateCamera
|
|
144
|
-
*/
|
|
145
|
-
private forceInteruptUpdateCamera;
|
|
146
|
-
private getPauseData;
|
|
147
|
-
/**
|
|
148
|
-
* @description Set pause data
|
|
149
|
-
*/
|
|
150
|
-
private setPauseData;
|
|
151
|
-
/**
|
|
152
|
-
* @description Clear pause data
|
|
153
|
-
*/
|
|
154
|
-
private clearPauseData;
|
|
155
|
-
/**
|
|
156
|
-
* @description: Restore state that before loaded
|
|
157
|
-
*/
|
|
158
|
-
private clear;
|
|
159
|
-
private handleDispose;
|
|
160
|
-
/**
|
|
161
|
-
* @description Action function if plugin is enable
|
|
162
|
-
*/
|
|
163
|
-
private actionIfStateIsEnabled;
|
|
164
120
|
}
|