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