@realsee/dnalogel 3.5.0-dev.1 → 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 +3 -3
- package/dist/CruisePlugin/Work.d.ts +48 -92
- package/dist/index.cjs.js +51 -51
- package/dist/index.js +2797 -2937
- 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 +25 -25
- 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 +3 -3
- package/libs/CruisePlugin/Move.js +1 -1
- 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,42 +1,43 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
var
|
|
5
|
-
var
|
|
6
|
-
for (var
|
|
7
|
-
|
|
8
|
-
if (
|
|
9
|
-
for (var
|
|
10
|
-
|
|
1
|
+
var D = Object.defineProperty, C = Object.defineProperties;
|
|
2
|
+
var K = Object.getOwnPropertyDescriptors;
|
|
3
|
+
var E = Object.getOwnPropertySymbols;
|
|
4
|
+
var L = Object.prototype.hasOwnProperty, T = Object.prototype.propertyIsEnumerable;
|
|
5
|
+
var I = (h, l, t) => l in h ? D(h, l, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[l] = t, g = (h, l) => {
|
|
6
|
+
for (var t in l || (l = {}))
|
|
7
|
+
L.call(l, t) && I(h, t, l[t]);
|
|
8
|
+
if (E)
|
|
9
|
+
for (var t of E(l))
|
|
10
|
+
T.call(l, t) && I(h, t, l[t]);
|
|
11
11
|
return h;
|
|
12
|
-
}, x = (h,
|
|
13
|
-
var
|
|
14
|
-
var y = (h,
|
|
15
|
-
var
|
|
12
|
+
}, x = (h, l) => C(h, K(l));
|
|
13
|
+
var k = (h, l, t) => (I(h, typeof l != "symbol" ? l + "" : l, t), t);
|
|
14
|
+
var y = (h, l, t) => new Promise((i, r) => {
|
|
15
|
+
var e = (d) => {
|
|
16
16
|
try {
|
|
17
|
-
s(
|
|
18
|
-
} catch (
|
|
19
|
-
r(
|
|
17
|
+
s(t.next(d));
|
|
18
|
+
} catch (o) {
|
|
19
|
+
r(o);
|
|
20
20
|
}
|
|
21
|
-
}, n = (
|
|
21
|
+
}, n = (d) => {
|
|
22
22
|
try {
|
|
23
|
-
s(
|
|
24
|
-
} catch (
|
|
25
|
-
r(
|
|
23
|
+
s(t.throw(d));
|
|
24
|
+
} catch (o) {
|
|
25
|
+
r(o);
|
|
26
26
|
}
|
|
27
|
-
}, s = (
|
|
28
|
-
s((
|
|
27
|
+
}, s = (d) => d.done ? i(d.value) : Promise.resolve(d.value).then(e, n);
|
|
28
|
+
s((t = t.apply(h, l)).next());
|
|
29
29
|
});
|
|
30
|
-
import {
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
35
|
-
import {
|
|
36
|
-
import
|
|
37
|
-
import {
|
|
38
|
-
import
|
|
39
|
-
import
|
|
30
|
+
import { GuideLinePlugin as M } from "../GuideLinePlugin/index.js";
|
|
31
|
+
import { uuid as S } from "../shared-utils/uuid.js";
|
|
32
|
+
import { coordinatesAngle as A } from "./utils/coordinatesAngle.js";
|
|
33
|
+
import { safeCall as G } from "./utils/safeCall.js";
|
|
34
|
+
import * as O from "three";
|
|
35
|
+
import { sleep as Q } from "./utils/sleep.js";
|
|
36
|
+
import { waitFiveLoaded as U } from "../shared-utils/five/fiveLoaded.js";
|
|
37
|
+
import { vectorToCoordinates as _ } from "../shared-utils/vectorToCoordinate.js";
|
|
38
|
+
import R from "./BaseController.js";
|
|
39
|
+
import "../GuideLinePlugin/Controller.js";
|
|
40
|
+
import "../base/BasePluginWithData.js";
|
|
40
41
|
import "../base/BasePlugin.js";
|
|
41
42
|
import "../shared-utils/Subscribe.js";
|
|
42
43
|
import "hammerjs";
|
|
@@ -58,7 +59,8 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
58
59
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
59
60
|
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
60
61
|
import "../shared-utils/url/absoluteUrl.js";
|
|
61
|
-
import "../
|
|
62
|
+
import "../shared-utils/equal.js";
|
|
63
|
+
import "../shared-utils/isTruelyObject.js";
|
|
62
64
|
import "../GuideLinePlugin/GuideLineItem/index.js";
|
|
63
65
|
import "../GuideLinePlugin/GuideLineModeItem/index.js";
|
|
64
66
|
import "../shared-utils/log.js";
|
|
@@ -196,23 +198,15 @@ import "../shared-utils/to.js";
|
|
|
196
198
|
import "../shared-utils/five/changeMode.js";
|
|
197
199
|
import "../shared-utils/nearlyEqual.js";
|
|
198
200
|
import "./Move.js";
|
|
199
|
-
import "./CruiseController.js";
|
|
200
|
-
import "../shared-utils/isTruelyObject.js";
|
|
201
201
|
import "./utils/getFiveStateOnCurve.js";
|
|
202
202
|
import "../shared-utils/formatRad.js";
|
|
203
203
|
import "./Work.js";
|
|
204
204
|
import "./utils/coordinatesToVector.js";
|
|
205
|
-
const
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
console.error(`${b} is disabled`);
|
|
211
|
-
}, w = /* @__PURE__ */ new Map();
|
|
212
|
-
class mr extends Q {
|
|
213
|
-
constructor(e, t) {
|
|
214
|
-
super(e, t);
|
|
215
|
-
S(this, "state", {
|
|
205
|
+
const V = /* @__PURE__ */ new Map();
|
|
206
|
+
class er extends R {
|
|
207
|
+
constructor(t, i) {
|
|
208
|
+
super(t, i);
|
|
209
|
+
k(this, "state", {
|
|
216
210
|
visible: !0,
|
|
217
211
|
enabled: !0,
|
|
218
212
|
disposed: !1,
|
|
@@ -227,164 +221,103 @@ class mr extends Q {
|
|
|
227
221
|
}
|
|
228
222
|
}
|
|
229
223
|
});
|
|
230
|
-
|
|
231
|
-
S(this, "config");
|
|
232
|
-
S(this, "privateState", {
|
|
224
|
+
k(this, "privateState", {
|
|
233
225
|
playing: !1,
|
|
234
226
|
currentPlayQueue: [],
|
|
235
227
|
currentPlayKeyframe: null,
|
|
236
228
|
broke: !1,
|
|
237
229
|
modeChanging: !1
|
|
238
230
|
});
|
|
239
|
-
|
|
240
|
-
this.config = t, Object.assign(window, { [`__${F}_DEBUG__`]: this });
|
|
231
|
+
this.config = i, Object.assign(window, { __WalkPlugin_DEBUG__: this });
|
|
241
232
|
}
|
|
242
233
|
/**
|
|
243
234
|
* @description Load Data and State
|
|
244
235
|
*/
|
|
245
|
-
load(
|
|
236
|
+
load(t, i, r) {
|
|
246
237
|
return y(this, null, function* () {
|
|
247
|
-
var
|
|
238
|
+
var a, m;
|
|
248
239
|
if (this.state.disposed)
|
|
249
|
-
return
|
|
240
|
+
return this.disposedErrorLog();
|
|
250
241
|
this.clear();
|
|
251
|
-
const
|
|
252
|
-
this.data = n, this.hooks.emit("dataChange", n,
|
|
253
|
-
let s = [],
|
|
254
|
-
const
|
|
255
|
-
|
|
242
|
+
const e = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, n = yield this.formatData(t);
|
|
243
|
+
this.data = g({ id: n.keyframesId }, n), this.hooks.emit("dataChange", n, e);
|
|
244
|
+
let s = [], d;
|
|
245
|
+
const o = this.data.keyframes.filter((p) => p.data.panoIndex !== void 0);
|
|
246
|
+
o.filter((p, f) => {
|
|
256
247
|
var u;
|
|
257
|
-
return
|
|
258
|
-
}).map((
|
|
248
|
+
return p.data.panoIndex !== ((u = o[f - 1]) == null ? void 0 : u.data.panoIndex);
|
|
249
|
+
}).map((p) => p.data.panoIndex).forEach((p) => {
|
|
259
250
|
var u, v;
|
|
260
|
-
const
|
|
261
|
-
if (
|
|
262
|
-
if (
|
|
251
|
+
const f = (u = this.five.work.observers[p]) == null ? void 0 : u.floorIndex;
|
|
252
|
+
if (f !== void 0)
|
|
253
|
+
if (d === f) {
|
|
263
254
|
const c = s.length - 1;
|
|
264
|
-
s[c] = [...(v = s[c]) != null ? v : [],
|
|
255
|
+
s[c] = [...(v = s[c]) != null ? v : [], p];
|
|
265
256
|
} else {
|
|
266
|
-
|
|
257
|
+
d = f;
|
|
267
258
|
const c = s.length;
|
|
268
|
-
s[c] = [
|
|
259
|
+
s[c] = [p];
|
|
269
260
|
}
|
|
270
|
-
}), !this.GuideLine && ((
|
|
261
|
+
}), !this.GuideLine && ((a = this.config) == null ? void 0 : a.useGuideLine) !== !1 && n.useGuildLine !== !1 && (this.GuideLine = M(this.five, this.config)), (m = this.GuideLine) == null || m.load({ routes: s.map((p) => ({ panoIndexList: p })), config: n.guildPluginOptions }), i ? this.setState(i, { 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("WORKPLUGIN loaded", n), this.hooks.emit("dataLoaded", n);
|
|
271
262
|
});
|
|
272
263
|
}
|
|
273
|
-
/**
|
|
274
|
-
* @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
|
|
275
|
-
*/
|
|
276
|
-
play(e) {
|
|
277
|
-
this.setState({ playing: !0 }, e);
|
|
278
|
-
}
|
|
279
264
|
/**
|
|
280
265
|
* @description If playing, first pause, then play from keyframes index/id
|
|
281
266
|
* @param {number} options.index play from keyframes index
|
|
282
267
|
* @param {string} options.id play from keyframes id
|
|
283
268
|
*/
|
|
284
|
-
playFrom(
|
|
285
|
-
const { index:
|
|
286
|
-
this.state.playing && this.setState({ playing: !1 }, { userAction:
|
|
269
|
+
playFrom(t) {
|
|
270
|
+
const { index: i, id: r, userAction: e } = t;
|
|
271
|
+
this.state.playing && this.setState({ playing: !1 }, { userAction: e }), this.setState({ playing: !0 }, { userAction: e, playFromIndex: i, playFromId: r });
|
|
287
272
|
}
|
|
288
273
|
/**
|
|
289
274
|
* @description Play from first keyframe
|
|
290
275
|
*/
|
|
291
|
-
playFromStart(
|
|
292
|
-
return this.playFrom(x(g({},
|
|
293
|
-
}
|
|
294
|
-
/**
|
|
295
|
-
* @description Pause
|
|
296
|
-
*/
|
|
297
|
-
pause(e) {
|
|
298
|
-
this.setState({ playing: !1 }, e);
|
|
299
|
-
}
|
|
300
|
-
/**
|
|
301
|
-
* @description Show guide line
|
|
302
|
-
*/
|
|
303
|
-
show(e) {
|
|
304
|
-
return y(this, null, function* () {
|
|
305
|
-
this.setState({ visible: !0 }, e);
|
|
306
|
-
});
|
|
307
|
-
}
|
|
308
|
-
/**
|
|
309
|
-
* @description Hide guide line
|
|
310
|
-
*/
|
|
311
|
-
hide(e) {
|
|
312
|
-
return y(this, null, function* () {
|
|
313
|
-
this.setState({ visible: !1 }, e);
|
|
314
|
-
});
|
|
315
|
-
}
|
|
316
|
-
/**
|
|
317
|
-
* @description Enable
|
|
318
|
-
*/
|
|
319
|
-
enable(e) {
|
|
320
|
-
this.setState({ enabled: !0 }, e);
|
|
321
|
-
}
|
|
322
|
-
/**
|
|
323
|
-
* @description Disable
|
|
324
|
-
*/
|
|
325
|
-
disable(e) {
|
|
326
|
-
this.setState({ enabled: !1 }, e);
|
|
327
|
-
}
|
|
328
|
-
/**
|
|
329
|
-
* @description Dispose
|
|
330
|
-
*/
|
|
331
|
-
dispose() {
|
|
332
|
-
this.setState({ disposed: !0 });
|
|
333
|
-
}
|
|
334
|
-
/**
|
|
335
|
-
* @description Set state
|
|
336
|
-
*/
|
|
337
|
-
setState(e, t) {
|
|
338
|
-
var i;
|
|
339
|
-
if (this.state.disposed)
|
|
340
|
-
return D();
|
|
341
|
-
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
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 });
|
|
276
|
+
playFromStart(t) {
|
|
277
|
+
return this.playFrom(x(g({}, t), { index: 0 }));
|
|
345
278
|
}
|
|
346
279
|
/**
|
|
347
280
|
* @description Format data
|
|
348
281
|
*/
|
|
349
|
-
formatData(
|
|
282
|
+
formatData(t) {
|
|
350
283
|
return y(this, null, function* () {
|
|
351
|
-
this.five.work || (yield
|
|
352
|
-
const
|
|
353
|
-
const
|
|
354
|
-
return typeof
|
|
284
|
+
this.five.work || (yield U(this.five));
|
|
285
|
+
const i = this.five.work.observers, r = (() => {
|
|
286
|
+
const e = t;
|
|
287
|
+
return typeof e == "object" && e !== null && e.version && e.data ? e.data : e;
|
|
355
288
|
})();
|
|
356
289
|
if (r.keyframes)
|
|
357
290
|
return {
|
|
358
|
-
keyframesId:
|
|
359
|
-
keyframes: r.keyframes.map((
|
|
360
|
-
var
|
|
361
|
-
const s = r.keyframes[n + 1],
|
|
362
|
-
return x(g({ id: (
|
|
291
|
+
keyframesId: S(),
|
|
292
|
+
keyframes: r.keyframes.map((e, n) => {
|
|
293
|
+
var o;
|
|
294
|
+
const s = r.keyframes[n + 1], d = (() => !s || s.start === void 0 || e.end === void 0 ? 0 : s.start - e.end)();
|
|
295
|
+
return x(g({ id: (o = e.uuid) != null ? o : S(), moveIndex: n, stay: d, index: n }, e), { guildPluginOptions: r.guildPluginOptions });
|
|
363
296
|
})
|
|
364
297
|
};
|
|
365
298
|
if (r.panoIndexList) {
|
|
366
|
-
let
|
|
367
|
-
const { moveEffect: n, moveToFirstPanoEffect: s, moveToFirstPanoDuration:
|
|
368
|
-
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration =
|
|
299
|
+
let e = [];
|
|
300
|
+
const { moveEffect: n, moveToFirstPanoEffect: s, moveToFirstPanoDuration: d } = r;
|
|
301
|
+
return this.privateState.moveToFirstPanoEffect = s, this.privateState.moveToFirstPanoDuration = d, r.panoIndexList.forEach((o, a) => {
|
|
369
302
|
const m = (() => {
|
|
370
|
-
var c, P,
|
|
371
|
-
const
|
|
372
|
-
if (
|
|
303
|
+
var c, P, w, b;
|
|
304
|
+
const p = r.panoIndexList.slice(a).find((F) => F !== o);
|
|
305
|
+
if (p === void 0)
|
|
373
306
|
return;
|
|
374
|
-
const
|
|
375
|
-
if (!u || !
|
|
307
|
+
const f = (c = i[o]) == null ? void 0 : c.position, u = (P = i[p]) == null ? void 0 : P.position;
|
|
308
|
+
if (!u || !f || ((w = i[o]) == null ? void 0 : w.floorIndex) !== ((b = i[p]) == null ? void 0 : b.floorIndex))
|
|
376
309
|
return;
|
|
377
|
-
const v = new
|
|
378
|
-
return
|
|
310
|
+
const v = new O.Vector3().subVectors(u, f);
|
|
311
|
+
return _(v.normalize());
|
|
379
312
|
})();
|
|
380
|
-
r.moveType === void 0 || r.moveType === "justMove" ?
|
|
381
|
-
moveIndex:
|
|
313
|
+
r.moveType === void 0 || r.moveType === "justMove" ? e.push({
|
|
314
|
+
moveIndex: a,
|
|
382
315
|
stay: r.stay,
|
|
383
|
-
data: g({ effect: "Move", panoIndex:
|
|
384
|
-
}) : r.moveType === "moveAndRotate" && (
|
|
316
|
+
data: g({ effect: "Move", panoIndex: o, moveEffect: n }, m != null ? m : {})
|
|
317
|
+
}) : r.moveType === "moveAndRotate" && (e.push({ moveIndex: a, stay: r.stay, data: { effect: "Move", panoIndex: o, moveEffect: n } }), m && e.push({ moveIndex: a, stay: r.stay, data: g({ effect: "Rotate", panoIndex: o }, m) }));
|
|
385
318
|
}), {
|
|
386
|
-
keyframesId:
|
|
387
|
-
keyframes:
|
|
319
|
+
keyframesId: S(),
|
|
320
|
+
keyframes: e.map((o, a) => g({ id: S(), index: a }, o)),
|
|
388
321
|
guildPluginOptions: r.guildPluginOptions,
|
|
389
322
|
useGuildLine: r.useGuildLine
|
|
390
323
|
};
|
|
@@ -392,139 +325,147 @@ class mr extends Q {
|
|
|
392
325
|
throw new Error("format error: data no keyframes or no panoIndexList");
|
|
393
326
|
});
|
|
394
327
|
}
|
|
395
|
-
handleEnable(e, t = !0) {
|
|
396
|
-
var r, i;
|
|
397
|
-
e ? ((r = this.GuideLine) == null || r.enable(), this.hooks.emit("enable", { userAction: t })) : ((i = this.GuideLine) == null || i.disable(), this.changePlayState(!1, { userAction: t }), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
|
|
398
|
-
}
|
|
399
|
-
handleVisible(e, t = !0) {
|
|
400
|
-
var r, i;
|
|
401
|
-
e ? ((r = this.GuideLine) == null || r.show(), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: t }))) : ((i = this.GuideLine) == null || i.hide(), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: t }))), this.state.visible = e;
|
|
402
|
-
}
|
|
403
|
-
changePlayState(e, t) {
|
|
404
|
-
this.actionIfStateIsEnabled(
|
|
405
|
-
() => {
|
|
406
|
-
var r;
|
|
407
|
-
return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (r = t == null ? void 0 : t.userAction) != null ? r : !0 });
|
|
408
|
-
}
|
|
409
|
-
), e ? this.handlePlay(t) : this.handlePause(t), this.state.playing = e;
|
|
410
|
-
}
|
|
411
328
|
/**
|
|
412
329
|
* @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
|
|
413
330
|
* @param {number} options.playFromIndex play from keyframes index
|
|
414
331
|
* @param {string} options.playFromId play from keyframes id
|
|
415
332
|
*/
|
|
416
333
|
// eslint-disable-next-line complexity
|
|
417
|
-
handlePlay(
|
|
334
|
+
handlePlay(t) {
|
|
418
335
|
return y(this, null, function* () {
|
|
419
|
-
var
|
|
420
|
-
const { data:
|
|
421
|
-
if (
|
|
336
|
+
var f;
|
|
337
|
+
const { data: i, state: r, privateState: e, hooks: n } = this;
|
|
338
|
+
if (e.playing || !(i != null && i.keyframes) || (i == null ? void 0 : i.keyframes.length) === 0)
|
|
422
339
|
return;
|
|
423
|
-
const s =
|
|
424
|
-
|
|
425
|
-
const
|
|
426
|
-
(
|
|
427
|
-
let
|
|
428
|
-
const
|
|
340
|
+
const s = S();
|
|
341
|
+
e.playId = s, e.playing = !0, e.broke = !1;
|
|
342
|
+
const d = i.keyframes, o = this.getPauseData();
|
|
343
|
+
(t == null ? void 0 : t.notEmitEvent) !== !0 && n.emit("play", { userAction: (f = t == null ? void 0 : t.userAction) != null ? f : !0 });
|
|
344
|
+
let a = !1;
|
|
345
|
+
const p = yield (() => y(this, null, function* () {
|
|
429
346
|
var u, v;
|
|
430
|
-
if ((
|
|
431
|
-
return
|
|
432
|
-
if ((
|
|
433
|
-
return (u = this.data) == null ? void 0 : u.keyframes.findIndex((c) => c.id ===
|
|
434
|
-
if (
|
|
435
|
-
const c = (v = this.data) == null ? void 0 : v.keyframes.find((P) => P.id ===
|
|
436
|
-
if (
|
|
437
|
-
moveEffect:
|
|
438
|
-
duration:
|
|
347
|
+
if ((t == null ? void 0 : t.playFromIndex) !== void 0)
|
|
348
|
+
return t.playFromIndex;
|
|
349
|
+
if ((t == null ? void 0 : t.playFromId) !== void 0)
|
|
350
|
+
return (u = this.data) == null ? void 0 : u.keyframes.findIndex((c) => c.id === t.playFromId);
|
|
351
|
+
if (o != null && o.id) {
|
|
352
|
+
const c = (v = this.data) == null ? void 0 : v.keyframes.find((P) => P.id === o.id);
|
|
353
|
+
if (o != null && o.fiveState && (yield this.move(o.fiveState, {
|
|
354
|
+
moveEffect: e.moveToFirstPanoEffect,
|
|
355
|
+
duration: e.moveToFirstPanoDuration
|
|
439
356
|
})), c) {
|
|
440
357
|
if (c.data.effect === "Move")
|
|
441
358
|
return c.index;
|
|
442
359
|
if (c.data.effect === "Rotate") {
|
|
443
|
-
const P =
|
|
444
|
-
return yield this.playKeyframe(c, { duration: P }),
|
|
360
|
+
const P = o.duration !== void 0 ? o.duration * (1 - o.playedProgress) : void 0;
|
|
361
|
+
return yield this.playKeyframe(c, { duration: P }), a = !0, c.index + 1;
|
|
445
362
|
}
|
|
446
363
|
}
|
|
447
364
|
}
|
|
448
365
|
}))();
|
|
449
366
|
this.clearPauseData();
|
|
450
|
-
for (const u of
|
|
451
|
-
if (
|
|
367
|
+
for (const u of d) {
|
|
368
|
+
if (e.broke || !r.playing || !e.playing || s !== e.playId)
|
|
452
369
|
return;
|
|
453
|
-
if (!(
|
|
370
|
+
if (!(p !== void 0 && u.index < p))
|
|
454
371
|
try {
|
|
455
372
|
n.emit("playIndexChange", u.index, u), yield this.playKeyframe(u, {
|
|
456
|
-
moveEffect:
|
|
457
|
-
duration:
|
|
458
|
-
}), u.stay && (yield
|
|
373
|
+
moveEffect: a === !1 ? e.moveToFirstPanoEffect : void 0,
|
|
374
|
+
duration: a === !1 && typeof e.moveToFirstPanoDuration == "number" ? e.moveToFirstPanoDuration : void 0
|
|
375
|
+
}), u.stay && (yield Q(u.stay)), a === !1 && (a = !0);
|
|
459
376
|
} catch (v) {
|
|
460
377
|
return console.error(v), Promise.resolve("broke");
|
|
461
378
|
}
|
|
462
379
|
}
|
|
463
|
-
r.playing && s ===
|
|
380
|
+
r.playing && s === e.playId && (this.setState({ playing: !1 }, { userAction: !1 }), n.emit("end"), this.clearPauseData());
|
|
464
381
|
});
|
|
465
382
|
}
|
|
466
383
|
/**
|
|
467
384
|
* @description: Pause and record pause state
|
|
468
385
|
*/
|
|
469
|
-
handlePause(
|
|
386
|
+
handlePause(t) {
|
|
470
387
|
var n;
|
|
471
|
-
const { state:
|
|
472
|
-
|
|
388
|
+
const { state: i, privateState: r, hooks: e } = this;
|
|
389
|
+
i.playing = !1, r.playing !== !1 && (r.playing = !1, (t == null ? void 0 : t.userAction) !== !1 && this.setPauseData(), r.broke || this.forceInteruptUpdateCamera(), (t == null ? void 0 : t.notEmitEvent) !== !0 && e.emit("pause", { userAction: (n = t == null ? void 0 : t.userAction) != null ? n : !0 }));
|
|
390
|
+
}
|
|
391
|
+
/**
|
|
392
|
+
* @description: Change play speed
|
|
393
|
+
*/
|
|
394
|
+
changeSpeed(t, i = !0) {
|
|
395
|
+
const { state: r, privateState: e, hooks: n } = this, { currentPlayKeyframe: s } = e;
|
|
396
|
+
if (n.emit("speedChange", t, { userAction: i }), r.playing && s)
|
|
397
|
+
try {
|
|
398
|
+
const d = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0, o = this.playKeyframe(s.keyframe, { duration: d });
|
|
399
|
+
e.currentPlayQueue.push(o);
|
|
400
|
+
} catch (d) {
|
|
401
|
+
}
|
|
402
|
+
}
|
|
403
|
+
/**
|
|
404
|
+
* @description Get ratate progress
|
|
405
|
+
*/
|
|
406
|
+
getProgress() {
|
|
407
|
+
return this.five.controller.cameraMotion.progress;
|
|
408
|
+
}
|
|
409
|
+
/**
|
|
410
|
+
* @description Set pause data
|
|
411
|
+
*/
|
|
412
|
+
setPauseData() {
|
|
413
|
+
var t, i, r, e;
|
|
414
|
+
if ((t = this.data) != null && t.keyframesId)
|
|
415
|
+
return V.set((i = this.data) == null ? void 0 : i.keyframesId, {
|
|
416
|
+
id: (r = this.privateState.currentPlayKeyframe) == null ? void 0 : r.keyframe.id,
|
|
417
|
+
fiveState: this.five.getCurrentState(),
|
|
418
|
+
duration: (e = this.privateState.currentPlayKeyframe) == null ? void 0 : e.originDuration,
|
|
419
|
+
playedProgress: this.getProgress()
|
|
420
|
+
});
|
|
421
|
+
}
|
|
422
|
+
/**
|
|
423
|
+
* @description: Restore state that before loaded
|
|
424
|
+
*/
|
|
425
|
+
clear() {
|
|
426
|
+
this.clearPauseData(), this.privateState.currentPlayKeyframe = null;
|
|
473
427
|
}
|
|
474
428
|
/**
|
|
475
429
|
* @description Play single keyframe
|
|
476
430
|
*/
|
|
477
|
-
playKeyframe(
|
|
431
|
+
playKeyframe(t, i) {
|
|
478
432
|
return y(this, null, function* () {
|
|
479
|
-
var
|
|
433
|
+
var e;
|
|
480
434
|
const { privateState: r } = this;
|
|
481
|
-
return ((
|
|
435
|
+
return ((e = this.privateState.currentPlayKeyframe) == null ? void 0 : e.keyframe.id) !== t.id && (this.privateState.currentPlayKeyframe = { keyframe: t }), r.currentPlayQueue.push(this.getPlayPromise(t, i)), this.actionPromiseQueue();
|
|
482
436
|
});
|
|
483
437
|
}
|
|
484
|
-
/**
|
|
485
|
-
* @description: listen interupted by five gesture
|
|
486
|
-
*/
|
|
487
|
-
addInterruptListener(e) {
|
|
488
|
-
const t = () => {
|
|
489
|
-
this.privateState.modeChanging || e();
|
|
490
|
-
}, r = (i) => {
|
|
491
|
-
i !== "mouseMove" && e();
|
|
492
|
-
};
|
|
493
|
-
return this.five.once("gesture", r), this.five.once("wantsChangeMode", t), () => {
|
|
494
|
-
this.five.off("gesture", r), this.five.once("wantsChangeMode", t);
|
|
495
|
-
};
|
|
496
|
-
}
|
|
497
438
|
/**
|
|
498
439
|
* @description: getPlayPromise
|
|
499
440
|
*/
|
|
500
441
|
getPlayPromise(r) {
|
|
501
|
-
return y(this, arguments, function* (
|
|
442
|
+
return y(this, arguments, function* (t, i = {}) {
|
|
502
443
|
var n;
|
|
503
|
-
const
|
|
504
|
-
if (
|
|
505
|
-
return new Promise((s,
|
|
506
|
-
let
|
|
444
|
+
const e = t.data;
|
|
445
|
+
if (i.duration = (n = i.duration) != null ? n : t.start !== void 0 && t.end !== void 0 ? t.end - t.start : void 0, !!e)
|
|
446
|
+
return new Promise((s, d) => {
|
|
447
|
+
let o = !1;
|
|
507
448
|
this.addInterruptListener(() => {
|
|
508
|
-
if (!
|
|
509
|
-
return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }),
|
|
449
|
+
if (!o)
|
|
450
|
+
return this.hooks.emit("broke"), this.privateState.broke = !0, this.setState({ playing: !1 }), o = !0, d(new Error("play is interupted"));
|
|
510
451
|
});
|
|
511
452
|
try {
|
|
512
|
-
if (
|
|
453
|
+
if (o)
|
|
513
454
|
return;
|
|
514
|
-
const
|
|
515
|
-
s(),
|
|
455
|
+
const a = () => {
|
|
456
|
+
s(), o = !0;
|
|
516
457
|
};
|
|
517
|
-
switch (
|
|
458
|
+
switch (e.effect) {
|
|
518
459
|
case "Move":
|
|
519
|
-
this.move(
|
|
460
|
+
this.move(e, i).then(a);
|
|
520
461
|
break;
|
|
521
462
|
case "Rotate":
|
|
522
|
-
this.rotate(
|
|
463
|
+
this.rotate(e, i).then(a);
|
|
523
464
|
break;
|
|
524
465
|
default:
|
|
525
|
-
this.rotate(
|
|
466
|
+
this.rotate(e, i).then(a);
|
|
526
467
|
}
|
|
527
|
-
} catch (
|
|
468
|
+
} catch (a) {
|
|
528
469
|
}
|
|
529
470
|
});
|
|
530
471
|
});
|
|
@@ -534,30 +475,30 @@ class mr extends Q {
|
|
|
534
475
|
*/
|
|
535
476
|
actionPromiseQueue() {
|
|
536
477
|
return y(this, null, function* () {
|
|
537
|
-
const { privateState:
|
|
538
|
-
return new Promise((
|
|
539
|
-
if (
|
|
540
|
-
|
|
478
|
+
const { privateState: t } = this;
|
|
479
|
+
return new Promise((i, r) => {
|
|
480
|
+
if (t.currentPlayQueue.length === 0) {
|
|
481
|
+
i();
|
|
541
482
|
return;
|
|
542
483
|
}
|
|
543
|
-
const
|
|
544
|
-
if (!
|
|
545
|
-
|
|
484
|
+
const e = t.currentPlayQueue.shift();
|
|
485
|
+
if (!e) {
|
|
486
|
+
i();
|
|
546
487
|
return;
|
|
547
488
|
}
|
|
548
|
-
|
|
549
|
-
}).then(() =>
|
|
489
|
+
e.then(i, r);
|
|
490
|
+
}).then(() => t.currentPlayQueue.length === 0 ? Promise.resolve() : this.actionPromiseQueue());
|
|
550
491
|
});
|
|
551
492
|
}
|
|
552
493
|
/**
|
|
553
494
|
* @description Action move keyframe
|
|
554
495
|
*/
|
|
555
|
-
move(
|
|
496
|
+
move(t, i) {
|
|
556
497
|
return y(this, null, function* () {
|
|
557
|
-
if (
|
|
558
|
-
yield this.changeMode(
|
|
559
|
-
else if (
|
|
560
|
-
yield this.changePano(
|
|
498
|
+
if (t.mode && t.mode !== this.five.currentMode)
|
|
499
|
+
yield this.changeMode(t);
|
|
500
|
+
else if (t.panoIndex !== this.five.panoIndex)
|
|
501
|
+
yield this.changePano(t, i);
|
|
561
502
|
else
|
|
562
503
|
return Promise.resolve();
|
|
563
504
|
});
|
|
@@ -565,168 +506,92 @@ class mr extends Q {
|
|
|
565
506
|
/**
|
|
566
507
|
* @description Action rotate keyframe
|
|
567
508
|
*/
|
|
568
|
-
rotate(
|
|
509
|
+
rotate(t, i) {
|
|
569
510
|
return y(this, null, function* () {
|
|
570
|
-
if (
|
|
571
|
-
yield this.changeMode({ mode:
|
|
572
|
-
else if (
|
|
573
|
-
return yield this.changePano(
|
|
574
|
-
yield this.updateCamera(
|
|
511
|
+
if (t.mode && t.mode !== this.five.currentMode)
|
|
512
|
+
yield this.changeMode({ mode: t.mode, panoIndex: t.panoIndex });
|
|
513
|
+
else if (t.panoIndex && t.panoIndex !== this.five.panoIndex)
|
|
514
|
+
return yield this.changePano(t, i);
|
|
515
|
+
yield this.updateCamera(t, i);
|
|
575
516
|
});
|
|
576
517
|
}
|
|
577
518
|
/**
|
|
578
519
|
* @description Update five camera
|
|
579
520
|
*/
|
|
580
521
|
updateCamera(r) {
|
|
581
|
-
return y(this, arguments, function* (
|
|
582
|
-
const { five:
|
|
583
|
-
var
|
|
584
|
-
const m = (
|
|
522
|
+
return y(this, arguments, function* (t, i = {}) {
|
|
523
|
+
const { five: e, privateState: n, state: s } = this, d = (() => {
|
|
524
|
+
var f, u;
|
|
525
|
+
const m = (f = s.config) == null ? void 0 : f.speedConfig, p = (u = t.rotateSpeed) != null ? u : m == null ? void 0 : m.rotateSpeed;
|
|
585
526
|
if ((m == null ? void 0 : m.rotateSpeedUnit) === void 0)
|
|
586
|
-
return
|
|
587
|
-
if (
|
|
588
|
-
return m.rotateSpeedUnit === "rad/ms" ?
|
|
589
|
-
})(),
|
|
590
|
-
if (
|
|
591
|
-
return
|
|
592
|
-
if (
|
|
527
|
+
return p;
|
|
528
|
+
if (p !== void 0)
|
|
529
|
+
return m.rotateSpeedUnit === "rad/ms" ? p : p / 1e3;
|
|
530
|
+
})(), o = (() => {
|
|
531
|
+
if (i.duration)
|
|
532
|
+
return i.duration;
|
|
533
|
+
if (d) {
|
|
593
534
|
const m = this.five.getCurrentState();
|
|
594
|
-
return
|
|
535
|
+
return A(m, t) / d;
|
|
595
536
|
}
|
|
596
537
|
return 800;
|
|
597
538
|
})();
|
|
598
|
-
n.currentPlayKeyframe && (n.currentPlayKeyframe.originDuration =
|
|
599
|
-
const
|
|
539
|
+
n.currentPlayKeyframe && (n.currentPlayKeyframe.originDuration = o);
|
|
540
|
+
const a = this.getSpeededDuration(o);
|
|
600
541
|
return new Promise((m) => {
|
|
601
|
-
|
|
542
|
+
G(() => e.updateCamera(t, a)), setTimeout(() => m(), a);
|
|
602
543
|
});
|
|
603
544
|
});
|
|
604
545
|
}
|
|
605
546
|
/**
|
|
606
547
|
* @description: Change five pano
|
|
607
548
|
*/
|
|
608
|
-
changePano(
|
|
549
|
+
changePano(t, i) {
|
|
609
550
|
return y(this, null, function* () {
|
|
610
|
-
const { five: r, privateState:
|
|
611
|
-
if (typeof
|
|
551
|
+
const { five: r, privateState: e, state: n } = this;
|
|
552
|
+
if (typeof t.panoIndex != "number" || t.panoIndex === r.panoIndex)
|
|
612
553
|
return;
|
|
613
554
|
const s = r.getCurrentState().mode !== "Panorama";
|
|
614
555
|
s && (this.privateState.modeChanging = !0);
|
|
615
|
-
const
|
|
616
|
-
var
|
|
617
|
-
const
|
|
618
|
-
if ((
|
|
556
|
+
const d = (() => {
|
|
557
|
+
var p, f;
|
|
558
|
+
const a = (p = n.config) == null ? void 0 : p.speedConfig, m = (f = t.moveSpeed) != null ? f : a == null ? void 0 : a.moveSpeed;
|
|
559
|
+
if ((a == null ? void 0 : a.moveSpeedUnit) === void 0)
|
|
619
560
|
return m;
|
|
620
561
|
if (m !== void 0)
|
|
621
|
-
return
|
|
622
|
-
})(),
|
|
623
|
-
if (
|
|
624
|
-
return
|
|
625
|
-
if (
|
|
626
|
-
const
|
|
627
|
-
return
|
|
562
|
+
return a.moveSpeedUnit === "m/ms" ? m : m / 1e3;
|
|
563
|
+
})(), o = (() => {
|
|
564
|
+
if (i != null && i.duration)
|
|
565
|
+
return i.duration;
|
|
566
|
+
if (d && typeof r.panoIndex == "number" && typeof t.panoIndex == "number") {
|
|
567
|
+
const a = r.work.observers[r.panoIndex].position, m = r.work.observers[t.panoIndex].position;
|
|
568
|
+
return a.distanceTo(m) / d;
|
|
628
569
|
}
|
|
629
570
|
return 800;
|
|
630
571
|
})();
|
|
631
|
-
|
|
632
|
-
var m,
|
|
633
|
-
r.moveToPano(
|
|
634
|
-
latitude:
|
|
635
|
-
longitude:
|
|
636
|
-
fov:
|
|
637
|
-
duration: this.getSpeededDuration(
|
|
638
|
-
effect: (
|
|
639
|
-
moveCancelCallback: () =>
|
|
640
|
-
moveEndCallback: () =>
|
|
641
|
-
}), s && r.once("panoArrived", () =>
|
|
572
|
+
e.currentPlayKeyframe && (e.currentPlayKeyframe.originDuration = o), yield new Promise((a) => {
|
|
573
|
+
var m, p, f;
|
|
574
|
+
r.moveToPano(t.panoIndex, {
|
|
575
|
+
latitude: t.latitude,
|
|
576
|
+
longitude: t.longitude,
|
|
577
|
+
fov: t.fov,
|
|
578
|
+
duration: this.getSpeededDuration(o),
|
|
579
|
+
effect: (f = (p = i == null ? void 0 : i.moveEffect) != null ? p : (m = this.state.config) == null ? void 0 : m.moveEffect) != null ? f : t.moveEffect,
|
|
580
|
+
moveCancelCallback: () => a(),
|
|
581
|
+
moveEndCallback: () => a()
|
|
582
|
+
}), s && r.once("panoArrived", () => a());
|
|
642
583
|
}), s && (this.privateState.modeChanging = !1);
|
|
643
584
|
});
|
|
644
585
|
}
|
|
645
|
-
/**
|
|
646
|
-
* @description: Change play speed
|
|
647
|
-
*/
|
|
648
|
-
changeSpeed(e, t = !0) {
|
|
649
|
-
const { state: r, privateState: i, hooks: n } = this, { currentPlayKeyframe: s } = i;
|
|
650
|
-
if (n.emit("speedChange", e, { userAction: t }), r.playing && s)
|
|
651
|
-
try {
|
|
652
|
-
const p = s.originDuration !== void 0 ? s.originDuration * (1 - this.getProgress()) : void 0, a = this.playKeyframe(s.keyframe, { duration: p });
|
|
653
|
-
i.currentPlayQueue.push(a);
|
|
654
|
-
} catch (p) {
|
|
655
|
-
}
|
|
656
|
-
}
|
|
657
|
-
/**
|
|
658
|
-
* @description Get duration by speed
|
|
659
|
-
*/
|
|
660
|
-
getSpeededDuration(e) {
|
|
661
|
-
return e / this.state.speed;
|
|
662
|
-
}
|
|
663
|
-
/**
|
|
664
|
-
* @description Get ratate progress
|
|
665
|
-
*/
|
|
666
|
-
getProgress() {
|
|
667
|
-
return this.five.controller.cameraMotion.progress;
|
|
668
|
-
}
|
|
669
586
|
/**
|
|
670
587
|
* @description Change five mode
|
|
671
588
|
*/
|
|
672
|
-
changeMode(
|
|
589
|
+
changeMode(t, i) {
|
|
673
590
|
return y(this, null, function* () {
|
|
674
|
-
|
|
591
|
+
t.mode && t.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(t.mode, t, i), this.privateState.modeChanging = !1);
|
|
675
592
|
});
|
|
676
593
|
}
|
|
677
|
-
/**
|
|
678
|
-
* @description Force interupt five updateCamera
|
|
679
|
-
*/
|
|
680
|
-
forceInteruptUpdateCamera() {
|
|
681
|
-
this.five.updateCamera({}, 0);
|
|
682
|
-
}
|
|
683
|
-
getPauseData() {
|
|
684
|
-
var e, t;
|
|
685
|
-
if ((e = this.data) != null && e.keyframesId)
|
|
686
|
-
return w.get((t = this.data) == null ? void 0 : t.keyframesId);
|
|
687
|
-
}
|
|
688
|
-
/**
|
|
689
|
-
* @description Set pause data
|
|
690
|
-
*/
|
|
691
|
-
setPauseData() {
|
|
692
|
-
var e, t, r, i;
|
|
693
|
-
if ((e = this.data) != null && e.keyframesId)
|
|
694
|
-
return w.set((t = this.data) == null ? void 0 : t.keyframesId, {
|
|
695
|
-
id: (r = this.privateState.currentPlayKeyframe) == null ? void 0 : r.keyframe.id,
|
|
696
|
-
fiveState: this.five.getCurrentState(),
|
|
697
|
-
duration: (i = this.privateState.currentPlayKeyframe) == null ? void 0 : i.originDuration,
|
|
698
|
-
playedProgress: this.getProgress()
|
|
699
|
-
});
|
|
700
|
-
}
|
|
701
|
-
/**
|
|
702
|
-
* @description Clear pause data
|
|
703
|
-
*/
|
|
704
|
-
clearPauseData() {
|
|
705
|
-
var e, t;
|
|
706
|
-
if ((e = this.data) != null && e.keyframesId)
|
|
707
|
-
return w.delete((t = this.data) == null ? void 0 : t.keyframesId);
|
|
708
|
-
}
|
|
709
|
-
/**
|
|
710
|
-
* @description: Restore state that before loaded
|
|
711
|
-
*/
|
|
712
|
-
clear() {
|
|
713
|
-
this.clearPauseData(), this.privateState.currentPlayKeyframe = null;
|
|
714
|
-
}
|
|
715
|
-
// TODO
|
|
716
|
-
handleDispose() {
|
|
717
|
-
var e;
|
|
718
|
-
this.setState({ playing: !1 }), this.clearPauseData(), this.clear(), (e = this.GuideLine) == null || e.dispose(), this.GuideLine = void 0;
|
|
719
|
-
}
|
|
720
|
-
/**
|
|
721
|
-
* @description Action function if plugin is enable
|
|
722
|
-
*/
|
|
723
|
-
actionIfStateIsEnabled(e, t) {
|
|
724
|
-
if (this.state.enabled)
|
|
725
|
-
return e();
|
|
726
|
-
t != null && t.warnLog && H();
|
|
727
|
-
}
|
|
728
594
|
}
|
|
729
595
|
export {
|
|
730
|
-
|
|
731
|
-
nr as pluginFlag
|
|
596
|
+
er as default
|
|
732
597
|
};
|