@realsee/dnalogel 3.11.0-dev.0 → 3.12.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/AreaMakerPlugin/typing.d.ts +8 -0
- package/dist/AreaMakerPlugin/utils/Item.d.ts +1 -1
- package/dist/CruisePlugin/BaseController.d.ts +5 -2
- package/dist/index.cjs.js +40 -40
- package/dist/index.js +1052 -1023
- package/dist/index.umd.js +35 -35
- package/dist/shared-utils/Utils/FiveUtil.d.ts +10 -0
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +30 -30
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +33 -33
- package/docs/classes/CSS3DRender.html +30 -30
- package/docs/classes/GuideLineItem.GuideLineItem.html +18 -18
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +40 -40
- package/docs/classes/Magnifier.html +19 -19
- package/docs/classes/ModelRoomLabelController.html +10 -10
- package/docs/classes/MoveController.html +52 -25
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +14 -14
- package/docs/classes/PanoMeasurePluginLine.html +26 -26
- package/docs/classes/PanoMeasurePluginModel.html +26 -26
- package/docs/classes/PanoMeasurePluginPoint.html +10 -10
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +50 -50
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.LineSegments.html +7 -7
- package/docs/classes/Util.Magnifier.html +19 -19
- package/docs/classes/Util.Object3D.html +7 -7
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.PointSelectorHelper.html +15 -15
- package/docs/classes/Util.Rectangle.html +12 -12
- package/docs/classes/WalkController.html +51 -24
- package/docs/enums/CameraMovementEffect.html +6 -6
- package/docs/enums/ContentType.html +20 -20
- package/docs/enums/DIRECTION.html +8 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/DimensionType.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/PaintBrushTypeEnum.html +7 -7
- package/docs/enums/PointType.html +6 -6
- package/docs/enums/Rotation.html +7 -7
- package/docs/functions/AreaMakerPlugin.html +4 -4
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/CurrentPanoImagePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/MovePlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/PipelinePlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +4 -4
- package/docs/functions/Util.checkFiveModelLoaded.html +4 -4
- package/docs/functions/Util.equal.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isAbsoluteURL.html +4 -4
- package/docs/functions/Util.isModelLike.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.isPanoramaLike.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/Util.uuid.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.Config.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +14 -14
- package/docs/interfaces/AreaMakerPluginType.Params.html +6 -6
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +8 -8
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +7 -7
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +5 -5
- package/docs/interfaces/AreaMakerPluginType.State.html +7 -7
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +20 -20
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +5 -5
- package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +10 -10
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +11 -11
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +6 -6
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +5 -5
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +7 -7
- package/docs/interfaces/EventMap.html +14 -14
- package/docs/interfaces/FloorplanBounding.html +7 -7
- package/docs/interfaces/FloorplanData.html +9 -9
- package/docs/interfaces/FloorplanEntrance.html +10 -10
- package/docs/interfaces/FloorplanExtraObject.html +9 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
- package/docs/interfaces/FloorplanFloorData.html +8 -8
- package/docs/interfaces/FloorplanImagePosition.html +6 -6
- package/docs/interfaces/FloorplanObserver.html +8 -8
- package/docs/interfaces/FloorplanOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanPosition.html +6 -6
- package/docs/interfaces/FloorplanRoomItem.html +12 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
- package/docs/interfaces/FloorplanServerBounding.html +7 -7
- package/docs/interfaces/FloorplanServerComputedData.html +9 -9
- package/docs/interfaces/FloorplanServerData.html +6 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
- package/docs/interfaces/FloorplanServerEntrance.html +10 -10
- package/docs/interfaces/FloorplanServerFloorData.html +8 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
- package/docs/interfaces/FloorplanServerObserver.html +8 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanServerPosition.html +6 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +5 -5
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +18 -18
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +18 -18
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -5
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
- package/docs/interfaces/HelperOffset.html +7 -7
- package/docs/interfaces/ImagePlaneGroup.html +5 -5
- package/docs/interfaces/ItemLabelPluginData.html +5 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
- package/docs/interfaces/MinMax.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -10
- package/docs/interfaces/Object3DHelperState.html +7 -7
- package/docs/interfaces/ObjectHelperControllers.html +8 -8
- package/docs/interfaces/PaintBrushAction.html +11 -11
- package/docs/interfaces/PaintBrushConfigs.html +11 -11
- package/docs/interfaces/PaintBrushState.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +15 -15
- package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
- package/docs/interfaces/PanoRulerProPluginState.html +7 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
- package/docs/interfaces/Point.html +7 -7
- package/docs/interfaces/Room.html +8 -8
- package/docs/interfaces/RoomInfo.html +6 -6
- package/docs/interfaces/RoomLabel.html +13 -13
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +8 -8
- package/docs/interfaces/State.html +7 -7
- package/docs/interfaces/TagCacheInterface.html +11 -11
- package/docs/interfaces/TagConfig.html +13 -13
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +5 -5
- package/docs/interfaces/TagStyle.html +5 -5
- package/docs/interfaces/Tags.html +8 -8
- package/docs/interfaces/TemporaryState.html +5 -5
- package/docs/interfaces/Util.MagnifierParameter.html +10 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
- package/docs/interfaces/Util.PointIntersection.html +7 -7
- package/docs/modules/AreaMakerPluginType.html +4 -4
- package/docs/modules/CruisePluginTypes.html +4 -4
- package/docs/modules/CurrentPanoImagePluginType.html +4 -4
- package/docs/modules/GuideLineItem.html +4 -4
- package/docs/modules/GuideLineModeItem.html +4 -4
- package/docs/modules/GuideLinePluginType.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +27 -5
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +4 -4
- package/docs/types/AreaMakerPluginType.PluginData.html +4 -4
- package/docs/types/AreaMakerPluginType.ServerData.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
- package/docs/types/CurrentPanoImagePluginExportType.html +4 -4
- package/docs/types/DeprecatedMediaPlaneProperty.html +4 -4
- package/docs/types/DeprecatedTagProperty.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/ElementRenderer.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelId.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
- package/docs/types/PipelinePluginParameterType.html +4 -4
- package/docs/types/PipelinePluginReturnType.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagInstance.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagConfigByKey.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagContentTypeMapping.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TagInstance.html +4 -4
- package/docs/types/TagPointType.html +4 -4
- package/docs/types/TagRendererMap.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/defaultGlobalConfig.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/AreaMakerPlugin/typing.d.ts +8 -0
- package/libs/AreaMakerPlugin/utils/Item.d.ts +1 -1
- package/libs/AreaMakerPlugin/utils/Item.js +12 -10
- package/libs/CruisePlugin/BaseController.d.ts +5 -2
- package/libs/CruisePlugin/BaseController.js +58 -50
- package/libs/CruisePlugin/Move.js +27 -26
- package/libs/CruisePlugin/Work.js +8 -7
- package/libs/CruisePlugin/index.js +7 -6
- package/libs/GuideLinePlugin/Controller.js +6 -5
- package/libs/GuideLinePlugin/GuideLineItem.js +3 -2
- package/libs/GuideLinePlugin/index.js +9 -8
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +121 -120
- package/libs/shared-utils/Utils/FiveUtil.d.ts +10 -0
- package/libs/shared-utils/Utils/FiveUtil.js +27 -0
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -76,7 +76,7 @@ class it {
|
|
|
76
76
|
/** 标注标签实例 */
|
|
77
77
|
i(this, "tagApp");
|
|
78
78
|
/** 标注标签是否可见 */
|
|
79
|
-
i(this, "tagVisible",
|
|
79
|
+
i(this, "tagVisible", null);
|
|
80
80
|
/** 标注标签的世界坐标 */
|
|
81
81
|
i(this, "tagPosition", new a.Vector3());
|
|
82
82
|
/** 标注标签的 NDC 坐标 */
|
|
@@ -127,14 +127,14 @@ class it {
|
|
|
127
127
|
this.makerObject.material.opacity = o, this.outline.material.opacity = l;
|
|
128
128
|
return;
|
|
129
129
|
}
|
|
130
|
-
return new Promise((
|
|
130
|
+
return new Promise((m) => {
|
|
131
131
|
this.opacityAnime = new T({ makerObjectOpacity: s, outlineOpacity: r }).to({
|
|
132
132
|
makerObjectOpacity: o,
|
|
133
133
|
outlineOpacity: l
|
|
134
|
-
}).onUpdate(({ makerObjectOpacity:
|
|
135
|
-
this.makerObject.material.opacity =
|
|
136
|
-
}).onComplete(() =>
|
|
137
|
-
this.makerObject.material.opacity = o, this.outline.material.opacity = l, this.plugin.five.needsRender = !0,
|
|
134
|
+
}).onUpdate(({ makerObjectOpacity: p, outlineOpacity: c }) => {
|
|
135
|
+
this.makerObject.material.opacity = p, this.outline.material.opacity = c, this.plugin.five.needsRender = !0;
|
|
136
|
+
}).onComplete(() => m(!0)).onDispose(() => {
|
|
137
|
+
this.makerObject.material.opacity = o, this.outline.material.opacity = l, this.plugin.five.needsRender = !0, m(!1);
|
|
138
138
|
}).play();
|
|
139
139
|
});
|
|
140
140
|
});
|
|
@@ -182,7 +182,7 @@ class it {
|
|
|
182
182
|
i(this, "updateTagVisible", () => {
|
|
183
183
|
var s;
|
|
184
184
|
const { result: e, msg: t } = this.checkTagVisible();
|
|
185
|
-
this.checkMsg.checkTagVisibleMsg = t, this.tagVisible !== e && (this.tagVisible = e, (s = this.tagApp) == null || s.$set({ visible: e }));
|
|
185
|
+
this.checkMsg.checkTagVisibleMsg = t, this.tagVisible !== e && (this.tagVisible = e, this.tagVisible ? this.hooks.emit("tagShow") : this.hooks.emit("tagHide"), (s = this.tagApp) == null || s.$set({ visible: e }));
|
|
186
186
|
});
|
|
187
187
|
/** 检测标注标签是否可见 */
|
|
188
188
|
i(this, "checkTagVisible", () => {
|
|
@@ -210,8 +210,8 @@ class it {
|
|
|
210
210
|
};
|
|
211
211
|
this.containerResizeTimeoutID && clearTimeout(this.containerResizeTimeoutID), this.containerResizeTimeoutID = setTimeout(t, 100);
|
|
212
212
|
});
|
|
213
|
-
var
|
|
214
|
-
const s = t.object_data, o = s.bottom_y, r = s.height, l = new a.Color((
|
|
213
|
+
var m, p, c, g;
|
|
214
|
+
const s = t.object_data, o = s.bottom_y, r = s.height, l = new a.Color((m = s.color) != null ? m : "#FFFFFF"), h = (p = s.opacity) != null ? p : 0.4;
|
|
215
215
|
this.data = t, this.id = t.id, this.name = (c = t.name) != null ? c : "", this.plugin = e, this.height = r, this.bottomY = o, this.opacity = h, this.shape = new a.Shape().fromJSON(s.shape), this.floorIndex = t.floor_index, this.makerObject = new a.Mesh(d(this.shape, r), V(l, h)), u(this.makerObject, o), this.makerObject.material.depthTest = this.plugin.config.modelDepthTest, this.outline = new y(
|
|
216
216
|
new a.EdgesGeometry(this.makerObject.geometry),
|
|
217
217
|
new a.LineBasicMaterial({ color: l, transparent: !0 })
|
|
@@ -219,6 +219,8 @@ class it {
|
|
|
219
219
|
}
|
|
220
220
|
/** 挂载标注 */
|
|
221
221
|
mount() {
|
|
222
|
+
if (this.mounted)
|
|
223
|
+
return;
|
|
222
224
|
this.mounted = !0, this.updateVisible(), this.makerObject.material.depthTest = this.plugin.config.modelDepthTest, this.outline.material.depthTest = this.plugin.config.modelDepthTest, this.modelGroup.add(this.makerObject, this.outline);
|
|
223
225
|
const e = !!this.name, t = this.plugin.tagDomContainer;
|
|
224
226
|
if (e) {
|
|
@@ -237,7 +239,7 @@ class it {
|
|
|
237
239
|
/** 卸载标注 */
|
|
238
240
|
unmount() {
|
|
239
241
|
var e, t;
|
|
240
|
-
this.mounted = !1, this.modelGroup.remove(...this.modelGroup.children), (e = this.tagApp) == null || e.$destroy(), this.tagApp = null, this.plugin.hooks.off("stateChange", this.onPluginStateChange), this.plugin.hooks.off("configChange", this.onPluginConfigChange), this.plugin.five.off("modeChange", this.updateVisible), this.plugin.five.off("modelShownFloorChange", this.updateVisible), this.plugin.five.off("cameraUpdate", this.onFiveCameraUpdate), (t = this.resizeObserver) == null || t.unobserve();
|
|
242
|
+
this.mounted && (this.mounted = !1, this.modelGroup.remove(...this.modelGroup.children), (e = this.tagApp) == null || e.$destroy(), this.tagApp = null, this.plugin.hooks.off("stateChange", this.onPluginStateChange), this.plugin.hooks.off("configChange", this.onPluginConfigChange), this.plugin.five.off("modeChange", this.updateVisible), this.plugin.five.off("modelShownFloorChange", this.updateVisible), this.plugin.five.off("cameraUpdate", this.onFiveCameraUpdate), (t = this.resizeObserver) == null || t.unobserve());
|
|
241
243
|
}
|
|
242
244
|
/** 更改标注透明度
|
|
243
245
|
* @param opacity 标注透明度,范围:0-1
|
|
@@ -4,11 +4,14 @@ import type { GuideLinePluginExportType } from '../GuideLinePlugin';
|
|
|
4
4
|
import * as BasePlugin from '../base/BasePlugin';
|
|
5
5
|
import type { PluginState, EventMap, MoveEffect } from './typing';
|
|
6
6
|
import type { PartialDeep } from 'type-fest';
|
|
7
|
-
import {
|
|
7
|
+
import { FiveUtil } from '../shared-utils/Utils/FiveUtil';
|
|
8
8
|
export declare const pluginFlag: (name: string) => string;
|
|
9
9
|
export default abstract class CruiseController<PluginData, Config = unknown> extends BasePlugin.Controller<PluginState, EventMap> {
|
|
10
10
|
state: PluginState;
|
|
11
|
-
|
|
11
|
+
set workCode(workCode: string);
|
|
12
|
+
get workCode(): string;
|
|
13
|
+
protected fiveUtil: FiveUtil;
|
|
14
|
+
protected workUtil: import("../shared-utils/Utils/WorkUtil").WorkUtil;
|
|
12
15
|
protected data?: PluginData & {
|
|
13
16
|
id: string | number;
|
|
14
17
|
};
|
|
@@ -10,26 +10,26 @@ var p = (a, s, e) => s in a ? c(a, s, { enumerable: !0, configurable: !0, writab
|
|
|
10
10
|
return a;
|
|
11
11
|
};
|
|
12
12
|
var d = (a, s, e) => (p(a, typeof s != "symbol" ? s + "" : s, e), e);
|
|
13
|
-
var u = (a, s, e) => new Promise((
|
|
14
|
-
var r = (
|
|
13
|
+
var u = (a, s, e) => new Promise((i, t) => {
|
|
14
|
+
var r = (l) => {
|
|
15
15
|
try {
|
|
16
|
-
|
|
17
|
-
} catch (
|
|
18
|
-
|
|
16
|
+
o(e.next(l));
|
|
17
|
+
} catch (n) {
|
|
18
|
+
t(n);
|
|
19
19
|
}
|
|
20
|
-
}, b = (
|
|
20
|
+
}, b = (l) => {
|
|
21
21
|
try {
|
|
22
|
-
|
|
23
|
-
} catch (
|
|
24
|
-
|
|
22
|
+
o(e.throw(l));
|
|
23
|
+
} catch (n) {
|
|
24
|
+
t(n);
|
|
25
25
|
}
|
|
26
|
-
},
|
|
27
|
-
|
|
26
|
+
}, o = (l) => l.done ? i(l.value) : Promise.resolve(l.value).then(r, b);
|
|
27
|
+
o((e = e.apply(a, s)).next());
|
|
28
28
|
});
|
|
29
|
-
import { Controller as
|
|
30
|
-
import { equal as
|
|
31
|
-
import { objectAssignDeepExports as
|
|
32
|
-
import {
|
|
29
|
+
import { Controller as w } from "../base/BasePlugin.js";
|
|
30
|
+
import { equal as C } from "../shared-utils/equal.js";
|
|
31
|
+
import { objectAssignDeepExports as y } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
32
|
+
import { FiveUtil as L } from "../shared-utils/Utils/FiveUtil.js";
|
|
33
33
|
import "../shared-utils/Subscribe.js";
|
|
34
34
|
import "hammerjs";
|
|
35
35
|
import "three";
|
|
@@ -53,11 +53,12 @@ import "../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
|
53
53
|
import "../shared-utils/url/absoluteUrl.js";
|
|
54
54
|
import "../shared-utils/isTruelyObject.js";
|
|
55
55
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
56
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
56
57
|
import "../shared-utils/five/transformPosition.js";
|
|
57
|
-
const m = "CruisePlugin",
|
|
58
|
-
class
|
|
59
|
-
constructor(e,
|
|
60
|
-
super(e,
|
|
58
|
+
const m = "CruisePlugin", h = `${m}`, ee = (a) => `${h}--${a}`;
|
|
59
|
+
class ie extends w {
|
|
60
|
+
constructor(e, i) {
|
|
61
|
+
super(e, i);
|
|
61
62
|
d(this, "state", {
|
|
62
63
|
visible: !0,
|
|
63
64
|
enabled: !0,
|
|
@@ -65,7 +66,8 @@ class ee extends y {
|
|
|
65
66
|
playing: !1,
|
|
66
67
|
speed: 1
|
|
67
68
|
});
|
|
68
|
-
d(this, "
|
|
69
|
+
d(this, "fiveUtil", new L(this.five));
|
|
70
|
+
d(this, "workUtil", this.fiveUtil.workUtil);
|
|
69
71
|
d(this, "data");
|
|
70
72
|
d(this, "config");
|
|
71
73
|
d(this, "pauseDataMap", /* @__PURE__ */ new Map());
|
|
@@ -76,15 +78,21 @@ class ee extends y {
|
|
|
76
78
|
});
|
|
77
79
|
d(this, "GuideLine");
|
|
78
80
|
d(this, "disposedErrorLog", () => {
|
|
79
|
-
console.error(`${
|
|
81
|
+
console.error(`${h} is disposed`);
|
|
80
82
|
});
|
|
81
83
|
d(this, "disableWarnLog", () => {
|
|
82
|
-
console.warn(`${
|
|
84
|
+
console.warn(`${h} is disabled`);
|
|
83
85
|
});
|
|
84
86
|
d(this, "disableErrorLog", () => {
|
|
85
|
-
console.error(`${
|
|
87
|
+
console.error(`${h} is disabled`);
|
|
86
88
|
});
|
|
87
|
-
this.config =
|
|
89
|
+
this.config = i, Object.assign(window, { [`__${m}_DEBUG__`]: this });
|
|
90
|
+
}
|
|
91
|
+
set workCode(e) {
|
|
92
|
+
this.fiveUtil.workUtil.workCode = e;
|
|
93
|
+
}
|
|
94
|
+
get workCode() {
|
|
95
|
+
return this.fiveUtil.workUtil.workCode;
|
|
88
96
|
}
|
|
89
97
|
/**
|
|
90
98
|
* @description Play | Continue play. if have been paused, continue play from the pause position; if playing, do nothing
|
|
@@ -135,50 +143,50 @@ class ee extends y {
|
|
|
135
143
|
/**
|
|
136
144
|
* @description Set state
|
|
137
145
|
*/
|
|
138
|
-
setState(e,
|
|
146
|
+
setState(e, i) {
|
|
139
147
|
var r;
|
|
140
148
|
if (this.state.disposed)
|
|
141
149
|
return this.disposedErrorLog();
|
|
142
150
|
if (!this.state.enabled && e.enabled !== !0 && e.disposed !== !0)
|
|
143
151
|
return this.disableErrorLog();
|
|
144
|
-
const
|
|
145
|
-
this.state =
|
|
152
|
+
const t = g({}, this.state);
|
|
153
|
+
this.state = y({}, this.state, e), e.disposed !== void 0 && e.disposed !== t.disposed && e.disposed && this.handleDispose(), e.visible !== void 0 && e.visible !== t.visible && this.handleVisible(e.visible, i == null ? void 0 : i.userAction), e.enabled !== void 0 && e.enabled !== t.enabled && this.handleEnable(e.enabled, i == null ? void 0 : i.userAction), e.playing !== void 0 && e.playing !== t.playing && this.changePlayState(e.playing, i), e.speed !== void 0 && e.speed !== t.speed && this.changeSpeed(e.speed), C(t, this.state, { deep: !0 }) || this.hooks.emit("stateChange", { state: this.state, prevState: t, userAction: (r = i == null ? void 0 : i.userAction) != null ? r : !0 });
|
|
146
154
|
}
|
|
147
155
|
/**
|
|
148
156
|
* @description Clear pause data
|
|
149
157
|
*/
|
|
150
158
|
clearPauseData() {
|
|
151
|
-
var e,
|
|
159
|
+
var e, i;
|
|
152
160
|
if ((e = this.data) != null && e.id)
|
|
153
|
-
return this.pauseDataMap.delete((
|
|
161
|
+
return this.pauseDataMap.delete((i = this.data) == null ? void 0 : i.id);
|
|
154
162
|
}
|
|
155
|
-
changePlayState(e,
|
|
163
|
+
changePlayState(e, i) {
|
|
156
164
|
this.actionIfStateIsEnabled(
|
|
157
165
|
() => {
|
|
158
|
-
var
|
|
159
|
-
return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (
|
|
166
|
+
var t;
|
|
167
|
+
return this.hooks.emit("playStateChange", e ? "playing" : "pause", { userAction: (t = i == null ? void 0 : i.userAction) != null ? t : !0 });
|
|
160
168
|
}
|
|
161
|
-
), e ? this.handlePlay(
|
|
169
|
+
), e ? this.handlePlay(i) : this.handlePause(i), this.state.playing = e;
|
|
162
170
|
}
|
|
163
|
-
handleEnable(e,
|
|
164
|
-
var
|
|
165
|
-
e ? ((
|
|
171
|
+
handleEnable(e, i = !0) {
|
|
172
|
+
var t, r;
|
|
173
|
+
e ? ((t = this.GuideLine) == null || t.enable(), this.hooks.emit("enable", { userAction: i })) : ((r = this.GuideLine) == null || r.disable(), this.changePlayState(!1, { userAction: i }), this.hooks.emit("disable", { userAction: i })), this.state.enabled = e;
|
|
166
174
|
}
|
|
167
|
-
handleVisible(e,
|
|
168
|
-
var
|
|
169
|
-
e ? ((
|
|
175
|
+
handleVisible(e, i = !0) {
|
|
176
|
+
var t, r;
|
|
177
|
+
e ? ((t = this.GuideLine) == null || t.show(), this.actionIfStateIsEnabled(() => this.hooks.emit("show", { userAction: i }))) : ((r = this.GuideLine) == null || r.hide(), this.actionIfStateIsEnabled(() => this.hooks.emit("hide", { userAction: i }))), this.state.visible = e;
|
|
170
178
|
}
|
|
171
179
|
/**
|
|
172
180
|
* @description: listen interupted by five gesture
|
|
173
181
|
*/
|
|
174
182
|
addInterruptListener(e) {
|
|
175
|
-
const
|
|
183
|
+
const i = () => {
|
|
176
184
|
this.privateState.modeChanging || e();
|
|
177
|
-
},
|
|
178
|
-
r !== "mouseMove" && (e(), this.five.off("gesture",
|
|
185
|
+
}, t = (r) => {
|
|
186
|
+
r !== "mouseMove" && (e(), this.five.off("gesture", t));
|
|
179
187
|
};
|
|
180
|
-
return this.five.on("gesture",
|
|
181
|
-
this.five.off("gesture",
|
|
188
|
+
return this.five.on("gesture", t), this.five.once("wantsChangeMode", i), () => {
|
|
189
|
+
this.five.off("gesture", t), this.five.off("wantsChangeMode", i);
|
|
182
190
|
};
|
|
183
191
|
}
|
|
184
192
|
/**
|
|
@@ -202,8 +210,8 @@ class ee extends y {
|
|
|
202
210
|
* @description Set pause data
|
|
203
211
|
*/
|
|
204
212
|
setPauseData() {
|
|
205
|
-
var
|
|
206
|
-
const e = (
|
|
213
|
+
var i;
|
|
214
|
+
const e = (i = this.data) == null ? void 0 : i.id;
|
|
207
215
|
if (e)
|
|
208
216
|
return this.pauseDataMap.set(e, {
|
|
209
217
|
fiveState: this.five.getCurrentState(),
|
|
@@ -224,13 +232,13 @@ class ee extends y {
|
|
|
224
232
|
/**
|
|
225
233
|
* @description Action function if plugin is enable
|
|
226
234
|
*/
|
|
227
|
-
actionIfStateIsEnabled(e,
|
|
235
|
+
actionIfStateIsEnabled(e, i) {
|
|
228
236
|
if (this.state.enabled)
|
|
229
237
|
return e();
|
|
230
|
-
|
|
238
|
+
i != null && i.warnLog && this.disableWarnLog();
|
|
231
239
|
}
|
|
232
240
|
}
|
|
233
241
|
export {
|
|
234
|
-
|
|
235
|
-
|
|
242
|
+
ie as default,
|
|
243
|
+
ee as pluginFlag
|
|
236
244
|
};
|
|
@@ -2,30 +2,30 @@ var C = Object.defineProperty, P = Object.defineProperties;
|
|
|
2
2
|
var b = Object.getOwnPropertyDescriptors;
|
|
3
3
|
var y = Object.getOwnPropertySymbols;
|
|
4
4
|
var k = Object.prototype.hasOwnProperty, O = Object.prototype.propertyIsEnumerable;
|
|
5
|
-
var u = (r,
|
|
6
|
-
for (var
|
|
7
|
-
k.call(
|
|
5
|
+
var u = (r, e, t) => e in r ? C(r, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[e] = t, d = (r, e) => {
|
|
6
|
+
for (var t in e || (e = {}))
|
|
7
|
+
k.call(e, t) && u(r, t, e[t]);
|
|
8
8
|
if (y)
|
|
9
|
-
for (var
|
|
10
|
-
O.call(
|
|
9
|
+
for (var t of y(e))
|
|
10
|
+
O.call(e, t) && u(r, t, e[t]);
|
|
11
11
|
return r;
|
|
12
|
-
}, c = (r,
|
|
13
|
-
var f = (r,
|
|
14
|
-
var S = (r,
|
|
12
|
+
}, c = (r, e) => P(r, b(e));
|
|
13
|
+
var f = (r, e, t) => (u(r, typeof e != "symbol" ? e + "" : e, t), t);
|
|
14
|
+
var S = (r, e, t) => new Promise((s, h) => {
|
|
15
15
|
var o = (i) => {
|
|
16
16
|
try {
|
|
17
|
-
n(
|
|
17
|
+
n(t.next(i));
|
|
18
18
|
} catch (a) {
|
|
19
19
|
h(a);
|
|
20
20
|
}
|
|
21
21
|
}, p = (i) => {
|
|
22
22
|
try {
|
|
23
|
-
n(
|
|
23
|
+
n(t.throw(i));
|
|
24
24
|
} catch (a) {
|
|
25
25
|
h(a);
|
|
26
26
|
}
|
|
27
27
|
}, n = (i) => i.done ? s(i.value) : Promise.resolve(i.value).then(o, p);
|
|
28
|
-
n((
|
|
28
|
+
n((t = t.apply(r, e)).next());
|
|
29
29
|
});
|
|
30
30
|
import w from "./BaseController.js";
|
|
31
31
|
import { objectAssignDeepExports as l } from "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
@@ -42,8 +42,9 @@ import "../shared-utils/Subscribe.js";
|
|
|
42
42
|
import "../shared-utils/url/absoluteUrl.js";
|
|
43
43
|
import "../shared-utils/equal.js";
|
|
44
44
|
import "../shared-utils/isTruelyObject.js";
|
|
45
|
-
import "../shared-utils/Utils/
|
|
45
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
46
46
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
47
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
47
48
|
import "../shared-utils/five/transformPosition.js";
|
|
48
49
|
import "../shared-utils/positionToVector3.js";
|
|
49
50
|
import "../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
@@ -60,17 +61,17 @@ import "../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
60
61
|
import "../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
61
62
|
import "../shared-utils/vectorToCoordinate.js";
|
|
62
63
|
import "../shared-utils/formatRad.js";
|
|
63
|
-
class
|
|
64
|
-
constructor(
|
|
64
|
+
class nt extends w {
|
|
65
|
+
constructor(t, s) {
|
|
65
66
|
var p;
|
|
66
|
-
super(
|
|
67
|
+
super(t, s);
|
|
67
68
|
f(this, "curve");
|
|
68
69
|
f(this, "baseCurveOffset");
|
|
69
70
|
f(this, "curveOffset");
|
|
70
71
|
f(this, "playStartedTime", performance.now());
|
|
71
72
|
f(this, "duration");
|
|
72
|
-
f(this, "changeSpeed", (
|
|
73
|
-
this.state.speed =
|
|
73
|
+
f(this, "changeSpeed", (t, s = !0) => {
|
|
74
|
+
this.state.speed = t, this.hooks.emit("speedChange", t, { userAction: s });
|
|
74
75
|
});
|
|
75
76
|
f(this, "moveToStart", () => {
|
|
76
77
|
this.five.setState(c(d({}, g(this.curve, 0, this.curveOffset)), { mode: "Model" }));
|
|
@@ -81,8 +82,8 @@ class he extends w {
|
|
|
81
82
|
f(this, "getDuration", () => this.getSpeededDuration(this.duration));
|
|
82
83
|
f(this, "getProgress", () => {
|
|
83
84
|
var i;
|
|
84
|
-
const
|
|
85
|
-
let s = (i =
|
|
85
|
+
const t = this.getPauseData();
|
|
86
|
+
let s = (i = t == null ? void 0 : t.playedProgress) != null ? i : 0;
|
|
86
87
|
(s < 0 || s >= 1) && (s = 0);
|
|
87
88
|
const h = 1 - s, o = this.getDuration(), n = (performance.now() - this.playStartedTime) / o;
|
|
88
89
|
return 1 - h + n;
|
|
@@ -99,9 +100,9 @@ class he extends w {
|
|
|
99
100
|
};
|
|
100
101
|
this.state = l({}, h, this.state), this.config = l({}, o, this.config), this.baseCurveOffset = l({ x: 0, y: 0, z: 0 }, { y: 2 }, (p = this.config) == null ? void 0 : p.offset);
|
|
101
102
|
}
|
|
102
|
-
load(
|
|
103
|
+
load(t, s) {
|
|
103
104
|
var p, n, i, a, m, v;
|
|
104
|
-
if (this.handlePause(), this.clear(), this.data = d({ id: x() },
|
|
105
|
+
if (this.handlePause(), this.clear(), this.data = d({ id: x() }, t), this.curve = this.data.path.curves[0], this.curveOffset = {
|
|
105
106
|
x: this.baseCurveOffset.x + ((n = (p = this.data.offset) == null ? void 0 : p.x) != null ? n : 0),
|
|
106
107
|
y: this.baseCurveOffset.y + ((a = (i = this.data.offset) == null ? void 0 : i.y) != null ? a : 0),
|
|
107
108
|
z: this.baseCurveOffset.z + ((v = (m = this.data.offset) == null ? void 0 : m.z) != null ? v : 0)
|
|
@@ -111,7 +112,7 @@ class he extends w {
|
|
|
111
112
|
return this.duration = h / (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();
|
|
112
113
|
}
|
|
113
114
|
handlePlay() {
|
|
114
|
-
return new Promise((
|
|
115
|
+
return new Promise((t, s) => S(this, null, function* () {
|
|
115
116
|
var i;
|
|
116
117
|
this.hooks.emit("play", { userAction: !0 });
|
|
117
118
|
const h = this.getPauseData();
|
|
@@ -126,7 +127,7 @@ class he extends w {
|
|
|
126
127
|
const n = () => {
|
|
127
128
|
const a = this.getProgress();
|
|
128
129
|
if (a >= 1)
|
|
129
|
-
this.five.off("renderFrame", n), this.setState({ playing: !1 }, { userAction: !1 }), this.hooks.emit("end"), this.hooks.emit("progressChange", 1),
|
|
130
|
+
this.five.off("renderFrame", n), this.setState({ playing: !1 }, { userAction: !1 }), this.hooks.emit("end"), this.hooks.emit("progressChange", 1), t("end");
|
|
130
131
|
else if (this.state.playing === !1)
|
|
131
132
|
this.five.off("renderFrame", n);
|
|
132
133
|
else if (a >= 0) {
|
|
@@ -137,11 +138,11 @@ class he extends w {
|
|
|
137
138
|
this.five.on("renderFrame", n);
|
|
138
139
|
}));
|
|
139
140
|
}
|
|
140
|
-
handlePause(
|
|
141
|
+
handlePause(t) {
|
|
141
142
|
var s;
|
|
142
|
-
this.state.playing = !1, this.hooks.emit("pause", { userAction: (s =
|
|
143
|
+
this.state.playing = !1, this.hooks.emit("pause", { userAction: (s = t == null ? void 0 : t.userAction) != null ? s : !0 }), this.setPauseData();
|
|
143
144
|
}
|
|
144
145
|
}
|
|
145
146
|
export {
|
|
146
|
-
|
|
147
|
+
nt as default
|
|
147
148
|
};
|
|
@@ -31,8 +31,8 @@ import { GuideLinePlugin as K } from "../GuideLinePlugin/index.js";
|
|
|
31
31
|
import { uuid as S } from "../shared-utils/uuid.js";
|
|
32
32
|
import { coordinatesAngle as L } from "./utils/coordinatesAngle.js";
|
|
33
33
|
import { safeCall as T } from "./utils/safeCall.js";
|
|
34
|
-
import * as
|
|
35
|
-
import { sleep as
|
|
34
|
+
import * as U from "three";
|
|
35
|
+
import { sleep as O } from "./utils/sleep.js";
|
|
36
36
|
import { waitFiveLoaded as M } from "../shared-utils/five/fiveLoaded.js";
|
|
37
37
|
import { vectorToCoordinates as A } from "../shared-utils/vectorToCoordinate.js";
|
|
38
38
|
import G from "./BaseController.js";
|
|
@@ -201,10 +201,11 @@ import "../shared-utils/five/changeMode.js";
|
|
|
201
201
|
import "../shared-utils/nearlyEqual.js";
|
|
202
202
|
import "./Move.js";
|
|
203
203
|
import "./utils/getFiveStateOnCurve.js";
|
|
204
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
204
205
|
import "../shared-utils/formatRad.js";
|
|
205
206
|
import "./Work.js";
|
|
206
207
|
import "./utils/coordinatesToVector.js";
|
|
207
|
-
class
|
|
208
|
+
class tr extends G {
|
|
208
209
|
constructor(t, e) {
|
|
209
210
|
super(t, e);
|
|
210
211
|
k(this, "state", {
|
|
@@ -308,7 +309,7 @@ class $i extends G {
|
|
|
308
309
|
const d = this.workUtil.getObserverPosition(n), u = this.workUtil.getObserverPosition(p);
|
|
309
310
|
if (!u || !d || ((v = this.workUtil.getObserver(n)) == null ? void 0 : v.floorIndex) !== ((c = this.workUtil.getObserver(p)) == null ? void 0 : c.floorIndex))
|
|
310
311
|
return;
|
|
311
|
-
const f = new
|
|
312
|
+
const f = new U.Vector3().subVectors(u, d);
|
|
312
313
|
return A(f.normalize());
|
|
313
314
|
})();
|
|
314
315
|
e.moveType === void 0 || e.moveType === "justMove" ? r.push({
|
|
@@ -373,7 +374,7 @@ class $i extends G {
|
|
|
373
374
|
s.emit("playIndexChange", f.index, f), yield this.playKeyframe(f, {
|
|
374
375
|
moveEffect: a === !1 ? i.moveToFirstPanoEffect : void 0,
|
|
375
376
|
duration: a === !1 && typeof i.moveToFirstPanoDuration == "number" ? i.moveToFirstPanoDuration : void 0
|
|
376
|
-
}), f.stay && (yield
|
|
377
|
+
}), f.stay && (yield O(f.stay)), a === !1 && (a = !0);
|
|
377
378
|
} catch (v) {
|
|
378
379
|
return console.error(v), Promise.resolve("broke");
|
|
379
380
|
}
|
|
@@ -572,7 +573,7 @@ class $i extends G {
|
|
|
572
573
|
})();
|
|
573
574
|
i.currentPlayKeyframe && (i.currentPlayKeyframe.originDuration = o), yield new Promise((a) => {
|
|
574
575
|
var p, d, u;
|
|
575
|
-
|
|
576
|
+
this.fiveUtil.moveToPano(t.panoIndex, {
|
|
576
577
|
latitude: t.latitude,
|
|
577
578
|
longitude: t.longitude,
|
|
578
579
|
fov: t.fov,
|
|
@@ -594,5 +595,5 @@ class $i extends G {
|
|
|
594
595
|
}
|
|
595
596
|
}
|
|
596
597
|
export {
|
|
597
|
-
|
|
598
|
+
tr as default
|
|
598
599
|
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { typing as
|
|
1
|
+
import { typing as Wt } from "./typing/index.js";
|
|
2
2
|
import t from "./Work.js";
|
|
3
3
|
import i from "./Move.js";
|
|
4
4
|
import "../GuideLinePlugin/index.js";
|
|
@@ -175,14 +175,15 @@ import "./utils/sleep.js";
|
|
|
175
175
|
import "../shared-utils/vectorToCoordinate.js";
|
|
176
176
|
import "../shared-utils/formatRad.js";
|
|
177
177
|
import "./BaseController.js";
|
|
178
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
178
179
|
import "./utils/getFiveStateOnCurve.js";
|
|
179
|
-
const
|
|
180
|
+
const Mt = (o, r) => new t(o, r), dt = (o, r) => new i(o, r);
|
|
180
181
|
export {
|
|
181
|
-
|
|
182
|
+
Mt as CruisePlugin,
|
|
182
183
|
t as CruisePluginController,
|
|
183
|
-
|
|
184
|
+
Wt as CruisePluginTypes,
|
|
184
185
|
i as MoveController,
|
|
185
|
-
|
|
186
|
+
dt as MovePlugin,
|
|
186
187
|
t as WalkController,
|
|
187
|
-
|
|
188
|
+
Mt as default
|
|
188
189
|
};
|
|
@@ -193,6 +193,7 @@ import "../shared-utils/five/changeMode.js";
|
|
|
193
193
|
import "../shared-utils/nearlyEqual.js";
|
|
194
194
|
import "../CruisePlugin/Move.js";
|
|
195
195
|
import "../CruisePlugin/BaseController.js";
|
|
196
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
196
197
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
197
198
|
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
198
199
|
import "../shared-utils/vectorToCoordinate.js";
|
|
@@ -203,8 +204,8 @@ import "../CruisePlugin/utils/coordinatesAngle.js";
|
|
|
203
204
|
import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
204
205
|
import "../CruisePlugin/utils/safeCall.js";
|
|
205
206
|
import "../CruisePlugin/utils/sleep.js";
|
|
206
|
-
const b = "GuideLinePlugin", g = `${b}`,
|
|
207
|
-
class
|
|
207
|
+
const b = "GuideLinePlugin", g = `${b}`, re = (s) => `${g}--${s}`;
|
|
208
|
+
class ee extends O {
|
|
208
209
|
constructor(t, i) {
|
|
209
210
|
super(t, i);
|
|
210
211
|
h(this, "name", b);
|
|
@@ -250,7 +251,7 @@ class re extends O {
|
|
|
250
251
|
visible: !!(!e.lines && e.routes),
|
|
251
252
|
unit_length: (v = r == null ? void 0 : r.unitHeight) != null ? v : 0.4,
|
|
252
253
|
width: (w = r == null ? void 0 : r.unitWidth) != null ? w : 0.6,
|
|
253
|
-
texture: { url: (I = r == null ? void 0 : r.arrowTextureUrl) != null ? I : this.staticPrefix + "/release/web/
|
|
254
|
+
texture: { url: (I = r == null ? void 0 : r.arrowTextureUrl) != null ? I : this.staticPrefix + "/release/web/arrow-white.5c2c79a5.png" }
|
|
254
255
|
}
|
|
255
256
|
}, d = (y = (E = e.routes) == null ? void 0 : E.map((l) => {
|
|
256
257
|
var L;
|
|
@@ -353,6 +354,6 @@ class re extends O {
|
|
|
353
354
|
}
|
|
354
355
|
}
|
|
355
356
|
export {
|
|
356
|
-
|
|
357
|
-
|
|
357
|
+
ee as default,
|
|
358
|
+
re as pluginFlag
|
|
358
359
|
};
|
|
@@ -5,7 +5,7 @@ import "@realsee/five";
|
|
|
5
5
|
import "../shared-utils/five/changeMode.js";
|
|
6
6
|
import "../CruisePlugin/Move.js";
|
|
7
7
|
import "../CruisePlugin/Work.js";
|
|
8
|
-
import { GuideLineItem as
|
|
8
|
+
import { GuideLineItem as go } from "./GuideLineItem/index.js";
|
|
9
9
|
import "three";
|
|
10
10
|
import "./utils/createLineGeometry.js";
|
|
11
11
|
import "../vendor/polyline-normals/index.js";
|
|
@@ -164,6 +164,7 @@ import "../shared-utils/nearlyEqual.js";
|
|
|
164
164
|
import "../CruisePlugin/BaseController.js";
|
|
165
165
|
import "../shared-utils/equal.js";
|
|
166
166
|
import "../shared-utils/isTruelyObject.js";
|
|
167
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
167
168
|
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
168
169
|
import "../shared-utils/vectorToCoordinate.js";
|
|
169
170
|
import "../shared-utils/formatRad.js";
|
|
@@ -176,5 +177,5 @@ import "../CruisePlugin/utils/coordinatesToVector.js";
|
|
|
176
177
|
import "../CruisePlugin/utils/safeCall.js";
|
|
177
178
|
import "../CruisePlugin/utils/sleep.js";
|
|
178
179
|
export {
|
|
179
|
-
|
|
180
|
+
go as GuideLineItem
|
|
180
181
|
};
|
|
@@ -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 gt } 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";
|
|
@@ -38,8 +38,9 @@ import "../shared-utils/vectorToCoordinate.js";
|
|
|
38
38
|
import "../shared-utils/formatRad.js";
|
|
39
39
|
import "../CruisePlugin/BaseController.js";
|
|
40
40
|
import "../vendor/object-assign-deep/objectAssignDeep.js";
|
|
41
|
-
import "../shared-utils/Utils/
|
|
41
|
+
import "../shared-utils/Utils/FiveUtil.js";
|
|
42
42
|
import "../shared-utils/Utils/BaseUtil.js";
|
|
43
|
+
import "../shared-utils/Utils/WorkUtil.js";
|
|
43
44
|
import "../shared-utils/five/transformPosition.js";
|
|
44
45
|
import "../shared-utils/log.js";
|
|
45
46
|
import "./utils/createLineGeometry.js";
|
|
@@ -175,10 +176,10 @@ import "../shared-utils/five/changeMode.js";
|
|
|
175
176
|
import "../shared-utils/nearlyEqual.js";
|
|
176
177
|
import "../CruisePlugin/Move.js";
|
|
177
178
|
import "../CruisePlugin/utils/getFiveStateOnCurve.js";
|
|
178
|
-
const
|
|
179
|
+
const Mt = (i, o) => new t(i, o);
|
|
179
180
|
export {
|
|
180
|
-
|
|
181
|
-
|
|
182
|
-
|
|
183
|
-
|
|
181
|
+
gt as GuideLineItem,
|
|
182
|
+
Ct as GuideLineModeItem,
|
|
183
|
+
Mt as GuideLinePlugin,
|
|
184
|
+
Mt as default
|
|
184
185
|
};
|