@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
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const isTouchDevice: boolean;
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
import type { Five, SubscribeEventMap } from '@realsee/five';
|
|
2
|
+
import { Subscribe } from '@realsee/five';
|
|
3
|
+
import { PointSelectorHelper, type PointIntersection } from './PointSelectorHelper';
|
|
4
|
+
interface Config {
|
|
5
|
+
/**
|
|
6
|
+
* @description: 选点的两种模式, 'fixed' 为固定选点为屏幕中心点,拖动five画布来选点,'cursor' 为跟随鼠标移动, 'auto' 则根据设备类型自动选择
|
|
7
|
+
* @default: 'auto'
|
|
8
|
+
*/
|
|
9
|
+
mode: 'fixed' | 'cursor' | 'auto';
|
|
10
|
+
pointSelectorHelperParams: ConstructorParameters<typeof PointSelectorHelper>[1];
|
|
11
|
+
}
|
|
12
|
+
interface EventMap extends SubscribeEventMap {
|
|
13
|
+
intersectionUpdate: (intersection: PointIntersection) => void;
|
|
14
|
+
}
|
|
15
|
+
/**
|
|
16
|
+
* @description: 在屏幕上选点
|
|
17
|
+
*/
|
|
18
|
+
export declare class PointSelector {
|
|
19
|
+
hook: Subscribe<EventMap>;
|
|
20
|
+
get position(): PointIntersection;
|
|
21
|
+
private five;
|
|
22
|
+
private mode;
|
|
23
|
+
private pointSelectorHelper;
|
|
24
|
+
private enabled;
|
|
25
|
+
constructor(five: Five, config?: Partial<Config>);
|
|
26
|
+
enable(): void;
|
|
27
|
+
disable(): void;
|
|
28
|
+
dispose(): void;
|
|
29
|
+
private onFivePanGesture;
|
|
30
|
+
private emitIntersectionUpdate;
|
|
31
|
+
}
|
|
32
|
+
export {};
|
|
@@ -0,0 +1,50 @@
|
|
|
1
|
+
import type { Five } from '@realsee/five';
|
|
2
|
+
import { Subscribe } from '@realsee/five';
|
|
3
|
+
import { Magnifier, PointHelper, PointDomHelper } from '.';
|
|
4
|
+
import type { Intersection } from '../../typings/typings';
|
|
5
|
+
interface Options {
|
|
6
|
+
magnifier: Magnifier | null;
|
|
7
|
+
magnifierParams: ConstructorParameters<typeof Magnifier>[1];
|
|
8
|
+
pointHelper: PointHelper | null;
|
|
9
|
+
pointDomHelper: PointDomHelper | null;
|
|
10
|
+
}
|
|
11
|
+
type EventMap = {
|
|
12
|
+
intersectionUpdate: (intersection: PointIntersection) => void;
|
|
13
|
+
/** 功能开启 */
|
|
14
|
+
enabled: () => void;
|
|
15
|
+
/** 功能关闭 */
|
|
16
|
+
disabled: () => void;
|
|
17
|
+
};
|
|
18
|
+
export interface PointIntersection extends Intersection {
|
|
19
|
+
isVirtual?: boolean;
|
|
20
|
+
}
|
|
21
|
+
export declare class PointSelectorHelper {
|
|
22
|
+
five: Five;
|
|
23
|
+
hooks: Subscribe<EventMap>;
|
|
24
|
+
position: PointIntersection | undefined;
|
|
25
|
+
private magnifier;
|
|
26
|
+
private pointHelper;
|
|
27
|
+
private pointDomHelper;
|
|
28
|
+
private state;
|
|
29
|
+
private group;
|
|
30
|
+
constructor(five: Five, options?: Partial<Options>);
|
|
31
|
+
show: () => void;
|
|
32
|
+
hide: () => void;
|
|
33
|
+
enable(): void;
|
|
34
|
+
disable(): void;
|
|
35
|
+
dispose(): void;
|
|
36
|
+
updateWithIntersect: (intersect: Intersection) => void;
|
|
37
|
+
updateByMousePosition: (mousePosition: {
|
|
38
|
+
clientX: number;
|
|
39
|
+
clientY: number;
|
|
40
|
+
}) => void;
|
|
41
|
+
/**
|
|
42
|
+
* @description: 根据鼠标位置更新helper位置
|
|
43
|
+
*/
|
|
44
|
+
updateByNdcPosition: (ndcPosition: {
|
|
45
|
+
x: number;
|
|
46
|
+
y: number;
|
|
47
|
+
}) => void;
|
|
48
|
+
private abortUpdateMagnifier;
|
|
49
|
+
}
|
|
50
|
+
export {};
|