@realsee/dnalogel 3.4.0-tag-dev.1 → 3.5.0-dev.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/CruisePlugin/CruiseController.d.ts +147 -0
- package/dist/CruisePlugin/Move.d.ts +29 -0
- package/dist/CruisePlugin/{Controller.d.ts → Work.d.ts} +1 -8
- package/dist/CruisePlugin/index.d.ts +4 -3
- package/dist/CruisePlugin/typing.d.ts +2 -2
- package/dist/CruisePlugin/utils/getFiveStateOnCurve.d.ts +11 -0
- package/dist/GuideLinePlugin/Controller.d.ts +1 -6
- package/dist/index.cjs.js +54 -54
- package/dist/index.js +3221 -2999
- package/dist/index.umd.js +47 -47
- package/dist/shared-utils/five/fiveLoaded.d.ts +2 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +33 -31
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +34 -32
- package/docs/classes/CSS3DRender.html +33 -31
- package/docs/classes/GuideLineItem.GuideLineItem.html +21 -19
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +43 -41
- package/docs/classes/Magnifier.html +22 -20
- package/docs/classes/ModelRoomLabelController.html +13 -11
- package/docs/classes/MoveController.html +641 -0
- package/docs/classes/Object3DHelperController.html +27 -25
- package/docs/classes/PaintBrush.html +17 -15
- package/docs/classes/PanoMeasurePluginLine.html +29 -27
- package/docs/classes/PanoMeasurePluginModel.html +29 -27
- package/docs/classes/PanoMeasurePluginPoint.html +13 -11
- package/docs/classes/PanoMeasurePluginPolyline.html +29 -27
- package/docs/classes/PanoTagPluginController.html +49 -47
- package/docs/classes/Util.BetterTween.html +11 -9
- package/docs/classes/Util.Interval.html +14 -12
- package/docs/classes/Util.LineSegments.html +10 -8
- package/docs/classes/Util.Magnifier.html +22 -20
- package/docs/classes/Util.Object3D.html +10 -8
- package/docs/classes/Util.PointDomHelper.html +13 -11
- package/docs/classes/Util.PointHelper.html +13 -11
- package/docs/classes/Util.PointSelectorHelper.html +18 -16
- package/docs/classes/Util.Rectangle.html +15 -13
- package/docs/classes/{CruisePluginController.html → WalkController.html} +52 -57
- package/docs/enums/CameraMovementEffect.html +9 -7
- package/docs/enums/ContentType.html +23 -21
- package/docs/enums/DIRECTION.html +11 -9
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +11 -9
- package/docs/enums/DimensionType.html +9 -7
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +10 -8
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +11 -9
- package/docs/enums/PaintBrushTypeEnum.html +10 -8
- package/docs/enums/PointType.html +9 -7
- package/docs/enums/Rotation.html +10 -8
- package/docs/functions/AreaMakerPlugin.html +7 -5
- package/docs/functions/CSS3DRenderPlugin.html +6 -4
- package/docs/functions/CameraMovementPlugin.html +6 -4
- package/docs/functions/CruisePlugin.html +8 -6
- package/docs/functions/CurrentPanoImagePlugin.html +6 -4
- package/docs/functions/GuideLinePlugin.html +7 -5
- package/docs/functions/ItemLabelPlugin.html +6 -4
- package/docs/functions/MapviewFloorplanPlugin.html +6 -4
- package/docs/functions/ModelChassisCompassPlugin.html +6 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +6 -4
- package/docs/functions/ModelFloorplanPlugin.html +6 -4
- package/docs/functions/ModelItemLabelPlugin.html +6 -4
- package/docs/functions/ModelRoomLabelPlugin.html +6 -4
- package/docs/functions/ModelTVVideoPlugin.html +6 -4
- package/docs/functions/ModelViewPlugin.html +6 -4
- package/docs/functions/Object3DHelperPlugin.html +6 -4
- package/docs/functions/PanoCompassPlugin.html +6 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +6 -4
- package/docs/functions/PanoDoorLabelPlugin.html +6 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +6 -4
- package/docs/functions/PanoMeasurePlugin.html +6 -4
- package/docs/functions/PanoRulerPlugin.html +6 -4
- package/docs/functions/PanoRulerProPlugin.html +6 -4
- package/docs/functions/PanoSpatialTagPlugin.html +6 -4
- package/docs/functions/PanoTagPlugin.html +6 -4
- package/docs/functions/PanoVideoPlugin.html +6 -4
- package/docs/functions/PipelinePlugin.html +6 -4
- package/docs/functions/TopviewFloorplanPlugin.html +6 -4
- package/docs/functions/Util.absoluteUrl.html +7 -5
- package/docs/functions/Util.checkFiveModelLoaded.html +7 -5
- package/docs/functions/Util.equal.html +7 -5
- package/docs/functions/Util.getCoordsFromClient.html +7 -5
- package/docs/functions/Util.getCoordsFromElement.html +7 -5
- package/docs/functions/Util.getFrameTime.html +7 -5
- package/docs/functions/Util.getIntersectFromRelativePosition.html +7 -5
- package/docs/functions/Util.getRaycasterFromFivePointer.html +7 -5
- package/docs/functions/Util.isAbsoluteURL.html +7 -5
- package/docs/functions/Util.isModelLike.html +7 -5
- package/docs/functions/Util.isNil.html +7 -5
- package/docs/functions/Util.isPanoramaLike.html +7 -5
- package/docs/functions/Util.nextFrame.html +7 -5
- package/docs/functions/Util.notNil.html +7 -5
- package/docs/functions/Util.requestAnimationFrameInterval.html +7 -5
- package/docs/functions/Util.tweenProgress.html +7 -5
- package/docs/functions/Util.uuid.html +7 -5
- package/docs/functions/pluginFlag.html +7 -5
- package/docs/index.html +7 -5
- package/docs/interfaces/AddTagConfig.html +8 -6
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +8 -6
- package/docs/interfaces/AreaMakerPluginType.Config.html +8 -6
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +17 -15
- package/docs/interfaces/AreaMakerPluginType.Params.html +9 -7
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +11 -9
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +10 -8
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +8 -6
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +8 -6
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +8 -6
- package/docs/interfaces/AreaMakerPluginType.State.html +10 -8
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +13 -11
- package/docs/interfaces/CSS3DRenderPluginState.html +10 -8
- package/docs/interfaces/CameraMovementPluginExportType.html +9 -7
- package/docs/interfaces/CruisePluginTypes.Config.html +11 -9
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +15 -13
- package/docs/interfaces/CruisePluginTypes.EventMap.html +23 -21
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +15 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +17 -15
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +17 -15
- package/docs/interfaces/CruisePluginTypes.PluginData.html +12 -10
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +9 -7
- package/docs/interfaces/CruisePluginTypes.PluginState.html +17 -36
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +13 -11
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +14 -12
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +9 -7
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +8 -6
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +10 -8
- package/docs/interfaces/EventMap.html +17 -15
- package/docs/interfaces/FloorplanBounding.html +10 -8
- package/docs/interfaces/FloorplanData.html +12 -10
- package/docs/interfaces/FloorplanEntrance.html +13 -11
- package/docs/interfaces/FloorplanExtraObject.html +12 -10
- package/docs/interfaces/FloorplanExtraObject3D.html +10 -8
- package/docs/interfaces/FloorplanFloorData.html +11 -9
- package/docs/interfaces/FloorplanImagePosition.html +9 -7
- package/docs/interfaces/FloorplanObserver.html +11 -9
- package/docs/interfaces/FloorplanOutlineItem.html +11 -9
- package/docs/interfaces/FloorplanPosition.html +9 -7
- package/docs/interfaces/FloorplanRoomItem.html +15 -13
- package/docs/interfaces/FloorplanRoomLabelItem.html +9 -7
- package/docs/interfaces/FloorplanServerBounding.html +10 -8
- package/docs/interfaces/FloorplanServerComputedData.html +12 -10
- package/docs/interfaces/FloorplanServerData.html +9 -7
- package/docs/interfaces/FloorplanServerDoorItem.html +12 -10
- package/docs/interfaces/FloorplanServerDoorPosition.html +10 -8
- package/docs/interfaces/FloorplanServerEntrance.html +13 -11
- package/docs/interfaces/FloorplanServerFloorData.html +11 -9
- package/docs/interfaces/FloorplanServerImagePosition.html +9 -7
- package/docs/interfaces/FloorplanServerObserver.html +11 -9
- package/docs/interfaces/FloorplanServerOutlineItem.html +11 -9
- package/docs/interfaces/FloorplanServerPosition.html +9 -7
- package/docs/interfaces/FloorplanServerRoomItem.html +16 -14
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +9 -7
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +10 -8
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +13 -11
- package/docs/interfaces/GuideLinePluginType.EventMap.html +16 -14
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +11 -9
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +9 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +16 -14
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +9 -7
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +11 -9
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +22 -20
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +10 -8
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +22 -20
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +8 -6
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +9 -7
- package/docs/interfaces/GuideLinePluginType.PluginState.html +11 -9
- package/docs/interfaces/GuideLinePluginType.Route.html +14 -12
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +12 -10
- package/docs/interfaces/HelperOffset.html +10 -8
- package/docs/interfaces/ImagePlaneGroup.html +8 -6
- package/docs/interfaces/ItemLabelPluginData.html +8 -6
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +13 -11
- package/docs/interfaces/ItemLabelPluginParametersType.html +11 -9
- package/docs/interfaces/MinMax.html +9 -7
- package/docs/interfaces/ModelChassisCompassPluginData.html +9 -7
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +10 -8
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +9 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +10 -8
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +10 -8
- package/docs/interfaces/ModelItemLabelPluginData.html +8 -6
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +13 -11
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +9 -7
- package/docs/interfaces/ModelRoomLabelPluginData.html +8 -6
- package/docs/interfaces/ModelTVVideoPluginData.html +11 -9
- package/docs/interfaces/ModelTVVideoPluginExportType.html +10 -8
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +8 -6
- package/docs/interfaces/ModelViewPluginExportType.html +13 -11
- package/docs/interfaces/Object3DHelperState.html +10 -8
- package/docs/interfaces/ObjectHelperControllers.html +11 -9
- package/docs/interfaces/PaintBrushAction.html +14 -12
- package/docs/interfaces/PaintBrushConfigs.html +14 -12
- package/docs/interfaces/PaintBrushState.html +12 -10
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +12 -10
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +7 -5
- package/docs/interfaces/PanoMeasureParameterType.html +18 -16
- package/docs/interfaces/PanoMeasurePluginLineJson.html +10 -8
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +9 -7
- package/docs/interfaces/PanoMeasurePluginPointJson.html +9 -7
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +10 -8
- package/docs/interfaces/PanoRulerPluginExportType.html +12 -10
- package/docs/interfaces/PanoRulerPluginOptions.html +9 -7
- package/docs/interfaces/PanoRulerPluginParameterType.html +10 -8
- package/docs/interfaces/PanoRulerProPluginExportType.html +11 -9
- package/docs/interfaces/PanoRulerProPluginOptions.html +9 -7
- package/docs/interfaces/PanoRulerProPluginParameterType.html +9 -7
- package/docs/interfaces/PanoRulerProPluginState.html +10 -8
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +7 -5
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +7 -5
- package/docs/interfaces/PanoSpatialTagPluginData.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +12 -10
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +15 -13
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +12 -10
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +15 -13
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +13 -11
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +12 -10
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +10 -8
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +11 -9
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +8 -6
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +10 -8
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +12 -10
- package/docs/interfaces/Point.html +10 -8
- package/docs/interfaces/Room.html +11 -9
- package/docs/interfaces/RoomInfo.html +9 -7
- package/docs/interfaces/RoomLabel.html +16 -14
- package/docs/interfaces/RoomRules.html +7 -5
- package/docs/interfaces/Rooms.html +7 -5
- package/docs/interfaces/Scissor.html +11 -9
- package/docs/interfaces/State.html +10 -8
- package/docs/interfaces/TagCacheInterface.html +14 -12
- package/docs/interfaces/TagConfig.html +16 -14
- package/docs/interfaces/TagGLTFObjectGroup.html +8 -6
- package/docs/interfaces/TagIconUrl.html +14 -12
- package/docs/interfaces/TagObjectGroup.html +8 -6
- package/docs/interfaces/TagStyle.html +8 -6
- package/docs/interfaces/Tags.html +11 -9
- package/docs/interfaces/TemporaryState.html +8 -6
- package/docs/interfaces/Util.MagnifierParameter.html +13 -11
- package/docs/interfaces/Util.MouseGroupParameter.html +10 -8
- package/docs/interfaces/Util.PointIntersection.html +10 -8
- package/docs/modules/AreaMakerPluginType.html +7 -5
- package/docs/modules/CruisePluginTypes.html +7 -5
- package/docs/modules/CurrentPanoImagePluginType.html +7 -5
- package/docs/modules/GuideLineItem.html +7 -5
- package/docs/modules/GuideLineModeItem.html +7 -5
- package/docs/modules/GuideLinePluginType.html +7 -5
- package/docs/modules/PanoVideoPluginType.html +7 -5
- package/docs/modules/Util.html +7 -5
- package/docs/modules.html +27 -9
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +7 -5
- package/docs/types/AreaMakerPluginType.PluginData.html +7 -5
- package/docs/types/AreaMakerPluginType.ServerData.html +7 -5
- package/docs/types/ArrayPosition.html +7 -5
- package/docs/types/AudioAppearance.html +7 -5
- package/docs/types/AudioTagTypeConfigKey.html +7 -5
- package/docs/types/CSS3DRenderExportType.html +7 -5
- package/docs/types/CSS3DRenderPluginExportType.html +7 -5
- package/docs/types/CSS3DRenderPluginParameterType.html +7 -5
- package/docs/types/ClassFunctionParameters.html +7 -5
- package/docs/types/Color.html +7 -5
- package/docs/types/ContentTypeConfigKey.html +7 -5
- package/docs/types/ContentTypeConfigKeySplit.html +7 -5
- package/docs/types/ContentTypeMap.html +7 -5
- package/docs/types/Create3DDomContainerReturnType.html +7 -5
- package/docs/types/Create3DElementReturnType.html +7 -5
- package/docs/types/CruisePluginExportType.html +7 -5
- package/docs/types/CruisePluginTypes.CruiseData.html +8 -6
- package/docs/types/CruisePluginTypes.MoveEffect.html +8 -6
- package/docs/types/CurrentPanoImagePluginExportType.html +7 -5
- package/docs/types/DeprecatedMediaPlaneProperty.html +7 -5
- package/docs/types/DeprecatedTagProperty.html +7 -5
- package/docs/types/Direction-1.html +7 -5
- package/docs/types/Direction4.html +7 -5
- package/docs/types/ElementRenderer.html +7 -5
- package/docs/types/FloorplanRuleLabels.html +7 -5
- package/docs/types/FloorplanServerRuleLabels.html +7 -5
- package/docs/types/GuideLinePluginExportType.html +7 -5
- package/docs/types/GuideLinePluginType.GuideLineItem.html +8 -6
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +8 -6
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +8 -6
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +8 -6
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +8 -6
- package/docs/types/GuideLinePluginType.PathItem.html +8 -6
- package/docs/types/GuideLinePluginType.PluginData.html +8 -6
- package/docs/types/HelperEventMap.html +7 -5
- package/docs/types/LoadTagConfig.html +7 -5
- package/docs/types/MapviewFloorplanPluginParameterType.html +7 -5
- package/docs/types/MapviewFloorplanPluginReturnType.html +7 -5
- package/docs/types/MediaData.html +7 -5
- package/docs/types/MediaStore.html +7 -5
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +7 -5
- package/docs/types/ModelFloorplanPluginParameterType.html +7 -5
- package/docs/types/ModelFloorplanPluginReturnType.html +7 -5
- package/docs/types/ModelId.html +7 -5
- package/docs/types/ModelRoomLabelPluginParameters.html +7 -5
- package/docs/types/ModelRoomLabelPluginReturnType.html +7 -5
- package/docs/types/MoveArgs.html +7 -5
- package/docs/types/MoveOpts.html +7 -5
- package/docs/types/Object3DHelperEventMap.html +7 -5
- package/docs/types/ObjectFit.html +7 -5
- package/docs/types/PaintBrushEventMap.html +7 -5
- package/docs/types/PanoCompassPluginData.html +7 -5
- package/docs/types/PanoCompassPluginExportType.html +7 -5
- package/docs/types/PanoCompassPluginParameterType.html +7 -5
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +7 -5
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +7 -5
- package/docs/types/PanoIndex.html +7 -5
- package/docs/types/PanoMeasurePluginEvent.html +7 -5
- package/docs/types/PanoMeasureReturnType.html +7 -5
- package/docs/types/PanoSpatialTagPluginId.html +7 -5
- package/docs/types/PanoTagPluginExportInterface.html +7 -5
- package/docs/types/PanoTagPluginParamsInterface.html +7 -5
- package/docs/types/PanoVideoPluginParameterType.html +7 -5
- package/docs/types/PanoVideoPluginReturnType.html +7 -5
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +7 -5
- package/docs/types/PipelinePluginParameterType.html +7 -5
- package/docs/types/PipelinePluginReturnType.html +7 -5
- package/docs/types/PlaneTag.html +7 -5
- package/docs/types/Point2DTag.html +7 -5
- package/docs/types/Point3DTag.html +7 -5
- package/docs/types/PointTag.html +7 -5
- package/docs/types/PointTagInstance.html +7 -5
- package/docs/types/Position.html +7 -5
- package/docs/types/RotateArgs.html +7 -5
- package/docs/types/RotateOpts.html +7 -5
- package/docs/types/RuleLabelsKey.html +7 -5
- package/docs/types/RuleLabelsValue.html +7 -5
- package/docs/types/StickType.html +7 -5
- package/docs/types/Tag.html +7 -5
- package/docs/types/Tag2D.html +7 -5
- package/docs/types/Tag3D.html +7 -5
- package/docs/types/TagConfigByKey.html +7 -5
- package/docs/types/TagContentType.html +7 -5
- package/docs/types/TagDimensionType.html +7 -5
- package/docs/types/TagElement.html +7 -5
- package/docs/types/TagEvents.html +7 -5
- package/docs/types/TagGLTFObject.html +7 -5
- package/docs/types/TagHooks.html +7 -5
- package/docs/types/TagId.html +7 -5
- package/docs/types/TagInstance.html +7 -5
- package/docs/types/TagPointType.html +7 -5
- package/docs/types/TagRendererMap.html +7 -5
- package/docs/types/TopviewFloorplanPluginParameterType.html +7 -5
- package/docs/types/TopviewFloorplanPluginReturnType.html +7 -5
- package/docs/types/WorkCode.html +7 -5
- package/docs/variables/FLOOR_TYPE_MAP.html +7 -5
- package/docs/variables/PLUGIN.html +7 -5
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +7 -5
- package/docs/variables/ROOM_TYPE_MAP.html +7 -5
- package/docs/variables/defaultGlobalConfig.html +7 -5
- package/docs/variables/itemLabelPluginServerParams.html +7 -5
- package/docs/variables/modelItemLabelPluginServerParams.html +7 -5
- package/docs/variables/modelRoomLabelPluginServerParams.html +7 -5
- package/libs/CruisePlugin/CruiseController.d.ts +147 -0
- package/libs/CruisePlugin/CruiseController.js +237 -0
- package/libs/CruisePlugin/Move.d.ts +29 -0
- package/libs/CruisePlugin/Move.js +113 -0
- package/libs/CruisePlugin/{Controller.d.ts → Work.d.ts} +1 -8
- package/libs/CruisePlugin/{Controller.js → Work.js} +149 -177
- package/libs/CruisePlugin/index.d.ts +4 -3
- package/libs/CruisePlugin/index.js +15 -10
- package/libs/CruisePlugin/typing.d.ts +2 -2
- package/libs/CruisePlugin/utils/getFiveStateOnCurve.d.ts +11 -0
- package/libs/CruisePlugin/utils/getFiveStateOnCurve.js +11 -0
- package/libs/GuideLinePlugin/Controller.d.ts +1 -6
- package/libs/GuideLinePlugin/Controller.js +48 -62
- package/libs/GuideLinePlugin/GuideLineItem/index.js +53 -43
- package/libs/GuideLinePlugin/GuideLineItem.js +12 -9
- package/libs/GuideLinePlugin/index.js +20 -17
- package/libs/PanoTagPlugin/controller/index.js +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +124 -119
- package/libs/shared-utils/five/fiveLoaded.d.ts +2 -0
- package/libs/shared-utils/five/fiveLoaded.js +30 -0
- package/libs/shared-utils/formatRad.d.ts +7 -0
- package/libs/shared-utils/formatRad.js +7 -0
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +2 -2
- package/dist/CruisePlugin/utils/linerValue.d.ts +0 -1
- /package/dist/{CruisePlugin/utils → shared-utils}/formatRad.d.ts +0 -0
- /package/dist/{CruisePlugin/utils/vectorToCoordinates.d.ts → shared-utils/vectorToCoordinate.d.ts} +0 -0
- /package/libs/{CruisePlugin/utils/vectorToCoordinates.d.ts → shared-utils/vectorToCoordinate.d.ts} +0 -0
- /package/libs/{CruisePlugin/utils/vectorToCoordinates.js → shared-utils/vectorToCoordinate.js} +0 -0
|
@@ -82,7 +82,7 @@ export interface PluginState extends BasePluginWithData.State {
|
|
|
82
82
|
speed: number;
|
|
83
83
|
config?: {
|
|
84
84
|
/** 速度配置 */
|
|
85
|
-
speedConfig?: {
|
|
85
|
+
speedConfig?: Partial<{
|
|
86
86
|
/** 旋转速度 */
|
|
87
87
|
rotateSpeed: number;
|
|
88
88
|
/** 旋转速度单位 */
|
|
@@ -91,7 +91,7 @@ export interface PluginState extends BasePluginWithData.State {
|
|
|
91
91
|
moveSpeed: number;
|
|
92
92
|
/** 移动速度单位 */
|
|
93
93
|
moveSpeedUnit: 'm/s' | 'm/ms';
|
|
94
|
-
}
|
|
94
|
+
}>;
|
|
95
95
|
/** five 走点动画 */
|
|
96
96
|
moveEffect?: MoveEffect;
|
|
97
97
|
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as THREE from 'three';
|
|
2
|
+
export declare function getFiveStateOnCurve(curve: THREE.Curve<THREE.Vector3>, progress: number, curveOffset: Partial<{
|
|
3
|
+
x: number;
|
|
4
|
+
y: number;
|
|
5
|
+
z: number;
|
|
6
|
+
}>): {
|
|
7
|
+
offset: THREE.Vector3;
|
|
8
|
+
longitude: number;
|
|
9
|
+
latitude: number;
|
|
10
|
+
distance: number;
|
|
11
|
+
};
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
import * as g from "three";
|
|
2
|
+
import { vectorToCoordinates as f } from "../../shared-utils/vectorToCoordinate.js";
|
|
3
|
+
import "../../shared-utils/formatRad.js";
|
|
4
|
+
function A(o, n, t) {
|
|
5
|
+
var e, i, r;
|
|
6
|
+
const a = new g.Vector3().fromArray([(e = t.x) != null ? e : 0, (i = t.y) != null ? i : 0, (r = t.z) != null ? r : 0]), c = o.getPointAt(n).clone().add(a), d = o.getTangentAt(n), { longitude: m, latitude: s } = f(d);
|
|
7
|
+
return { offset: c.clone(), longitude: m, latitude: s, distance: 0 };
|
|
8
|
+
}
|
|
9
|
+
export {
|
|
10
|
+
A as getFiveStateOnCurve
|
|
11
|
+
};
|
|
@@ -4,10 +4,9 @@ import type { EventMap, PluginData, PluginServerData, PluginState } from './typi
|
|
|
4
4
|
import type * as PluginType from './typing';
|
|
5
5
|
import type { Config } from '../base/BasePlugin';
|
|
6
6
|
import { GuideLineItem } from './GuideLineItem';
|
|
7
|
-
import CruisePluginController from '../CruisePlugin/
|
|
7
|
+
import CruisePluginController from '../CruisePlugin/Move';
|
|
8
8
|
export declare const pluginFlag: (name: string) => string;
|
|
9
9
|
export default class Controller extends BasePluginWithData.Controller<PluginState, EventMap, PluginServerData, PluginData> {
|
|
10
|
-
readonly version = "v1.1.0";
|
|
11
10
|
readonly name = "GuideLinePlugin";
|
|
12
11
|
readonly cruisePlugin: CruisePluginController;
|
|
13
12
|
/** GuideLineItem 索引 */
|
|
@@ -60,9 +59,5 @@ export default class Controller extends BasePluginWithData.Controller<PluginStat
|
|
|
60
59
|
private handleEnable;
|
|
61
60
|
private handleVisible;
|
|
62
61
|
private disposedErrorLog;
|
|
63
|
-
/**
|
|
64
|
-
* @description: Wait for five model ready
|
|
65
|
-
*/
|
|
66
|
-
private waitFiveLoaded;
|
|
67
62
|
private getDataWithoutVersion;
|
|
68
63
|
}
|
|
@@ -1,15 +1,15 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var M = Object.prototype.hasOwnProperty,
|
|
4
|
-
var c = (s, o, t) => o in s ?
|
|
1
|
+
var C = Object.defineProperty;
|
|
2
|
+
var T = Object.getOwnPropertySymbols;
|
|
3
|
+
var M = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var c = (s, o, t) => o in s ? C(s, o, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[o] = t, f = (s, o) => {
|
|
5
5
|
for (var t in o || (o = {}))
|
|
6
6
|
M.call(o, t) && c(s, t, o[t]);
|
|
7
|
-
if (
|
|
8
|
-
for (var t of
|
|
9
|
-
|
|
7
|
+
if (T)
|
|
8
|
+
for (var t of T(o))
|
|
9
|
+
O.call(o, t) && c(s, t, o[t]);
|
|
10
10
|
return s;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
12
|
+
var h = (s, o, t) => (c(s, typeof o != "symbol" ? o + "" : o, t), t);
|
|
13
13
|
var u = (s, o, t) => new Promise((i, a) => {
|
|
14
14
|
var m = (p) => {
|
|
15
15
|
try {
|
|
@@ -26,12 +26,13 @@ var u = (s, o, t) => new Promise((i, a) => {
|
|
|
26
26
|
}, r = (p) => p.done ? i(p.value) : Promise.resolve(p.value).then(m, e);
|
|
27
27
|
r((t = t.apply(s, o)).next());
|
|
28
28
|
});
|
|
29
|
-
import { Controller as
|
|
30
|
-
import { equal as
|
|
31
|
-
import { GuideLineItem as
|
|
32
|
-
import
|
|
33
|
-
import { objectAssignDeepExports as
|
|
34
|
-
import * as
|
|
29
|
+
import { Controller as x } from "../base/BasePluginWithData.js";
|
|
30
|
+
import { equal as N } from "../shared-utils/equal.js";
|
|
31
|
+
import { GuideLineItem as $ } from "./GuideLineItem/index.js";
|
|
32
|
+
import k from "../CruisePlugin/Move.js";
|
|
33
|
+
import { objectAssignDeepExports as A } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
34
|
+
import * as G from "three";
|
|
35
|
+
import { waitFiveLoaded as P } from "../shared-utils/five/fiveLoaded.js";
|
|
35
36
|
import "../base/BasePlugin.js";
|
|
36
37
|
import "../shared-utils/Subscribe.js";
|
|
37
38
|
import "hammerjs";
|
|
@@ -189,37 +190,38 @@ import "./utils/index.js";
|
|
|
189
190
|
import "../shared-utils/to.js";
|
|
190
191
|
import "../shared-utils/five/changeMode.js";
|
|
191
192
|
import "../shared-utils/nearlyEqual.js";
|
|
193
|
+
import "../CruisePlugin/Work.js";
|
|
192
194
|
import "./index.js";
|
|
193
195
|
import "./Controller.js";
|
|
194
196
|
import "../CruisePlugin/utils/coordinatesAngle.js";
|
|
195
197
|
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
196
198
|
import "../CruisePlugin/utils/safeCall.js";
|
|
197
|
-
import "../CruisePlugin/utils/vectorToCoordinates.js";
|
|
198
|
-
import "../CruisePlugin/utils/formatRad.js";
|
|
199
|
-
import "../CruisePlugin/utils/linerValue.js";
|
|
200
199
|
import "../CruisePlugin/utils/sleep.js";
|
|
201
|
-
|
|
202
|
-
|
|
200
|
+
import "../shared-utils/vectorToCoordinate.js";
|
|
201
|
+
import "../shared-utils/formatRad.js";
|
|
202
|
+
import "../CruisePlugin/CruiseController.js";
|
|
203
|
+
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
204
|
+
const b = "GuideLinePlugin", g = `${b}`, Yr = (s) => `${g}--${s}`;
|
|
205
|
+
class Zr extends x {
|
|
203
206
|
constructor(t, i) {
|
|
204
207
|
super(t, i);
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
d(this, "cruisePlugin");
|
|
208
|
+
h(this, "name", b);
|
|
209
|
+
h(this, "cruisePlugin");
|
|
208
210
|
/** GuideLineItem 索引 */
|
|
209
|
-
|
|
210
|
-
|
|
211
|
+
h(this, "itemMap", /* @__PURE__ */ new Map());
|
|
212
|
+
h(this, "state", {
|
|
211
213
|
visible: !1,
|
|
212
214
|
enabled: !0
|
|
213
215
|
});
|
|
214
|
-
|
|
216
|
+
h(this, "data");
|
|
215
217
|
/** 当新增一根线时,整体高度的偏移值 */
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
218
|
+
h(this, "heightOffset", 0);
|
|
219
|
+
h(this, "_config");
|
|
220
|
+
h(this, "_disposed", !1);
|
|
221
|
+
h(this, "disposedErrorLog", () => {
|
|
220
222
|
console.error(`${g} is disposed`);
|
|
221
223
|
});
|
|
222
|
-
this._config = i != null ? i : {}, this.cruisePlugin = new
|
|
224
|
+
this._config = i != null ? i : {}, this.cruisePlugin = new k(t), Object.assign(window, { [`__${b}_DEBUG__`]: this });
|
|
223
225
|
}
|
|
224
226
|
get config() {
|
|
225
227
|
return this._config;
|
|
@@ -229,7 +231,7 @@ class Qr extends P {
|
|
|
229
231
|
}
|
|
230
232
|
load(t, i, a = !0) {
|
|
231
233
|
return u(this, null, function* () {
|
|
232
|
-
var v,
|
|
234
|
+
var v, I, w, E, y, D, L;
|
|
233
235
|
if (this.disposed)
|
|
234
236
|
return;
|
|
235
237
|
const m = this.data ? JSON.parse(JSON.stringify(this.data)) : void 0, e = yield this.formatData(t);
|
|
@@ -238,14 +240,14 @@ class Qr extends P {
|
|
|
238
240
|
panorama_style: {
|
|
239
241
|
visible: !!(!e.lines && e.routes),
|
|
240
242
|
unit_length: (v = r == null ? void 0 : r.unitHeight) != null ? v : 0.4,
|
|
241
|
-
width: (
|
|
242
|
-
texture: { url: (
|
|
243
|
+
width: (I = r == null ? void 0 : r.unitWidth) != null ? I : 0.6,
|
|
244
|
+
texture: { url: (w = r == null ? void 0 : r.arrowTextureUrl) != null ? w : this.staticPrefix + "/release/web/arrow6.b6ce0c62.png" }
|
|
243
245
|
}
|
|
244
|
-
},
|
|
246
|
+
}, d = (y = (E = e.routes) == null ? void 0 : E.map((l) => {
|
|
245
247
|
var _;
|
|
246
|
-
return
|
|
247
|
-
})) != null ? y : [],
|
|
248
|
-
yield this.
|
|
248
|
+
return A({}, n, { id: (_ = l.id) != null ? _ : Date.now(), pano_group: l.panoIndexList });
|
|
249
|
+
})) != null ? y : [], S = (L = (D = e.lines) == null ? void 0 : D.map((l) => A({}, n, l))) != null ? L : [], V = [...d, ...S];
|
|
250
|
+
yield P(this.five), this.clear(), V.forEach((l) => {
|
|
249
251
|
this.addGuideLineItem(l);
|
|
250
252
|
}), this.updateTagsEnable(), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), i && this.setState(i, { userAction: a }), this.hooks.emit("dataLoaded", e), console.debug(`${g} loaded`, e);
|
|
251
253
|
});
|
|
@@ -284,13 +286,13 @@ class Qr extends P {
|
|
|
284
286
|
if (this.disposed)
|
|
285
287
|
return this.disposedErrorLog();
|
|
286
288
|
const a = f({}, this.state);
|
|
287
|
-
this.state = f(f({}, this.state), t), t.visible !== void 0 && t.visible !== a.visible && this.handleVisible(t.visible, i == null ? void 0 : i.userAction), t.enabled !== void 0 && t.enabled !== a.enabled && this.handleEnable(t.enabled, i == null ? void 0 : i.userAction),
|
|
289
|
+
this.state = f(f({}, this.state), t), t.visible !== void 0 && t.visible !== a.visible && this.handleVisible(t.visible, i == null ? void 0 : i.userAction), t.enabled !== void 0 && t.enabled !== a.enabled && this.handleEnable(t.enabled, i == null ? void 0 : i.userAction), N(a, this.state, { deep: !0 }) || (this.hooks.emit("stateChange", { state: this.state, prevState: a, userAction: (m = i == null ? void 0 : i.userAction) != null ? m : !0 }), this.five.needsRender = !0);
|
|
288
290
|
}
|
|
289
291
|
/** 添加一个 GuideLineItem */
|
|
290
292
|
addGuideLineItem(t) {
|
|
291
293
|
const i = t.render_id || t.id, a = this.itemMap.get(i);
|
|
292
294
|
a && this.removeGuideLineItem(a);
|
|
293
|
-
const m = new
|
|
295
|
+
const m = new $({ five: this.five, id: i, plugin: this });
|
|
294
296
|
return this.itemMap.set(i, m), t && m.setData(t), this.heightOffset += 1e-4, m.modelItem.setHeightOffset(this.heightOffset), m.panoramaItem.setHeightOffset(this.heightOffset), m;
|
|
295
297
|
}
|
|
296
298
|
/** 获取 Plugin 内的 GuideLineItem */
|
|
@@ -308,21 +310,21 @@ class Qr extends P {
|
|
|
308
310
|
return Array.isArray(e) && e.every((r) => typeof r == "number");
|
|
309
311
|
}
|
|
310
312
|
function a(e, r) {
|
|
311
|
-
return new
|
|
313
|
+
return new G.Vector3().fromArray(e).distanceTo(new G.Vector3().fromArray(r)) < 0.01;
|
|
312
314
|
}
|
|
313
315
|
function m(e) {
|
|
314
316
|
var p;
|
|
315
317
|
const r = (p = e.tag) == null ? void 0 : p.position;
|
|
316
318
|
return i(r) ? t.every((n) => {
|
|
317
|
-
var
|
|
318
|
-
return i((
|
|
319
|
+
var d;
|
|
320
|
+
return i((d = n.tag) == null ? void 0 : d.position) ? !a(r, n.tag.position) : !0;
|
|
319
321
|
}) : !1;
|
|
320
322
|
}
|
|
321
323
|
this.itemMap.forEach((e) => {
|
|
322
324
|
const r = e.modelItem.startTagContainer, p = e.modelItem.endTagContainer, n = m(r);
|
|
323
325
|
n && t.push(r), r.plugin.setState({ enabled: n }, {});
|
|
324
|
-
const
|
|
325
|
-
|
|
326
|
+
const d = m(p);
|
|
327
|
+
d && t.push(p), p.plugin.setState({ enabled: d }, {});
|
|
326
328
|
});
|
|
327
329
|
}
|
|
328
330
|
/** 清空所有 GuideLineItem */
|
|
@@ -337,27 +339,11 @@ class Qr extends P {
|
|
|
337
339
|
handleVisible(t, i = !0) {
|
|
338
340
|
this.state.enabled && this.hooks.emit(t ? "show" : "hide", { userAction: i });
|
|
339
341
|
}
|
|
340
|
-
/**
|
|
341
|
-
* @description: Wait for five model ready
|
|
342
|
-
*/
|
|
343
|
-
waitFiveLoaded() {
|
|
344
|
-
return u(this, null, function* () {
|
|
345
|
-
return new Promise((t) => {
|
|
346
|
-
if (this.five.work) {
|
|
347
|
-
t();
|
|
348
|
-
return;
|
|
349
|
-
}
|
|
350
|
-
this.five.once("loaded", () => {
|
|
351
|
-
t();
|
|
352
|
-
});
|
|
353
|
-
});
|
|
354
|
-
});
|
|
355
|
-
}
|
|
356
342
|
getDataWithoutVersion(t) {
|
|
357
343
|
return typeof t == "object" && t !== null && t.version && t.data ? t.data : t;
|
|
358
344
|
}
|
|
359
345
|
}
|
|
360
346
|
export {
|
|
361
|
-
|
|
362
|
-
|
|
347
|
+
Zr as default,
|
|
348
|
+
Yr as pluginFlag
|
|
363
349
|
};
|
|
@@ -1,17 +1,17 @@
|
|
|
1
|
-
var
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
2
|
var w = Object.getOwnPropertySymbols;
|
|
3
|
-
var
|
|
4
|
-
var
|
|
3
|
+
var k = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var c = (o, e, t) => e in o ? S(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, g = (o, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
|
-
|
|
6
|
+
k.call(e, t) && c(o, t, e[t]);
|
|
7
7
|
if (w)
|
|
8
8
|
for (var t of w(e))
|
|
9
|
-
b.call(e, t) &&
|
|
9
|
+
b.call(e, t) && c(o, t, e[t]);
|
|
10
10
|
return o;
|
|
11
11
|
};
|
|
12
|
-
var s = (o, e, t) => (
|
|
13
|
-
var
|
|
14
|
-
var
|
|
12
|
+
var s = (o, e, t) => (c(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
+
var d = (o, e, t) => new Promise((n, i) => {
|
|
14
|
+
var u = (r) => {
|
|
15
15
|
try {
|
|
16
16
|
a(t.next(r));
|
|
17
17
|
} catch (m) {
|
|
@@ -23,15 +23,16 @@ var g = (o, e, t) => new Promise((n, i) => {
|
|
|
23
23
|
} catch (m) {
|
|
24
24
|
i(m);
|
|
25
25
|
}
|
|
26
|
-
}, a = (r) => r.done ? n(r.value) : Promise.resolve(r.value).then(
|
|
26
|
+
}, a = (r) => r.done ? n(r.value) : Promise.resolve(r.value).then(u, l);
|
|
27
27
|
a((t = t.apply(o, e)).next());
|
|
28
28
|
});
|
|
29
|
-
import { GuideLineModeItem as
|
|
30
|
-
import x from "../../
|
|
31
|
-
import {
|
|
32
|
-
import {
|
|
33
|
-
import {
|
|
34
|
-
import
|
|
29
|
+
import { GuideLineModeItem as v } from "../GuideLineModeItem/index.js";
|
|
30
|
+
import { logError as x } from "../../shared-utils/log.js";
|
|
31
|
+
import { to as y } from "../../shared-utils/to.js";
|
|
32
|
+
import { Subscribe as G } from "@realsee/five";
|
|
33
|
+
import { changeMode as L } from "../../shared-utils/five/changeMode.js";
|
|
34
|
+
import P from "../../CruisePlugin/Move.js";
|
|
35
|
+
import M from "../../CruisePlugin/Work.js";
|
|
35
36
|
class C {
|
|
36
37
|
constructor(e) {
|
|
37
38
|
s(this, "id");
|
|
@@ -39,12 +40,12 @@ class C {
|
|
|
39
40
|
s(this, "isGuideLine", !0);
|
|
40
41
|
s(this, "panoramaItem");
|
|
41
42
|
s(this, "modelItem");
|
|
42
|
-
s(this, "hooks", new
|
|
43
|
+
s(this, "hooks", new G());
|
|
43
44
|
s(this, "_visible", !0);
|
|
44
45
|
s(this, "plugin");
|
|
45
46
|
s(this, "five");
|
|
46
|
-
s(this, "logError", (e) =>
|
|
47
|
-
this.id = e.id, this.five = e.five, this.plugin = e.plugin, this.panoramaItem = new
|
|
47
|
+
s(this, "logError", (e) => x("GuideLineItem: ", e));
|
|
48
|
+
this.id = e.id, this.five = e.five, this.plugin = e.plugin, this.panoramaItem = new v(this.five, { mode: "panorama", plugin: this.plugin, parent: this }), this.modelItem = new v(this.five, { mode: "model", plugin: this.plugin, parent: this });
|
|
48
49
|
}
|
|
49
50
|
get visible() {
|
|
50
51
|
return this._visible;
|
|
@@ -54,12 +55,12 @@ class C {
|
|
|
54
55
|
}
|
|
55
56
|
setDataByMode(e, t) {
|
|
56
57
|
var m;
|
|
57
|
-
const n = e === "panorama" ? this.panoramaItem : this.modelItem, i = e === "panorama" ? t.panorama_style : t.model_style,
|
|
58
|
+
const n = e === "panorama" ? this.panoramaItem : this.modelItem, i = e === "panorama" ? t.panorama_style : t.model_style, u = t.path, l = i, a = i, r = i;
|
|
58
59
|
if (t.pano_group) {
|
|
59
60
|
const h = e === "panorama";
|
|
60
|
-
n.setGeometryByPanoGroup(t.pano_group,
|
|
61
|
+
n.setGeometryByPanoGroup(t.pano_group, g({ skipPanoGroup: h }, l));
|
|
61
62
|
} else
|
|
62
|
-
t.path && n.setGeometryByPath(
|
|
63
|
+
t.path && n.setGeometryByPath(u, l);
|
|
63
64
|
n.name = t.name, n.setMeshStyle(r), n.setMartial(a), n.setVisibleFloorIndexes((m = t.visible_floor_indexes) != null ? m : null), n.setStartTag(i == null ? void 0 : i.start_tag), n.setEndTag(i == null ? void 0 : i.end_tag);
|
|
64
65
|
}
|
|
65
66
|
show() {
|
|
@@ -72,44 +73,53 @@ class C {
|
|
|
72
73
|
this.panoramaItem.dispose(), this.modelItem.dispose();
|
|
73
74
|
}
|
|
74
75
|
walk(e) {
|
|
75
|
-
return
|
|
76
|
-
if (!this.panoramaItem.panoGroup)
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
76
|
+
return d(this, null, function* () {
|
|
77
|
+
if (this.hooks.emit("walkStart", { userAction: !0 }), this.panoramaItem.panoGroup.length) {
|
|
78
|
+
const t = g({ panoIndexList: this.panoramaItem.panoGroup }, e), [n] = yield y(A(this.five, t));
|
|
79
|
+
if (n)
|
|
80
|
+
return this.logError(n.message);
|
|
81
|
+
} else {
|
|
82
|
+
const t = { path: this.panoramaItem.curvePath }, [n] = yield y(E(this.five, t));
|
|
83
|
+
if (n)
|
|
84
|
+
return this.logError(n.message);
|
|
85
|
+
}
|
|
86
|
+
this.hooks.emit("walkEnded", { userAction: !0 });
|
|
83
87
|
});
|
|
84
88
|
}
|
|
85
89
|
}
|
|
86
|
-
function
|
|
87
|
-
return
|
|
90
|
+
function E(o, e) {
|
|
91
|
+
return d(this, null, function* () {
|
|
92
|
+
const t = new P(o);
|
|
93
|
+
yield t.load(e), t.playFromStart();
|
|
94
|
+
});
|
|
95
|
+
}
|
|
96
|
+
function A(o, e) {
|
|
97
|
+
return d(this, null, function* () {
|
|
88
98
|
if (e.panoIndexList.length === 0)
|
|
89
99
|
return;
|
|
90
100
|
const t = o.getCurrentState();
|
|
91
|
-
t.mode !== "Panorama" && (yield
|
|
92
|
-
const n = new
|
|
93
|
-
yield n.load(e), yield new Promise((i,
|
|
101
|
+
t.mode !== "Panorama" && (yield L(o, ["Panorama", { longitude: t.longitude, latitude: 0, panoIndex: e.panoIndexList[0] }]));
|
|
102
|
+
const n = new M(o);
|
|
103
|
+
yield n.load(e), yield new Promise((i, u) => {
|
|
94
104
|
const l = o.getCurrentState();
|
|
95
105
|
let a = e.panoIndexList.slice();
|
|
96
106
|
l.panoIndex === a[0] && m(l.panoIndex), n.playFromStart();
|
|
97
|
-
function r(
|
|
98
|
-
if (
|
|
107
|
+
function r(p) {
|
|
108
|
+
if (p !== "Panorama")
|
|
99
109
|
return f(new Error("mode not match"));
|
|
100
110
|
}
|
|
101
|
-
function m(
|
|
111
|
+
function m(p) {
|
|
102
112
|
const I = a[0];
|
|
103
|
-
if (a = a.slice(1),
|
|
104
|
-
return f(new Error("panoIndex not match, wanted: " + I + ", got: " +
|
|
113
|
+
if (a = a.slice(1), p !== I)
|
|
114
|
+
return f(new Error("panoIndex not match, wanted: " + I + ", got: " + p));
|
|
105
115
|
if (a.length === 0)
|
|
106
116
|
return _();
|
|
107
117
|
}
|
|
108
118
|
function h() {
|
|
109
119
|
o.off("modeChange", r), o.off("panoArrived", m);
|
|
110
120
|
}
|
|
111
|
-
function f(
|
|
112
|
-
h(), p
|
|
121
|
+
function f(p) {
|
|
122
|
+
h(), u(p);
|
|
113
123
|
}
|
|
114
124
|
function _() {
|
|
115
125
|
h(), i();
|
|
@@ -118,11 +128,11 @@ function M(o, e) {
|
|
|
118
128
|
});
|
|
119
129
|
});
|
|
120
130
|
}
|
|
121
|
-
const
|
|
131
|
+
const V = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
122
132
|
__proto__: null,
|
|
123
133
|
GuideLineItem: C
|
|
124
134
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
125
135
|
export {
|
|
126
136
|
C as GuideLineItem,
|
|
127
|
-
|
|
137
|
+
V as GuideLineItem$1
|
|
128
138
|
};
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import "./GuideLineModeItem/index.js";
|
|
2
|
-
import "../CruisePlugin/Controller.js";
|
|
3
2
|
import "../shared-utils/log.js";
|
|
4
3
|
import "../shared-utils/to.js";
|
|
5
4
|
import "@realsee/five";
|
|
6
5
|
import "../shared-utils/five/changeMode.js";
|
|
7
|
-
import
|
|
6
|
+
import "../CruisePlugin/Move.js";
|
|
7
|
+
import "../CruisePlugin/Work.js";
|
|
8
|
+
import { GuideLineItem as ao } from "./GuideLineItem/index.js";
|
|
8
9
|
import "three";
|
|
9
10
|
import "./utils/createLineGeometry.js";
|
|
10
11
|
import "../vendor/polyline-normals/index.js";
|
|
@@ -157,19 +158,21 @@ import "@realsee/five/gltf-loader";
|
|
|
157
158
|
import "../shared-utils/five/fiveModelLoad.js";
|
|
158
159
|
import "./Components/Tag.js";
|
|
159
160
|
import "./utils/index.js";
|
|
161
|
+
import "../shared-utils/nearlyEqual.js";
|
|
162
|
+
import "../CruisePlugin/CruiseController.js";
|
|
163
|
+
import "../shared-utils/equal.js";
|
|
164
|
+
import "../shared-utils/isTruelyObject.js";
|
|
165
|
+
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
166
|
+
import "../shared-utils/vectorToCoordinate.js";
|
|
167
|
+
import "../shared-utils/formatRad.js";
|
|
160
168
|
import "../base/BasePluginWithData.js";
|
|
161
169
|
import "./index.js";
|
|
162
170
|
import "./Controller.js";
|
|
163
|
-
import "../shared-utils/
|
|
164
|
-
import "../shared-utils/isTruelyObject.js";
|
|
165
|
-
import "../shared-utils/nearlyEqual.js";
|
|
171
|
+
import "../shared-utils/five/fiveLoaded.js";
|
|
166
172
|
import "../CruisePlugin/utils/coordinatesAngle.js";
|
|
167
173
|
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
168
174
|
import "../CruisePlugin/utils/safeCall.js";
|
|
169
|
-
import "../CruisePlugin/utils/vectorToCoordinates.js";
|
|
170
|
-
import "../CruisePlugin/utils/formatRad.js";
|
|
171
|
-
import "../CruisePlugin/utils/linerValue.js";
|
|
172
175
|
import "../CruisePlugin/utils/sleep.js";
|
|
173
176
|
export {
|
|
174
|
-
|
|
177
|
+
ao as GuideLineItem
|
|
175
178
|
};
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import t from "./Controller.js";
|
|
2
|
-
import { GuideLineItem$1 as
|
|
3
|
-
import { GuideLineModeItem$1 as
|
|
2
|
+
import { GuideLineItem$1 as Mt } from "./GuideLineItem/index.js";
|
|
3
|
+
import { GuideLineModeItem$1 as ct } from "./GuideLineModeItem/index.js";
|
|
4
4
|
import "../base/BasePluginWithData.js";
|
|
5
5
|
import "../base/BasePlugin.js";
|
|
6
6
|
import "../shared-utils/Subscribe.js";
|
|
@@ -26,16 +26,14 @@ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
26
26
|
import "../shared-utils/url/absoluteUrl.js";
|
|
27
27
|
import "../shared-utils/equal.js";
|
|
28
28
|
import "../shared-utils/isTruelyObject.js";
|
|
29
|
-
import "../CruisePlugin/
|
|
30
|
-
import "
|
|
29
|
+
import "../CruisePlugin/Move.js";
|
|
30
|
+
import "../CruisePlugin/CruiseController.js";
|
|
31
|
+
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
31
32
|
import "../shared-utils/uuid.js";
|
|
32
|
-
import "../CruisePlugin/utils/
|
|
33
|
-
import "../
|
|
34
|
-
import "../
|
|
35
|
-
import "../
|
|
36
|
-
import "../CruisePlugin/utils/formatRad.js";
|
|
37
|
-
import "../CruisePlugin/utils/linerValue.js";
|
|
38
|
-
import "../CruisePlugin/utils/sleep.js";
|
|
33
|
+
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
34
|
+
import "../shared-utils/vectorToCoordinate.js";
|
|
35
|
+
import "../shared-utils/formatRad.js";
|
|
36
|
+
import "../shared-utils/five/fiveLoaded.js";
|
|
39
37
|
import "../shared-utils/log.js";
|
|
40
38
|
import "./utils/createLineGeometry.js";
|
|
41
39
|
import "../vendor/polyline-normals/index.js";
|
|
@@ -50,7 +48,6 @@ import "../shared-utils/animationFrame/BetterTween.js";
|
|
|
50
48
|
import "../shared-utils/animationFrame/index.js";
|
|
51
49
|
import "../shared-utils/three/loadTexture.js";
|
|
52
50
|
import "../PanoTagPlugin/controller/index.js";
|
|
53
|
-
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
54
51
|
import "../PanoTagPlugin/utils/addDebugPoints.js";
|
|
55
52
|
import "../PanoTagPlugin/utils/tag/tagCheck.js";
|
|
56
53
|
import "../PanoTagPlugin/utils/debounce.js";
|
|
@@ -170,10 +167,16 @@ import "./utils/index.js";
|
|
|
170
167
|
import "../shared-utils/to.js";
|
|
171
168
|
import "../shared-utils/five/changeMode.js";
|
|
172
169
|
import "../shared-utils/nearlyEqual.js";
|
|
173
|
-
|
|
170
|
+
import "../CruisePlugin/Work.js";
|
|
171
|
+
import "./index.js";
|
|
172
|
+
import "../CruisePlugin/utils/coordinatesAngle.js";
|
|
173
|
+
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
174
|
+
import "../CruisePlugin/utils/safeCall.js";
|
|
175
|
+
import "../CruisePlugin/utils/sleep.js";
|
|
176
|
+
const st = (i, o) => new t(i, o);
|
|
174
177
|
export {
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
178
|
+
Mt as GuideLineItem,
|
|
179
|
+
ct as GuideLineModeItem,
|
|
180
|
+
st as GuideLinePlugin,
|
|
181
|
+
st as default
|
|
179
182
|
};
|
|
@@ -212,7 +212,7 @@ class Ui extends z {
|
|
|
212
212
|
this.tags.forEach((t) => {
|
|
213
213
|
this.getVisible(t, { panoIndex: e }) && (t.state.visible = !0);
|
|
214
214
|
const s = this.getTagConfig(t);
|
|
215
|
-
typeof s.visibleConfig == "object" && (s.visibleConfig.keep ? t.temporaryState.visible = s.visibleConfig.keep === "visible" : t.temporaryState.visible = !!s.visibleConfig.alwaysShowWhenMovePano);
|
|
215
|
+
typeof s.visibleConfig == "object" && t.temporaryState && (s.visibleConfig.keep ? t.temporaryState.visible = s.visibleConfig.keep === "visible" : t.temporaryState.visible = !!s.visibleConfig.alwaysShowWhenMovePano);
|
|
216
216
|
}), this.updateTagContainerVisible(), this.updateRenderImagePlane(), this.updateRenderVideoPlane();
|
|
217
217
|
});
|
|
218
218
|
/**
|