@realsee/dnalogel 3.20.5 → 3.20.7
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/PanoMeasurePlugin/Controller/index.d.ts +3 -3
- package/dist/PanoMeasurePlugin/Model/area.d.ts +2 -1
- package/dist/PanoMeasurePlugin/Model/index.d.ts +3 -3
- package/dist/PanoMeasurePlugin/Model/line.d.ts +2 -1
- 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/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/dist/index.cjs.js +44 -44
- package/dist/index.js +1458 -1433
- package/dist/index.umd.js +44 -44
- package/dist/shared-utils/createLine/index.d.ts +2 -2
- package/dist/shared-utils/five/FiveLine.d.ts +8 -0
- 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 +22 -12
- 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 +3 -3
- 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/PanoCursorRaycasterPlugin/index.js +9 -8
- package/libs/PanoMeasurePlugin/Components/Controller0.js +3 -2
- package/libs/PanoMeasurePlugin/Components/Controller1.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +3 -3
- package/libs/PanoMeasurePlugin/Controller/index.js +53 -52
- package/libs/PanoMeasurePlugin/Model/area.d.ts +2 -1
- package/libs/PanoMeasurePlugin/Model/area.js +14 -6
- package/libs/PanoMeasurePlugin/Model/index.d.ts +3 -3
- package/libs/PanoMeasurePlugin/Model/index.js +3 -2
- package/libs/PanoMeasurePlugin/Model/line.d.ts +2 -1
- package/libs/PanoMeasurePlugin/Model/line.js +9 -5
- package/libs/PanoMeasurePlugin/Model/polyline.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Model/polyline.js +29 -25
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +0 -4
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +3 -2
- package/libs/PanoMeasurePlugin/index.js +14 -13
- package/libs/PanoMeasurePlugin/typings/data.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/line.d.ts +1 -1
- package/libs/PanoMeasurePlugin/utils/line.js +5 -4
- package/libs/PanoRulerProPlugin/Controller.js +22 -21
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +121 -120
- package/libs/shared-utils/createLine/index.d.ts +2 -2
- package/libs/shared-utils/createLine/index.js +5 -5
- package/libs/shared-utils/five/FiveLine.d.ts +8 -0
- package/libs/shared-utils/five/FiveLine.js +15 -0
- package/libs/shared-utils/logger.js +1 -1
- package/package.json +1 -1
|
@@ -13,6 +13,7 @@ import W from "../Modules/rangePiece/index.js";
|
|
|
13
13
|
import "@realsee/five";
|
|
14
14
|
import "../../shared-utils/uuid.js";
|
|
15
15
|
import "../utils/line.js";
|
|
16
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
16
17
|
import "@realsee/five/line";
|
|
17
18
|
import "../utils/constants.js";
|
|
18
19
|
import "../utils/dom/distanceItem.js";
|
|
@@ -29,7 +30,7 @@ import "../../shared-utils/animationFrame/index.js";
|
|
|
29
30
|
import "../../shared-utils/noop.js";
|
|
30
31
|
import "../utils/calculateThreeMouse.js";
|
|
31
32
|
import "../utils/mouseGroup.js";
|
|
32
|
-
class
|
|
33
|
+
class ae extends T {
|
|
33
34
|
constructor(e) {
|
|
34
35
|
super(e);
|
|
35
36
|
t(this, "state", "watching");
|
|
@@ -143,5 +144,5 @@ class re extends T {
|
|
|
143
144
|
}
|
|
144
145
|
}
|
|
145
146
|
export {
|
|
146
|
-
|
|
147
|
+
ae as default
|
|
147
148
|
};
|
|
@@ -7,6 +7,7 @@ import "three";
|
|
|
7
7
|
import "../Model/line.js";
|
|
8
8
|
import "../../shared-utils/uuid.js";
|
|
9
9
|
import "../utils/line.js";
|
|
10
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
10
11
|
import "@realsee/five/line";
|
|
11
12
|
import "../utils/constants.js";
|
|
12
13
|
import "@realsee/five";
|
|
@@ -16,7 +17,7 @@ import "../utils/isNDCPointInScreen.js";
|
|
|
16
17
|
import "../../shared-utils/three/centerPoint.js";
|
|
17
18
|
import "../Model/point.js";
|
|
18
19
|
import "../utils/ironbox.js";
|
|
19
|
-
class
|
|
20
|
+
class R extends h {
|
|
20
21
|
constructor(e) {
|
|
21
22
|
super(e);
|
|
22
23
|
s(this, "type", "view");
|
|
@@ -66,5 +67,5 @@ class F extends h {
|
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
export {
|
|
69
|
-
|
|
70
|
+
R as default
|
|
70
71
|
};
|
|
@@ -17,6 +17,7 @@ import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
|
17
17
|
import "../Model/line.js";
|
|
18
18
|
import "../../shared-utils/uuid.js";
|
|
19
19
|
import "../utils/line.js";
|
|
20
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
20
21
|
import "@realsee/five/line";
|
|
21
22
|
import "../utils/constants.js";
|
|
22
23
|
import "@realsee/five";
|
|
@@ -50,7 +51,7 @@ import "../../shared-utils/three/IObject3D.js";
|
|
|
50
51
|
import "../utils/generatePolygonGeometry.js";
|
|
51
52
|
import "earcut";
|
|
52
53
|
const C = () => !1;
|
|
53
|
-
class
|
|
54
|
+
class bt extends G {
|
|
54
55
|
constructor(t) {
|
|
55
56
|
super(t);
|
|
56
57
|
s(this, "type", "watch");
|
|
@@ -223,5 +224,5 @@ class Ut extends G {
|
|
|
223
224
|
}
|
|
224
225
|
}
|
|
225
226
|
export {
|
|
226
|
-
|
|
227
|
+
bt as default
|
|
227
228
|
};
|
|
@@ -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";
|
|
@@ -31,6 +31,7 @@ import { isTouchDevice as B } from "../../shared-utils/isTouchDevice.js";
|
|
|
31
31
|
import "../Model/line.js";
|
|
32
32
|
import "../../shared-utils/uuid.js";
|
|
33
33
|
import "../utils/line.js";
|
|
34
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
34
35
|
import "@realsee/five/line";
|
|
35
36
|
import "../utils/constants.js";
|
|
36
37
|
import "../utils/dom/distanceItem.js";
|
|
@@ -109,39 +110,39 @@ import "../../vendor/svelte/transition/index.js";
|
|
|
109
110
|
import "../../vendor/svelte/easing/index.js";
|
|
110
111
|
import "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
111
112
|
import "../Components/Tip.js";
|
|
112
|
-
class
|
|
113
|
+
class Gt {
|
|
113
114
|
constructor(e, t) {
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
115
|
+
r(this, "hasOpen", !1);
|
|
116
|
+
r(this, "hook", new G());
|
|
117
|
+
r(this, "magnifier");
|
|
118
|
+
r(this, "controller", null);
|
|
118
119
|
/** 允许的测量类型 */
|
|
119
|
-
|
|
120
|
+
r(this, "allowMeasureType");
|
|
120
121
|
/** 当前的测量类型 */
|
|
121
|
-
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
122
|
+
r(this, "currentMeasureType");
|
|
123
|
+
r(this, "five");
|
|
124
|
+
r(this, "model");
|
|
125
|
+
r(this, "group");
|
|
126
|
+
r(this, "config");
|
|
127
|
+
r(this, "isMobile");
|
|
128
|
+
r(this, "useUIController");
|
|
129
|
+
r(this, "params");
|
|
130
|
+
r(this, "useGuideController");
|
|
131
|
+
r(this, "container", document.createElement("div"));
|
|
132
|
+
r(this, "shortcutKeyController");
|
|
132
133
|
/** 关闭插件功能
|
|
133
134
|
* @description 清除标尺线条
|
|
134
135
|
* @description 还原点位展示和默认鼠标 UI
|
|
135
136
|
*/
|
|
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(), (
|
|
137
|
+
r(this, "disable", () => {
|
|
138
|
+
var e, t, i, o;
|
|
139
|
+
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
140
|
});
|
|
140
|
-
|
|
141
|
+
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
142
|
/** 变更场景
|
|
142
143
|
* @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
|
|
143
144
|
*/
|
|
144
|
-
|
|
145
|
+
r(this, "changeMode", (e) => {
|
|
145
146
|
var o;
|
|
146
147
|
if (!this.hasOpen || this.getCurrentMode() === e)
|
|
147
148
|
return;
|
|
@@ -150,36 +151,36 @@ class Et {
|
|
|
150
151
|
View: P,
|
|
151
152
|
Watch: v,
|
|
152
153
|
Edit: l,
|
|
153
|
-
Mixed:
|
|
154
|
+
Mixed: h
|
|
154
155
|
};
|
|
155
156
|
if (!t[e])
|
|
156
157
|
throw new Error("不存在的 Mode");
|
|
157
|
-
const
|
|
158
|
-
this.controller = new t[e](
|
|
158
|
+
const i = this.createControllerParams();
|
|
159
|
+
this.controller = new t[e](i), this.hook.emit("modeChange", e);
|
|
159
160
|
});
|
|
160
161
|
/**
|
|
161
162
|
* @description: 切换测量的类型
|
|
162
163
|
*/
|
|
163
|
-
|
|
164
|
+
r(this, "changeMeasureType", (e) => {
|
|
164
165
|
this.currentMeasureType = e, this.hook.emit("measureTypeChange", e);
|
|
165
166
|
});
|
|
166
167
|
var n, c, u, d, f, g, M, y, C;
|
|
167
168
|
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
|
|
169
|
+
const i = (y = (M = t.editParams) == null ? void 0 : M.pointSelectorMode) != null ? y : B ? "fixed" : "cursor", o = (C = this.params.openParams) != null ? C : {};
|
|
169
170
|
if (this.params.useUIController !== !1) {
|
|
170
|
-
const m =
|
|
171
|
+
const m = a({
|
|
171
172
|
container: this.container,
|
|
172
173
|
openParams: o,
|
|
173
174
|
i18n: t.i18n,
|
|
174
|
-
pointSelectorMode:
|
|
175
|
+
pointSelectorMode: i,
|
|
175
176
|
useNewUI: this.allowMeasureType.length > 1
|
|
176
177
|
}, I(this.params.useUIController));
|
|
177
178
|
this.useUIController = new S(this, m);
|
|
178
179
|
}
|
|
179
180
|
if (this.params.useGuideController !== !1) {
|
|
180
|
-
const m =
|
|
181
|
+
const m = a({
|
|
181
182
|
container: this.container,
|
|
182
|
-
pointSelectorMode:
|
|
183
|
+
pointSelectorMode: i,
|
|
183
184
|
i18n: t.i18n
|
|
184
185
|
}, I(this.params.useGuideController));
|
|
185
186
|
this.useGuideController = new L(this, m);
|
|
@@ -207,8 +208,8 @@ class Et {
|
|
|
207
208
|
* @description 会隐藏当前 VR 内的点位展示
|
|
208
209
|
*/
|
|
209
210
|
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));
|
|
211
|
+
var t, i;
|
|
212
|
+
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
213
|
}
|
|
213
214
|
/** 进入编辑模式 */
|
|
214
215
|
edit(e) {
|
|
@@ -252,20 +253,20 @@ class Et {
|
|
|
252
253
|
*/
|
|
253
254
|
save(e) {
|
|
254
255
|
var o;
|
|
255
|
-
if (!(this.controller instanceof l) && !(this.controller instanceof
|
|
256
|
+
if (!(this.controller instanceof l) && !(this.controller instanceof h))
|
|
256
257
|
return this;
|
|
257
|
-
const t = (o = e == null ? void 0 : e.mode) != null ? o : "View",
|
|
258
|
-
return this.controller instanceof l ? this.controller.complete() :
|
|
258
|
+
const t = (o = e == null ? void 0 : e.mode) != null ? o : "View", i = this.controller.model.areas;
|
|
259
|
+
return this.controller instanceof l ? this.controller.complete() : i.forEach((n) => {
|
|
259
260
|
n.showArea(), this.model.addArea(n);
|
|
260
261
|
}), this.changeMode(t), this;
|
|
261
262
|
}
|
|
262
263
|
/** Mixed 模式才有用,添加起点 */
|
|
263
264
|
addStartPoint() {
|
|
264
|
-
this.controller instanceof
|
|
265
|
+
this.controller instanceof h && this.hook.emit("willChangeState", "watching", "editing");
|
|
265
266
|
}
|
|
266
267
|
/** Mixed 模式才有用,添加终点 */
|
|
267
268
|
addEndPoint() {
|
|
268
|
-
this.controller instanceof
|
|
269
|
+
this.controller instanceof h && this.hook.emit("willChangeState", "editing", "watching");
|
|
269
270
|
}
|
|
270
271
|
/** 导出数据 */
|
|
271
272
|
toJson() {
|
|
@@ -279,20 +280,20 @@ class Et {
|
|
|
279
280
|
changeIsMobile(e) {
|
|
280
281
|
}
|
|
281
282
|
changeConfigs(e) {
|
|
282
|
-
var t,
|
|
283
|
-
Object.assign(this.config, e), (t = this.controller) == null || t.updateDistanceUI(), (
|
|
283
|
+
var t, i;
|
|
284
|
+
Object.assign(this.config, e), (t = this.controller) == null || t.updateDistanceUI(), (i = this.controller) == null || i.updateAreaUI();
|
|
284
285
|
}
|
|
285
286
|
/** 设置线段的文本 */
|
|
286
287
|
setCustomText(e, t) {
|
|
287
288
|
var o;
|
|
288
|
-
const
|
|
289
|
-
if (!
|
|
289
|
+
const i = this.model.getLineByID(e);
|
|
290
|
+
if (!i)
|
|
290
291
|
throw new Error("不存在的线段");
|
|
291
|
-
|
|
292
|
+
i.setText(t), (o = this.controller) == null || o.updateDistanceUI();
|
|
292
293
|
}
|
|
293
294
|
createControllerParams() {
|
|
294
|
-
var
|
|
295
|
-
const e = (
|
|
295
|
+
var i, o;
|
|
296
|
+
const e = (i = this.params.openParams) != null ? i : {}, t = (o = this.params.editParams) != null ? o : {};
|
|
296
297
|
return e.isMobile = this.isMobile, {
|
|
297
298
|
five: this.five,
|
|
298
299
|
hook: this.hook,
|
|
@@ -305,11 +306,11 @@ class Et {
|
|
|
305
306
|
editParams: t,
|
|
306
307
|
magnifierParams: this.params.magnifierParams,
|
|
307
308
|
getMeasureType: () => this.currentMeasureType,
|
|
308
|
-
mouseGroup:
|
|
309
|
+
mouseGroup: x(a({}, e.crossHairParameter)),
|
|
309
310
|
userDistanceItemCreator: this.params.userDistanceItemCreator
|
|
310
311
|
};
|
|
311
312
|
}
|
|
312
313
|
}
|
|
313
314
|
export {
|
|
314
|
-
|
|
315
|
+
Gt as default
|
|
315
316
|
};
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
import * as THREE from 'three';
|
|
2
|
-
import type { Line as FiveLine } from '@realsee/five/line';
|
|
3
2
|
import { Subscribe, type Five, type SubscribeEventMap } from '@realsee/five';
|
|
4
3
|
import PolygonMesh from './polygon';
|
|
5
4
|
import { Polyline } from './polyline';
|
|
6
5
|
import type { Model } from '.';
|
|
7
6
|
import { AreaItem } from '../utils/dom/areaDom';
|
|
7
|
+
import type { FiveLine } from '../../shared-utils/five/FiveLine';
|
|
8
8
|
export interface AreaHook extends SubscribeEventMap {
|
|
9
9
|
selected: (area: Area, position: {
|
|
10
10
|
left: string;
|
|
@@ -71,4 +71,5 @@ export default class Area {
|
|
|
71
71
|
* @todo: 没写完
|
|
72
72
|
*/
|
|
73
73
|
dispose(): void;
|
|
74
|
+
toJSON(): any;
|
|
74
75
|
}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
|
-
var
|
|
2
|
-
var d = (o, t, e) => t in o ?
|
|
1
|
+
var l = Object.defineProperty;
|
|
2
|
+
var d = (o, t, e) => t in o ? l(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
3
|
var i = (o, t, e) => (d(o, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
import * as r from "three";
|
|
5
5
|
import { uuid as f } from "../../shared-utils/uuid.js";
|
|
@@ -10,6 +10,7 @@ import { Polyline as y } from "./polyline.js";
|
|
|
10
10
|
import a from "./point.js";
|
|
11
11
|
import { AreaItem as C } from "../utils/dom/areaDom.js";
|
|
12
12
|
import "../utils/line.js";
|
|
13
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
13
14
|
import "@realsee/five/line";
|
|
14
15
|
import "../utils/constants.js";
|
|
15
16
|
import "../utils/dom/distanceItem.js";
|
|
@@ -38,7 +39,7 @@ import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
|
38
39
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
39
40
|
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
40
41
|
import "../../shared-utils/isNil.js";
|
|
41
|
-
class
|
|
42
|
+
class ot {
|
|
42
43
|
constructor(t, e) {
|
|
43
44
|
i(this, "id", f());
|
|
44
45
|
i(this, "selected", !1);
|
|
@@ -71,8 +72,8 @@ class et {
|
|
|
71
72
|
t && (this.points = t), this.model = e.model, this.polygon = new v(t), this.polyline = new y({ model: e.model }), this.areaItem = new C({
|
|
72
73
|
area: this,
|
|
73
74
|
clickCallback: (p, s) => {
|
|
74
|
-
const h = p.clientX + "px",
|
|
75
|
-
this.hook.emit("selected", this, { left: h, top:
|
|
75
|
+
const h = p.clientX + "px", m = p.clientY + "px";
|
|
76
|
+
this.hook.emit("selected", this, { left: h, top: m });
|
|
76
77
|
}
|
|
77
78
|
}), this.domContainer = e.domContainer || null, this.meshContainer = e.meshContainer || null, this.five = e.five || null, this.areaItem.appendTo(this.domContainer), (n = this.five) == null || n.on("cameraUpdate", this.updateDom);
|
|
78
79
|
}
|
|
@@ -128,7 +129,14 @@ class et {
|
|
|
128
129
|
dispose() {
|
|
129
130
|
this.remove(), this.model.areas.splice(this.model.areas.indexOf(this), 1), this.planeHelper = null, this.five.off("cameraUpdate", this.updateDom), this.five.needsRender = !0;
|
|
130
131
|
}
|
|
132
|
+
toJSON() {
|
|
133
|
+
return {
|
|
134
|
+
id: this.id,
|
|
135
|
+
points: this.points.map((t) => t.toArray()),
|
|
136
|
+
text: this.text
|
|
137
|
+
};
|
|
138
|
+
}
|
|
131
139
|
}
|
|
132
140
|
export {
|
|
133
|
-
|
|
141
|
+
ot as default
|
|
134
142
|
};
|
|
@@ -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 {};
|
|
@@ -6,6 +6,7 @@ import { Subscribe as p } from "@realsee/five";
|
|
|
6
6
|
import "./line.js";
|
|
7
7
|
import "../../shared-utils/uuid.js";
|
|
8
8
|
import "../utils/line.js";
|
|
9
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
9
10
|
import "@realsee/five/line";
|
|
10
11
|
import "../utils/constants.js";
|
|
11
12
|
import "three";
|
|
@@ -14,7 +15,7 @@ import "../utils/dom/base.js";
|
|
|
14
15
|
import "../utils/isNDCPointInScreen.js";
|
|
15
16
|
import "../../shared-utils/three/centerPoint.js";
|
|
16
17
|
import "./point.js";
|
|
17
|
-
class
|
|
18
|
+
class v {
|
|
18
19
|
constructor(e) {
|
|
19
20
|
r(this, "config");
|
|
20
21
|
r(this, "polylines", []);
|
|
@@ -95,5 +96,5 @@ class I {
|
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
export {
|
|
98
|
-
|
|
99
|
+
v as Model
|
|
99
100
|
};
|
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import type { Model } from '.';
|
|
2
2
|
import type Point from './point';
|
|
3
3
|
import type { LineJson } from '../typings/data';
|
|
4
|
-
import type { Line as FiveLine } from '@realsee/five/line';
|
|
5
4
|
import type { Polyline } from './polyline';
|
|
6
5
|
import { Subscribe, type SubscribeEventMap } from '@realsee/five';
|
|
7
6
|
import { DistanceItem } from '../utils/dom/distanceItem';
|
|
8
7
|
import type * as THREE from 'three';
|
|
8
|
+
import type { FiveLine } from '../../shared-utils/five/FiveLine';
|
|
9
9
|
export interface ILineHook extends SubscribeEventMap {
|
|
10
10
|
selected: (line: Line) => void;
|
|
11
11
|
textChanged: (text: string | undefined) => void;
|
|
@@ -33,6 +33,7 @@ export default class Line {
|
|
|
33
33
|
getPolyline(): Polyline;
|
|
34
34
|
findAnotherPoint(point: Point): Point;
|
|
35
35
|
setText(text: string | null): void;
|
|
36
|
+
toJSON(): LineJson;
|
|
36
37
|
toJson(): LineJson;
|
|
37
38
|
clone(): Line;
|
|
38
39
|
}
|
|
@@ -1,17 +1,18 @@
|
|
|
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";
|
|
6
6
|
import { Subscribe as c } from "@realsee/five";
|
|
7
7
|
import { DistanceItem as d } from "../utils/dom/distanceItem.js";
|
|
8
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
8
9
|
import "@realsee/five/line";
|
|
9
10
|
import "../utils/constants.js";
|
|
10
11
|
import "three";
|
|
11
12
|
import "../utils/dom/base.js";
|
|
12
13
|
import "../utils/isNDCPointInScreen.js";
|
|
13
14
|
import "../../shared-utils/three/centerPoint.js";
|
|
14
|
-
class
|
|
15
|
+
class r {
|
|
15
16
|
constructor(t, i, o) {
|
|
16
17
|
e(this, "id");
|
|
17
18
|
e(this, "selected", !1);
|
|
@@ -65,14 +66,17 @@ class l {
|
|
|
65
66
|
setText(t) {
|
|
66
67
|
this.text = t, this.hook.emit("textChanged", t);
|
|
67
68
|
}
|
|
69
|
+
toJSON() {
|
|
70
|
+
return this.toJson();
|
|
71
|
+
}
|
|
68
72
|
toJson() {
|
|
69
73
|
return { id: this.id, points: this.points.map((t) => t.toJson()), text: this.text };
|
|
70
74
|
}
|
|
71
75
|
clone() {
|
|
72
|
-
const t = new
|
|
76
|
+
const t = new r(this.points[0].clone(), this.points[1].clone(), this.model);
|
|
73
77
|
return t.text = this.text, t;
|
|
74
78
|
}
|
|
75
79
|
}
|
|
76
80
|
export {
|
|
77
|
-
|
|
81
|
+
r as default
|
|
78
82
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
|
-
var f = (r, i,
|
|
3
|
-
var o = (r, i,
|
|
4
|
-
import
|
|
5
|
-
import
|
|
2
|
+
var f = (r, i, t) => i in r ? c(r, i, { enumerable: !0, configurable: !0, writable: !0, value: t }) : r[i] = t;
|
|
3
|
+
var o = (r, i, t) => (f(r, typeof i != "symbol" ? i + "" : i, t), t);
|
|
4
|
+
import m from "./line.js";
|
|
5
|
+
import a from "./point.js";
|
|
6
6
|
import { uuid as P } from "../../shared-utils/uuid.js";
|
|
7
7
|
import { Subscribe as g } from "@realsee/five";
|
|
8
8
|
import "../utils/line.js";
|
|
9
|
+
import "../../shared-utils/five/FiveLine.js";
|
|
9
10
|
import "@realsee/five/line";
|
|
10
11
|
import "../utils/constants.js";
|
|
11
12
|
import "three";
|
|
@@ -13,7 +14,7 @@ import "../utils/dom/distanceItem.js";
|
|
|
13
14
|
import "../utils/dom/base.js";
|
|
14
15
|
import "../utils/isNDCPointInScreen.js";
|
|
15
16
|
import "../../shared-utils/three/centerPoint.js";
|
|
16
|
-
class
|
|
17
|
+
class B {
|
|
17
18
|
constructor(i) {
|
|
18
19
|
o(this, "id", P());
|
|
19
20
|
o(this, "lines", []);
|
|
@@ -25,8 +26,8 @@ class M {
|
|
|
25
26
|
}
|
|
26
27
|
get points() {
|
|
27
28
|
const i = /* @__PURE__ */ new Set();
|
|
28
|
-
return this.lines.forEach((
|
|
29
|
-
i.add(
|
|
29
|
+
return this.lines.forEach((t) => {
|
|
30
|
+
i.add(t.points[0]), i.add(t.points[1]);
|
|
30
31
|
}), Array.from(i);
|
|
31
32
|
}
|
|
32
33
|
addLine(i) {
|
|
@@ -34,8 +35,8 @@ class M {
|
|
|
34
35
|
console.error(new Error("不能重复添加线段"));
|
|
35
36
|
return;
|
|
36
37
|
}
|
|
37
|
-
const
|
|
38
|
-
if (
|
|
38
|
+
const t = this.getLastPoint(), l = t && i.findAnotherPoint(t);
|
|
39
|
+
if (t && !l) {
|
|
39
40
|
console.error(new Error("传入线段无法与当前折线进行连接"));
|
|
40
41
|
return;
|
|
41
42
|
}
|
|
@@ -51,8 +52,8 @@ class M {
|
|
|
51
52
|
this.lines.pop() && this.hook.emit("lineRemoved", i);
|
|
52
53
|
}
|
|
53
54
|
isLastLine(i) {
|
|
54
|
-
const
|
|
55
|
-
return
|
|
55
|
+
const t = this.getLastLine();
|
|
56
|
+
return t ? i.id === t.id : !1;
|
|
56
57
|
}
|
|
57
58
|
getLastLine() {
|
|
58
59
|
return this.lines.slice(-1)[0];
|
|
@@ -65,14 +66,14 @@ class M {
|
|
|
65
66
|
}
|
|
66
67
|
clear() {
|
|
67
68
|
const i = this.lines.slice();
|
|
68
|
-
this.lines.length = 0, i.reduceRight((
|
|
69
|
+
this.lines.length = 0, i.reduceRight((t, l) => this.hook.emit("lineRemoved", l), void 0);
|
|
69
70
|
}
|
|
70
71
|
/** 是否产生重叠 */
|
|
71
72
|
overlapWith(i) {
|
|
72
|
-
return i.type === "point" ? this.includes(i) : i.type === "line" ? i.points.some((
|
|
73
|
+
return i.type === "point" ? this.includes(i) : i.type === "line" ? i.points.some((t) => this.includes(t)) : i.type === "polyline" ? i.points.some((t) => this.includes(t)) : !0;
|
|
73
74
|
}
|
|
74
75
|
includes(i) {
|
|
75
|
-
return i.type === "point" ? this.points.find(({ id:
|
|
76
|
+
return i.type === "point" ? this.points.find(({ id: t }) => t === i.id) !== void 0 : i.type === "line" ? this.lines.find(({ id: t }) => t === i.id) !== void 0 : !1;
|
|
76
77
|
}
|
|
77
78
|
isEmpty() {
|
|
78
79
|
return this.lines.length === 0;
|
|
@@ -80,6 +81,9 @@ class M {
|
|
|
80
81
|
getLastPoint() {
|
|
81
82
|
return this.points.slice(-1)[0];
|
|
82
83
|
}
|
|
84
|
+
toJSON() {
|
|
85
|
+
return this.toJson();
|
|
86
|
+
}
|
|
83
87
|
toJson() {
|
|
84
88
|
return {
|
|
85
89
|
id: this.id,
|
|
@@ -88,29 +92,29 @@ class M {
|
|
|
88
92
|
};
|
|
89
93
|
}
|
|
90
94
|
getPointByID(i) {
|
|
91
|
-
return this.points.find(({ id:
|
|
95
|
+
return this.points.find(({ id: t }) => t === i);
|
|
92
96
|
}
|
|
93
97
|
fromJson(i) {
|
|
94
98
|
this.clear(), this.id = i.id;
|
|
95
|
-
const { getPoint:
|
|
96
|
-
const [d, p] =
|
|
99
|
+
const { getPoint: t } = u(), l = i.lines.map((e) => {
|
|
100
|
+
const [d, p] = e.points, n = t(d), h = t(p);
|
|
97
101
|
if (!n || !h)
|
|
98
102
|
throw new Error("线上的点不存在");
|
|
99
|
-
const s = new
|
|
100
|
-
return s.id =
|
|
103
|
+
const s = new m(n, h, this.model);
|
|
104
|
+
return s.id = e.id, s.text = e.text, s;
|
|
101
105
|
});
|
|
102
106
|
this.lines.push(...l), this.visiblePanoIndexes = i.visiblePanoIndexes;
|
|
103
107
|
function u() {
|
|
104
|
-
const
|
|
108
|
+
const e = /* @__PURE__ */ new Map();
|
|
105
109
|
function d(n) {
|
|
106
|
-
const h =
|
|
110
|
+
const h = e.get(n.id);
|
|
107
111
|
if (h)
|
|
108
112
|
return h;
|
|
109
|
-
const s = new
|
|
110
|
-
return s.id = n.id,
|
|
113
|
+
const s = new a(n.position);
|
|
114
|
+
return s.id = n.id, e.set(n.id, s), s;
|
|
111
115
|
}
|
|
112
116
|
function p() {
|
|
113
|
-
return Array.from(
|
|
117
|
+
return Array.from(e.values());
|
|
114
118
|
}
|
|
115
119
|
return { getPoint: d, getAllPoints: p };
|
|
116
120
|
}
|
|
@@ -121,5 +125,5 @@ class M {
|
|
|
121
125
|
}
|
|
122
126
|
}
|
|
123
127
|
export {
|
|
124
|
-
|
|
128
|
+
B as Polyline
|
|
125
129
|
};
|
|
@@ -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 {
|