@realsee/dnalogel 3.4.0-tag-dev.1 → 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 +3221 -2999
- package/dist/index.umd.js +47 -47
- package/dist/shared-utils/five/fiveLoaded.d.ts +2 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +33 -31
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +34 -32
- package/docs/classes/CSS3DRender.html +33 -31
- package/docs/classes/GuideLineItem.GuideLineItem.html +21 -19
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +43 -41
- package/docs/classes/Magnifier.html +22 -20
- package/docs/classes/ModelRoomLabelController.html +13 -11
- package/docs/classes/MoveController.html +641 -0
- package/docs/classes/Object3DHelperController.html +27 -25
- package/docs/classes/PaintBrush.html +17 -15
- package/docs/classes/PanoMeasurePluginLine.html +29 -27
- package/docs/classes/PanoMeasurePluginModel.html +29 -27
- package/docs/classes/PanoMeasurePluginPoint.html +13 -11
- package/docs/classes/PanoMeasurePluginPolyline.html +29 -27
- package/docs/classes/PanoTagPluginController.html +49 -47
- package/docs/classes/Util.BetterTween.html +11 -9
- package/docs/classes/Util.Interval.html +14 -12
- package/docs/classes/Util.LineSegments.html +10 -8
- package/docs/classes/Util.Magnifier.html +22 -20
- package/docs/classes/Util.Object3D.html +10 -8
- package/docs/classes/Util.PointDomHelper.html +13 -11
- package/docs/classes/Util.PointHelper.html +13 -11
- package/docs/classes/Util.PointSelectorHelper.html +18 -16
- package/docs/classes/Util.Rectangle.html +15 -13
- package/docs/classes/{CruisePluginController.html → WalkController.html} +52 -57
- package/docs/enums/CameraMovementEffect.html +9 -7
- package/docs/enums/ContentType.html +23 -21
- package/docs/enums/DIRECTION.html +11 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +11 -9
- package/docs/enums/DimensionType.html +9 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +11 -9
- package/docs/enums/PaintBrushTypeEnum.html +10 -8
- package/docs/enums/PointType.html +9 -7
- package/docs/enums/Rotation.html +10 -8
- package/docs/functions/AreaMakerPlugin.html +7 -5
- package/docs/functions/CSS3DRenderPlugin.html +6 -4
- package/docs/functions/CameraMovementPlugin.html +6 -4
- package/docs/functions/CruisePlugin.html +8 -6
- package/docs/functions/CurrentPanoImagePlugin.html +6 -4
- package/docs/functions/GuideLinePlugin.html +7 -5
- package/docs/functions/ItemLabelPlugin.html +6 -4
- package/docs/functions/MapviewFloorplanPlugin.html +6 -4
- package/docs/functions/ModelChassisCompassPlugin.html +6 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -4
- package/docs/functions/ModelFloorplanPlugin.html +6 -4
- package/docs/functions/ModelItemLabelPlugin.html +6 -4
- package/docs/functions/ModelRoomLabelPlugin.html +6 -4
- package/docs/functions/ModelTVVideoPlugin.html +6 -4
- package/docs/functions/ModelViewPlugin.html +6 -4
- package/docs/functions/Object3DHelperPlugin.html +6 -4
- package/docs/functions/PanoCompassPlugin.html +6 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -4
- package/docs/functions/PanoDoorLabelPlugin.html +6 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -4
- package/docs/functions/PanoMeasurePlugin.html +6 -4
- package/docs/functions/PanoRulerPlugin.html +6 -4
- package/docs/functions/PanoRulerProPlugin.html +6 -4
- package/docs/functions/PanoSpatialTagPlugin.html +6 -4
- package/docs/functions/PanoTagPlugin.html +6 -4
- package/docs/functions/PanoVideoPlugin.html +6 -4
- package/docs/functions/PipelinePlugin.html +6 -4
- package/docs/functions/TopviewFloorplanPlugin.html +6 -4
- package/docs/functions/Util.absoluteUrl.html +7 -5
- package/docs/functions/Util.checkFiveModelLoaded.html +7 -5
- package/docs/functions/Util.equal.html +7 -5
- package/docs/functions/Util.getCoordsFromClient.html +7 -5
- package/docs/functions/Util.getCoordsFromElement.html +7 -5
- package/docs/functions/Util.getFrameTime.html +7 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +7 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +7 -5
- package/docs/functions/Util.isAbsoluteURL.html +7 -5
- package/docs/functions/Util.isModelLike.html +7 -5
- package/docs/functions/Util.isNil.html +7 -5
- package/docs/functions/Util.isPanoramaLike.html +7 -5
- package/docs/functions/Util.nextFrame.html +7 -5
- package/docs/functions/Util.notNil.html +7 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +7 -5
- package/docs/functions/Util.tweenProgress.html +7 -5
- package/docs/functions/Util.uuid.html +7 -5
- package/docs/functions/pluginFlag.html +7 -5
- package/docs/index.html +7 -5
- package/docs/interfaces/AddTagConfig.html +8 -6
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +8 -6
- package/docs/interfaces/AreaMakerPluginType.Config.html +8 -6
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +17 -15
- package/docs/interfaces/AreaMakerPluginType.Params.html +9 -7
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +11 -9
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +10 -8
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +8 -6
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +8 -6
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +8 -6
- package/docs/interfaces/AreaMakerPluginType.State.html +10 -8
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +13 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +10 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +9 -7
- package/docs/interfaces/CruisePluginTypes.Config.html +11 -9
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +15 -13
- package/docs/interfaces/CruisePluginTypes.EventMap.html +23 -21
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +15 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +17 -15
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +17 -15
- package/docs/interfaces/CruisePluginTypes.PluginData.html +12 -10
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +9 -7
- package/docs/interfaces/CruisePluginTypes.PluginState.html +17 -36
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +13 -11
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +14 -12
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +9 -7
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +8 -6
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +10 -8
- package/docs/interfaces/EventMap.html +17 -15
- package/docs/interfaces/FloorplanBounding.html +10 -8
- package/docs/interfaces/FloorplanData.html +12 -10
- package/docs/interfaces/FloorplanEntrance.html +13 -11
- package/docs/interfaces/FloorplanExtraObject.html +12 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +10 -8
- package/docs/interfaces/FloorplanFloorData.html +11 -9
- package/docs/interfaces/FloorplanImagePosition.html +9 -7
- package/docs/interfaces/FloorplanObserver.html +11 -9
- package/docs/interfaces/FloorplanOutlineItem.html +11 -9
- package/docs/interfaces/FloorplanPosition.html +9 -7
- package/docs/interfaces/FloorplanRoomItem.html +15 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +9 -7
- package/docs/interfaces/FloorplanServerBounding.html +10 -8
- package/docs/interfaces/FloorplanServerComputedData.html +12 -10
- package/docs/interfaces/FloorplanServerData.html +9 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +12 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +10 -8
- package/docs/interfaces/FloorplanServerEntrance.html +13 -11
- package/docs/interfaces/FloorplanServerFloorData.html +11 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +9 -7
- package/docs/interfaces/FloorplanServerObserver.html +11 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +11 -9
- package/docs/interfaces/FloorplanServerPosition.html +9 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +16 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -7
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +10 -8
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +13 -11
- package/docs/interfaces/GuideLinePluginType.EventMap.html +16 -14
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +11 -9
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +9 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +16 -14
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +9 -7
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +11 -9
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +22 -20
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +10 -8
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +22 -20
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +8 -6
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +9 -7
- package/docs/interfaces/GuideLinePluginType.PluginState.html +11 -9
- package/docs/interfaces/GuideLinePluginType.Route.html +14 -12
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +12 -10
- package/docs/interfaces/HelperOffset.html +10 -8
- package/docs/interfaces/ImagePlaneGroup.html +8 -6
- package/docs/interfaces/ItemLabelPluginData.html +8 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +13 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +11 -9
- package/docs/interfaces/MinMax.html +9 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +9 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +8 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +13 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +8 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +11 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +8 -6
- package/docs/interfaces/ModelViewPluginExportType.html +13 -11
- package/docs/interfaces/Object3DHelperState.html +10 -8
- package/docs/interfaces/ObjectHelperControllers.html +11 -9
- package/docs/interfaces/PaintBrushAction.html +14 -12
- package/docs/interfaces/PaintBrushConfigs.html +14 -12
- package/docs/interfaces/PaintBrushState.html +12 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +12 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -5
- package/docs/interfaces/PanoMeasureParameterType.html +18 -16
- package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +12 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +9 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +10 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +11 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +9 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -7
- package/docs/interfaces/PanoRulerProPluginState.html +10 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +12 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +15 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +12 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +15 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +12 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +11 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +12 -10
- package/docs/interfaces/Point.html +10 -8
- package/docs/interfaces/Room.html +11 -9
- package/docs/interfaces/RoomInfo.html +9 -7
- package/docs/interfaces/RoomLabel.html +16 -14
- package/docs/interfaces/RoomRules.html +7 -5
- package/docs/interfaces/Rooms.html +7 -5
- package/docs/interfaces/Scissor.html +11 -9
- package/docs/interfaces/State.html +10 -8
- package/docs/interfaces/TagCacheInterface.html +14 -12
- package/docs/interfaces/TagConfig.html +16 -14
- package/docs/interfaces/TagGLTFObjectGroup.html +8 -6
- package/docs/interfaces/TagIconUrl.html +14 -12
- package/docs/interfaces/TagObjectGroup.html +8 -6
- package/docs/interfaces/TagStyle.html +8 -6
- package/docs/interfaces/Tags.html +11 -9
- package/docs/interfaces/TemporaryState.html +8 -6
- package/docs/interfaces/Util.MagnifierParameter.html +13 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +10 -8
- package/docs/interfaces/Util.PointIntersection.html +10 -8
- package/docs/modules/AreaMakerPluginType.html +7 -5
- package/docs/modules/CruisePluginTypes.html +7 -5
- package/docs/modules/CurrentPanoImagePluginType.html +7 -5
- package/docs/modules/GuideLineItem.html +7 -5
- package/docs/modules/GuideLineModeItem.html +7 -5
- package/docs/modules/GuideLinePluginType.html +7 -5
- package/docs/modules/PanoVideoPluginType.html +7 -5
- package/docs/modules/Util.html +7 -5
- package/docs/modules.html +27 -9
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +7 -5
- package/docs/types/AreaMakerPluginType.PluginData.html +7 -5
- package/docs/types/AreaMakerPluginType.ServerData.html +7 -5
- package/docs/types/ArrayPosition.html +7 -5
- package/docs/types/AudioAppearance.html +7 -5
- package/docs/types/AudioTagTypeConfigKey.html +7 -5
- package/docs/types/CSS3DRenderExportType.html +7 -5
- package/docs/types/CSS3DRenderPluginExportType.html +7 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +7 -5
- package/docs/types/ClassFunctionParameters.html +7 -5
- package/docs/types/Color.html +7 -5
- package/docs/types/ContentTypeConfigKey.html +7 -5
- package/docs/types/ContentTypeConfigKeySplit.html +7 -5
- package/docs/types/ContentTypeMap.html +7 -5
- package/docs/types/Create3DDomContainerReturnType.html +7 -5
- package/docs/types/Create3DElementReturnType.html +7 -5
- package/docs/types/CruisePluginExportType.html +7 -5
- package/docs/types/CruisePluginTypes.CruiseData.html +8 -6
- package/docs/types/CruisePluginTypes.MoveEffect.html +8 -6
- package/docs/types/CurrentPanoImagePluginExportType.html +7 -5
- package/docs/types/DeprecatedMediaPlaneProperty.html +7 -5
- package/docs/types/DeprecatedTagProperty.html +7 -5
- package/docs/types/Direction-1.html +7 -5
- package/docs/types/Direction4.html +7 -5
- package/docs/types/ElementRenderer.html +7 -5
- package/docs/types/FloorplanRuleLabels.html +7 -5
- package/docs/types/FloorplanServerRuleLabels.html +7 -5
- package/docs/types/GuideLinePluginExportType.html +7 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +8 -6
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +8 -6
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +8 -6
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +8 -6
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +8 -6
- package/docs/types/GuideLinePluginType.PathItem.html +8 -6
- package/docs/types/GuideLinePluginType.PluginData.html +8 -6
- package/docs/types/HelperEventMap.html +7 -5
- package/docs/types/LoadTagConfig.html +7 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +7 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +7 -5
- package/docs/types/MediaData.html +7 -5
- package/docs/types/MediaStore.html +7 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +7 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +7 -5
- package/docs/types/ModelId.html +7 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +7 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +7 -5
- package/docs/types/MoveArgs.html +7 -5
- package/docs/types/MoveOpts.html +7 -5
- package/docs/types/Object3DHelperEventMap.html +7 -5
- package/docs/types/ObjectFit.html +7 -5
- package/docs/types/PaintBrushEventMap.html +7 -5
- package/docs/types/PanoCompassPluginData.html +7 -5
- package/docs/types/PanoCompassPluginExportType.html +7 -5
- package/docs/types/PanoCompassPluginParameterType.html +7 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -5
- package/docs/types/PanoIndex.html +7 -5
- package/docs/types/PanoMeasurePluginEvent.html +7 -5
- package/docs/types/PanoMeasureReturnType.html +7 -5
- package/docs/types/PanoSpatialTagPluginId.html +7 -5
- package/docs/types/PanoTagPluginExportInterface.html +7 -5
- package/docs/types/PanoTagPluginParamsInterface.html +7 -5
- package/docs/types/PanoVideoPluginParameterType.html +7 -5
- package/docs/types/PanoVideoPluginReturnType.html +7 -5
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +7 -5
- package/docs/types/PipelinePluginParameterType.html +7 -5
- package/docs/types/PipelinePluginReturnType.html +7 -5
- package/docs/types/PlaneTag.html +7 -5
- package/docs/types/Point2DTag.html +7 -5
- package/docs/types/Point3DTag.html +7 -5
- package/docs/types/PointTag.html +7 -5
- package/docs/types/PointTagInstance.html +7 -5
- package/docs/types/Position.html +7 -5
- package/docs/types/RotateArgs.html +7 -5
- package/docs/types/RotateOpts.html +7 -5
- package/docs/types/RuleLabelsKey.html +7 -5
- package/docs/types/RuleLabelsValue.html +7 -5
- package/docs/types/StickType.html +7 -5
- package/docs/types/Tag.html +7 -5
- package/docs/types/Tag2D.html +7 -5
- package/docs/types/Tag3D.html +7 -5
- package/docs/types/TagConfigByKey.html +7 -5
- package/docs/types/TagContentType.html +7 -5
- package/docs/types/TagDimensionType.html +7 -5
- package/docs/types/TagElement.html +7 -5
- package/docs/types/TagEvents.html +7 -5
- package/docs/types/TagGLTFObject.html +7 -5
- package/docs/types/TagHooks.html +7 -5
- package/docs/types/TagId.html +7 -5
- package/docs/types/TagInstance.html +7 -5
- package/docs/types/TagPointType.html +7 -5
- package/docs/types/TagRendererMap.html +7 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +7 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +7 -5
- package/docs/types/WorkCode.html +7 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +7 -5
- package/docs/variables/PLUGIN.html +7 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -5
- package/docs/variables/ROOM_TYPE_MAP.html +7 -5
- package/docs/variables/defaultGlobalConfig.html +7 -5
- package/docs/variables/itemLabelPluginServerParams.html +7 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +7 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +7 -5
- 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/PanoTagPlugin/controller/index.js +1 -1
- 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
|
@@ -1,42 +1,42 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var e in
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var e of
|
|
10
|
-
U.call(
|
|
11
|
-
return
|
|
12
|
-
},
|
|
13
|
-
var
|
|
14
|
-
var
|
|
15
|
-
var i = (
|
|
1
|
+
var G = Object.defineProperty, K = Object.defineProperties;
|
|
2
|
+
var T = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var C = Object.getOwnPropertySymbols;
|
|
4
|
+
var A = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var k = (h, f, e) => f in h ? G(h, f, { enumerable: !0, configurable: !0, writable: !0, value: e }) : h[f] = e, g = (h, f) => {
|
|
6
|
+
for (var e in f || (f = {}))
|
|
7
|
+
A.call(f, e) && k(h, e, f[e]);
|
|
8
|
+
if (C)
|
|
9
|
+
for (var e of C(f))
|
|
10
|
+
U.call(f, e) && k(h, e, f[e]);
|
|
11
|
+
return h;
|
|
12
|
+
}, x = (h, f) => K(h, T(f));
|
|
13
|
+
var S = (h, f, e) => (k(h, typeof f != "symbol" ? f + "" : f, e), e);
|
|
14
|
+
var y = (h, f, e) => new Promise((t, r) => {
|
|
15
|
+
var i = (p) => {
|
|
16
16
|
try {
|
|
17
|
-
s(e.next(
|
|
17
|
+
s(e.next(p));
|
|
18
18
|
} catch (a) {
|
|
19
19
|
r(a);
|
|
20
20
|
}
|
|
21
|
-
}, n = (
|
|
21
|
+
}, n = (p) => {
|
|
22
22
|
try {
|
|
23
|
-
s(e.throw(
|
|
23
|
+
s(e.throw(p));
|
|
24
24
|
} catch (a) {
|
|
25
25
|
r(a);
|
|
26
26
|
}
|
|
27
|
-
}, s = (
|
|
28
|
-
s((e = e.apply(
|
|
27
|
+
}, s = (p) => p.done ? t(p.value) : Promise.resolve(p.value).then(i, n);
|
|
28
|
+
s((e = e.apply(h, f)).next());
|
|
29
29
|
});
|
|
30
|
-
import { Controller as
|
|
30
|
+
import { Controller as Q } from "../base/BasePluginWithData.js";
|
|
31
31
|
import { GuideLinePlugin as $ } from "../GuideLinePlugin/index.js";
|
|
32
|
-
import { uuid as
|
|
33
|
-
import { coordinatesAngle as
|
|
32
|
+
import { uuid as I } from "../shared-utils/uuid.js";
|
|
33
|
+
import { coordinatesAngle as O } from "./utils/coordinatesAngle.js";
|
|
34
34
|
import { safeCall as _ } from "./utils/safeCall.js";
|
|
35
|
-
import { equal as
|
|
36
|
-
import
|
|
37
|
-
import
|
|
38
|
-
import
|
|
39
|
-
import {
|
|
35
|
+
import { equal as V } from "../shared-utils/equal.js";
|
|
36
|
+
import * as R from "three";
|
|
37
|
+
import { sleep as N } from "./utils/sleep.js";
|
|
38
|
+
import { waitFiveLoaded as j } from "../shared-utils/five/fiveLoaded.js";
|
|
39
|
+
import { vectorToCoordinates as W } from "../shared-utils/vectorToCoordinate.js";
|
|
40
40
|
import "../base/BasePlugin.js";
|
|
41
41
|
import "../shared-utils/Subscribe.js";
|
|
42
42
|
import "hammerjs";
|
|
@@ -192,24 +192,27 @@ import "@realsee/five/gltf-loader";
|
|
|
192
192
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
193
193
|
import "../GuideLinePlugin/Components/Tag.js";
|
|
194
194
|
import "../GuideLinePlugin/utils/index.js";
|
|
195
|
-
import "./Controller.js";
|
|
196
195
|
import "../shared-utils/to.js";
|
|
197
196
|
import "../shared-utils/five/changeMode.js";
|
|
198
197
|
import "../shared-utils/nearlyEqual.js";
|
|
199
|
-
import "./
|
|
198
|
+
import "./Move.js";
|
|
199
|
+
import "./CruiseController.js";
|
|
200
200
|
import "../shared-utils/isTruelyObject.js";
|
|
201
|
-
import "./utils/
|
|
202
|
-
|
|
203
|
-
|
|
204
|
-
|
|
205
|
-
|
|
206
|
-
}
|
|
207
|
-
|
|
208
|
-
}
|
|
209
|
-
|
|
201
|
+
import "./utils/getFiveStateOnCurve.js";
|
|
202
|
+
import "../shared-utils/formatRad.js";
|
|
203
|
+
import "./Work.js";
|
|
204
|
+
import "./utils/coordinatesToVector.js";
|
|
205
|
+
const F = "CruisePlugin", b = `${F}`, nr = (h) => `${b}--${h}`, D = () => {
|
|
206
|
+
console.error(`${b} is disposed`);
|
|
207
|
+
}, H = () => {
|
|
208
|
+
console.warn(`${b} is disabled`);
|
|
209
|
+
}, J = () => {
|
|
210
|
+
console.error(`${b} is disabled`);
|
|
211
|
+
}, w = /* @__PURE__ */ new Map();
|
|
212
|
+
class mr extends Q {
|
|
210
213
|
constructor(e, t) {
|
|
211
214
|
super(e, t);
|
|
212
|
-
|
|
215
|
+
S(this, "state", {
|
|
213
216
|
visible: !0,
|
|
214
217
|
enabled: !0,
|
|
215
218
|
disposed: !1,
|
|
@@ -224,52 +227,47 @@ class z extends V {
|
|
|
224
227
|
}
|
|
225
228
|
}
|
|
226
229
|
});
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
+
S(this, "data");
|
|
231
|
+
S(this, "config");
|
|
232
|
+
S(this, "privateState", {
|
|
230
233
|
playing: !1,
|
|
231
234
|
currentPlayQueue: [],
|
|
232
235
|
currentPlayKeyframe: null,
|
|
233
236
|
broke: !1,
|
|
234
|
-
disposers: [],
|
|
235
237
|
modeChanging: !1
|
|
236
238
|
});
|
|
237
|
-
|
|
238
|
-
this.config = t, Object.assign(window, { [`__${
|
|
239
|
-
const r = this.setFiveLinearUpdateCamera.bind(this), i = this.setFiveOriginUpdateCamera.bind(this);
|
|
240
|
-
this.hooks.on("play", r), this.hooks.on("broke", i), this.hooks.on("end", i), this.hooks.on("pause", i), this.privateState.disposers.push(() => {
|
|
241
|
-
this.hooks.off("play", r), this.hooks.off("broke", i), this.hooks.off("end", i), this.hooks.off("pause", i);
|
|
242
|
-
});
|
|
239
|
+
S(this, "GuideLine");
|
|
240
|
+
this.config = t, Object.assign(window, { [`__${F}_DEBUG__`]: this });
|
|
243
241
|
}
|
|
244
242
|
/**
|
|
245
243
|
* @description Load Data and State
|
|
246
244
|
*/
|
|
247
245
|
load(e, t, r) {
|
|
248
|
-
return
|
|
249
|
-
var o, m
|
|
246
|
+
return y(this, null, function* () {
|
|
247
|
+
var o, m;
|
|
250
248
|
if (this.state.disposed)
|
|
251
249
|
return D();
|
|
252
|
-
this.
|
|
250
|
+
this.clear();
|
|
253
251
|
const i = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, n = yield this.formatData(e);
|
|
254
252
|
this.data = n, this.hooks.emit("dataChange", n, i);
|
|
255
|
-
let s = [],
|
|
256
|
-
const a = this.data.keyframes.filter((
|
|
257
|
-
a.filter((
|
|
258
|
-
var
|
|
259
|
-
return
|
|
260
|
-
}).map((
|
|
261
|
-
var
|
|
262
|
-
const
|
|
263
|
-
if (
|
|
264
|
-
if (
|
|
265
|
-
const
|
|
266
|
-
s[
|
|
253
|
+
let s = [], p;
|
|
254
|
+
const a = this.data.keyframes.filter((d) => d.data.panoIndex !== void 0);
|
|
255
|
+
a.filter((d, l) => {
|
|
256
|
+
var u;
|
|
257
|
+
return d.data.panoIndex !== ((u = a[l - 1]) == null ? void 0 : u.data.panoIndex);
|
|
258
|
+
}).map((d) => d.data.panoIndex).forEach((d) => {
|
|
259
|
+
var u, v;
|
|
260
|
+
const l = (u = this.five.work.observers[d]) == null ? void 0 : u.floorIndex;
|
|
261
|
+
if (l !== void 0)
|
|
262
|
+
if (p === l) {
|
|
263
|
+
const c = s.length - 1;
|
|
264
|
+
s[c] = [...(v = s[c]) != null ? v : [], d];
|
|
267
265
|
} else {
|
|
268
|
-
|
|
269
|
-
const
|
|
270
|
-
s[
|
|
266
|
+
p = l;
|
|
267
|
+
const c = s.length;
|
|
268
|
+
s[c] = [d];
|
|
271
269
|
}
|
|
272
|
-
}), !this.GuideLine && ((
|
|
270
|
+
}), !this.GuideLine && ((o = this.config) == null ? void 0 : o.useGuideLine) !== !1 && n.useGuildLine !== !1 && (this.GuideLine = $(this.five, this.config)), (m = this.GuideLine) == null || m.load({ routes: s.map((d) => ({ panoIndexList: d })), config: n.guildPluginOptions }), t ? this.setState(t, { userAction: r }) : (this.setState({ playing: !1 }, { userAction: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing, { userAction: !1 }), this.changeSpeed(this.state.speed)), this.clearPauseData(), console.debug(`${b} loaded`, n), this.hooks.emit("dataLoaded", n);
|
|
273
271
|
});
|
|
274
272
|
}
|
|
275
273
|
/**
|
|
@@ -291,7 +289,7 @@ class z extends V {
|
|
|
291
289
|
* @description Play from first keyframe
|
|
292
290
|
*/
|
|
293
291
|
playFromStart(e) {
|
|
294
|
-
return this.playFrom(
|
|
292
|
+
return this.playFrom(x(g({}, e), { index: 0 }));
|
|
295
293
|
}
|
|
296
294
|
/**
|
|
297
295
|
* @description Pause
|
|
@@ -303,7 +301,7 @@ class z extends V {
|
|
|
303
301
|
* @description Show guide line
|
|
304
302
|
*/
|
|
305
303
|
show(e) {
|
|
306
|
-
return
|
|
304
|
+
return y(this, null, function* () {
|
|
307
305
|
this.setState({ visible: !0 }, e);
|
|
308
306
|
});
|
|
309
307
|
}
|
|
@@ -311,7 +309,7 @@ class z extends V {
|
|
|
311
309
|
* @description Hide guide line
|
|
312
310
|
*/
|
|
313
311
|
hide(e) {
|
|
314
|
-
return
|
|
312
|
+
return y(this, null, function* () {
|
|
315
313
|
this.setState({ visible: !1 }, e);
|
|
316
314
|
});
|
|
317
315
|
}
|
|
@@ -341,52 +339,52 @@ class z extends V {
|
|
|
341
339
|
if (this.state.disposed)
|
|
342
340
|
return D();
|
|
343
341
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
344
|
-
return
|
|
345
|
-
const r =
|
|
346
|
-
this.state =
|
|
342
|
+
return J();
|
|
343
|
+
const r = g({}, this.state);
|
|
344
|
+
this.state = g(g({}, this.state), e), e.disposed !== void 0 && e.disposed !== r.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== r.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== r.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== r.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== r.speed && this.changeSpeed(e.speed, t == null ? void 0 : t.userAction), V(r, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: r, userAction: (i = t == null ? void 0 : t.userAction) != null ? i : !0 });
|
|
347
345
|
}
|
|
348
346
|
/**
|
|
349
347
|
* @description Format data
|
|
350
348
|
*/
|
|
351
349
|
formatData(e) {
|
|
352
|
-
return
|
|
353
|
-
this.five.work || (yield this.
|
|
350
|
+
return y(this, null, function* () {
|
|
351
|
+
this.five.work || (yield j(this.five));
|
|
354
352
|
const t = this.five.work.observers, r = (() => {
|
|
355
353
|
const i = e;
|
|
356
354
|
return typeof i == "object" && i !== null && i.version && i.data ? i.data : i;
|
|
357
355
|
})();
|
|
358
356
|
if (r.keyframes)
|
|
359
357
|
return {
|
|
360
|
-
keyframesId:
|
|
358
|
+
keyframesId: I(),
|
|
361
359
|
keyframes: r.keyframes.map((i, n) => {
|
|
362
360
|
var a;
|
|
363
|
-
const s = r.keyframes[n + 1],
|
|
364
|
-
return
|
|
361
|
+
const s = r.keyframes[n + 1], p = (() => !s || s.start === void 0 || i.end === void 0 ? 0 : s.start - i.end)();
|
|
362
|
+
return x(g({ id: (a = i.uuid) != null ? a : I(), moveIndex: n, stay: p, index: n }, i), { guildPluginOptions: r.guildPluginOptions });
|
|
365
363
|
})
|
|
366
364
|
};
|
|
367
365
|
if (r.panoIndexList) {
|
|
368
366
|
let i = [];
|
|
369
|
-
const { moveEffect: n, moveToFirstPanoEffect: s, moveToFirstPanoDuration:
|
|
370
|
-
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration =
|
|
367
|
+
const { moveEffect: n, moveToFirstPanoEffect: s, moveToFirstPanoDuration: p } = r;
|
|
368
|
+
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = p, r.panoIndexList.forEach((a, o) => {
|
|
371
369
|
const m = (() => {
|
|
372
|
-
var
|
|
373
|
-
const
|
|
374
|
-
if (
|
|
370
|
+
var c, P, E, L;
|
|
371
|
+
const d = r.panoIndexList.slice(o).find((M) => M !== a);
|
|
372
|
+
if (d === void 0)
|
|
375
373
|
return;
|
|
376
|
-
const
|
|
377
|
-
if (!
|
|
374
|
+
const l = (c = t[a]) == null ? void 0 : c.position, u = (P = t[d]) == null ? void 0 : P.position;
|
|
375
|
+
if (!u || !l || ((E = t[a]) == null ? void 0 : E.floorIndex) !== ((L = t[d]) == null ? void 0 : L.floorIndex))
|
|
378
376
|
return;
|
|
379
|
-
const
|
|
380
|
-
return
|
|
377
|
+
const v = new R.Vector3().subVectors(u, l);
|
|
378
|
+
return W(v.normalize());
|
|
381
379
|
})();
|
|
382
380
|
r.moveType === void 0 || r.moveType === "justMove" ? i.push({
|
|
383
381
|
moveIndex: o,
|
|
384
382
|
stay: r.stay,
|
|
385
|
-
data:
|
|
386
|
-
}) : r.moveType === "moveAndRotate" && (i.push({ moveIndex: o, stay: r.stay, data: { effect: "Move", panoIndex: a, moveEffect: n } }), m && i.push({ moveIndex: o, stay: r.stay, data:
|
|
383
|
+
data: g({ effect: "Move", panoIndex: a, moveEffect: n }, m != null ? m : {})
|
|
384
|
+
}) : r.moveType === "moveAndRotate" && (i.push({ moveIndex: o, stay: r.stay, data: { effect: "Move", panoIndex: a, moveEffect: n } }), m && i.push({ moveIndex: o, stay: r.stay, data: g({ effect: "Rotate", panoIndex: a }, m) }));
|
|
387
385
|
}), {
|
|
388
|
-
keyframesId:
|
|
389
|
-
keyframes: i.map((a, o) =>
|
|
386
|
+
keyframesId: I(),
|
|
387
|
+
keyframes: i.map((a, o) => g({ id: I(), index: o }, a)),
|
|
390
388
|
guildPluginOptions: r.guildPluginOptions,
|
|
391
389
|
useGuildLine: r.useGuildLine
|
|
392
390
|
};
|
|
@@ -417,49 +415,49 @@ class z extends V {
|
|
|
417
415
|
*/
|
|
418
416
|
// eslint-disable-next-line complexity
|
|
419
417
|
handlePlay(e) {
|
|
420
|
-
return
|
|
421
|
-
var
|
|
418
|
+
return y(this, null, function* () {
|
|
419
|
+
var l;
|
|
422
420
|
const { data: t, state: r, privateState: i, hooks: n } = this;
|
|
423
421
|
if (i.playing || !(t != null && t.keyframes) || (t == null ? void 0 : t.keyframes.length) === 0)
|
|
424
422
|
return;
|
|
425
|
-
const s =
|
|
423
|
+
const s = I();
|
|
426
424
|
i.playId = s, i.playing = !0, i.broke = !1;
|
|
427
|
-
const
|
|
428
|
-
(e == null ? void 0 : e.notEmitEvent) !== !0 && n.emit("play", { userAction: (
|
|
425
|
+
const p = t.keyframes, a = this.getPauseData();
|
|
426
|
+
(e == null ? void 0 : e.notEmitEvent) !== !0 && n.emit("play", { userAction: (l = e == null ? void 0 : e.userAction) != null ? l : !0 });
|
|
429
427
|
let o = !1;
|
|
430
|
-
const
|
|
431
|
-
var
|
|
428
|
+
const d = yield (() => y(this, null, function* () {
|
|
429
|
+
var u, v;
|
|
432
430
|
if ((e == null ? void 0 : e.playFromIndex) !== void 0)
|
|
433
431
|
return e.playFromIndex;
|
|
434
432
|
if ((e == null ? void 0 : e.playFromId) !== void 0)
|
|
435
|
-
return (
|
|
436
|
-
if (a != null && a.
|
|
437
|
-
const
|
|
433
|
+
return (u = this.data) == null ? void 0 : u.keyframes.findIndex((c) => c.id === e.playFromId);
|
|
434
|
+
if (a != null && a.id) {
|
|
435
|
+
const c = (v = this.data) == null ? void 0 : v.keyframes.find((P) => P.id === a.id);
|
|
438
436
|
if (a != null && a.fiveState && (yield this.move(a.fiveState, {
|
|
439
437
|
moveEffect: i.moveToFirstPanoEffect,
|
|
440
438
|
duration: i.moveToFirstPanoDuration
|
|
441
|
-
})),
|
|
442
|
-
if (
|
|
443
|
-
return
|
|
444
|
-
if (
|
|
445
|
-
const
|
|
446
|
-
return yield this.playKeyframe(
|
|
439
|
+
})), c) {
|
|
440
|
+
if (c.data.effect === "Move")
|
|
441
|
+
return c.index;
|
|
442
|
+
if (c.data.effect === "Rotate") {
|
|
443
|
+
const P = a.duration !== void 0 ? a.duration * (1 - a.playedProgress) : void 0;
|
|
444
|
+
return yield this.playKeyframe(c, { duration: P }), o = !0, c.index + 1;
|
|
447
445
|
}
|
|
448
446
|
}
|
|
449
447
|
}
|
|
450
448
|
}))();
|
|
451
449
|
this.clearPauseData();
|
|
452
|
-
for (const
|
|
450
|
+
for (const u of p) {
|
|
453
451
|
if (i.broke || !r.playing || !i.playing || s !== i.playId)
|
|
454
452
|
return;
|
|
455
|
-
if (!(
|
|
453
|
+
if (!(d !== void 0 && u.index < d))
|
|
456
454
|
try {
|
|
457
|
-
n.emit("playIndexChange",
|
|
455
|
+
n.emit("playIndexChange", u.index, u), yield this.playKeyframe(u, {
|
|
458
456
|
moveEffect: o === !1 ? i.moveToFirstPanoEffect : void 0,
|
|
459
457
|
duration: o === !1 && typeof i.moveToFirstPanoDuration == "number" ? i.moveToFirstPanoDuration : void 0
|
|
460
|
-
}),
|
|
461
|
-
} catch (
|
|
462
|
-
return console.error(
|
|
458
|
+
}), u.stay && (yield N(u.stay)), o === !1 && (o = !0);
|
|
459
|
+
} catch (v) {
|
|
460
|
+
return console.error(v), Promise.resolve("broke");
|
|
463
461
|
}
|
|
464
462
|
}
|
|
465
463
|
r.playing && s === i.playId && (this.setState({ playing: !1 }, { userAction: !1 }), n.emit("end"), this.clearPauseData());
|
|
@@ -477,7 +475,7 @@ class z extends V {
|
|
|
477
475
|
* @description Play single keyframe
|
|
478
476
|
*/
|
|
479
477
|
playKeyframe(e, t) {
|
|
480
|
-
return
|
|
478
|
+
return y(this, null, function* () {
|
|
481
479
|
var i;
|
|
482
480
|
const { privateState: r } = this;
|
|
483
481
|
return ((i = this.privateState.currentPlayKeyframe) == null ? void 0 : i.keyframe.id) !== e.id && (this.privateState.currentPlayKeyframe = { keyframe: e }), r.currentPlayQueue.push(this.getPlayPromise(e, t)), this.actionPromiseQueue();
|
|
@@ -500,15 +498,15 @@ class z extends V {
|
|
|
500
498
|
* @description: getPlayPromise
|
|
501
499
|
*/
|
|
502
500
|
getPlayPromise(r) {
|
|
503
|
-
return
|
|
501
|
+
return y(this, arguments, function* (e, t = {}) {
|
|
504
502
|
var n;
|
|
505
503
|
const i = e.data;
|
|
506
504
|
if (t.duration = (n = t.duration) != null ? n : e.start !== void 0 && e.end !== void 0 ? e.end - e.start : void 0, !!i)
|
|
507
|
-
return new Promise((s,
|
|
505
|
+
return new Promise((s, p) => {
|
|
508
506
|
let a = !1;
|
|
509
507
|
this.addInterruptListener(() => {
|
|
510
508
|
if (!a)
|
|
511
|
-
return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), a = !0,
|
|
509
|
+
return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), a = !0, p(new Error("play is interupted"));
|
|
512
510
|
});
|
|
513
511
|
try {
|
|
514
512
|
if (a)
|
|
@@ -535,7 +533,7 @@ class z extends V {
|
|
|
535
533
|
* @description Action promise queue in sequence
|
|
536
534
|
*/
|
|
537
535
|
actionPromiseQueue() {
|
|
538
|
-
return
|
|
536
|
+
return y(this, null, function* () {
|
|
539
537
|
const { privateState: e } = this;
|
|
540
538
|
return new Promise((t, r) => {
|
|
541
539
|
if (e.currentPlayQueue.length === 0) {
|
|
@@ -555,7 +553,7 @@ class z extends V {
|
|
|
555
553
|
* @description Action move keyframe
|
|
556
554
|
*/
|
|
557
555
|
move(e, t) {
|
|
558
|
-
return
|
|
556
|
+
return y(this, null, function* () {
|
|
559
557
|
if (e.mode && e.mode !== this.five.currentMode)
|
|
560
558
|
yield this.changeMode(e);
|
|
561
559
|
else if (e.panoIndex !== this.five.panoIndex)
|
|
@@ -568,7 +566,7 @@ class z extends V {
|
|
|
568
566
|
* @description Action rotate keyframe
|
|
569
567
|
*/
|
|
570
568
|
rotate(e, t) {
|
|
571
|
-
return
|
|
569
|
+
return y(this, null, function* () {
|
|
572
570
|
if (e.mode && e.mode !== this.five.currentMode)
|
|
573
571
|
yield this.changeMode({ mode: e.mode, panoIndex: e.panoIndex });
|
|
574
572
|
else if (e.panoIndex && e.panoIndex !== this.five.panoIndex)
|
|
@@ -580,20 +578,20 @@ class z extends V {
|
|
|
580
578
|
* @description Update five camera
|
|
581
579
|
*/
|
|
582
580
|
updateCamera(r) {
|
|
583
|
-
return
|
|
584
|
-
const { five: i, privateState: n, state: s } = this,
|
|
585
|
-
var
|
|
586
|
-
const m = (
|
|
581
|
+
return y(this, arguments, function* (e, t = {}) {
|
|
582
|
+
const { five: i, privateState: n, state: s } = this, p = (() => {
|
|
583
|
+
var l, u;
|
|
584
|
+
const m = (l = s.config) == null ? void 0 : l.speedConfig, d = (u = e.rotateSpeed) != null ? u : m == null ? void 0 : m.rotateSpeed;
|
|
587
585
|
if ((m == null ? void 0 : m.rotateSpeedUnit) === void 0)
|
|
588
|
-
return
|
|
589
|
-
if (
|
|
590
|
-
return m.rotateSpeedUnit === "rad/ms" ?
|
|
586
|
+
return d;
|
|
587
|
+
if (d !== void 0)
|
|
588
|
+
return m.rotateSpeedUnit === "rad/ms" ? d : d / 1e3;
|
|
591
589
|
})(), a = (() => {
|
|
592
590
|
if (t.duration)
|
|
593
591
|
return t.duration;
|
|
594
|
-
if (
|
|
592
|
+
if (p) {
|
|
595
593
|
const m = this.five.getCurrentState();
|
|
596
|
-
return
|
|
594
|
+
return O(m, e) / p;
|
|
597
595
|
}
|
|
598
596
|
return 800;
|
|
599
597
|
})();
|
|
@@ -608,15 +606,15 @@ class z extends V {
|
|
|
608
606
|
* @description: Change five pano
|
|
609
607
|
*/
|
|
610
608
|
changePano(e, t) {
|
|
611
|
-
return
|
|
609
|
+
return y(this, null, function* () {
|
|
612
610
|
const { five: r, privateState: i, state: n } = this;
|
|
613
611
|
if (typeof e.panoIndex != "number" || e.panoIndex === r.panoIndex)
|
|
614
612
|
return;
|
|
615
613
|
const s = r.getCurrentState().mode !== "Panorama";
|
|
616
614
|
s && (this.privateState.modeChanging = !0);
|
|
617
|
-
const
|
|
618
|
-
var
|
|
619
|
-
const o = (
|
|
615
|
+
const p = (() => {
|
|
616
|
+
var d, l;
|
|
617
|
+
const o = (d = n.config) == null ? void 0 : d.speedConfig, m = (l = e.moveSpeed) != null ? l : o == null ? void 0 : o.moveSpeed;
|
|
620
618
|
if ((o == null ? void 0 : o.moveSpeedUnit) === void 0)
|
|
621
619
|
return m;
|
|
622
620
|
if (m !== void 0)
|
|
@@ -624,20 +622,20 @@ class z extends V {
|
|
|
624
622
|
})(), a = (() => {
|
|
625
623
|
if (t != null && t.duration)
|
|
626
624
|
return t.duration;
|
|
627
|
-
if (
|
|
625
|
+
if (p && typeof r.panoIndex == "number" && typeof e.panoIndex == "number") {
|
|
628
626
|
const o = r.work.observers[r.panoIndex].position, m = r.work.observers[e.panoIndex].position;
|
|
629
|
-
return o.distanceTo(m) /
|
|
627
|
+
return o.distanceTo(m) / p;
|
|
630
628
|
}
|
|
631
629
|
return 800;
|
|
632
630
|
})();
|
|
633
631
|
i.currentPlayKeyframe && (i.currentPlayKeyframe.originDuration = a), yield new Promise((o) => {
|
|
634
|
-
var m,
|
|
632
|
+
var m, d, l;
|
|
635
633
|
r.moveToPano(e.panoIndex, {
|
|
636
634
|
latitude: e.latitude,
|
|
637
635
|
longitude: e.longitude,
|
|
638
636
|
fov: e.fov,
|
|
639
637
|
duration: this.getSpeededDuration(a),
|
|
640
|
-
effect: (
|
|
638
|
+
effect: (l = (d = t == null ? void 0 : t.moveEffect) != null ? d : (m = this.state.config) == null ? void 0 : m.moveEffect) != null ? l : e.moveEffect,
|
|
641
639
|
moveCancelCallback: () => o(),
|
|
642
640
|
moveEndCallback: () => o()
|
|
643
641
|
}), s && r.once("panoArrived", () => o());
|
|
@@ -651,9 +649,9 @@ class z extends V {
|
|
|
651
649
|
const { state: r, privateState: i, hooks: n } = this, { currentPlayKeyframe: s } = i;
|
|
652
650
|
if (n.emit("speedChange", e, { userAction: t }), r.playing && s)
|
|
653
651
|
try {
|
|
654
|
-
const
|
|
652
|
+
const p = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0, a = this.playKeyframe(s.keyframe, { duration: p });
|
|
655
653
|
i.currentPlayQueue.push(a);
|
|
656
|
-
} catch (
|
|
654
|
+
} catch (p) {
|
|
657
655
|
}
|
|
658
656
|
}
|
|
659
657
|
/**
|
|
@@ -672,7 +670,7 @@ class z extends V {
|
|
|
672
670
|
* @description Change five mode
|
|
673
671
|
*/
|
|
674
672
|
changeMode(e, t) {
|
|
675
|
-
return
|
|
673
|
+
return y(this, null, function* () {
|
|
676
674
|
e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(e.mode, e, t), this.privateState.modeChanging = !1);
|
|
677
675
|
});
|
|
678
676
|
}
|
|
@@ -685,7 +683,7 @@ class z extends V {
|
|
|
685
683
|
getPauseData() {
|
|
686
684
|
var e, t;
|
|
687
685
|
if ((e = this.data) != null && e.keyframesId)
|
|
688
|
-
return
|
|
686
|
+
return w.get((t = this.data) == null ? void 0 : t.keyframesId);
|
|
689
687
|
}
|
|
690
688
|
/**
|
|
691
689
|
* @description Set pause data
|
|
@@ -693,8 +691,8 @@ class z extends V {
|
|
|
693
691
|
setPauseData() {
|
|
694
692
|
var e, t, r, i;
|
|
695
693
|
if ((e = this.data) != null && e.keyframesId)
|
|
696
|
-
return
|
|
697
|
-
|
|
694
|
+
return w.set((t = this.data) == null ? void 0 : t.keyframesId, {
|
|
695
|
+
id: (r = this.privateState.currentPlayKeyframe) == null ? void 0 : r.keyframe.id,
|
|
698
696
|
fiveState: this.five.getCurrentState(),
|
|
699
697
|
duration: (i = this.privateState.currentPlayKeyframe) == null ? void 0 : i.originDuration,
|
|
700
698
|
playedProgress: this.getProgress()
|
|
@@ -706,7 +704,7 @@ class z extends V {
|
|
|
706
704
|
clearPauseData() {
|
|
707
705
|
var e, t;
|
|
708
706
|
if ((e = this.data) != null && e.keyframesId)
|
|
709
|
-
return
|
|
707
|
+
return w.delete((t = this.data) == null ? void 0 : t.keyframesId);
|
|
710
708
|
}
|
|
711
709
|
/**
|
|
712
710
|
* @description: Restore state that before loaded
|
|
@@ -716,8 +714,8 @@ class z extends V {
|
|
|
716
714
|
}
|
|
717
715
|
// TODO
|
|
718
716
|
handleDispose() {
|
|
719
|
-
var e
|
|
720
|
-
this.setState({ playing: !1 }), this.clearPauseData(), this.clear(), (e = this.GuideLine) == null || e.dispose(), this.GuideLine = void 0
|
|
717
|
+
var e;
|
|
718
|
+
this.setState({ playing: !1 }), this.clearPauseData(), this.clear(), (e = this.GuideLine) == null || e.dispose(), this.GuideLine = void 0;
|
|
721
719
|
}
|
|
722
720
|
/**
|
|
723
721
|
* @description Action function if plugin is enable
|
|
@@ -725,36 +723,10 @@ class z extends V {
|
|
|
725
723
|
actionIfStateIsEnabled(e, t) {
|
|
726
724
|
if (this.state.enabled)
|
|
727
725
|
return e();
|
|
728
|
-
t != null && t.warnLog &&
|
|
729
|
-
}
|
|
730
|
-
/**
|
|
731
|
-
* @description: Wait for five work ready
|
|
732
|
-
*/
|
|
733
|
-
waitFiveLoaded() {
|
|
734
|
-
return v(this, null, function* () {
|
|
735
|
-
return new Promise((e) => {
|
|
736
|
-
if (this.five.work) {
|
|
737
|
-
e();
|
|
738
|
-
return;
|
|
739
|
-
}
|
|
740
|
-
this.five.once("loaded", () => {
|
|
741
|
-
e();
|
|
742
|
-
});
|
|
743
|
-
});
|
|
744
|
-
});
|
|
745
|
-
}
|
|
746
|
-
setFiveLinearUpdateCamera() {
|
|
747
|
-
this.privateState.fiveOriginGetProgress && (this.five.controller.cameraMotion.getProgress = (e) => {
|
|
748
|
-
const t = this.five.controller.cameraMotion, r = e - t.startTime;
|
|
749
|
-
return r < 0 ? 0 : r >= t.duration ? 1 : 1 - H(1, t.startVelocity, t.duration, r);
|
|
750
|
-
});
|
|
751
|
-
}
|
|
752
|
-
setFiveOriginUpdateCamera() {
|
|
753
|
-
this.privateState.fiveOriginGetProgress && (this.five.controller.cameraMotion.getProgress = this.privateState.fiveOriginGetProgress);
|
|
726
|
+
t != null && t.warnLog && H();
|
|
754
727
|
}
|
|
755
728
|
}
|
|
756
|
-
I(z, "PluginVersion", M);
|
|
757
729
|
export {
|
|
758
|
-
|
|
759
|
-
|
|
730
|
+
mr as default,
|
|
731
|
+
nr as pluginFlag
|
|
760
732
|
};
|
|
@@ -1,9 +1,10 @@
|
|
|
1
1
|
import type { FivePlugin } from '@realsee/five';
|
|
2
|
-
import CruisePluginController from './Controller';
|
|
3
2
|
import * as CruisePluginTypes from './typing';
|
|
4
3
|
import type { Config } from './typing';
|
|
5
|
-
|
|
6
|
-
|
|
4
|
+
import WalkController from './Work';
|
|
5
|
+
import MoveController from './Move';
|
|
6
|
+
export declare const CruisePlugin: FivePlugin<Config | undefined, InstanceType<typeof WalkController>>;
|
|
7
|
+
export { WalkController, MoveController, MoveController as CruisePluginController };
|
|
7
8
|
export type { CruisePluginExportType } from './typing';
|
|
8
9
|
export default CruisePlugin;
|
|
9
10
|
export { CruisePluginTypes };
|
|
@@ -1,5 +1,6 @@
|
|
|
1
|
-
import
|
|
2
|
-
import
|
|
1
|
+
import { typing as yt } from "./typing/index.js";
|
|
2
|
+
import o from "./Work.js";
|
|
3
|
+
import { default as kt, default as vt } from "./Move.js";
|
|
3
4
|
import "../base/BasePluginWithData.js";
|
|
4
5
|
import "../base/BasePlugin.js";
|
|
5
6
|
import "../shared-utils/Subscribe.js";
|
|
@@ -164,17 +165,21 @@ import "../GuideLinePlugin/utils/index.js";
|
|
|
164
165
|
import "../shared-utils/to.js";
|
|
165
166
|
import "../shared-utils/five/changeMode.js";
|
|
166
167
|
import "../shared-utils/nearlyEqual.js";
|
|
168
|
+
import "../shared-utils/five/fiveLoaded.js";
|
|
167
169
|
import "./utils/coordinatesAngle.js";
|
|
168
170
|
import "./utils/coordinatesToVector.js";
|
|
169
171
|
import "./utils/safeCall.js";
|
|
170
|
-
import "./utils/vectorToCoordinates.js";
|
|
171
|
-
import "./utils/formatRad.js";
|
|
172
|
-
import "./utils/linerValue.js";
|
|
173
172
|
import "./utils/sleep.js";
|
|
174
|
-
|
|
173
|
+
import "../shared-utils/vectorToCoordinate.js";
|
|
174
|
+
import "../shared-utils/formatRad.js";
|
|
175
|
+
import "./CruiseController.js";
|
|
176
|
+
import "./utils/getFiveStateOnCurve.js";
|
|
177
|
+
const dt = (r) => new o(r);
|
|
175
178
|
export {
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
179
|
+
dt as CruisePlugin,
|
|
180
|
+
kt as CruisePluginController,
|
|
181
|
+
yt as CruisePluginTypes,
|
|
182
|
+
vt as MoveController,
|
|
183
|
+
o as WalkController,
|
|
184
|
+
dt as default
|
|
180
185
|
};
|