@realsee/dnalogel 2.21.0-dev.0 → 2.21.0-dev.3
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/Components/Common/Exit.svelte.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Components/Common/Switcher0.svelte.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Components/Controller0.svelte.d.ts +1 -0
- package/dist/PanoMeasurePlugin/Controller/BaseController.d.ts +2 -0
- package/dist/PanoMeasurePlugin/Controller/EditController.d.ts +3 -5
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +3 -3
- package/dist/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
- package/dist/PanoMeasurePlugin/Modules/UIController/index.d.ts +4 -3
- package/dist/PanoMeasurePlugin/typings/data.d.ts +7 -2
- package/dist/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +1 -1
- package/dist/index.cjs.js +58 -58
- package/dist/index.js +6224 -5672
- package/dist/index.umd.js +45 -45
- package/dist/shared-utils/isTouchDevice.d.ts +1 -0
- package/dist/shared-utils/three/PointSelector.d.ts +32 -0
- package/dist/shared-utils/three/PointSelectorHelper.d.ts +50 -0
- package/dist/shared-utils/three/index.d.ts +1 -1
- package/docs/assets/search.js +1 -1
- package/docs/classes/CSS3DRender.html +5 -4
- package/docs/classes/CruisePluginController.html +5 -4
- package/docs/classes/GuideLineItem.GuideLineItem.html +5 -4
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +5 -4
- package/docs/classes/Magnifier.html +5 -4
- package/docs/classes/ModelRoomLabelController.html +5 -4
- package/docs/classes/Object3DHelperController.html +5 -4
- package/docs/classes/PaintBrush.html +5 -4
- package/docs/classes/PanoMeasurePluginLine.html +5 -4
- package/docs/classes/PanoMeasurePluginModel.html +5 -4
- package/docs/classes/PanoMeasurePluginPoint.html +9 -8
- package/docs/classes/PanoMeasurePluginPolyline.html +14 -13
- package/docs/classes/PanoTagPluginController.html +5 -4
- package/docs/classes/Util.BetterTween.html +5 -4
- package/docs/classes/Util.Interval.html +5 -4
- package/docs/classes/Util.Magnifier.html +5 -4
- package/docs/classes/Util.PointDomHelper.html +5 -4
- package/docs/classes/Util.PointHelper.html +5 -4
- package/docs/classes/{Util.FivePointSelector.html → Util.PointSelectorHelper.html} +96 -26
- package/docs/classes/Util.Rectangle.html +5 -4
- package/docs/enums/CameraMovementEffect.html +5 -4
- package/docs/enums/ContentType.html +5 -4
- package/docs/enums/DIRECTION.html +5 -4
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +5 -4
- package/docs/enums/DimensionType.html +5 -4
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +5 -4
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +5 -4
- package/docs/enums/PaintBrushTypeEnum.html +5 -4
- package/docs/enums/PointType.html +5 -4
- package/docs/enums/Rotation.html +5 -4
- package/docs/functions/CSS3DRenderPlugin.html +5 -4
- package/docs/functions/CameraMovementPlugin.html +5 -4
- package/docs/functions/CruisePlugin.html +5 -4
- package/docs/functions/GuideLinePlugin.html +5 -4
- package/docs/functions/ItemLabelPlugin.html +5 -4
- package/docs/functions/MapviewFloorplanPlugin.html +5 -4
- package/docs/functions/ModelChassisCompassPlugin.html +5 -4
- package/docs/functions/ModelEntryDoorGuidePlugin.html +5 -4
- package/docs/functions/ModelFloorplanPlugin.html +5 -4
- package/docs/functions/ModelItemLabelPlugin.html +5 -4
- package/docs/functions/ModelRoomLabelPlugin.html +5 -4
- package/docs/functions/ModelTVVideoPlugin.html +5 -4
- package/docs/functions/ModelViewPlugin.html +5 -4
- package/docs/functions/Object3DHelperPlugin.html +5 -4
- package/docs/functions/PanoCompassPlugin.html +5 -4
- package/docs/functions/PanoCursorRaycasterPlugin.html +5 -4
- package/docs/functions/PanoDoorLabelPlugin.html +5 -4
- package/docs/functions/PanoFloorplanRadarPlugin.html +5 -4
- package/docs/functions/PanoMeasurePlugin.html +5 -4
- package/docs/functions/PanoRulerPlugin.html +5 -4
- package/docs/functions/PanoRulerProPlugin.html +5 -4
- package/docs/functions/PanoSpatialTagPlugin.html +5 -4
- package/docs/functions/PanoTagPlugin.html +5 -4
- package/docs/functions/PanoVideoPlugin.html +5 -4
- package/docs/functions/TopviewFloorplanPlugin.html +5 -4
- package/docs/functions/Util.getCoordsFromClient.html +5 -4
- package/docs/functions/Util.getCoordsFromElement.html +5 -4
- package/docs/functions/Util.getFrameTime.html +5 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +5 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +5 -4
- package/docs/functions/Util.isAbsoluteURL.html +5 -4
- package/docs/functions/Util.isModelLike.html +5 -4
- package/docs/functions/Util.isNil.html +5 -4
- package/docs/functions/Util.isPanoramaLike.html +5 -4
- package/docs/functions/Util.nextFrame.html +5 -4
- package/docs/functions/Util.notNil.html +5 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +5 -4
- package/docs/functions/Util.tweenProgress.html +5 -4
- package/docs/functions/Util.uuid.html +5 -4
- package/docs/functions/pluginFlag.html +5 -4
- package/docs/index.html +6 -5
- package/docs/interfaces/AddTagConfig.html +5 -4
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +5 -4
- package/docs/interfaces/CSS3DRenderPluginState.html +5 -4
- package/docs/interfaces/CameraMovementPluginExportType.html +5 -4
- package/docs/interfaces/CruisePluginTypes.Config.html +5 -4
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +5 -4
- package/docs/interfaces/CruisePluginTypes.EventMap.html +5 -4
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +5 -4
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +5 -4
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +5 -4
- package/docs/interfaces/CruisePluginTypes.PluginData.html +5 -4
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +5 -4
- package/docs/interfaces/CruisePluginTypes.PluginState.html +5 -4
- package/docs/interfaces/EventMap.html +5 -4
- package/docs/interfaces/FloorplanBounding.html +5 -4
- package/docs/interfaces/FloorplanData.html +5 -4
- package/docs/interfaces/FloorplanEntrance.html +5 -4
- package/docs/interfaces/FloorplanExtraObject.html +5 -4
- package/docs/interfaces/FloorplanExtraObject3D.html +5 -4
- package/docs/interfaces/FloorplanFloorData.html +5 -4
- package/docs/interfaces/FloorplanImagePosition.html +5 -4
- package/docs/interfaces/FloorplanObserver.html +5 -4
- package/docs/interfaces/FloorplanOutlineItem.html +5 -4
- package/docs/interfaces/FloorplanPosition.html +5 -4
- package/docs/interfaces/FloorplanRoomItem.html +5 -4
- package/docs/interfaces/FloorplanRoomLabelItem.html +5 -4
- package/docs/interfaces/FloorplanServerBounding.html +5 -4
- package/docs/interfaces/FloorplanServerComputedData.html +5 -4
- package/docs/interfaces/FloorplanServerData.html +5 -4
- package/docs/interfaces/FloorplanServerDoorItem.html +5 -4
- package/docs/interfaces/FloorplanServerDoorPosition.html +5 -4
- package/docs/interfaces/FloorplanServerEntrance.html +5 -4
- package/docs/interfaces/FloorplanServerFloorData.html +5 -4
- package/docs/interfaces/FloorplanServerImagePosition.html +5 -4
- package/docs/interfaces/FloorplanServerObserver.html +5 -4
- package/docs/interfaces/FloorplanServerOutlineItem.html +5 -4
- package/docs/interfaces/FloorplanServerPosition.html +5 -4
- package/docs/interfaces/FloorplanServerRoomItem.html +5 -4
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +5 -4
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +5 -4
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +5 -4
- package/docs/interfaces/GuideLinePluginType.EventMap.html +5 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +5 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -4
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +5 -4
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +5 -4
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +5 -4
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +5 -4
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +5 -4
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +5 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +5 -4
- package/docs/interfaces/GuideLinePluginType.PluginState.html +5 -4
- package/docs/interfaces/GuideLinePluginType.Route.html +5 -4
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +5 -4
- package/docs/interfaces/HelperOffset.html +5 -4
- package/docs/interfaces/ImagePlaneGroup.html +5 -4
- package/docs/interfaces/ItemLabelPluginData.html +5 -4
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +5 -4
- package/docs/interfaces/ItemLabelPluginParametersType.html +5 -4
- package/docs/interfaces/MinMax.html +5 -4
- package/docs/interfaces/ModelChassisCompassPluginData.html +5 -4
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +5 -4
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +5 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +5 -4
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +5 -4
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -4
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +5 -4
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +5 -4
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -4
- package/docs/interfaces/ModelTVVideoPluginData.html +5 -4
- package/docs/interfaces/ModelTVVideoPluginExportType.html +5 -4
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -4
- package/docs/interfaces/ModelViewPluginExportType.html +5 -4
- package/docs/interfaces/Object3DHelperState.html +5 -4
- package/docs/interfaces/ObjectHelperControllers.html +5 -4
- package/docs/interfaces/PaintBrushAction.html +5 -4
- package/docs/interfaces/PaintBrushConfigs.html +5 -4
- package/docs/interfaces/PaintBrushState.html +5 -4
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +5 -4
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +5 -4
- package/docs/interfaces/PanoMeasureParameterType.html +5 -4
- package/docs/interfaces/PanoMeasurePluginLineJson.html +5 -4
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +5 -4
- package/docs/interfaces/PanoMeasurePluginPointJson.html +5 -4
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +5 -4
- package/docs/interfaces/PanoRulerPluginExportType.html +5 -4
- package/docs/interfaces/PanoRulerPluginOptions.html +5 -4
- package/docs/interfaces/PanoRulerPluginParameterType.html +5 -4
- package/docs/interfaces/PanoRulerProPluginExportType.html +5 -4
- package/docs/interfaces/PanoRulerProPluginOptions.html +5 -4
- package/docs/interfaces/PanoRulerProPluginParameterType.html +5 -4
- package/docs/interfaces/PanoRulerProPluginState.html +5 -4
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +5 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +5 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +5 -4
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +5 -4
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +5 -4
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +5 -4
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +5 -4
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +5 -4
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +5 -4
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -4
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +5 -4
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -4
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +5 -4
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -4
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +5 -4
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +5 -4
- package/docs/interfaces/Point.html +5 -4
- package/docs/interfaces/Room.html +5 -4
- package/docs/interfaces/RoomInfo.html +5 -4
- package/docs/interfaces/RoomLabel.html +5 -4
- package/docs/interfaces/RoomRules.html +5 -4
- package/docs/interfaces/Rooms.html +5 -4
- package/docs/interfaces/Scissor.html +5 -4
- package/docs/interfaces/State.html +5 -4
- package/docs/interfaces/TagCacheInterface.html +5 -4
- package/docs/interfaces/TagConfig.html +5 -4
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -4
- package/docs/interfaces/TagIconUrl.html +5 -4
- package/docs/interfaces/TagObjectGroup.html +5 -4
- package/docs/interfaces/TagStyle.html +5 -4
- package/docs/interfaces/Tags.html +5 -4
- package/docs/interfaces/TemporaryState.html +5 -4
- package/docs/interfaces/Util.MagnifierParameter.html +5 -4
- package/docs/interfaces/Util.MouseGroupParameter.html +5 -4
- package/docs/interfaces/Util.PointIntersection.html +407 -0
- package/docs/modules/CruisePluginTypes.html +5 -4
- package/docs/modules/GuideLineItem.html +5 -4
- package/docs/modules/GuideLineModeItem.html +5 -4
- package/docs/modules/GuideLinePluginType.html +5 -4
- package/docs/modules/PanoVideoPluginType.html +5 -4
- package/docs/modules/Util.html +7 -5
- package/docs/modules.html +6 -5
- package/docs/types/ArrayPosition.html +5 -4
- package/docs/types/AudioAppearance.html +5 -4
- package/docs/types/AudioTagTypeConfigKey.html +5 -4
- package/docs/types/CSS3DRenderExportType.html +5 -4
- package/docs/types/CSS3DRenderPluginExportType.html +5 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +5 -4
- package/docs/types/ClassFunctionParameters.html +5 -4
- package/docs/types/Color.html +5 -4
- package/docs/types/ContentTypeConfigKey.html +5 -4
- package/docs/types/ContentTypeConfigKeySplit.html +5 -4
- package/docs/types/ContentTypeMap.html +5 -4
- package/docs/types/Create3DDomContainerReturnType.html +5 -4
- package/docs/types/Create3DElementReturnType.html +5 -4
- package/docs/types/CruisePluginExportType.html +5 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +5 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +5 -4
- package/docs/types/DeprecatedMediaPlaneProperty.html +5 -4
- package/docs/types/DeprecatedTagProperty.html +5 -4
- package/docs/types/Direction-1.html +5 -4
- package/docs/types/Direction4.html +5 -4
- package/docs/types/ElementRenderer.html +5 -4
- package/docs/types/FloorplanRuleLabels.html +5 -4
- package/docs/types/FloorplanServerRuleLabels.html +5 -4
- package/docs/types/GuideLinePluginExportType.html +5 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +5 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +5 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +5 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +5 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +5 -4
- package/docs/types/GuideLinePluginType.PathItem.html +5 -4
- package/docs/types/GuideLinePluginType.PluginData.html +5 -4
- package/docs/types/HelperEventMap.html +5 -4
- package/docs/types/LoadTagConfig.html +5 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +5 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +5 -4
- package/docs/types/MediaData.html +5 -4
- package/docs/types/MediaStore.html +5 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +5 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +5 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +5 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +5 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +5 -4
- package/docs/types/MoveArgs.html +5 -4
- package/docs/types/MoveOpts.html +5 -4
- package/docs/types/Object3DHelperEventMap.html +5 -4
- package/docs/types/ObjectFit.html +5 -4
- package/docs/types/PaintBrushEventMap.html +5 -4
- package/docs/types/PanoCompassPluginData.html +5 -4
- package/docs/types/PanoCompassPluginExportType.html +5 -4
- package/docs/types/PanoCompassPluginParameterType.html +5 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +5 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +5 -4
- package/docs/types/PanoIndex.html +5 -4
- package/docs/types/PanoMeasurePluginEvent.html +5 -4
- package/docs/types/PanoMeasureReturnType.html +5 -4
- package/docs/types/PanoSpatialTagPluginId.html +5 -4
- package/docs/types/PanoTagPluginExportInterface.html +5 -4
- package/docs/types/PanoTagPluginParamsInterface.html +5 -4
- package/docs/types/PanoVideoPluginParameterType.html +5 -4
- package/docs/types/PanoVideoPluginReturnType.html +5 -4
- package/docs/types/PartialObjectDeep.html +5 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +5 -4
- package/docs/types/PlaneTag.html +5 -4
- package/docs/types/Point2DTag.html +5 -4
- package/docs/types/Point3DTag.html +5 -4
- package/docs/types/PointTag.html +5 -4
- package/docs/types/PointTagInstance.html +5 -4
- package/docs/types/Position.html +5 -4
- package/docs/types/RotateArgs.html +5 -4
- package/docs/types/RotateOpts.html +5 -4
- package/docs/types/RuleLabelsKey.html +5 -4
- package/docs/types/RuleLabelsValue.html +5 -4
- package/docs/types/StickType.html +5 -4
- package/docs/types/Tag.html +5 -4
- package/docs/types/Tag2D.html +5 -4
- package/docs/types/Tag3D.html +5 -4
- package/docs/types/TagContentType.html +5 -4
- package/docs/types/TagDimensionType.html +5 -4
- package/docs/types/TagElement.html +5 -4
- package/docs/types/TagEvents.html +5 -4
- package/docs/types/TagGLTFObject.html +5 -4
- package/docs/types/TagHooks.html +5 -4
- package/docs/types/TagId.html +5 -4
- package/docs/types/TagInstance.html +5 -4
- package/docs/types/TagPointType.html +5 -4
- package/docs/types/TagRendererMap.html +5 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +5 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +5 -4
- package/docs/types/WorkCode.html +5 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +5 -4
- package/docs/variables/PLUGIN.html +5 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +5 -4
- package/docs/variables/ROOM_TYPE_MAP.html +5 -4
- package/docs/variables/itemLabelPluginServerParams.html +5 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +5 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +5 -4
- package/libs/PanoMeasurePlugin/Components/Common/Exit.js +42 -0
- package/libs/PanoMeasurePlugin/Components/Common/Exit.svelte.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Components/Controller0.js +81 -68
- package/libs/PanoMeasurePlugin/Components/Controller1.js +195 -97
- package/libs/PanoMeasurePlugin/Controller/BaseController.d.ts +2 -0
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +7 -6
- package/libs/PanoMeasurePlugin/Controller/EditController.d.ts +3 -5
- package/libs/PanoMeasurePlugin/Controller/EditController.js +124 -95
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +3 -3
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +3 -3
- package/libs/PanoMeasurePlugin/Controller/index.js +65 -49
- package/libs/PanoMeasurePlugin/Model/point.js +17 -12
- package/libs/PanoMeasurePlugin/Model/polygon.js +11 -10
- package/libs/PanoMeasurePlugin/Model/polyline.js +6 -6
- package/libs/PanoMeasurePlugin/Modules/GuideController.d.ts +1 -1
- package/libs/PanoMeasurePlugin/Modules/UIController/index.d.ts +4 -3
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +99 -31
- package/libs/PanoMeasurePlugin/index.js +46 -31
- package/libs/PanoMeasurePlugin/typings/data.d.ts +7 -2
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +3 -3
- package/libs/PanoMeasurePlugin/utils/dom/base.js +1 -1
- package/libs/PanoMeasurePlugin/utils/getIntersectionFromEvent.d.ts +1 -1
- package/libs/base/BasePlugin.js +1 -1
- package/libs/index.js +120 -115
- package/libs/shared-utils/index.js +6 -6
- package/libs/shared-utils/isTouchDevice.d.ts +1 -0
- package/libs/shared-utils/isTouchDevice.js +4 -0
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/PointSelector.d.ts +32 -0
- package/libs/shared-utils/three/PointSelector.js +68 -0
- package/libs/shared-utils/three/PointSelectorHelper.d.ts +50 -0
- package/libs/shared-utils/three/PointSelectorHelper.js +100 -0
- package/libs/shared-utils/three/index.d.ts +1 -1
- package/package.json +1 -1
- package/dist/shared-utils/three/FivePointSelector.d.ts +0 -36
- package/libs/shared-utils/three/FivePointSelector.d.ts +0 -36
- package/libs/shared-utils/three/FivePointSelector.js +0 -49
|
@@ -10,11 +10,11 @@ export default class EditController extends BaseController {
|
|
|
10
10
|
/** 拖动的控制点 */
|
|
11
11
|
private pressPoint?;
|
|
12
12
|
private hasAppendDashed;
|
|
13
|
-
private hasAppendMouseGroup;
|
|
14
13
|
private fiveElement?;
|
|
15
14
|
/** 上一个端点位置 */
|
|
16
15
|
private lastPoint;
|
|
17
16
|
private hammer?;
|
|
17
|
+
private pointSelector;
|
|
18
18
|
/** 根据 intersection 更新放大镜和吸附点 */
|
|
19
19
|
private onIntersectionUpdate;
|
|
20
20
|
constructor(params: ControllerParams);
|
|
@@ -30,6 +30,7 @@ export default class EditController extends BaseController {
|
|
|
30
30
|
* @description: 测距的撤销功能
|
|
31
31
|
*/
|
|
32
32
|
revokeLine: (_polyline?: Polyline) => void;
|
|
33
|
+
selectPoint(): void;
|
|
33
34
|
private onMouseLeave;
|
|
34
35
|
/** 编辑线条发生改变时通知外部 */
|
|
35
36
|
private onLineChanged;
|
|
@@ -43,12 +44,9 @@ export default class EditController extends BaseController {
|
|
|
43
44
|
/**
|
|
44
45
|
* 1. 如果存在上一个点,需要绘制当前点到上一个点的连线
|
|
45
46
|
* 2. 把上一个点的位置更新为当前点的位置
|
|
46
|
-
* 3. 清除
|
|
47
|
+
* 3. 清除 pointSelector
|
|
47
48
|
*/
|
|
48
49
|
private onTap;
|
|
49
|
-
private onWantsTapGesture;
|
|
50
|
-
/** 编辑时取消走点 */
|
|
51
|
-
private onWantsToMoveToPano;
|
|
52
50
|
/** 存在长按点时不能移动全景 */
|
|
53
51
|
private onWantsPanGesture;
|
|
54
52
|
/** 移动全景时更新 distanceItem 在屏幕上的位置 */
|
|
@@ -1,15 +1,16 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
1
|
+
var g = Object.defineProperty;
|
|
2
|
+
var y = (h, r, t) => r in h ? g(h, r, { enumerable: !0, configurable: !0, writable: !0, value: t }) : h[r] = t;
|
|
3
|
+
var o = (h, r, t) => (y(h, typeof r != "symbol" ? r + "" : r, t), t);
|
|
4
4
|
import C from "hammerjs";
|
|
5
|
-
import
|
|
5
|
+
import k from "../Model/line.js";
|
|
6
6
|
import c from "../Model/point.js";
|
|
7
|
-
import { throttle as
|
|
8
|
-
import
|
|
7
|
+
import { throttle as L } from "../../shared-utils/throttle.js";
|
|
8
|
+
import I from "./BaseController.js";
|
|
9
9
|
import { getIntersectionFromEvent as f } from "../utils/getIntersectionFromEvent.js";
|
|
10
|
-
import { Polyline as
|
|
11
|
-
import
|
|
12
|
-
import
|
|
10
|
+
import { Polyline as u } from "../Model/polyline.js";
|
|
11
|
+
import v from "../Model/area.js";
|
|
12
|
+
import P from "../utils/isIntersecting.js";
|
|
13
|
+
import { PointSelector as A } from "../../shared-utils/three/PointSelector.js";
|
|
13
14
|
import "../../shared-utils/uuid.js";
|
|
14
15
|
import "../utils/line.js";
|
|
15
16
|
import "@realsee/five/line";
|
|
@@ -29,182 +30,210 @@ import "earcut";
|
|
|
29
30
|
import "../utils/dom/areaDom.js";
|
|
30
31
|
import "../utils/geometryUtil.js";
|
|
31
32
|
import "../../shared-utils/three/centerPoint.js";
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
33
|
+
import "../../shared-utils/three/PointSelectorHelper.js";
|
|
34
|
+
import "../../shared-utils/three/Magnifier.js";
|
|
35
|
+
import "../../shared-utils/three/getIntersect.js";
|
|
36
|
+
import "../../shared-utils/three/PointHelper.js";
|
|
37
|
+
import "../../shared-utils/three/Assets/index.js";
|
|
38
|
+
import "../../shared-utils/three/PointDomHelper.js";
|
|
39
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
40
|
+
import "../Modules/rangePiece/html.js";
|
|
41
|
+
import "../../CSS3DRenderPlugin/index.js";
|
|
42
|
+
import "../../CSS3DRenderPlugin/Controller.js";
|
|
43
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
44
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
45
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
46
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
47
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
48
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
49
|
+
import "../../shared-utils/Subscribe.js";
|
|
50
|
+
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
51
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
52
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
53
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
54
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
55
|
+
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
56
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
57
|
+
import "../../shared-utils/isAbsoluteURL.js";
|
|
58
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
59
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
60
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
61
|
+
class we extends I {
|
|
62
|
+
constructor(t) {
|
|
63
|
+
var s;
|
|
64
|
+
super(t);
|
|
65
|
+
o(this, "type", "edit");
|
|
66
|
+
o(this, "polyline");
|
|
67
|
+
o(this, "area");
|
|
39
68
|
/** 拖动的控制点 */
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
s(this, "fiveElement");
|
|
69
|
+
o(this, "pressPoint");
|
|
70
|
+
o(this, "hasAppendDashed", !1);
|
|
71
|
+
o(this, "fiveElement");
|
|
44
72
|
/** 上一个端点位置 */
|
|
45
|
-
|
|
46
|
-
|
|
73
|
+
o(this, "lastPoint", null);
|
|
74
|
+
o(this, "hammer");
|
|
75
|
+
o(this, "pointSelector");
|
|
47
76
|
/** 根据 intersection 更新放大镜和吸附点 */
|
|
48
|
-
|
|
49
|
-
var
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
(t = this.pressPoint) == null || t.position.copy(o), this.updateDashed(), requestAnimationFrame(() => this.magnifier.renderWithPoint(this.mouseGroup.position)), this.five.needsRender = !0;
|
|
77
|
+
o(this, "onIntersectionUpdate", L((t) => {
|
|
78
|
+
var s;
|
|
79
|
+
const e = t.point;
|
|
80
|
+
(s = this.pressPoint) == null || s.position.copy(e), this.updateDashed(), this.five.needsRender = !0;
|
|
53
81
|
}, 20));
|
|
54
82
|
/** 撤销编辑 */
|
|
55
|
-
|
|
83
|
+
o(this, "revoke", () => {
|
|
56
84
|
this.currentMeasureType === "area" ? this.revokeArea() : this.currentMeasureType === "line" && this.revokeLine();
|
|
57
85
|
});
|
|
58
86
|
/**
|
|
59
87
|
* @description: 测面积的撤销功能
|
|
60
88
|
*/
|
|
61
|
-
|
|
62
|
-
this.area.points.length !== 0 && (this.revokeLine(this.area.polyline), this.area.points.pop(), this.area.refresh());
|
|
89
|
+
o(this, "revokeArea", () => {
|
|
90
|
+
this.area.points.length !== 0 && (this.revokeLine(this.area.polyline), this.area.points.pop(), this.area.refresh(), this.five.needsRender = !0);
|
|
63
91
|
});
|
|
64
92
|
/**
|
|
65
93
|
* @description: 测距的撤销功能
|
|
66
94
|
*/
|
|
67
|
-
|
|
68
|
-
const e =
|
|
95
|
+
o(this, "revokeLine", (t) => {
|
|
96
|
+
const e = t || this.polyline;
|
|
69
97
|
if (e.lines.length === 0 && this.lastPoint) {
|
|
70
98
|
this.lastPoint = null, this.hasAppendDashed = !1, this.dashed.remove(), this.hook.emit("anchorChange", null), this.hook.emit("editedDashedLineChange", null), this.five.needsRender = !0;
|
|
71
99
|
return;
|
|
72
100
|
}
|
|
73
101
|
if (e.lines.length === 0 && !this.lastPoint || !this.lastPoint)
|
|
74
102
|
return;
|
|
75
|
-
const
|
|
76
|
-
|
|
103
|
+
const s = e.lines[e.lines.length - 1], i = s.findAnotherPoint(this.lastPoint);
|
|
104
|
+
i && (this.lastPoint = i, this.hook.emit("anchorChange", i.position), this.group.remove(s.mesh), e.removeLine(s), s.distanceItem.remove(), this.updateDashed(), this.five.needsRender = !0);
|
|
77
105
|
});
|
|
78
|
-
|
|
79
|
-
this.
|
|
106
|
+
o(this, "onMouseLeave", () => {
|
|
107
|
+
this.lastPoint && (this.pointSelector.position.point.copy(this.lastPoint.position), this.updateDashed()), this.area.hideArea();
|
|
80
108
|
});
|
|
81
109
|
/** 编辑线条发生改变时通知外部 */
|
|
82
|
-
|
|
110
|
+
o(this, "onLineChanged", () => {
|
|
83
111
|
this.hook.emit("editedPolylineChange", this.polyline);
|
|
84
112
|
});
|
|
85
|
-
|
|
86
|
-
const [e] = f(this.five,
|
|
113
|
+
o(this, "onPress", (t) => {
|
|
114
|
+
const [e] = f(this.five, t);
|
|
87
115
|
if (!(e != null && e.face))
|
|
88
116
|
return;
|
|
89
|
-
const
|
|
90
|
-
this.pressPoint =
|
|
117
|
+
const s = new c(e.point);
|
|
118
|
+
this.pressPoint = s, this.onIntersectionUpdate(e);
|
|
91
119
|
});
|
|
92
120
|
/**
|
|
93
121
|
* 1. 如果之前没有长按行为「即没有长按点时」-> 滑动全景
|
|
94
122
|
* 2. 如果有长按点,把长按点位置更新为当前位置
|
|
95
123
|
*/
|
|
96
|
-
|
|
124
|
+
o(this, "onPan", (t) => {
|
|
97
125
|
if (!this.pressPoint)
|
|
98
126
|
return;
|
|
99
|
-
const [e] = f(this.five,
|
|
127
|
+
const [e] = f(this.five, t);
|
|
100
128
|
e != null && e.face && this.onIntersectionUpdate(e);
|
|
101
129
|
});
|
|
102
|
-
|
|
103
|
-
this.pressPoint && this.onTap(
|
|
130
|
+
o(this, "onPanEnd", () => {
|
|
131
|
+
this.pressPoint && this.onTap();
|
|
104
132
|
});
|
|
105
133
|
/**
|
|
106
134
|
* 1. 如果存在上一个点,需要绘制当前点到上一个点的连线
|
|
107
135
|
* 2. 把上一个点的位置更新为当前点的位置
|
|
108
|
-
* 3. 清除
|
|
136
|
+
* 3. 清除 pointSelector
|
|
109
137
|
*/
|
|
110
|
-
|
|
111
|
-
var
|
|
138
|
+
o(this, "onTap", () => {
|
|
139
|
+
var i, a, d, l;
|
|
112
140
|
this.hasAppendDashed || (this.dashed.distanceItem.appendTo(this.container), this.group.add(this.dashed.mesh), this.currentMeasureType === "area" && this.group.add(this.perpendicularDashed.mesh)), this.hasAppendDashed = !0;
|
|
113
|
-
const
|
|
114
|
-
this.updateMouseGroup(e);
|
|
115
|
-
const o = (() => {
|
|
141
|
+
const t = (() => {
|
|
116
142
|
if (this.currentMeasureType === "area")
|
|
117
|
-
return this.area.projectPoint(this.
|
|
143
|
+
return this.area.projectPoint(this.pointSelector.position.point);
|
|
118
144
|
if (this.currentMeasureType === "line")
|
|
119
|
-
return this.
|
|
145
|
+
return this.pointSelector.position.point;
|
|
120
146
|
})();
|
|
121
|
-
if (!
|
|
147
|
+
if (!t)
|
|
122
148
|
return;
|
|
123
|
-
const
|
|
124
|
-
if (this.lastPoint =
|
|
125
|
-
if (
|
|
126
|
-
const
|
|
127
|
-
|
|
149
|
+
const e = new c(t), s = this.lastPoint;
|
|
150
|
+
if (this.lastPoint = e, this.currentMeasureType === "line") {
|
|
151
|
+
if (e && s) {
|
|
152
|
+
const p = new k(s, e, this.model);
|
|
153
|
+
p.distanceItem.setCanSelect(!1), p.distanceItem.appendTo(this.container), this.polyline.addLine(p), this.group.add(p.mesh), p.distanceItem.update(this.five);
|
|
128
154
|
}
|
|
129
|
-
const n = (
|
|
130
|
-
typeof n == "number" && (this.polyline.getPointLength() >= n ? (this.hook.emit("complete"), this.polyline = new
|
|
155
|
+
const n = (a = (i = this.editParams) == null ? void 0 : i.autoEndConfig) == null ? void 0 : a.line;
|
|
156
|
+
typeof n == "number" && (this.polyline.getPointLength() >= n ? (this.hook.emit("complete"), this.polyline = new u({ model: this.model }), this.model.addPolyline(this.polyline), this.lastPoint = void 0) : this.polyline.getPointLength() === n - 1 && this.hook.emit("readyComplete"));
|
|
131
157
|
} else if (this.currentMeasureType === "area") {
|
|
132
|
-
this.area.addPoints(
|
|
133
|
-
const n = (
|
|
134
|
-
typeof n == "number" && (this.area.points.length >= n ? (this.hook.emit("complete"), this.area = new
|
|
158
|
+
this.area.addPoints(e.position);
|
|
159
|
+
const n = (l = (d = this.editParams) == null ? void 0 : d.autoEndConfig) == null ? void 0 : l.area;
|
|
160
|
+
typeof n == "number" && (this.area.points.length >= n ? (this.hook.emit("complete"), this.area = new v(void 0, {
|
|
135
161
|
five: this.five,
|
|
136
162
|
model: this.model,
|
|
137
163
|
meshContainer: this.group,
|
|
138
164
|
domContainer: this.container
|
|
139
165
|
}), this.model.addArea(this.area), this.lastPoint = void 0) : this.area.points.length === n - 1 && this.hook.emit("readyComplete"));
|
|
140
166
|
}
|
|
141
|
-
this.pressPoint = void 0, this.
|
|
167
|
+
this.pressPoint = void 0, this.updateDashed(), this.five.needsRender = !0, this.hook.emit("anchorChange", e.position);
|
|
142
168
|
});
|
|
143
|
-
s(this, "onWantsTapGesture", () => !1);
|
|
144
|
-
/** 编辑时取消走点 */
|
|
145
|
-
s(this, "onWantsToMoveToPano", () => !1);
|
|
146
169
|
/** 存在长按点时不能移动全景 */
|
|
147
|
-
|
|
170
|
+
o(this, "onWantsPanGesture", () => this.pressPoint ? !1 : void 0);
|
|
148
171
|
/** 移动全景时更新 distanceItem 在屏幕上的位置 */
|
|
149
|
-
|
|
172
|
+
o(this, "onCameraUpdate", () => {
|
|
150
173
|
this.updateDistanceUI();
|
|
151
174
|
});
|
|
152
175
|
/** 更新虚线 */
|
|
153
|
-
|
|
176
|
+
o(this, "updateDashed", () => {
|
|
154
177
|
if (!this.lastPoint)
|
|
155
178
|
return;
|
|
156
|
-
const
|
|
179
|
+
const t = this.lastPoint.position, e = (() => {
|
|
157
180
|
if (this.currentMeasureType === "area")
|
|
158
|
-
return this.area.projectPoint(this.
|
|
181
|
+
return this.area.projectPoint(this.pointSelector.position.point);
|
|
159
182
|
if (this.currentMeasureType === "line")
|
|
160
|
-
return this.
|
|
183
|
+
return this.pointSelector.position.point;
|
|
161
184
|
})();
|
|
162
|
-
if (this.dashed.setPoints(
|
|
185
|
+
if (this.dashed.setPoints(t, e), this.dashed.distanceItem.update(this.five), this.hook.emit("editedDashedLineChange", this.dashed), this.currentMeasureType === "area") {
|
|
163
186
|
this.area.areaItem.setCanSelect(!1);
|
|
164
|
-
const
|
|
187
|
+
const s = this.pointSelector.position.point;
|
|
165
188
|
if (this.area.points.length >= 2) {
|
|
166
|
-
const
|
|
167
|
-
if (l ||
|
|
189
|
+
const d = this.area.polyline.lines.map((m) => ({ start: m.points[0].position, end: m.points[1].position })), l = P({ start: t, end: e }, d), n = P({ start: e, end: this.area.points[0] }, d);
|
|
190
|
+
if (l || n)
|
|
168
191
|
this.area.hideArea(), this.hook.emit("allowAddPointStateChange", "forbid");
|
|
169
192
|
else {
|
|
170
193
|
this.area.showArea();
|
|
171
|
-
const
|
|
172
|
-
this.area.polygon.updatePoints(
|
|
194
|
+
const m = [...this.area.points, e];
|
|
195
|
+
this.area.polygon.updatePoints(m), this.area.areaItem.updateArea(this.five), this.hook.emit("allowAddPointStateChange", "allow");
|
|
173
196
|
}
|
|
174
197
|
} else
|
|
175
198
|
this.area.hideArea();
|
|
176
|
-
const
|
|
177
|
-
this.perpendicularDashed.setPoints(
|
|
199
|
+
const i = s, a = e;
|
|
200
|
+
this.perpendicularDashed.setPoints(i, a), this.perpendicularDashed.distanceItem.update(this.five);
|
|
178
201
|
}
|
|
179
202
|
});
|
|
180
|
-
this.
|
|
203
|
+
this.pointSelector = new A(this.five, {
|
|
204
|
+
mode: this.editParams.pointSelectorMode,
|
|
205
|
+
pointSelectorHelperParams: { magnifierParams: this.magnifierParams }
|
|
206
|
+
}), this.pointSelector.enable(), this.polyline = new u({ model: this.model }), this.area = new v(void 0, {
|
|
181
207
|
five: this.five,
|
|
182
208
|
model: this.model,
|
|
183
209
|
meshContainer: this.group,
|
|
184
210
|
domContainer: this.container
|
|
185
|
-
}), this.model.addPolyline(this.polyline), this.model.addArea(this.area), this.model.getAllLines().forEach((
|
|
186
|
-
|
|
187
|
-
}), this.model.getAllAreas().forEach((
|
|
188
|
-
|
|
189
|
-
|
|
211
|
+
}), this.model.addPolyline(this.polyline), this.model.addArea(this.area), this.model.getAllLines().forEach((i) => {
|
|
212
|
+
i.distanceItem.appendTo(this.container), i.distanceItem.update(this.five), this.group.add(i.mesh);
|
|
213
|
+
}), this.model.getAllAreas().forEach((i) => {
|
|
214
|
+
i.areaItem.appendTo(this.container), i.areaItem.updateDomPosition(this.five), i.areaItem.setCanSelect(!0), this.group.add(i.polygon), i.polyline.lines.forEach((a) => {
|
|
215
|
+
a.distanceItem.appendTo(this.container), a.distanceItem.update(this.five), this.group.add(a.mesh);
|
|
190
216
|
});
|
|
191
|
-
}), this.five.on("cameraUpdate", this.onCameraUpdate), this.
|
|
217
|
+
}), this.five.on("cameraUpdate", this.onCameraUpdate), this.pointSelector.hook.on("intersectionUpdate", this.onIntersectionUpdate), this.polyline.hook.on("lineAdded", this.onLineChanged), this.polyline.hook.on("lineRemoved", this.onLineChanged);
|
|
192
218
|
const e = this.five.getElement();
|
|
193
219
|
if (e) {
|
|
194
220
|
this.fiveElement = e;
|
|
195
|
-
const
|
|
196
|
-
this.hammer =
|
|
221
|
+
const i = new C(e);
|
|
222
|
+
this.hammer = i, i.on("tap", this.onTap), i.on("pan", this.onPan), i.on("press", this.onPress), i.on("panend", this.onPanEnd);
|
|
197
223
|
}
|
|
198
|
-
this.five.helperVisible = !1, (
|
|
224
|
+
this.five.helperVisible = !1, (s = this.fiveElement) == null || s.addEventListener("mouseleave", this.onMouseLeave), this.hook.emit("anchorChange", null), this.hook.emit("editedDashedLineChange", null), this.five.refresh();
|
|
199
225
|
}
|
|
200
226
|
dispose() {
|
|
201
|
-
var
|
|
202
|
-
super.dispose(), this.five.helperVisible = !0, this.
|
|
227
|
+
var t, e;
|
|
228
|
+
super.dispose(), this.five.helperVisible = !0, this.pointSelector.disable(), this.dashed.remove(), this.perpendicularDashed.remove(), this.five.off("cameraUpdate", this.onCameraUpdate), this.pointSelector.hook.off("intersectionUpdate", this.onIntersectionUpdate), this.polyline.hook.off("lineAdded", this.onLineChanged), this.polyline.hook.off("lineRemoved", this.onLineChanged), (t = this.hammer) == null || t.destroy(), (e = this.fiveElement) == null || e.removeEventListener("mouseleave", this.onMouseLeave), this.magnifier.dispose(), this.dashed.distanceItem.remove(), this.five.needsRender = !0;
|
|
203
229
|
}
|
|
204
230
|
getEditingLines() {
|
|
205
231
|
return this.polyline.lines;
|
|
206
232
|
}
|
|
233
|
+
selectPoint() {
|
|
234
|
+
this.onTap();
|
|
235
|
+
}
|
|
207
236
|
}
|
|
208
237
|
export {
|
|
209
|
-
|
|
238
|
+
we as default
|
|
210
239
|
};
|
|
@@ -101,7 +101,7 @@ class Pe extends G {
|
|
|
101
101
|
if (t instanceof x) {
|
|
102
102
|
const o = this.model.areas.find((h) => h.polygon === t);
|
|
103
103
|
if (o) {
|
|
104
|
-
const { x: h, y: f } = i[0].point.project(this.five.camera), p = `${(h + 1) / 2 * 100}%`, m = `${(-f + 1) / 2 * 100}%`;
|
|
104
|
+
const { x: h, y: f } = i[0].point.clone().project(this.five.camera), p = `${(h + 1) / 2 * 100}%`, m = `${(-f + 1) / 2 * 100}%`;
|
|
105
105
|
return this.chooseArea(o, { left: p, top: m }), !1;
|
|
106
106
|
}
|
|
107
107
|
}
|
|
@@ -136,7 +136,7 @@ class Pe extends G {
|
|
|
136
136
|
);
|
|
137
137
|
});
|
|
138
138
|
s(this, "chooseArea", (e, i) => {
|
|
139
|
-
|
|
139
|
+
this.choose = e, this.deleteDom.updatePosition(i.left, `calc(${i.top} - 20px)`).show(), this.highlightArea(e);
|
|
140
140
|
});
|
|
141
141
|
s(this, "polylineRemoved", (e) => {
|
|
142
142
|
e.lines.forEach((i) => this.removeLine(i)), this.hook.emit(
|
|
@@ -166,7 +166,7 @@ class Pe extends G {
|
|
|
166
166
|
}).appendTo(this.container), this.model.getAllLines().forEach((t) => {
|
|
167
167
|
t.distanceItem.appendTo(this.container), t.distanceItem.update(this.five), t.hook.on("selected", this.chooseLine), t.distanceItem.setCanSelect(!0), this.group.add(t.mesh);
|
|
168
168
|
}), this.model.getAllAreas().forEach((t) => {
|
|
169
|
-
t.areaItem.appendTo(this.container), t.areaItem.
|
|
169
|
+
t.areaItem.appendTo(this.container), t.areaItem.updateArea(this.five), t.hook.on("selected", this.chooseArea), t.areaItem.setCanSelect(!0), this.group.add(t.polygon), t.polyline.lines.forEach((n) => {
|
|
170
170
|
n.distanceItem.appendTo(this.container), n.distanceItem.update(this.five), this.group.add(n.mesh);
|
|
171
171
|
});
|
|
172
172
|
});
|
|
@@ -26,14 +26,14 @@ export default class MeasureController {
|
|
|
26
26
|
hook: Subscribe<PanoMeasurePluginEvent>;
|
|
27
27
|
magnifier: Magnifier;
|
|
28
28
|
controller: WatchController | EditController | MixedController | ViewController | null;
|
|
29
|
+
/** 允许的测量类型 */
|
|
30
|
+
allowMeasureType: Array<MeasureType>;
|
|
29
31
|
/** 当前的测量类型 */
|
|
30
32
|
currentMeasureType: MeasureType | null;
|
|
31
33
|
private five;
|
|
32
34
|
private model;
|
|
33
35
|
private group;
|
|
34
36
|
private config;
|
|
35
|
-
/** 允许的测量类型 */
|
|
36
|
-
private allowMeasureType;
|
|
37
37
|
private isMobile;
|
|
38
38
|
private fiveHelper;
|
|
39
39
|
private useUIController?;
|
|
@@ -60,7 +60,7 @@ export default class MeasureController {
|
|
|
60
60
|
* @description 清除标尺线条
|
|
61
61
|
* @description 还原点位展示和默认鼠标 UI
|
|
62
62
|
*/
|
|
63
|
-
disable()
|
|
63
|
+
disable: () => void;
|
|
64
64
|
getCurrentMode: () => Mode | null;
|
|
65
65
|
/** 变更场景
|
|
66
66
|
* @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
|