@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,147 +0,0 @@
|
|
|
1
|
-
import type { Five, State } from '@realsee/five';
|
|
2
|
-
import type { BaseOptions } from '../base/BasePlugin';
|
|
3
|
-
import * as BasePlugin from '../base/BasePlugin';
|
|
4
|
-
import type { PluginState, EventMap } from './typing';
|
|
5
|
-
import type { PartialDeep } from 'type-fest';
|
|
6
|
-
export declare const pluginFlag: (name: string) => string;
|
|
7
|
-
export default abstract class CruiseController<PluginData, Config = unknown> extends BasePlugin.Controller<PluginState, EventMap> {
|
|
8
|
-
state: PluginState;
|
|
9
|
-
protected data?: PluginData & {
|
|
10
|
-
id: string | number;
|
|
11
|
-
};
|
|
12
|
-
protected config?: Config;
|
|
13
|
-
private privateState;
|
|
14
|
-
private GuideLine?;
|
|
15
|
-
constructor(five: Five, config?: Config);
|
|
16
|
-
/**
|
|
17
|
-
* @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
|
|
18
|
-
*/
|
|
19
|
-
play(options?: {
|
|
20
|
-
userAction?: boolean;
|
|
21
|
-
}): void;
|
|
22
|
-
/**
|
|
23
|
-
* @description Pause
|
|
24
|
-
*/
|
|
25
|
-
pause(options?: {
|
|
26
|
-
userAction?: boolean;
|
|
27
|
-
}): void;
|
|
28
|
-
/**
|
|
29
|
-
* @description Show guide line
|
|
30
|
-
*/
|
|
31
|
-
show(options?: {
|
|
32
|
-
userAction?: boolean;
|
|
33
|
-
}): Promise<void>;
|
|
34
|
-
/**
|
|
35
|
-
* @description Hide guide line
|
|
36
|
-
*/
|
|
37
|
-
hide(options?: {
|
|
38
|
-
userAction?: boolean;
|
|
39
|
-
}): Promise<void>;
|
|
40
|
-
/**
|
|
41
|
-
* @description Enable
|
|
42
|
-
*/
|
|
43
|
-
enable(options?: {
|
|
44
|
-
userAction?: boolean;
|
|
45
|
-
}): void;
|
|
46
|
-
/**
|
|
47
|
-
* @description Disable
|
|
48
|
-
*/
|
|
49
|
-
disable(options?: {
|
|
50
|
-
userAction?: boolean;
|
|
51
|
-
}): void;
|
|
52
|
-
/**
|
|
53
|
-
* @description Dispose
|
|
54
|
-
*/
|
|
55
|
-
dispose(): void;
|
|
56
|
-
/**
|
|
57
|
-
* @description Set state
|
|
58
|
-
*/
|
|
59
|
-
setState(state: PartialDeep<PluginState>, options?: BaseOptions & Record<string, any>): void;
|
|
60
|
-
/**
|
|
61
|
-
* @description Clear pause data
|
|
62
|
-
*/
|
|
63
|
-
protected clearPauseData(): boolean;
|
|
64
|
-
protected changePlayState(play: boolean, options?: {
|
|
65
|
-
userAction?: boolean;
|
|
66
|
-
playFromIndex?: number;
|
|
67
|
-
playFromId?: string;
|
|
68
|
-
}): void;
|
|
69
|
-
protected handleEnable(enabled: boolean, userAction?: boolean): void;
|
|
70
|
-
protected handleVisible(visible: boolean, userAction?: boolean): void;
|
|
71
|
-
/**
|
|
72
|
-
* @description: listen interupted by five gesture
|
|
73
|
-
*/
|
|
74
|
-
protected addInterruptListener(interrupt: () => void): () => void;
|
|
75
|
-
/**
|
|
76
|
-
* @description Get duration by speed
|
|
77
|
-
*/
|
|
78
|
-
protected getSpeededDuration(duration: number): number;
|
|
79
|
-
/**
|
|
80
|
-
* @description Change five mode
|
|
81
|
-
*/
|
|
82
|
-
protected changeMode(data: Partial<State>, duration?: number): Promise<void>;
|
|
83
|
-
/**
|
|
84
|
-
* @description Force interupt five updateCamera
|
|
85
|
-
*/
|
|
86
|
-
protected forceInteruptUpdateCamera(): void;
|
|
87
|
-
protected getPauseData(): {
|
|
88
|
-
fiveState: Partial<State>;
|
|
89
|
-
id?: string | number;
|
|
90
|
-
playedProgress: number;
|
|
91
|
-
duration?: number;
|
|
92
|
-
};
|
|
93
|
-
/**
|
|
94
|
-
* @description Set pause data
|
|
95
|
-
*/
|
|
96
|
-
protected setPauseData(): Map<string | number, {
|
|
97
|
-
fiveState: Partial<State>;
|
|
98
|
-
id?: string | number;
|
|
99
|
-
playedProgress: number;
|
|
100
|
-
duration?: number;
|
|
101
|
-
}>;
|
|
102
|
-
/**
|
|
103
|
-
* @description: Restore state that before loaded
|
|
104
|
-
*/
|
|
105
|
-
protected clear(): void;
|
|
106
|
-
protected handleDispose(): void;
|
|
107
|
-
/**
|
|
108
|
-
* @description Action function if plugin is enable
|
|
109
|
-
*/
|
|
110
|
-
protected actionIfStateIsEnabled<T = any>(func: () => T, options?: {
|
|
111
|
-
warnLog?: true;
|
|
112
|
-
}): T;
|
|
113
|
-
/**
|
|
114
|
-
* @description Load Data and State
|
|
115
|
-
*/
|
|
116
|
-
abstract load(serverData: unknown, state?: PluginState, userAction?: boolean): Promise<void>;
|
|
117
|
-
/**
|
|
118
|
-
* @description Play from first keyframe
|
|
119
|
-
*/
|
|
120
|
-
abstract playFromStart(): void;
|
|
121
|
-
/**
|
|
122
|
-
* @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
|
|
123
|
-
* @param {number} options.playFromIndex play from keyframes index
|
|
124
|
-
* @param {string} options.playFromId play from keyframes id
|
|
125
|
-
*/
|
|
126
|
-
protected abstract handlePlay(options?: {
|
|
127
|
-
userAction?: boolean;
|
|
128
|
-
playFromIndex?: number;
|
|
129
|
-
playFromId?: string;
|
|
130
|
-
notEmitEvent?: true;
|
|
131
|
-
}): Promise<string>;
|
|
132
|
-
/**
|
|
133
|
-
* @description: Change play speed
|
|
134
|
-
*/
|
|
135
|
-
protected abstract changeSpeed(speed: number): void;
|
|
136
|
-
/**
|
|
137
|
-
* @description Get ratate progress
|
|
138
|
-
*/
|
|
139
|
-
protected abstract getProgress(): number;
|
|
140
|
-
/**
|
|
141
|
-
* @description: Pause and record pause state
|
|
142
|
-
*/
|
|
143
|
-
protected abstract handlePause(options?: {
|
|
144
|
-
userAction?: boolean;
|
|
145
|
-
notEmitEvent?: true;
|
|
146
|
-
}): void;
|
|
147
|
-
}
|
|
@@ -1,236 +0,0 @@
|
|
|
1
|
-
var v = Object.defineProperty;
|
|
2
|
-
var g = Object.getOwnPropertySymbols;
|
|
3
|
-
var S = Object.prototype.hasOwnProperty, y = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var f = (a, s, e) => s in a ? v(a, s, { enumerable: !0, configurable: !0, writable: !0, value: e }) : a[s] = e, c = (a, s) => {
|
|
5
|
-
for (var e in s || (s = {}))
|
|
6
|
-
S.call(s, e) && f(a, e, s[e]);
|
|
7
|
-
if (g)
|
|
8
|
-
for (var e of g(s))
|
|
9
|
-
y.call(s, e) && f(a, e, s[e]);
|
|
10
|
-
return a;
|
|
11
|
-
};
|
|
12
|
-
var h = (a, s, e) => (f(a, typeof s != "symbol" ? s + "" : s, e), e);
|
|
13
|
-
var n = (a, s, e) => new Promise((t, i) => {
|
|
14
|
-
var r = (d) => {
|
|
15
|
-
try {
|
|
16
|
-
o(e.next(d));
|
|
17
|
-
} catch (u) {
|
|
18
|
-
i(u);
|
|
19
|
-
}
|
|
20
|
-
}, b = (d) => {
|
|
21
|
-
try {
|
|
22
|
-
o(e.throw(d));
|
|
23
|
-
} catch (u) {
|
|
24
|
-
i(u);
|
|
25
|
-
}
|
|
26
|
-
}, o = (d) => d.done ? t(d.value) : Promise.resolve(d.value).then(r, b);
|
|
27
|
-
o((e = e.apply(a, s)).next());
|
|
28
|
-
});
|
|
29
|
-
import { Controller as C } from "../base/BasePlugin.js";
|
|
30
|
-
import { equal as P } from "../shared-utils/equal.js";
|
|
31
|
-
import { objectAssignDeepExports as L } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
32
|
-
import "../shared-utils/Subscribe.js";
|
|
33
|
-
import "hammerjs";
|
|
34
|
-
import "three";
|
|
35
|
-
import "@realsee/five";
|
|
36
|
-
import "../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
37
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
38
|
-
import "../shared-utils/positionToVector3.js";
|
|
39
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
40
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
41
|
-
import "../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
42
|
-
import "../shared-utils/util.js";
|
|
43
|
-
import "../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
44
|
-
import "../CSS3DRenderPlugin/utils/even.js";
|
|
45
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
46
|
-
import "../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
47
|
-
import "../shared-utils/three/centerPoint.js";
|
|
48
|
-
import "../shared-utils/three/getObjectVisible.js";
|
|
49
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
50
|
-
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
51
|
-
import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
52
|
-
import "../shared-utils/url/absoluteUrl.js";
|
|
53
|
-
import "../shared-utils/isTruelyObject.js";
|
|
54
|
-
const m = "CruisePlugin", l = `${m}`, Z = (a) => `${l}--${a}`, w = () => {
|
|
55
|
-
console.error(`${l} is disposed`);
|
|
56
|
-
}, I = () => {
|
|
57
|
-
console.warn(`${l} is disabled`);
|
|
58
|
-
}, D = () => {
|
|
59
|
-
console.error(`${l} is disabled`);
|
|
60
|
-
}, p = /* @__PURE__ */ new Map();
|
|
61
|
-
class ee extends C {
|
|
62
|
-
constructor(e, t) {
|
|
63
|
-
super(e, t);
|
|
64
|
-
h(this, "state", {
|
|
65
|
-
visible: !0,
|
|
66
|
-
enabled: !0,
|
|
67
|
-
disposed: !1,
|
|
68
|
-
playing: !1,
|
|
69
|
-
speed: 1
|
|
70
|
-
});
|
|
71
|
-
h(this, "data");
|
|
72
|
-
h(this, "config");
|
|
73
|
-
h(this, "privateState", {
|
|
74
|
-
playing: !1,
|
|
75
|
-
broke: !1,
|
|
76
|
-
modeChanging: !1
|
|
77
|
-
});
|
|
78
|
-
h(this, "GuideLine");
|
|
79
|
-
this.config = t, Object.assign(window, { [`__${m}_DEBUG__`]: this });
|
|
80
|
-
}
|
|
81
|
-
/**
|
|
82
|
-
* @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
|
|
83
|
-
*/
|
|
84
|
-
play(e) {
|
|
85
|
-
this.setState({ playing: !0 }, e);
|
|
86
|
-
}
|
|
87
|
-
/**
|
|
88
|
-
* @description Pause
|
|
89
|
-
*/
|
|
90
|
-
pause(e) {
|
|
91
|
-
this.setState({ playing: !1 }, e);
|
|
92
|
-
}
|
|
93
|
-
/**
|
|
94
|
-
* @description Show guide line
|
|
95
|
-
*/
|
|
96
|
-
show(e) {
|
|
97
|
-
return n(this, null, function* () {
|
|
98
|
-
this.setState({ visible: !0 }, e);
|
|
99
|
-
});
|
|
100
|
-
}
|
|
101
|
-
/**
|
|
102
|
-
* @description Hide guide line
|
|
103
|
-
*/
|
|
104
|
-
hide(e) {
|
|
105
|
-
return n(this, null, function* () {
|
|
106
|
-
this.setState({ visible: !1 }, e);
|
|
107
|
-
});
|
|
108
|
-
}
|
|
109
|
-
/**
|
|
110
|
-
* @description Enable
|
|
111
|
-
*/
|
|
112
|
-
enable(e) {
|
|
113
|
-
this.setState({ enabled: !0 }, e);
|
|
114
|
-
}
|
|
115
|
-
/**
|
|
116
|
-
* @description Disable
|
|
117
|
-
*/
|
|
118
|
-
disable(e) {
|
|
119
|
-
this.setState({ enabled: !1 }, e);
|
|
120
|
-
}
|
|
121
|
-
/**
|
|
122
|
-
* @description Dispose
|
|
123
|
-
*/
|
|
124
|
-
dispose() {
|
|
125
|
-
this.setState({ disposed: !0 });
|
|
126
|
-
}
|
|
127
|
-
/**
|
|
128
|
-
* @description Set state
|
|
129
|
-
*/
|
|
130
|
-
setState(e, t) {
|
|
131
|
-
var r;
|
|
132
|
-
if (this.state.disposed)
|
|
133
|
-
return w();
|
|
134
|
-
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
135
|
-
return D();
|
|
136
|
-
const i = c({}, this.state);
|
|
137
|
-
this.state = L({}, this.state, e), e.disposed !== void 0 && e.disposed !== i.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== i.visible && this.handleVisible(e.visible, t == null ? void 0 : t.userAction), e.enabled !== void 0 && e.enabled !== i.enabled && this.handleEnable(e.enabled, t == null ? void 0 : t.userAction), e.playing !== void 0 && e.playing !== i.playing && this.changePlayState(e.playing, t), e.speed !== void 0 && e.speed !== i.speed && this.changeSpeed(e.speed), P(i, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: i, userAction: (r = t == null ? void 0 : t.userAction) != null ? r : !0 });
|
|
138
|
-
}
|
|
139
|
-
/**
|
|
140
|
-
* @description Clear pause data
|
|
141
|
-
*/
|
|
142
|
-
clearPauseData() {
|
|
143
|
-
var e, t;
|
|
144
|
-
if ((e = this.data) != null && e.id)
|
|
145
|
-
return p.delete((t = this.data) == null ? void 0 : t.id);
|
|
146
|
-
}
|
|
147
|
-
changePlayState(e, t) {
|
|
148
|
-
this.actionIfStateIsEnabled(
|
|
149
|
-
() => {
|
|
150
|
-
var i;
|
|
151
|
-
return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (i = t == null ? void 0 : t.userAction) != null ? i : !0 });
|
|
152
|
-
}
|
|
153
|
-
), e ? this.handlePlay(t) : this.handlePause(t), this.state.playing = e;
|
|
154
|
-
}
|
|
155
|
-
handleEnable(e, t = !0) {
|
|
156
|
-
var i, r;
|
|
157
|
-
e ? ((i = this.GuideLine) == null || i.enable(), this.hooks.emit("enable", { userAction: t })) : ((r = this.GuideLine) == null || r.disable(), this.changePlayState(!1, { userAction: t }), this.hooks.emit("disable", { userAction: t })), this.state.enabled = e;
|
|
158
|
-
}
|
|
159
|
-
handleVisible(e, t = !0) {
|
|
160
|
-
var i, r;
|
|
161
|
-
e ? ((i = this.GuideLine) == null || i.show(), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: t }))) : ((r = this.GuideLine) == null || r.hide(), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: t }))), this.state.visible = e;
|
|
162
|
-
}
|
|
163
|
-
/**
|
|
164
|
-
* @description: listen interupted by five gesture
|
|
165
|
-
*/
|
|
166
|
-
addInterruptListener(e) {
|
|
167
|
-
const t = () => {
|
|
168
|
-
this.privateState.modeChanging || e();
|
|
169
|
-
}, i = (r) => {
|
|
170
|
-
r !== "mouseMove" && (e(), this.five.off("gesture", i));
|
|
171
|
-
};
|
|
172
|
-
return this.five.on("gesture", i), this.five.once("wantsChangeMode", t), () => {
|
|
173
|
-
this.five.off("gesture", i), this.five.off("wantsChangeMode", t);
|
|
174
|
-
};
|
|
175
|
-
}
|
|
176
|
-
/**
|
|
177
|
-
* @description Get duration by speed
|
|
178
|
-
*/
|
|
179
|
-
getSpeededDuration(e) {
|
|
180
|
-
return e / this.state.speed;
|
|
181
|
-
}
|
|
182
|
-
/**
|
|
183
|
-
* @description Change five mode
|
|
184
|
-
*/
|
|
185
|
-
changeMode(e, t) {
|
|
186
|
-
return n(this, null, function* () {
|
|
187
|
-
e.mode && e.mode !== this.five.currentMode && (this.privateState.modeChanging = !0, yield this.five.changeMode(e.mode, e, t), this.privateState.modeChanging = !1);
|
|
188
|
-
});
|
|
189
|
-
}
|
|
190
|
-
/**
|
|
191
|
-
* @description Force interupt five updateCamera
|
|
192
|
-
*/
|
|
193
|
-
forceInteruptUpdateCamera() {
|
|
194
|
-
this.five.updateCamera({}, 0);
|
|
195
|
-
}
|
|
196
|
-
getPauseData() {
|
|
197
|
-
var e;
|
|
198
|
-
if ((e = this.data) != null && e.id)
|
|
199
|
-
return p.get(this.data.id);
|
|
200
|
-
}
|
|
201
|
-
/**
|
|
202
|
-
* @description Set pause data
|
|
203
|
-
*/
|
|
204
|
-
setPauseData() {
|
|
205
|
-
var t;
|
|
206
|
-
const e = (t = this.data) == null ? void 0 : t.id;
|
|
207
|
-
if (e)
|
|
208
|
-
return p.set(e, {
|
|
209
|
-
fiveState: this.five.getCurrentState(),
|
|
210
|
-
playedProgress: this.getProgress()
|
|
211
|
-
});
|
|
212
|
-
}
|
|
213
|
-
/**
|
|
214
|
-
* @description: Restore state that before loaded
|
|
215
|
-
*/
|
|
216
|
-
clear() {
|
|
217
|
-
this.clearPauseData();
|
|
218
|
-
}
|
|
219
|
-
// TODO
|
|
220
|
-
handleDispose() {
|
|
221
|
-
var e;
|
|
222
|
-
this.setState({ playing: !1 }), this.clearPauseData(), this.clear(), (e = this.GuideLine) == null || e.dispose(), this.GuideLine = void 0;
|
|
223
|
-
}
|
|
224
|
-
/**
|
|
225
|
-
* @description Action function if plugin is enable
|
|
226
|
-
*/
|
|
227
|
-
actionIfStateIsEnabled(e, t) {
|
|
228
|
-
if (this.state.enabled)
|
|
229
|
-
return e();
|
|
230
|
-
t != null && t.warnLog && I();
|
|
231
|
-
}
|
|
232
|
-
}
|
|
233
|
-
export {
|
|
234
|
-
ee as default,
|
|
235
|
-
Z as pluginFlag
|
|
236
|
-
};
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import type { Five } from '@realsee/five';
|
|
2
|
-
import CruiseController from './CruiseController';
|
|
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
|
-
};
|
|
9
|
-
type Config = {
|
|
10
|
-
allowBreak?: boolean;
|
|
11
|
-
};
|
|
12
|
-
export default class MoveController extends CruiseController<Data, Config> {
|
|
13
|
-
private curve;
|
|
14
|
-
private curveOffset;
|
|
15
|
-
private playStartedTime;
|
|
16
|
-
private duration;
|
|
17
|
-
constructor(five: Five, config?: Config);
|
|
18
|
-
load(data: Data, state?: PartialDeep<PluginState>): Promise<void>;
|
|
19
|
-
changeSpeed: (speed: number, userAction?: boolean) => void;
|
|
20
|
-
playFromStart(): void;
|
|
21
|
-
protected getDuration(): number;
|
|
22
|
-
protected getProgress(): number;
|
|
23
|
-
protected handlePlay(): Promise<string>;
|
|
24
|
-
protected handlePause(options?: {
|
|
25
|
-
userAction?: boolean;
|
|
26
|
-
}): void;
|
|
27
|
-
}
|
|
28
|
-
export {};
|
|
@@ -1,112 +0,0 @@
|
|
|
1
|
-
var g = Object.defineProperty;
|
|
2
|
-
var c = Object.getOwnPropertySymbols;
|
|
3
|
-
var v = Object.prototype.hasOwnProperty, S = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var m = (i, e, t) => e in i ? g(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t, d = (i, e) => {
|
|
5
|
-
for (var t in e || (e = {}))
|
|
6
|
-
v.call(e, t) && m(i, t, e[t]);
|
|
7
|
-
if (c)
|
|
8
|
-
for (var t of c(e))
|
|
9
|
-
S.call(e, t) && m(i, t, e[t]);
|
|
10
|
-
return i;
|
|
11
|
-
};
|
|
12
|
-
var a = (i, e, t) => (m(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
|
-
import P from "./CruiseController.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 y } from "../shared-utils/uuid.js";
|
|
22
|
-
import { getFiveStateOnCurve as f } 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 _ extends P {
|
|
44
|
-
constructor(t, s) {
|
|
45
|
-
super(t, s);
|
|
46
|
-
a(this, "curve");
|
|
47
|
-
a(this, "curveOffset", { y: 2 });
|
|
48
|
-
a(this, "playStartedTime", performance.now());
|
|
49
|
-
a(this, "duration");
|
|
50
|
-
a(this, "changeSpeed", (t, s = !0) => {
|
|
51
|
-
this.state.speed = t, this.hooks.emit("speedChange", t, { userAction: s });
|
|
52
|
-
});
|
|
53
|
-
const r = {
|
|
54
|
-
config: {
|
|
55
|
-
speedConfig: {
|
|
56
|
-
moveSpeed: 2,
|
|
57
|
-
moveSpeedUnit: "m/s"
|
|
58
|
-
}
|
|
59
|
-
}
|
|
60
|
-
}, o = {
|
|
61
|
-
allowBreak: !0
|
|
62
|
-
};
|
|
63
|
-
this.state = u({}, r, this.state), this.config = u({}, o, this.config);
|
|
64
|
-
}
|
|
65
|
-
load(t, s) {
|
|
66
|
-
if (this.clearPauseData(), this.data = d({ id: y() }, t), this.curve = this.data.path.curves[0], !this.curve)
|
|
67
|
-
throw new Error("curve is not defined");
|
|
68
|
-
const r = this.curve.getLength(), o = this.state.config.speedConfig.moveSpeedUnit === "m/ms" ? 1 : 1e3;
|
|
69
|
-
return this.duration = r / (this.state.config.speedConfig.moveSpeed / o), 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();
|
|
70
|
-
}
|
|
71
|
-
playFromStart() {
|
|
72
|
-
this.clearPauseData(), this.setState({ playing: !0 });
|
|
73
|
-
}
|
|
74
|
-
getDuration() {
|
|
75
|
-
return this.getSpeededDuration(this.duration);
|
|
76
|
-
}
|
|
77
|
-
getProgress() {
|
|
78
|
-
var h;
|
|
79
|
-
const t = this.getPauseData(), s = 1 - ((h = t == null ? void 0 : t.playedProgress) != null ? h : 0), r = this.getDuration(), n = (performance.now() - this.playStartedTime) / r;
|
|
80
|
-
return 1 - s + n;
|
|
81
|
-
}
|
|
82
|
-
handlePlay() {
|
|
83
|
-
return new Promise((t, s) => {
|
|
84
|
-
var h;
|
|
85
|
-
const r = this.getPauseData(), o = f(this.curve, (h = r == null ? void 0 : r.playedProgress) != null ? h : 0, this.curveOffset);
|
|
86
|
-
if (this.five.setState(o), this.playStartedTime = performance.now(), this.config.allowBreak) {
|
|
87
|
-
const p = this.addInterruptListener(() => {
|
|
88
|
-
this.hooks.emit("broke"), this.handlePause(), p();
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
const n = () => {
|
|
92
|
-
const p = this.getProgress();
|
|
93
|
-
if (p >= 1)
|
|
94
|
-
this.five.off("renderFrame", n), t("end");
|
|
95
|
-
else if (this.state.playing === !1)
|
|
96
|
-
this.five.off("renderFrame", n);
|
|
97
|
-
else if (p >= 0) {
|
|
98
|
-
const l = f(this.curve, p, this.curveOffset);
|
|
99
|
-
this.five.setState(l);
|
|
100
|
-
}
|
|
101
|
-
};
|
|
102
|
-
this.five.on("renderFrame", n);
|
|
103
|
-
});
|
|
104
|
-
}
|
|
105
|
-
handlePause(t) {
|
|
106
|
-
var s;
|
|
107
|
-
this.state.playing = !1, this.hooks.emit("pause", { userAction: (s = t == null ? void 0 : t.userAction) != null ? s : !0 }), this.setPauseData();
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
export {
|
|
111
|
-
_ as default
|
|
112
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,11 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
var i = (e, o, r) => new Promise((c, d) => {
|
|
2
|
-
var u = (n) => {
|
|
3
|
-
try {
|
|
4
|
-
t(r.next(n));
|
|
5
|
-
} catch (a) {
|
|
6
|
-
d(a);
|
|
7
|
-
}
|
|
8
|
-
}, w = (n) => {
|
|
9
|
-
try {
|
|
10
|
-
t(r.throw(n));
|
|
11
|
-
} catch (a) {
|
|
12
|
-
d(a);
|
|
13
|
-
}
|
|
14
|
-
}, t = (n) => n.done ? c(n.value) : Promise.resolve(n.value).then(u, w);
|
|
15
|
-
t((r = r.apply(e, o)).next());
|
|
16
|
-
});
|
|
17
|
-
function k(e) {
|
|
18
|
-
return i(this, null, function* () {
|
|
19
|
-
return new Promise((o) => {
|
|
20
|
-
if (e.work) {
|
|
21
|
-
o();
|
|
22
|
-
return;
|
|
23
|
-
}
|
|
24
|
-
e.once("loaded", () => o());
|
|
25
|
-
});
|
|
26
|
-
});
|
|
27
|
-
}
|
|
28
|
-
export {
|
|
29
|
-
k as waitFiveLoaded
|
|
30
|
-
};
|
|
File without changes
|
/package/dist/{shared-utils/vectorToCoordinate.d.ts → CruisePlugin/utils/vectorToCoordinates.d.ts}
RENAMED
|
File without changes
|
/package/libs/{shared-utils/vectorToCoordinate.d.ts → CruisePlugin/utils/vectorToCoordinates.d.ts}
RENAMED
|
File without changes
|
/package/libs/{shared-utils/vectorToCoordinate.js → CruisePlugin/utils/vectorToCoordinates.js}
RENAMED
|
File without changes
|