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