@realsee/dnalogel 3.5.0-tag-dev.2 → 3.6.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/BaseController.d.ts +159 -0
- package/dist/CruisePlugin/Move.d.ts +40 -0
- package/dist/CruisePlugin/Work.d.ts +120 -0
- 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/PanoTagPlugin/controller/TagRender.d.ts +2 -2
- package/dist/index.cjs.js +52 -52
- package/dist/index.js +3249 -3160
- package/dist/index.umd.js +54 -54
- 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 +652 -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 +66 -48
- 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} +97 -99
- 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/TagContentTypeMapping.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/BaseController.d.ts +159 -0
- package/libs/CruisePlugin/BaseController.js +231 -0
- package/libs/CruisePlugin/Move.d.ts +40 -0
- package/libs/CruisePlugin/Move.js +120 -0
- package/libs/CruisePlugin/Work.d.ts +120 -0
- package/libs/CruisePlugin/Work.js +597 -0
- package/libs/CruisePlugin/index.d.ts +4 -3
- package/libs/CruisePlugin/index.js +17 -12
- 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 +13 -10
- package/libs/GuideLinePlugin/index.js +20 -17
- package/libs/PanoTagPlugin/controller/TagRender.d.ts +2 -2
- package/libs/PanoTagPlugin/controller/TagRender.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/Controller.d.ts +0 -171
- package/dist/CruisePlugin/utils/linerValue.d.ts +0 -1
- package/libs/CruisePlugin/Controller.d.ts +0 -171
- package/libs/CruisePlugin/Controller.js +0 -760
- /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
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import CruiseController from './BaseController';
|
|
3
|
+
import type { PluginState } from './typing';
|
|
4
|
+
import type { PartialDeep } from 'type-fest';
|
|
5
|
+
import type * as THREE from 'three';
|
|
6
|
+
type Data = {
|
|
7
|
+
path: THREE.CurvePath<THREE.Vector3>;
|
|
8
|
+
offset?: Partial<{
|
|
9
|
+
x: number;
|
|
10
|
+
y: number;
|
|
11
|
+
z: number;
|
|
12
|
+
}>;
|
|
13
|
+
};
|
|
14
|
+
type Config = {
|
|
15
|
+
offset?: Partial<{
|
|
16
|
+
x: number;
|
|
17
|
+
y: number;
|
|
18
|
+
z: number;
|
|
19
|
+
}>;
|
|
20
|
+
allowBroke?: boolean;
|
|
21
|
+
};
|
|
22
|
+
export default class MoveController extends CruiseController<Data, Config> {
|
|
23
|
+
private curve;
|
|
24
|
+
private baseCurveOffset;
|
|
25
|
+
private curveOffset;
|
|
26
|
+
private playStartedTime;
|
|
27
|
+
private duration;
|
|
28
|
+
constructor(five: Five, config?: Config);
|
|
29
|
+
load(data: Data, state?: PartialDeep<PluginState>): Promise<void>;
|
|
30
|
+
changeSpeed: (speed: number, userAction?: boolean) => void;
|
|
31
|
+
moveToStart: () => void;
|
|
32
|
+
playFromStart: () => void;
|
|
33
|
+
protected getDuration: () => number;
|
|
34
|
+
protected getProgress: () => number;
|
|
35
|
+
protected handlePlay(): Promise<string>;
|
|
36
|
+
protected handlePause(options?: {
|
|
37
|
+
userAction?: boolean;
|
|
38
|
+
}): void;
|
|
39
|
+
}
|
|
40
|
+
export {};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
var S = Object.defineProperty;
|
|
2
|
+
var g = Object.getOwnPropertySymbols;
|
|
3
|
+
var y = Object.prototype.hasOwnProperty, P = Object.prototype.propertyIsEnumerable;
|
|
4
|
+
var m = (o, e, t) => e in o ? S(o, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : o[e] = t, v = (o, e) => {
|
|
5
|
+
for (var t in e || (e = {}))
|
|
6
|
+
y.call(e, t) && m(o, t, e[t]);
|
|
7
|
+
if (g)
|
|
8
|
+
for (var t of g(e))
|
|
9
|
+
P.call(e, t) && m(o, t, e[t]);
|
|
10
|
+
return o;
|
|
11
|
+
};
|
|
12
|
+
var r = (o, e, t) => (m(o, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
+
import C from "./BaseController.js";
|
|
14
|
+
import { objectAssignDeepExports as u } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
15
|
+
import "hammerjs";
|
|
16
|
+
import "three";
|
|
17
|
+
import "@realsee/five";
|
|
18
|
+
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
19
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
20
|
+
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
21
|
+
import { uuid as b } from "../shared-utils/uuid.js";
|
|
22
|
+
import { getFiveStateOnCurve as c } from "./utils/getFiveStateOnCurve.js";
|
|
23
|
+
import "../base/BasePlugin.js";
|
|
24
|
+
import "../shared-utils/Subscribe.js";
|
|
25
|
+
import "../shared-utils/url/absoluteUrl.js";
|
|
26
|
+
import "../shared-utils/equal.js";
|
|
27
|
+
import "../shared-utils/isTruelyObject.js";
|
|
28
|
+
import "../shared-utils/positionToVector3.js";
|
|
29
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
30
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
31
|
+
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
32
|
+
import "../shared-utils/util.js";
|
|
33
|
+
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
34
|
+
import "../CSS3DRenderPlugin/utils/even.js";
|
|
35
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
36
|
+
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
37
|
+
import "../shared-utils/three/centerPoint.js";
|
|
38
|
+
import "../shared-utils/three/getObjectVisible.js";
|
|
39
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
40
|
+
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
41
|
+
import "../shared-utils/vectorToCoordinate.js";
|
|
42
|
+
import "../shared-utils/formatRad.js";
|
|
43
|
+
class tt extends C {
|
|
44
|
+
constructor(t, s) {
|
|
45
|
+
var i;
|
|
46
|
+
super(t, s);
|
|
47
|
+
r(this, "curve");
|
|
48
|
+
r(this, "baseCurveOffset");
|
|
49
|
+
r(this, "curveOffset");
|
|
50
|
+
r(this, "playStartedTime", performance.now());
|
|
51
|
+
r(this, "duration");
|
|
52
|
+
r(this, "changeSpeed", (t, s = !0) => {
|
|
53
|
+
this.state.speed = t, this.hooks.emit("speedChange", t, { userAction: s });
|
|
54
|
+
});
|
|
55
|
+
r(this, "moveToStart", () => {
|
|
56
|
+
this.five.setState(c(this.curve, 0, this.curveOffset));
|
|
57
|
+
});
|
|
58
|
+
r(this, "playFromStart", () => {
|
|
59
|
+
this.clearPauseData(), this.setState({ playing: !0 });
|
|
60
|
+
});
|
|
61
|
+
r(this, "getDuration", () => this.getSpeededDuration(this.duration));
|
|
62
|
+
r(this, "getProgress", () => {
|
|
63
|
+
var n;
|
|
64
|
+
const t = this.getPauseData(), s = 1 - ((n = t == null ? void 0 : t.playedProgress) != null ? n : 0), a = this.getDuration(), i = (performance.now() - this.playStartedTime) / a;
|
|
65
|
+
return 1 - s + i;
|
|
66
|
+
});
|
|
67
|
+
const a = {
|
|
68
|
+
config: {
|
|
69
|
+
speedConfig: {
|
|
70
|
+
moveSpeed: 2,
|
|
71
|
+
moveSpeedUnit: "m/s"
|
|
72
|
+
}
|
|
73
|
+
}
|
|
74
|
+
}, f = {
|
|
75
|
+
allowBroke: !0
|
|
76
|
+
};
|
|
77
|
+
this.state = u({}, a, this.state), this.config = u({}, f, this.config), this.baseCurveOffset = u({ x: 0, y: 0, z: 0 }, { y: 2 }, (i = this.config) == null ? void 0 : i.offset);
|
|
78
|
+
}
|
|
79
|
+
load(t, s) {
|
|
80
|
+
var i, n, h, p, d, l;
|
|
81
|
+
if (this.handlePause(), this.clear(), this.data = v({ id: b() }, t), this.curve = this.data.path.curves[0], this.curveOffset = {
|
|
82
|
+
x: this.baseCurveOffset.x + ((n = (i = this.data.offset) == null ? void 0 : i.x) != null ? n : 0),
|
|
83
|
+
y: this.baseCurveOffset.y + ((p = (h = this.data.offset) == null ? void 0 : h.y) != null ? p : 0),
|
|
84
|
+
z: this.baseCurveOffset.z + ((l = (d = this.data.offset) == null ? void 0 : d.z) != null ? l : 0)
|
|
85
|
+
}, !this.curve)
|
|
86
|
+
throw new Error("curve is not defined");
|
|
87
|
+
const a = this.curve.getLength(), f = this.state.config.speedConfig.moveSpeedUnit === "m/ms" ? 1 : 1e3;
|
|
88
|
+
return this.duration = a / (this.state.config.speedConfig.moveSpeed / f), s ? this.setState(s) : (this.setState({ playing: !1 }), this.handleVisible(this.state.visible), this.handleEnable(this.state.enabled), this.changePlayState(this.state.playing), this.changeSpeed(this.state.speed)), Promise.resolve();
|
|
89
|
+
}
|
|
90
|
+
handlePlay() {
|
|
91
|
+
return new Promise((t, s) => {
|
|
92
|
+
var n;
|
|
93
|
+
const a = this.getPauseData(), f = c(this.curve, (n = a == null ? void 0 : a.playedProgress) != null ? n : 0, this.curveOffset);
|
|
94
|
+
if (this.five.setState(f), this.playStartedTime = performance.now(), this.config.allowBroke) {
|
|
95
|
+
const h = this.addInterruptListener(() => {
|
|
96
|
+
this.hooks.emit("broke"), this.handlePause(), h();
|
|
97
|
+
});
|
|
98
|
+
}
|
|
99
|
+
const i = () => {
|
|
100
|
+
const h = this.getProgress();
|
|
101
|
+
if (h >= 1)
|
|
102
|
+
this.five.off("renderFrame", i), t("end");
|
|
103
|
+
else if (this.state.playing === !1)
|
|
104
|
+
this.five.off("renderFrame", i);
|
|
105
|
+
else if (h >= 0) {
|
|
106
|
+
const p = c(this.curve, h, this.curveOffset);
|
|
107
|
+
this.five.setState(p, !0);
|
|
108
|
+
}
|
|
109
|
+
};
|
|
110
|
+
this.five.on("renderFrame", i);
|
|
111
|
+
});
|
|
112
|
+
}
|
|
113
|
+
handlePause(t) {
|
|
114
|
+
var s;
|
|
115
|
+
this.state.playing = !1, this.hooks.emit("pause", { userAction: (s = t == null ? void 0 : t.userAction) != null ? s : !0 }), this.setPauseData();
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
export {
|
|
119
|
+
tt as default
|
|
120
|
+
};
|
|
@@ -0,0 +1,120 @@
|
|
|
1
|
+
import type { Five, State } from '@realsee/five';
|
|
2
|
+
import type { PluginState, PluginServerData, PluginData, CruiseKeyframe, MoveEffect, Config } from './typing';
|
|
3
|
+
import CruiseController from './BaseController';
|
|
4
|
+
export default class WalkController extends CruiseController<PluginData, Config> {
|
|
5
|
+
state: PluginState;
|
|
6
|
+
protected privateState: {
|
|
7
|
+
/**
|
|
8
|
+
* privateState.playing 和 state.playing 的区别:
|
|
9
|
+
* state.playing 先为true,然后才 handleplay,handleplay方法内会检查privateState.playing,如果已经开始(privateState.playing === true),就不执行操作,如果为false,就执行操作
|
|
10
|
+
* 其实就是加了一个不允许重复执行handleplay的逻辑
|
|
11
|
+
*/
|
|
12
|
+
playing: boolean;
|
|
13
|
+
currentPlayKeyframe: {
|
|
14
|
+
keyframe: CruiseKeyframe;
|
|
15
|
+
originDuration?: number;
|
|
16
|
+
} | null;
|
|
17
|
+
currentPlayQueue: Promise<any>[];
|
|
18
|
+
broke: boolean;
|
|
19
|
+
playId?: string;
|
|
20
|
+
moveToFirstPanoEffect?: MoveEffect;
|
|
21
|
+
moveToFirstPanoDuration?: number;
|
|
22
|
+
modeChanging?: boolean;
|
|
23
|
+
};
|
|
24
|
+
constructor(five: Five, config?: Config);
|
|
25
|
+
/**
|
|
26
|
+
* @description Load Data and State
|
|
27
|
+
*/
|
|
28
|
+
load(serverData: PluginServerData | PluginServerData['data'], state?: PluginState, userAction?: boolean): Promise<void>;
|
|
29
|
+
/**
|
|
30
|
+
* @description If playing, first pause, then play from keyframes index/id
|
|
31
|
+
* @param {number} options.index play from keyframes index
|
|
32
|
+
* @param {string} options.id play from keyframes id
|
|
33
|
+
*/
|
|
34
|
+
playFrom(options: {
|
|
35
|
+
userAction?: boolean;
|
|
36
|
+
index?: number;
|
|
37
|
+
id?: string;
|
|
38
|
+
}): void;
|
|
39
|
+
/**
|
|
40
|
+
* @description Play from first keyframe
|
|
41
|
+
*/
|
|
42
|
+
playFromStart(options?: {
|
|
43
|
+
userAction?: boolean;
|
|
44
|
+
}): void;
|
|
45
|
+
/**
|
|
46
|
+
* @description Format data
|
|
47
|
+
*/
|
|
48
|
+
protected formatData(serverData: PluginServerData | PluginServerData['data']): Promise<PluginData>;
|
|
49
|
+
/**
|
|
50
|
+
* @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
|
|
51
|
+
* @param {number} options.playFromIndex play from keyframes index
|
|
52
|
+
* @param {string} options.playFromId play from keyframes id
|
|
53
|
+
*/
|
|
54
|
+
protected handlePlay(options?: {
|
|
55
|
+
userAction?: boolean;
|
|
56
|
+
playFromIndex?: number;
|
|
57
|
+
playFromId?: string;
|
|
58
|
+
notEmitEvent?: true;
|
|
59
|
+
}): Promise<string>;
|
|
60
|
+
/**
|
|
61
|
+
* @description: Pause and record pause state
|
|
62
|
+
*/
|
|
63
|
+
protected handlePause(options?: {
|
|
64
|
+
userAction?: boolean;
|
|
65
|
+
notEmitEvent?: true;
|
|
66
|
+
}): void;
|
|
67
|
+
/**
|
|
68
|
+
* @description: Change play speed
|
|
69
|
+
*/
|
|
70
|
+
protected changeSpeed(speed: number, userAction?: boolean): void;
|
|
71
|
+
/**
|
|
72
|
+
* @description Get ratate progress
|
|
73
|
+
*/
|
|
74
|
+
protected getProgress(): any;
|
|
75
|
+
/**
|
|
76
|
+
* @description Set pause data
|
|
77
|
+
*/
|
|
78
|
+
protected setPauseData(): Map<string, {
|
|
79
|
+
fiveState: Partial<State>;
|
|
80
|
+
id?: string | number;
|
|
81
|
+
playedProgress: number;
|
|
82
|
+
duration?: number;
|
|
83
|
+
}>;
|
|
84
|
+
/**
|
|
85
|
+
* @description: Restore state that before loaded
|
|
86
|
+
*/
|
|
87
|
+
protected clear(): void;
|
|
88
|
+
/**
|
|
89
|
+
* @description Play single keyframe
|
|
90
|
+
*/
|
|
91
|
+
private playKeyframe;
|
|
92
|
+
/**
|
|
93
|
+
* @description: getPlayPromise
|
|
94
|
+
*/
|
|
95
|
+
private getPlayPromise;
|
|
96
|
+
/**
|
|
97
|
+
* @description Action promise queue in sequence
|
|
98
|
+
*/
|
|
99
|
+
private actionPromiseQueue;
|
|
100
|
+
/**
|
|
101
|
+
* @description Action move keyframe
|
|
102
|
+
*/
|
|
103
|
+
private move;
|
|
104
|
+
/**
|
|
105
|
+
* @description Action rotate keyframe
|
|
106
|
+
*/
|
|
107
|
+
private rotate;
|
|
108
|
+
/**
|
|
109
|
+
* @description Update five camera
|
|
110
|
+
*/
|
|
111
|
+
private updateCamera;
|
|
112
|
+
/**
|
|
113
|
+
* @description: Change five pano
|
|
114
|
+
*/
|
|
115
|
+
private changePano;
|
|
116
|
+
/**
|
|
117
|
+
* @description Change five mode
|
|
118
|
+
*/
|
|
119
|
+
private changeMode;
|
|
120
|
+
}
|