@realsee/dnalogel 3.20.4 → 3.20.6
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/GuideLinePlugin/typing.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +3 -3
- package/dist/PanoMeasurePlugin/Model/index.d.ts +3 -3
- package/dist/PanoMeasurePlugin/Model/line.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Model/polyline.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +0 -4
- package/dist/PanoMeasurePlugin/typings/data.d.ts +1 -1
- package/dist/index.cjs.js +14 -14
- package/dist/index.js +107 -102
- package/dist/index.umd.js +14 -14
- package/docs/assets/search.js +1 -1
- package/docs/classes/AreaMakerPluginType.AreaMakerController.html +3 -3
- package/docs/classes/AreaMakerPluginType.AreaMakerItem.html +3 -3
- package/docs/classes/CSS3DRender.html +3 -3
- package/docs/classes/GuideLineItem.GuideLineItem.html +3 -3
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +3 -3
- package/docs/classes/Magnifier.html +3 -3
- package/docs/classes/ModelRoomLabelController.html +3 -3
- package/docs/classes/MoveController.html +3 -3
- package/docs/classes/Object3DHelperController.html +3 -3
- package/docs/classes/PaintBrush.html +3 -3
- package/docs/classes/PanoMeasurePluginLine.html +20 -10
- package/docs/classes/PanoMeasurePluginModel.html +6 -6
- package/docs/classes/PanoMeasurePluginPoint.html +3 -3
- package/docs/classes/PanoMeasurePluginPolyline.html +22 -12
- package/docs/classes/PanoTagPluginController.html +3 -3
- package/docs/classes/Util.BetterTween.html +3 -3
- package/docs/classes/Util.Interval.html +3 -3
- package/docs/classes/Util.LineSegments.html +3 -3
- package/docs/classes/Util.Magnifier.html +3 -3
- package/docs/classes/Util.Object3D.html +3 -3
- package/docs/classes/Util.PointDomHelper.html +3 -3
- package/docs/classes/Util.PointHelper.html +3 -3
- package/docs/classes/Util.PointSelectorHelper.html +3 -3
- package/docs/classes/Util.Rectangle.html +3 -3
- package/docs/classes/WalkController.html +3 -3
- package/docs/enums/CameraMovementEffect.html +3 -3
- package/docs/enums/ContentType.html +3 -3
- package/docs/enums/DIRECTION.html +3 -3
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/DimensionType.html +3 -3
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +3 -3
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +3 -3
- package/docs/enums/PaintBrushTypeEnum.html +3 -3
- package/docs/enums/PointType.html +3 -3
- package/docs/enums/Rotation.html +3 -3
- package/docs/functions/AreaMakerPlugin.html +3 -3
- 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 +3 -3
- 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 +3 -3
- package/docs/functions/Util.checkFiveModelLoaded.html +3 -3
- package/docs/functions/Util.equal.html +3 -3
- package/docs/functions/Util.getCoordsFromClient.html +3 -3
- package/docs/functions/Util.getCoordsFromElement.html +3 -3
- package/docs/functions/Util.getFrameTime.html +3 -3
- package/docs/functions/Util.getIntersectFromRelativePosition.html +3 -3
- package/docs/functions/Util.getRaycasterFromFivePointer.html +3 -3
- package/docs/functions/Util.isAbsoluteURL.html +3 -3
- package/docs/functions/Util.isModelLike.html +3 -3
- package/docs/functions/Util.isNil.html +3 -3
- package/docs/functions/Util.isPanoramaLike.html +3 -3
- package/docs/functions/Util.nextFrame.html +3 -3
- package/docs/functions/Util.notNil.html +3 -3
- package/docs/functions/Util.requestAnimationFrameInterval.html +3 -3
- package/docs/functions/Util.tweenProgress.html +3 -3
- package/docs/functions/Util.uuid.html +3 -3
- package/docs/functions/pluginFlag.html +3 -3
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.AnimeOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Config.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.EventMap.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.Params.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItem.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerAreaMakerItemV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV1.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ServerDataV2.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/AreaMakerPluginType.State.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +3 -3
- package/docs/interfaces/CSS3DRenderPluginState.html +3 -3
- package/docs/interfaces/CameraMovementPluginExportType.html +3 -3
- package/docs/interfaces/CruisePluginTypes.Config.html +3 -3
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +3 -3
- package/docs/interfaces/CruisePluginTypes.EventMap.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +3 -3
- package/docs/interfaces/CruisePluginTypes.PluginState.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Config.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.EventMap.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.Params.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.ShowHideOptions.html +3 -3
- package/docs/interfaces/CurrentPanoImagePluginType.State.html +3 -3
- package/docs/interfaces/EventMap.html +3 -3
- package/docs/interfaces/FloorplanBounding.html +3 -3
- package/docs/interfaces/FloorplanData.html +3 -3
- package/docs/interfaces/FloorplanEntrance.html +3 -3
- package/docs/interfaces/FloorplanExtraObject.html +3 -3
- package/docs/interfaces/FloorplanExtraObject3D.html +3 -3
- package/docs/interfaces/FloorplanFloorData.html +3 -3
- package/docs/interfaces/FloorplanImagePosition.html +3 -3
- package/docs/interfaces/FloorplanObserver.html +3 -3
- package/docs/interfaces/FloorplanOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanPosition.html +3 -3
- package/docs/interfaces/FloorplanRoomItem.html +3 -3
- package/docs/interfaces/FloorplanRoomLabelItem.html +3 -3
- package/docs/interfaces/FloorplanServerBounding.html +3 -3
- package/docs/interfaces/FloorplanServerComputedData.html +3 -3
- package/docs/interfaces/FloorplanServerData.html +3 -3
- package/docs/interfaces/FloorplanServerDoorItem.html +3 -3
- package/docs/interfaces/FloorplanServerDoorPosition.html +3 -3
- package/docs/interfaces/FloorplanServerEntrance.html +3 -3
- package/docs/interfaces/FloorplanServerFloorData.html +3 -3
- package/docs/interfaces/FloorplanServerImagePosition.html +3 -3
- package/docs/interfaces/FloorplanServerObserver.html +3 -3
- package/docs/interfaces/FloorplanServerOutlineItem.html +3 -3
- package/docs/interfaces/FloorplanServerPosition.html +3 -3
- package/docs/interfaces/FloorplanServerRoomItem.html +3 -3
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +3 -3
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +3 -3
- package/docs/interfaces/GuideLinePluginType.EventMap.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.GuideLineMeshStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +3 -3
- package/docs/interfaces/GuideLinePluginType.PluginState.html +3 -3
- package/docs/interfaces/GuideLinePluginType.Route.html +3 -3
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +3 -3
- package/docs/interfaces/HelperOffset.html +3 -3
- package/docs/interfaces/ImagePlaneGroup.html +3 -3
- package/docs/interfaces/ItemLabelPluginData.html +3 -3
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/MinMax.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginData.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +3 -3
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +3 -3
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginData.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +3 -3
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +3 -3
- package/docs/interfaces/ModelRoomLabelPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginData.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginExportType.html +3 -3
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +3 -3
- package/docs/interfaces/ModelViewPluginExportType.html +3 -3
- package/docs/interfaces/Object3DHelperState.html +3 -3
- package/docs/interfaces/ObjectHelperControllers.html +3 -3
- package/docs/interfaces/PaintBrushAction.html +3 -3
- package/docs/interfaces/PaintBrushConfigs.html +3 -3
- package/docs/interfaces/PaintBrushState.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +3 -3
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +3 -3
- package/docs/interfaces/PanoMeasureParameterType.html +3 -3
- package/docs/interfaces/PanoMeasurePluginLineJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPointJson.html +3 -3
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +3 -3
- package/docs/interfaces/PanoRulerPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginExportType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginOptions.html +3 -3
- package/docs/interfaces/PanoRulerProPluginParameterType.html +3 -3
- package/docs/interfaces/PanoRulerProPluginState.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginData.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +3 -3
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +3 -3
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +3 -3
- package/docs/interfaces/Point.html +3 -3
- package/docs/interfaces/Room.html +3 -3
- package/docs/interfaces/RoomInfo.html +3 -3
- package/docs/interfaces/RoomLabel.html +3 -3
- package/docs/interfaces/RoomRules.html +3 -3
- package/docs/interfaces/Rooms.html +3 -3
- package/docs/interfaces/Scissor.html +3 -3
- package/docs/interfaces/State.html +3 -3
- package/docs/interfaces/TagCacheInterface.html +3 -3
- package/docs/interfaces/TagConfig.html +3 -3
- package/docs/interfaces/TagGLTFObjectGroup.html +3 -3
- package/docs/interfaces/TagIconUrl.html +3 -3
- package/docs/interfaces/TagObjectGroup.html +3 -3
- package/docs/interfaces/TagStyle.html +3 -3
- package/docs/interfaces/Tags.html +3 -3
- package/docs/interfaces/TemporaryState.html +3 -3
- package/docs/interfaces/Util.MagnifierParameter.html +3 -3
- package/docs/interfaces/Util.MouseGroupParameter.html +3 -3
- package/docs/interfaces/Util.PointIntersection.html +3 -3
- package/docs/modules/AreaMakerPluginType.html +3 -3
- package/docs/modules/CruisePluginTypes.html +3 -3
- package/docs/modules/CurrentPanoImagePluginType.html +3 -3
- package/docs/modules/GuideLineItem.html +3 -3
- package/docs/modules/GuideLineModeItem.html +3 -3
- package/docs/modules/GuideLinePluginType.html +3 -3
- package/docs/modules/PanoVideoPluginType.html +3 -3
- package/docs/modules/Util.html +3 -3
- package/docs/modules.html +4 -4
- package/docs/types/AreaMakerPluginType.AreaMakerItemEventMap.html +3 -3
- package/docs/types/AreaMakerPluginType.ItemRenderer.html +3 -3
- package/docs/types/AreaMakerPluginType.PluginData.html +3 -3
- package/docs/types/AreaMakerPluginType.ServerData.html +3 -3
- package/docs/types/ArrayPosition.html +3 -3
- package/docs/types/AudioAppearance.html +3 -3
- package/docs/types/AudioTagTypeConfigKey.html +3 -3
- package/docs/types/CSS3DRenderExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginExportType.html +3 -3
- package/docs/types/CSS3DRenderPluginParameterType.html +3 -3
- package/docs/types/ClassFunctionParameters.html +3 -3
- package/docs/types/Color.html +3 -3
- package/docs/types/ContentTypeConfigKey.html +3 -3
- package/docs/types/ContentTypeConfigKeySplit.html +3 -3
- package/docs/types/ContentTypeMap.html +3 -3
- package/docs/types/Create3DDomContainerReturnType.html +3 -3
- package/docs/types/Create3DElementReturnType.html +3 -3
- package/docs/types/CruisePluginExportType.html +3 -3
- package/docs/types/CruisePluginTypes.CruiseData.html +3 -3
- package/docs/types/CruisePluginTypes.MoveEffect.html +3 -3
- package/docs/types/CurrentPanoImagePluginExportType.html +3 -3
- package/docs/types/DeprecatedMediaPlaneProperty.html +3 -3
- package/docs/types/DeprecatedTagProperty.html +3 -3
- package/docs/types/Direction-1.html +3 -3
- package/docs/types/Direction4.html +3 -3
- package/docs/types/ElementRenderer.html +3 -3
- package/docs/types/FloorplanRuleLabels.html +3 -3
- package/docs/types/FloorplanServerRuleLabels.html +3 -3
- package/docs/types/GuideLinePluginExportType.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -5
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +3 -3
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +3 -3
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +3 -3
- package/docs/types/GuideLinePluginType.PathItem.html +3 -3
- package/docs/types/GuideLinePluginType.PluginData.html +3 -3
- package/docs/types/HelperEventMap.html +3 -3
- package/docs/types/InternalHelperEventMap.html +3 -3
- package/docs/types/LoadTagConfig.html +3 -3
- package/docs/types/MapviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/MapviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/MediaData.html +3 -3
- package/docs/types/MediaStore.html +3 -3
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginParameterType.html +3 -3
- package/docs/types/ModelFloorplanPluginReturnType.html +3 -3
- package/docs/types/ModelId.html +3 -3
- package/docs/types/ModelRoomLabelPluginParameters.html +3 -3
- package/docs/types/ModelRoomLabelPluginReturnType.html +3 -3
- package/docs/types/MoveArgs.html +3 -3
- package/docs/types/MoveOpts.html +3 -3
- package/docs/types/Object3DHelperEventMap.html +3 -3
- package/docs/types/ObjectFit.html +3 -3
- package/docs/types/PaintBrushEventMap.html +3 -3
- package/docs/types/PanoCompassPluginData.html +3 -3
- package/docs/types/PanoCompassPluginExportType.html +3 -3
- package/docs/types/PanoCompassPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +3 -3
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +3 -3
- package/docs/types/PanoIndex.html +3 -3
- package/docs/types/PanoMeasurePluginEvent.html +3 -3
- package/docs/types/PanoMeasureReturnType.html +3 -3
- package/docs/types/PanoSpatialTagPluginId.html +3 -3
- package/docs/types/PanoTagPluginExportInterface.html +3 -3
- package/docs/types/PanoTagPluginParamsInterface.html +3 -3
- package/docs/types/PanoVideoPluginParameterType.html +3 -3
- package/docs/types/PanoVideoPluginReturnType.html +3 -3
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +3 -3
- package/docs/types/PipelinePluginParameterType.html +3 -3
- package/docs/types/PipelinePluginReturnType.html +3 -3
- package/docs/types/PlaneTag.html +3 -3
- package/docs/types/Point2DTag.html +3 -3
- package/docs/types/Point3DTag.html +3 -3
- package/docs/types/PointTag.html +3 -3
- package/docs/types/PointTagInstance.html +3 -3
- package/docs/types/Position.html +3 -3
- package/docs/types/RotateArgs.html +3 -3
- package/docs/types/RotateOpts.html +3 -3
- package/docs/types/RuleLabelsKey.html +3 -3
- package/docs/types/RuleLabelsValue.html +3 -3
- package/docs/types/StickType.html +3 -3
- package/docs/types/Tag.html +3 -3
- package/docs/types/Tag2D.html +3 -3
- package/docs/types/Tag3D.html +3 -3
- package/docs/types/TagConfigByKey.html +3 -3
- package/docs/types/TagContentType.html +3 -3
- package/docs/types/TagContentTypeMapping.html +3 -3
- package/docs/types/TagDimensionType.html +3 -3
- package/docs/types/TagElement.html +3 -3
- package/docs/types/TagEvents.html +3 -3
- package/docs/types/TagGLTFObject.html +3 -3
- package/docs/types/TagHooks.html +3 -3
- package/docs/types/TagId.html +3 -3
- package/docs/types/TagInstance.html +3 -3
- package/docs/types/TagPointType.html +3 -3
- package/docs/types/TagRendererMap.html +3 -3
- package/docs/types/TopviewFloorplanPluginParameterType.html +3 -3
- package/docs/types/TopviewFloorplanPluginReturnType.html +3 -3
- package/docs/types/WorkCode.html +3 -3
- package/docs/variables/FLOOR_TYPE_MAP.html +3 -3
- package/docs/variables/PLUGIN.html +3 -3
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +3 -3
- package/docs/variables/ROOM_TYPE_MAP.html +3 -3
- package/docs/variables/defaultGlobalConfig.html +3 -3
- package/docs/variables/itemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelItemLabelPluginServerParams.html +3 -3
- package/docs/variables/modelRoomLabelPluginServerParams.html +3 -3
- package/libs/GuideLinePlugin/Controller.js +24 -26
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +33 -33
- package/libs/GuideLinePlugin/typing.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +3 -3
- package/libs/PanoMeasurePlugin/Controller/index.js +50 -50
- package/libs/PanoMeasurePlugin/Model/index.d.ts +3 -3
- package/libs/PanoMeasurePlugin/Model/line.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Model/line.js +8 -5
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Model/polyline.js +3 -0
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +0 -4
- package/libs/PanoMeasurePlugin/typings/data.d.ts +1 -1
- package/libs/PanoRulerProPlugin/Controller.js +22 -21
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -209,17 +209,17 @@ class H {
|
|
|
209
209
|
this.mesh.material.uniforms.vOffset.value = t, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0;
|
|
210
210
|
});
|
|
211
211
|
i(this, "onFlickerAnimeUpdate", (e) => {
|
|
212
|
-
var r,
|
|
212
|
+
var r, o, a, l;
|
|
213
213
|
const { progress: t } = e, s = 1 - t;
|
|
214
|
-
this.mesh.material.uniforms.flicker.value = s, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && b(this.startTagContainer.tag) && ((
|
|
214
|
+
this.mesh.material.uniforms.flicker.value = s, this.mesh.material.uniformsNeedUpdate = !0, this.five.needsRender = !0, this.startTagContainer.tag && b(this.startTagContainer.tag) && ((a = this.startTagContainer.app) == null || a.$set(p(d({}, this.startTagContainer.tag.data), {
|
|
215
215
|
opacity: s,
|
|
216
216
|
name: this.name,
|
|
217
|
-
distance: Math.round((
|
|
217
|
+
distance: Math.round((o = (r = this.curvePath) == null ? void 0 : r.getLength()) != null ? o : 0)
|
|
218
218
|
}))), this.endTagContainer.tag && b(this.endTagContainer.tag) && ((l = this.endTagContainer.app) == null || l.$set(p(d({}, this.endTagContainer.tag.data), { opacity: s })));
|
|
219
219
|
});
|
|
220
220
|
i(this, "logWarning", (e) => L("GuideLineModeItem: ", e));
|
|
221
221
|
i(this, "logError", (e) => S("GuideLineModeItem: ", e));
|
|
222
|
-
var
|
|
222
|
+
var o, a;
|
|
223
223
|
this.five = e, this.mode = t.mode, this.plugin = t.plugin, this.parent = t.parent, this.startTagContainer = { tag: null, plugin: new P(this.five) }, this.endTagContainer = { tag: null, plugin: new P(this.five) };
|
|
224
224
|
const s = new n.BufferGeometry(), r = new n.ShaderMaterial({
|
|
225
225
|
vertexShader: R,
|
|
@@ -242,7 +242,7 @@ class H {
|
|
|
242
242
|
vOffset: { value: 0 }
|
|
243
243
|
}
|
|
244
244
|
});
|
|
245
|
-
this.mesh = new n.Mesh(s, r), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((
|
|
245
|
+
this.mesh = new n.Mesh(s, r), this.mesh.name = "GuideLineModeItem", this.mode === "panorama" && (this.parent.hooks.on("walkStart", this.onWalkAnimationStart), this.parent.hooks.on("walkEnded", this.onWalkAnimationEnd)), this.updateVisible(), this.onFiveModeChange(this.five.getCurrentState().mode), this.onFiveModelShownFloorChange((a = (o = this.five.model) == null ? void 0 : o.shownFloor) != null ? a : null), this.flowAnime.onUpdate(this.onFlowAnimeUpdate), this.flickerAnime.onUpdate(this.onFlickerAnimeUpdate), this.parent.hooks.on("show", this.updateVisible), this.parent.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("show", this.updateVisible), this.plugin.hooks.on("hide", this.updateVisible), this.plugin.hooks.on("enable", this.updateVisible), this.plugin.hooks.on("disable", this.updateVisible), this.plugin.hooks.on("dispose", this.dispose), this.five.on("modeChange", this.onFiveModeChange), this.five.on("modelShownFloorChange", this.onFiveModelShownFloorChange);
|
|
246
246
|
}
|
|
247
247
|
get panoGroup() {
|
|
248
248
|
return this._panoGroup;
|
|
@@ -291,8 +291,8 @@ class H {
|
|
|
291
291
|
return this.logError("setPathByPanoGroup: work is not ready");
|
|
292
292
|
const s = W(e);
|
|
293
293
|
if (this._panoGroup = s, (t == null ? void 0 : t.skipPanoGroup) !== void 0) {
|
|
294
|
-
const
|
|
295
|
-
this.skippedPositions =
|
|
294
|
+
const o = t.skipPanoGroup ? s.map((a) => this.plugin.workUtils.getObserverStandingPosition(a)).filter(w) : null;
|
|
295
|
+
this.skippedPositions = o;
|
|
296
296
|
}
|
|
297
297
|
const r = this.getPathFromPanoGroup(s, this.five.work, t);
|
|
298
298
|
this.path = r, this.setGeometryByPath(r, t);
|
|
@@ -302,41 +302,41 @@ class H {
|
|
|
302
302
|
var c, y, C;
|
|
303
303
|
if (this.disposed)
|
|
304
304
|
return this.logError("disposed");
|
|
305
|
-
const s = (c = t == null ? void 0 : t.scale) != null ? c : this.scale, r = (y = t == null ? void 0 : t.width) != null ? y : this.width,
|
|
306
|
-
this.scale = s, this.width = r, this.unitLength =
|
|
307
|
-
const { geometry:
|
|
305
|
+
const s = (c = t == null ? void 0 : t.scale) != null ? c : this.scale, r = (y = t == null ? void 0 : t.width) != null ? y : this.width, o = (C = t == null ? void 0 : t.unit_length) != null ? C : this.unitLength;
|
|
306
|
+
this.scale = s, this.width = r, this.unitLength = o;
|
|
307
|
+
const { geometry: a, maxU: l, curvePath: u, curvePoints: g } = O({
|
|
308
308
|
path: e,
|
|
309
309
|
width: r * s,
|
|
310
|
-
unitLength:
|
|
310
|
+
unitLength: o * s,
|
|
311
311
|
skipPositions: this.skippedPositions
|
|
312
312
|
});
|
|
313
|
-
this._curvePath = u, this._curvePoints = g, this.mesh.geometry =
|
|
313
|
+
this._curvePath = u, this._curvePoints = g, this.mesh.geometry = a, this.mesh.material.needsUpdate = !0, this.mesh.material.uniforms.maxU.value = l, this.five.needsRender = !0;
|
|
314
314
|
const m = e, f = d(d({}, this.geometryStyle), t);
|
|
315
315
|
this.path = m, this.geometryStyle = f;
|
|
316
316
|
}
|
|
317
317
|
/** 设置线条材质 */
|
|
318
318
|
setMartial(e) {
|
|
319
|
-
var s;
|
|
319
|
+
var s, r;
|
|
320
320
|
if (this.disposed)
|
|
321
321
|
return this.logError("disposed");
|
|
322
|
-
(e == null ? void 0 : e.visible) !== void 0 && this.setDefaultVisible(e.visible), (e == null ? void 0 : e.color) !== void 0 && this.setColor(e.color), (e == null ? void 0 : e.opacity) !== void 0 && this.setOpacity(e.opacity), ((s = e == null ? void 0 : e.texture) == null ? void 0 : s.url)
|
|
322
|
+
(e == null ? void 0 : e.visible) !== void 0 && this.setDefaultVisible(e.visible), (e == null ? void 0 : e.color) !== void 0 && this.setColor(e.color), (e == null ? void 0 : e.opacity) !== void 0 && this.setOpacity(e.opacity), this.setTextureUrl((r = (s = e == null ? void 0 : e.texture) == null ? void 0 : s.url) != null ? r : "https://vr-image-4.realsee-cdn.cn/release/web/arrow1.ebe7d0ff.png"), (e == null ? void 0 : e.background_color) !== void 0 && this.setBackgroundColor(e.background_color), (e == null ? void 0 : e.background_opacity) !== void 0 && this.setBackgroundOpacity(e.background_opacity), (e == null ? void 0 : e.border_color) !== void 0 && this.setBorderColor(e.border_color), (e == null ? void 0 : e.border_opacity) !== void 0 && this.setBorderOpacity(e.border_opacity), (e == null ? void 0 : e.border_width) !== void 0 && this.setBorderWidth(e.border_width), (e == null ? void 0 : e.background_clip) !== void 0 && this.setBackgroundClip(e.background_clip);
|
|
323
323
|
const t = d(d({}, this.materialStyle), e);
|
|
324
324
|
this.materialStyle = t;
|
|
325
325
|
}
|
|
326
326
|
/** 设置模型状态 */
|
|
327
327
|
setMeshStyle(e) {
|
|
328
328
|
if (e != null && e.translate) {
|
|
329
|
-
const r = new n.Vector3(),
|
|
330
|
-
|
|
329
|
+
const r = new n.Vector3(), o = new n.Vector3().fromArray(e.translate);
|
|
330
|
+
o.y += this.heightOffset, r.add(o), this.mesh.position.copy(r), s(this.startTagContainer, o), s(this.endTagContainer, o);
|
|
331
331
|
}
|
|
332
332
|
const t = d(d({}, this.meshStyle), e);
|
|
333
333
|
this.meshStyle = t;
|
|
334
|
-
function s(r,
|
|
334
|
+
function s(r, o) {
|
|
335
335
|
if (!r.tag)
|
|
336
336
|
return;
|
|
337
|
-
const
|
|
338
|
-
|
|
339
|
-
const l =
|
|
337
|
+
const a = new n.Vector3().fromArray(r.tag.position);
|
|
338
|
+
a.add(o);
|
|
339
|
+
const l = a.toArray();
|
|
340
340
|
r.plugin.changeTagById(r.tag.id, { position: l });
|
|
341
341
|
}
|
|
342
342
|
}
|
|
@@ -439,36 +439,36 @@ class H {
|
|
|
439
439
|
var u;
|
|
440
440
|
if (!this.curvePoints || !this.curvePath)
|
|
441
441
|
return [];
|
|
442
|
-
const e = this.curvePoints.length, t = this.curvePath.getLength(), s = e - 1, r = t / s,
|
|
442
|
+
const e = this.curvePoints.length, t = this.curvePath.getLength(), s = e - 1, r = t / s, o = (u = this.curvePath.getLengths(s)) != null ? u : [], a = [];
|
|
443
443
|
let l = 0;
|
|
444
444
|
for (let g = 0; g < e; g++) {
|
|
445
445
|
const m = this.curvePoints[g], f = this.plugin.workUtils.getObserverStandingPosition(l);
|
|
446
446
|
if (!f)
|
|
447
447
|
break;
|
|
448
|
-
f.clone().setY(0).distanceTo(m.clone().setY(0)) < r && (
|
|
448
|
+
f.clone().setY(0).distanceTo(m.clone().setY(0)) < r && (a.push(o[g]), l += 1);
|
|
449
449
|
}
|
|
450
|
-
return
|
|
450
|
+
return a;
|
|
451
451
|
}
|
|
452
452
|
setTag(e, t) {
|
|
453
453
|
const s = this.curvePath, r = e === "start" ? this.startTagContainer : this.endTagContainer;
|
|
454
454
|
if (!(t != null && t.data))
|
|
455
455
|
return r.plugin.clearTags();
|
|
456
|
-
const
|
|
456
|
+
const a = I({}, {
|
|
457
457
|
contentType: "Custom",
|
|
458
458
|
stickType: "2DPoint",
|
|
459
459
|
config: { visibleConfig: { visibleFiveMode: ["Floorplan", "Mapview"], followModelVisibility: !1 } },
|
|
460
460
|
style: { point: { enabled: !1 } },
|
|
461
461
|
data: {}
|
|
462
462
|
}, t);
|
|
463
|
-
r.tag =
|
|
463
|
+
r.tag = a, b(a) && (r.tag.element = (u) => {
|
|
464
464
|
var f, c;
|
|
465
465
|
(f = r.app) == null || f.$destroy();
|
|
466
|
-
const g = e === "start" ? p(d({},
|
|
466
|
+
const g = e === "start" ? p(d({}, a.data), { name: this.name, distance: Math.round((c = s.getLength()) != null ? c : 0), i18n: this.plugin.config.i18n }) : a.data, m = new B({ target: u, intro: !0, props: g });
|
|
467
467
|
return r.app = m, () => m.$destroy();
|
|
468
468
|
}), r.plugin.load({ tagList: [r.tag] });
|
|
469
469
|
const l = this.meshStyle.translate;
|
|
470
|
-
if (l &&
|
|
471
|
-
const u = new n.Vector3().fromArray(
|
|
470
|
+
if (l && a.position) {
|
|
471
|
+
const u = new n.Vector3().fromArray(a.position), g = new n.Vector3().fromArray(l);
|
|
472
472
|
u.add(g), u.y += this.heightOffset;
|
|
473
473
|
const m = u.toArray();
|
|
474
474
|
r.plugin.changeTagById(r.tag.id, { position: m });
|
|
@@ -484,9 +484,9 @@ class H {
|
|
|
484
484
|
getPathFromPanoGroup(e, t, s) {
|
|
485
485
|
if (e.length < 2)
|
|
486
486
|
return [];
|
|
487
|
-
const r = e.map((
|
|
488
|
-
var
|
|
489
|
-
return (
|
|
487
|
+
const r = e.map((o) => {
|
|
488
|
+
var a;
|
|
489
|
+
return (a = this.plugin.workUtils.getObserverStandingPosition(o)) == null ? void 0 : a.toArray();
|
|
490
490
|
}).filter(w);
|
|
491
491
|
return [d({ type: "CatmullRomCurve3", points: r }, s)];
|
|
492
492
|
}
|
|
@@ -494,11 +494,11 @@ class H {
|
|
|
494
494
|
function b(h) {
|
|
495
495
|
return h.contentType === "Custom";
|
|
496
496
|
}
|
|
497
|
-
const
|
|
497
|
+
const ae = /* @__PURE__ */ Object.freeze(/* @__PURE__ */ Object.defineProperty({
|
|
498
498
|
__proto__: null,
|
|
499
499
|
GuideLineModeItem: H
|
|
500
500
|
}, Symbol.toStringTag, { value: "Module" }));
|
|
501
501
|
export {
|
|
502
502
|
H as GuideLineModeItem,
|
|
503
|
-
|
|
503
|
+
ae as GuideLineModeItem$1
|
|
504
504
|
};
|
|
@@ -68,7 +68,7 @@ export interface GuideLineItemContainer<T> {
|
|
|
68
68
|
/** 单条路线的数据 */
|
|
69
69
|
export type GuideLineItem = RequireAtLeastOne<{
|
|
70
70
|
/** server ID */
|
|
71
|
-
id?: number;
|
|
71
|
+
id?: number | string;
|
|
72
72
|
/** client ID,不存在时,会使用 String(id) 作为 client ID */
|
|
73
73
|
render_id?: string;
|
|
74
74
|
/** 路线名称 */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Config } from '../typings';
|
|
2
|
-
import type { EditParameter, MeasureType, OpenParameter,
|
|
2
|
+
import type { EditParameter, MeasureType, OpenParameter, MeasurePluginData } from '../typings/data';
|
|
3
3
|
import type { PanoMeasurePluginEvent } from '../typings/event.type';
|
|
4
4
|
import type { UserDistanceItem } from '../utils/dom/distanceItem';
|
|
5
5
|
import type { Polyline } from '../Model/polyline';
|
|
@@ -49,7 +49,7 @@ export default class MeasureController {
|
|
|
49
49
|
* @description 数据加载时会覆盖当前已保存的数据
|
|
50
50
|
* @description 如果当前正在编辑中,会自动退出并保存编辑
|
|
51
51
|
*/
|
|
52
|
-
load(data:
|
|
52
|
+
load(data: MeasurePluginData): void;
|
|
53
53
|
/** 插件功能入口
|
|
54
54
|
* @description 会隐藏鼠标的默认聚焦环
|
|
55
55
|
* @description 会隐藏当前 VR 内的点位展示
|
|
@@ -96,7 +96,7 @@ export default class MeasureController {
|
|
|
96
96
|
/** Mixed 模式才有用,添加终点 */
|
|
97
97
|
addEndPoint(): void;
|
|
98
98
|
/** 导出数据 */
|
|
99
|
-
toJson():
|
|
99
|
+
toJson(): MeasurePluginData;
|
|
100
100
|
/**
|
|
101
101
|
* @deprecated 暂不支持
|
|
102
102
|
* @description 改变插件的模式(pc端模式或移动端模式)
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var b = Object.defineProperty;
|
|
2
2
|
var w = Object.getOwnPropertySymbols;
|
|
3
3
|
var T = Object.prototype.hasOwnProperty, U = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var p = (s, e, t) => e in s ? b(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t,
|
|
4
|
+
var p = (s, e, t) => e in s ? b(s, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : s[e] = t, a = (s, e) => {
|
|
5
5
|
for (var t in e || (e = {}))
|
|
6
6
|
T.call(e, t) && p(s, t, e[t]);
|
|
7
7
|
if (w)
|
|
@@ -9,16 +9,16 @@ var p = (s, e, t) => e in s ? b(s, e, { enumerable: !0, configurable: !0, writab
|
|
|
9
9
|
U.call(e, t) && p(s, t, e[t]);
|
|
10
10
|
return s;
|
|
11
11
|
};
|
|
12
|
-
var
|
|
12
|
+
var r = (s, e, t) => (p(s, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
13
|
import l from "./EditController.js";
|
|
14
14
|
import P from "./ViewController.js";
|
|
15
15
|
import v from "./WatchController.js";
|
|
16
|
-
import
|
|
16
|
+
import h from "./MixedController.js";
|
|
17
17
|
import { omit as k } from "../../shared-utils/filter.js";
|
|
18
18
|
import { Group as D } from "three";
|
|
19
19
|
import { Model as E } from "../Model/index.js";
|
|
20
|
-
import { Subscribe as
|
|
21
|
-
import { getMouseGroup as
|
|
20
|
+
import { Subscribe as G } from "@realsee/five";
|
|
21
|
+
import { getMouseGroup as x } from "../utils/mouseGroup.js";
|
|
22
22
|
import { UIController as S } from "../Modules/UIController/index.js";
|
|
23
23
|
import { GuideController as L } from "../Modules/GuideController.js";
|
|
24
24
|
import { ShortcutKeyController as O } from "./ShortcutKeyController.js";
|
|
@@ -111,37 +111,37 @@ import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
|
111
111
|
import "../Components/Tip.js";
|
|
112
112
|
class Et {
|
|
113
113
|
constructor(e, t) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
114
|
+
r(this, "hasOpen", !1);
|
|
115
|
+
r(this, "hook", new G());
|
|
116
|
+
r(this, "magnifier");
|
|
117
|
+
r(this, "controller", null);
|
|
118
118
|
/** 允许的测量类型 */
|
|
119
|
-
|
|
119
|
+
r(this, "allowMeasureType");
|
|
120
120
|
/** 当前的测量类型 */
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
121
|
+
r(this, "currentMeasureType");
|
|
122
|
+
r(this, "five");
|
|
123
|
+
r(this, "model");
|
|
124
|
+
r(this, "group");
|
|
125
|
+
r(this, "config");
|
|
126
|
+
r(this, "isMobile");
|
|
127
|
+
r(this, "useUIController");
|
|
128
|
+
r(this, "params");
|
|
129
|
+
r(this, "useGuideController");
|
|
130
|
+
r(this, "container", document.createElement("div"));
|
|
131
|
+
r(this, "shortcutKeyController");
|
|
132
132
|
/** 关闭插件功能
|
|
133
133
|
* @description 清除标尺线条
|
|
134
134
|
* @description 还原点位展示和默认鼠标 UI
|
|
135
135
|
*/
|
|
136
|
-
|
|
137
|
-
var e, t,
|
|
138
|
-
this.hasOpen = !1, this.container.style.opacity = "0", (e = this.controller) == null || e.dispose(), (t = this.useUIController) == null || t.hide(), (
|
|
136
|
+
r(this, "disable", () => {
|
|
137
|
+
var e, t, i, o;
|
|
138
|
+
this.hasOpen = !1, this.container.style.opacity = "0", (e = this.controller) == null || e.dispose(), (t = this.useUIController) == null || t.hide(), (i = this.useGuideController) == null || i.hide(), (o = this.shortcutKeyController) == null || o.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
|
|
139
139
|
});
|
|
140
|
-
|
|
140
|
+
r(this, "getCurrentMode", () => this.controller instanceof l ? "Edit" : this.controller instanceof v ? "Watch" : this.controller instanceof h ? "Mixed" : this.controller instanceof P ? "View" : null);
|
|
141
141
|
/** 变更场景
|
|
142
142
|
* @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
|
|
143
143
|
*/
|
|
144
|
-
|
|
144
|
+
r(this, "changeMode", (e) => {
|
|
145
145
|
var o;
|
|
146
146
|
if (!this.hasOpen || this.getCurrentMode() === e)
|
|
147
147
|
return;
|
|
@@ -150,36 +150,36 @@ class Et {
|
|
|
150
150
|
View: P,
|
|
151
151
|
Watch: v,
|
|
152
152
|
Edit: l,
|
|
153
|
-
Mixed:
|
|
153
|
+
Mixed: h
|
|
154
154
|
};
|
|
155
155
|
if (!t[e])
|
|
156
156
|
throw new Error("不存在的 Mode");
|
|
157
|
-
const
|
|
158
|
-
this.controller = new t[e](
|
|
157
|
+
const i = this.createControllerParams();
|
|
158
|
+
this.controller = new t[e](i), this.hook.emit("modeChange", e);
|
|
159
159
|
});
|
|
160
160
|
/**
|
|
161
161
|
* @description: 切换测量的类型
|
|
162
162
|
*/
|
|
163
|
-
|
|
163
|
+
r(this, "changeMeasureType", (e) => {
|
|
164
164
|
this.currentMeasureType = e, this.hook.emit("measureTypeChange", e);
|
|
165
165
|
});
|
|
166
166
|
var n, c, u, d, f, g, M, y, C;
|
|
167
167
|
this.five = e, this.params = t, this.config = k(t, ["openParams", "magnifierParams"]), this.model = new E(this.config), this.isMobile = (c = (n = t == null ? void 0 : t.openParams) == null ? void 0 : n.isMobile) != null ? c : !1, this.magnifier = new A(e, (u = t.magnifierParams) != null ? u : { width: 190, height: 190, scale: 2 }), this.allowMeasureType = Array.from(new Set((f = (d = t.editParams) == null ? void 0 : d.allowMeasureType) != null ? f : ["line"])), this.currentMeasureType = (g = this.allowMeasureType[0]) != null ? g : "line", this.group = new D(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
|
|
168
|
-
const
|
|
168
|
+
const i = (y = (M = t.editParams) == null ? void 0 : M.pointSelectorMode) != null ? y : B ? "fixed" : "cursor", o = (C = this.params.openParams) != null ? C : {};
|
|
169
169
|
if (this.params.useUIController !== !1) {
|
|
170
|
-
const m =
|
|
170
|
+
const m = a({
|
|
171
171
|
container: this.container,
|
|
172
172
|
openParams: o,
|
|
173
173
|
i18n: t.i18n,
|
|
174
|
-
pointSelectorMode:
|
|
174
|
+
pointSelectorMode: i,
|
|
175
175
|
useNewUI: this.allowMeasureType.length > 1
|
|
176
176
|
}, I(this.params.useUIController));
|
|
177
177
|
this.useUIController = new S(this, m);
|
|
178
178
|
}
|
|
179
179
|
if (this.params.useGuideController !== !1) {
|
|
180
|
-
const m =
|
|
180
|
+
const m = a({
|
|
181
181
|
container: this.container,
|
|
182
|
-
pointSelectorMode:
|
|
182
|
+
pointSelectorMode: i,
|
|
183
183
|
i18n: t.i18n
|
|
184
184
|
}, I(this.params.useGuideController));
|
|
185
185
|
this.useGuideController = new L(this, m);
|
|
@@ -207,8 +207,8 @@ class Et {
|
|
|
207
207
|
* @description 会隐藏当前 VR 内的点位展示
|
|
208
208
|
*/
|
|
209
209
|
enable(e) {
|
|
210
|
-
var t;
|
|
211
|
-
this.hasOpen || (this.hasOpen = !0, this.five.scene.add(this.group), this.container.style.opacity = "1", e != null && e.mode ? this.changeMode(e.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (t = this.useUIController) == null || t.show(), this.shortcutKeyController = new O(this, this.five), this.hook.emit("enable", !0));
|
|
210
|
+
var t, i;
|
|
211
|
+
this.hasOpen || (this.hasOpen = !0, this.five.scene.add(this.group), this.container.style.opacity = "1", e != null && e.mode ? this.changeMode(e.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (t = this.useUIController) == null || t.show(), (i = this.useGuideController) == null || i.show(), this.shortcutKeyController = new O(this, this.five), this.hook.emit("enable", !0));
|
|
212
212
|
}
|
|
213
213
|
/** 进入编辑模式 */
|
|
214
214
|
edit(e) {
|
|
@@ -252,20 +252,20 @@ class Et {
|
|
|
252
252
|
*/
|
|
253
253
|
save(e) {
|
|
254
254
|
var o;
|
|
255
|
-
if (!(this.controller instanceof l) && !(this.controller instanceof
|
|
255
|
+
if (!(this.controller instanceof l) && !(this.controller instanceof h))
|
|
256
256
|
return this;
|
|
257
|
-
const t = (o = e == null ? void 0 : e.mode) != null ? o : "View",
|
|
258
|
-
return this.controller instanceof l ? this.controller.complete() :
|
|
257
|
+
const t = (o = e == null ? void 0 : e.mode) != null ? o : "View", i = this.controller.model.areas;
|
|
258
|
+
return this.controller instanceof l ? this.controller.complete() : i.forEach((n) => {
|
|
259
259
|
n.showArea(), this.model.addArea(n);
|
|
260
260
|
}), this.changeMode(t), this;
|
|
261
261
|
}
|
|
262
262
|
/** Mixed 模式才有用,添加起点 */
|
|
263
263
|
addStartPoint() {
|
|
264
|
-
this.controller instanceof
|
|
264
|
+
this.controller instanceof h && this.hook.emit("willChangeState", "watching", "editing");
|
|
265
265
|
}
|
|
266
266
|
/** Mixed 模式才有用,添加终点 */
|
|
267
267
|
addEndPoint() {
|
|
268
|
-
this.controller instanceof
|
|
268
|
+
this.controller instanceof h && this.hook.emit("willChangeState", "editing", "watching");
|
|
269
269
|
}
|
|
270
270
|
/** 导出数据 */
|
|
271
271
|
toJson() {
|
|
@@ -279,20 +279,20 @@ class Et {
|
|
|
279
279
|
changeIsMobile(e) {
|
|
280
280
|
}
|
|
281
281
|
changeConfigs(e) {
|
|
282
|
-
var t,
|
|
283
|
-
Object.assign(this.config, e), (t = this.controller) == null || t.updateDistanceUI(), (
|
|
282
|
+
var t, i;
|
|
283
|
+
Object.assign(this.config, e), (t = this.controller) == null || t.updateDistanceUI(), (i = this.controller) == null || i.updateAreaUI();
|
|
284
284
|
}
|
|
285
285
|
/** 设置线段的文本 */
|
|
286
286
|
setCustomText(e, t) {
|
|
287
287
|
var o;
|
|
288
|
-
const
|
|
289
|
-
if (!
|
|
288
|
+
const i = this.model.getLineByID(e);
|
|
289
|
+
if (!i)
|
|
290
290
|
throw new Error("不存在的线段");
|
|
291
|
-
|
|
291
|
+
i.setText(t), (o = this.controller) == null || o.updateDistanceUI();
|
|
292
292
|
}
|
|
293
293
|
createControllerParams() {
|
|
294
|
-
var
|
|
295
|
-
const e = (
|
|
294
|
+
var i, o;
|
|
295
|
+
const e = (i = this.params.openParams) != null ? i : {}, t = (o = this.params.editParams) != null ? o : {};
|
|
296
296
|
return e.isMobile = this.isMobile, {
|
|
297
297
|
five: this.five,
|
|
298
298
|
hook: this.hook,
|
|
@@ -305,7 +305,7 @@ class Et {
|
|
|
305
305
|
editParams: t,
|
|
306
306
|
magnifierParams: this.params.magnifierParams,
|
|
307
307
|
getMeasureType: () => this.currentMeasureType,
|
|
308
|
-
mouseGroup:
|
|
308
|
+
mouseGroup: x(a({}, e.crossHairParameter)),
|
|
309
309
|
userDistanceItemCreator: this.params.userDistanceItemCreator
|
|
310
310
|
};
|
|
311
311
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { Config } from '../typings';
|
|
2
|
-
import type {
|
|
2
|
+
import type { MeasurePluginData } from '../typings/data';
|
|
3
3
|
import type Area from './area';
|
|
4
4
|
import type Line from './line';
|
|
5
5
|
import { Polyline } from './polyline';
|
|
@@ -39,7 +39,7 @@ export declare class Model {
|
|
|
39
39
|
clear(): void;
|
|
40
40
|
dispose(): void;
|
|
41
41
|
getClosestPoint(): void;
|
|
42
|
-
parse(data:
|
|
43
|
-
toJson():
|
|
42
|
+
parse(data: MeasurePluginData): void;
|
|
43
|
+
toJson(): MeasurePluginData;
|
|
44
44
|
}
|
|
45
45
|
export {};
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
var m = (s, t, i) => t in s ?
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var m = (s, t, i) => t in s ? l(s, t, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[t] = i;
|
|
3
3
|
var e = (s, t, i) => (m(s, typeof t != "symbol" ? t + "" : t, i), i);
|
|
4
4
|
import { uuid as p } from "../../shared-utils/uuid.js";
|
|
5
5
|
import { createLineMesh as n } from "../utils/line.js";
|
|
@@ -11,7 +11,7 @@ import "three";
|
|
|
11
11
|
import "../utils/dom/base.js";
|
|
12
12
|
import "../utils/isNDCPointInScreen.js";
|
|
13
13
|
import "../../shared-utils/three/centerPoint.js";
|
|
14
|
-
class
|
|
14
|
+
class r {
|
|
15
15
|
constructor(t, i, o) {
|
|
16
16
|
e(this, "id");
|
|
17
17
|
e(this, "selected", !1);
|
|
@@ -65,14 +65,17 @@ class l {
|
|
|
65
65
|
setText(t) {
|
|
66
66
|
this.text = t, this.hook.emit("textChanged", t);
|
|
67
67
|
}
|
|
68
|
+
toJSON() {
|
|
69
|
+
return this.toJson();
|
|
70
|
+
}
|
|
68
71
|
toJson() {
|
|
69
72
|
return { id: this.id, points: this.points.map((t) => t.toJson()), text: this.text };
|
|
70
73
|
}
|
|
71
74
|
clone() {
|
|
72
|
-
const t = new
|
|
75
|
+
const t = new r(this.points[0].clone(), this.points[1].clone(), this.model);
|
|
73
76
|
return t.text = this.text, t;
|
|
74
77
|
}
|
|
75
78
|
}
|
|
76
79
|
export {
|
|
77
|
-
|
|
80
|
+
r as default
|
|
78
81
|
};
|
|
@@ -15,10 +15,6 @@ export interface GuideControllerParams {
|
|
|
15
15
|
i18n?: (key: string) => string;
|
|
16
16
|
tips?: PartialObjectDeep<MeasureTip>;
|
|
17
17
|
tipStyle?: Partial<CSSStyleDeclaration>;
|
|
18
|
-
startTip?: string;
|
|
19
|
-
endTip?: string;
|
|
20
|
-
firstPointTip?: string;
|
|
21
|
-
nextPointTip?: string;
|
|
22
18
|
pointSelectorMode?: PointSelectorMode;
|
|
23
19
|
}
|
|
24
20
|
export declare class GuideController {
|
|
@@ -1,30 +1,30 @@
|
|
|
1
1
|
var m = Object.defineProperty;
|
|
2
2
|
var f = Object.getOwnPropertySymbols;
|
|
3
3
|
var v = Object.prototype.hasOwnProperty, b = Object.prototype.propertyIsEnumerable;
|
|
4
|
-
var p = (i,
|
|
5
|
-
for (var
|
|
6
|
-
v.call(
|
|
4
|
+
var p = (i, t, e) => t in i ? m(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e, c = (i, t) => {
|
|
5
|
+
for (var e in t || (t = {}))
|
|
6
|
+
v.call(t, e) && p(i, e, t[e]);
|
|
7
7
|
if (f)
|
|
8
|
-
for (var
|
|
9
|
-
b.call(
|
|
8
|
+
for (var e of f(t))
|
|
9
|
+
b.call(t, e) && p(i, e, t[e]);
|
|
10
10
|
return i;
|
|
11
11
|
};
|
|
12
|
-
var r = (i,
|
|
13
|
-
var d = (i,
|
|
12
|
+
var r = (i, t, e) => (p(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
13
|
+
var d = (i, t, e) => new Promise((a, o) => {
|
|
14
14
|
var n = (s) => {
|
|
15
15
|
try {
|
|
16
|
-
h(
|
|
16
|
+
h(e.next(s));
|
|
17
17
|
} catch (u) {
|
|
18
18
|
o(u);
|
|
19
19
|
}
|
|
20
20
|
}, l = (s) => {
|
|
21
21
|
try {
|
|
22
|
-
h(
|
|
22
|
+
h(e.throw(s));
|
|
23
23
|
} catch (u) {
|
|
24
24
|
o(u);
|
|
25
25
|
}
|
|
26
26
|
}, h = (s) => s.done ? a(s.value) : Promise.resolve(s.value).then(n, l);
|
|
27
|
-
h((
|
|
27
|
+
h((e = e.apply(i, t)).next());
|
|
28
28
|
});
|
|
29
29
|
import I from "./RulerItems.js";
|
|
30
30
|
import "../vendor/svelte/internal/index.js";
|
|
@@ -38,7 +38,7 @@ import "../shared-utils/throttle.js";
|
|
|
38
38
|
import "three";
|
|
39
39
|
import "./RulerItem.js";
|
|
40
40
|
class A {
|
|
41
|
-
constructor(
|
|
41
|
+
constructor(t, e) {
|
|
42
42
|
r(this, "five");
|
|
43
43
|
r(this, "container", document.createElement("div"));
|
|
44
44
|
r(this, "panoRulerProData");
|
|
@@ -48,26 +48,26 @@ class A {
|
|
|
48
48
|
loaded: !1,
|
|
49
49
|
options: {
|
|
50
50
|
className: "",
|
|
51
|
-
distanceText: (
|
|
51
|
+
distanceText: (t) => `${t.toFixed(1)}m`
|
|
52
52
|
}
|
|
53
53
|
});
|
|
54
54
|
var a, o;
|
|
55
|
-
this.five =
|
|
55
|
+
this.five = t, this.container.classList.add("panoRulerProPlugin-container"), this.container.setAttribute(
|
|
56
56
|
"style",
|
|
57
57
|
"position: absolute;pointer-events: none;width: 100%;height: 100%;left: 0;top: 0;overflow: hidden;"
|
|
58
|
-
),
|
|
58
|
+
), e && (e.data && this.load(e.data), this.state.options = c(c({}, this.state.options), e.options || {}), (a = e.options) != null && a.className && this.container.classList.add((o = e.options) == null ? void 0 : o.className)), this.five.once("modelLoaded", () => d(this, null, function* () {
|
|
59
59
|
var n, l;
|
|
60
60
|
(l = (n = this.five.getElement()) == null ? void 0 : n.parentNode) == null || l.append(this.container);
|
|
61
61
|
})), this.five.once("dispose", () => this.dispose());
|
|
62
62
|
}
|
|
63
|
-
load(
|
|
63
|
+
load(t) {
|
|
64
64
|
return d(this, null, function* () {
|
|
65
65
|
if (!this.five.work)
|
|
66
66
|
return;
|
|
67
|
-
const
|
|
68
|
-
if (!
|
|
67
|
+
const e = t.data;
|
|
68
|
+
if (!e)
|
|
69
69
|
throw new Error("标尺数据依赖不齐全!");
|
|
70
|
-
this.panoRulerProData =
|
|
70
|
+
this.panoRulerProData = e, this.state.loaded = !0;
|
|
71
71
|
});
|
|
72
72
|
}
|
|
73
73
|
enable() {
|
|
@@ -78,7 +78,7 @@ class A {
|
|
|
78
78
|
}
|
|
79
79
|
render() {
|
|
80
80
|
return d(this, null, function* () {
|
|
81
|
-
var
|
|
81
|
+
var t;
|
|
82
82
|
if (this.state.enabled) {
|
|
83
83
|
if (!this.panoRulerProData || !this.container)
|
|
84
84
|
return;
|
|
@@ -91,11 +91,12 @@ class A {
|
|
|
91
91
|
}
|
|
92
92
|
});
|
|
93
93
|
} else
|
|
94
|
-
(
|
|
94
|
+
(t = this.rulerItems) == null || t.$destroy(), this.rulerItems = void 0;
|
|
95
95
|
});
|
|
96
96
|
}
|
|
97
97
|
dispose() {
|
|
98
|
-
|
|
98
|
+
var t;
|
|
99
|
+
this.container && ((t = this.rulerItems) == null || t.$destroy(), this.rulerItems = void 0), this.container.remove();
|
|
99
100
|
}
|
|
100
101
|
}
|
|
101
102
|
export {
|