@realsee/dnalogel 2.21.0-dev.0 → 2.21.0-dev.2
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 +6221 -5669
- 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 +1 -1
- 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/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
|
@@ -1,117 +1,130 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
import
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
import { SvelteComponent as q, init as A, safe_not_equal as D, append_styles as T, binding_callbacks as W, bind as j, element as f, create_component as C, space as _, attr as m, insert as E, mount_component as k, append as u, add_flush_callback as B, transition_in as w, transition_out as M, detach as S, destroy_component as $, onMount as F, onDestroy as G, listen as x, noop as H, run_all as J } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
import K from "./Common/Switcher0.js";
|
|
3
|
+
import L from "./Common/Exit.js";
|
|
4
|
+
function N(l) {
|
|
5
|
+
T(l, "svelte-y31iee", ".Measure-Controller.svelte-y31iee.svelte-y31iee{pointer-events:none}.Measure-Controller.svelte-y31iee .mode-switcher.svelte-y31iee{margin-top:2.25rem}.Measure-Controller.svelte-y31iee .bottom.svelte-y31iee{position:absolute;width:100%;bottom:2.5rem}.Measure-Controller.svelte-y31iee .bottom .center.svelte-y31iee{display:flex;flex-direction:column;align-items:center}.Measure-Controller.svelte-y31iee .buttons.svelte-y31iee{pointer-events:all;cursor:pointer;display:flex;align-items:center;height:2.5rem;background:rgba(0, 0, 0, 0.2);color:rgba(255, 255, 255, 0.85);width:-moz-max-content;width:max-content;border-radius:624.9375rem;overflow:hidden}.Measure-Controller.svelte-y31iee .buttons .button.svelte-y31iee{font-size:0.875rem;padding:0rem 1rem}");
|
|
5
6
|
}
|
|
6
|
-
function
|
|
7
|
-
let t,
|
|
7
|
+
function I(l) {
|
|
8
|
+
let t, n, i, s, r, c;
|
|
8
9
|
return {
|
|
9
10
|
c() {
|
|
10
|
-
t = f("div"),
|
|
11
|
+
t = f("div"), n = f("div"), n.textContent = "撤销", i = _(), s = f("div"), s.textContent = "结束", m(n, "class", "button svelte-y31iee"), m(s, "class", "button svelte-y31iee"), m(t, "class", "buttons svelte-y31iee");
|
|
11
12
|
},
|
|
12
|
-
m(d,
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
m(d, a) {
|
|
14
|
+
E(d, t, a), u(t, n), u(t, i), u(t, s), r || (c = [
|
|
15
|
+
x(
|
|
16
|
+
n,
|
|
16
17
|
"click",
|
|
17
18
|
/*click_handler*/
|
|
18
|
-
|
|
19
|
+
l[3]
|
|
19
20
|
),
|
|
20
|
-
|
|
21
|
-
|
|
21
|
+
x(
|
|
22
|
+
s,
|
|
22
23
|
"click",
|
|
23
24
|
/*click_handler_1*/
|
|
24
|
-
|
|
25
|
+
l[4]
|
|
25
26
|
)
|
|
26
|
-
],
|
|
27
|
+
], r = !0);
|
|
27
28
|
},
|
|
28
|
-
p:
|
|
29
|
+
p: H,
|
|
29
30
|
d(d) {
|
|
30
|
-
d &&
|
|
31
|
+
d && S(t), r = !1, J(c);
|
|
31
32
|
}
|
|
32
33
|
};
|
|
33
34
|
}
|
|
34
|
-
function
|
|
35
|
-
let t,
|
|
35
|
+
function O(l) {
|
|
36
|
+
let t, n, i, s, r, c, d, a, p, v;
|
|
37
|
+
n = new L({
|
|
38
|
+
props: {
|
|
39
|
+
onClick: (
|
|
40
|
+
/*measureController*/
|
|
41
|
+
l[0].disable
|
|
42
|
+
)
|
|
43
|
+
}
|
|
44
|
+
});
|
|
45
|
+
let e = (
|
|
36
46
|
/*showController*/
|
|
37
|
-
|
|
47
|
+
l[2] && I(l)
|
|
38
48
|
);
|
|
39
|
-
function
|
|
40
|
-
|
|
49
|
+
function z(o) {
|
|
50
|
+
l[6](o);
|
|
41
51
|
}
|
|
42
|
-
let
|
|
52
|
+
let b = {
|
|
43
53
|
options: [{ key: "line", value: "测距离" }, { key: "area", value: "测面积" }],
|
|
44
54
|
onChange: (
|
|
45
55
|
/*func*/
|
|
46
|
-
|
|
56
|
+
l[5]
|
|
47
57
|
)
|
|
48
58
|
};
|
|
49
59
|
return (
|
|
50
60
|
/*setSwitcherActiveIndex*/
|
|
51
|
-
|
|
52
|
-
|
|
61
|
+
l[1] !== void 0 && (b.setIndex = /*setSwitcherActiveIndex*/
|
|
62
|
+
l[1]), a = new K({ props: b }), W.push(() => j(a, "setIndex", z)), {
|
|
53
63
|
c() {
|
|
54
|
-
t = f("div"),
|
|
64
|
+
t = f("div"), C(n.$$.fragment), i = _(), s = f("div"), r = f("div"), e && e.c(), c = _(), d = f("div"), C(a.$$.fragment), m(d, "class", "mode-switcher svelte-y31iee"), m(r, "class", "center svelte-y31iee"), m(s, "class", "bottom svelte-y31iee"), m(t, "class", "Measure-Controller svelte-y31iee");
|
|
55
65
|
},
|
|
56
|
-
m(
|
|
57
|
-
|
|
66
|
+
m(o, h) {
|
|
67
|
+
E(o, t, h), k(n, t, null), u(t, i), u(t, s), u(s, r), e && e.m(r, null), u(r, c), u(r, d), k(a, d, null), v = !0;
|
|
58
68
|
},
|
|
59
|
-
p(
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
69
|
+
p(o, [h]) {
|
|
70
|
+
const y = {};
|
|
71
|
+
h & /*measureController*/
|
|
72
|
+
1 && (y.onClick = /*measureController*/
|
|
73
|
+
o[0].disable), n.$set(y), /*showController*/
|
|
74
|
+
o[2] ? e ? e.p(o, h) : (e = I(o), e.c(), e.m(r, c)) : e && (e.d(1), e = null);
|
|
75
|
+
const g = {};
|
|
63
76
|
h & /*measureController*/
|
|
64
|
-
1 && (
|
|
65
|
-
|
|
66
|
-
2 && (
|
|
67
|
-
|
|
77
|
+
1 && (g.onChange = /*func*/
|
|
78
|
+
o[5]), !p && h & /*setSwitcherActiveIndex*/
|
|
79
|
+
2 && (p = !0, g.setIndex = /*setSwitcherActiveIndex*/
|
|
80
|
+
o[1], B(() => p = !1)), a.$set(g);
|
|
68
81
|
},
|
|
69
|
-
i(
|
|
70
|
-
|
|
82
|
+
i(o) {
|
|
83
|
+
v || (w(n.$$.fragment, o), w(a.$$.fragment, o), v = !0);
|
|
71
84
|
},
|
|
72
|
-
o(
|
|
73
|
-
|
|
85
|
+
o(o) {
|
|
86
|
+
M(n.$$.fragment, o), M(a.$$.fragment, o), v = !1;
|
|
74
87
|
},
|
|
75
|
-
d(
|
|
76
|
-
|
|
88
|
+
d(o) {
|
|
89
|
+
o && S(t), $(n), e && e.d(), $(a);
|
|
77
90
|
}
|
|
78
91
|
}
|
|
79
92
|
);
|
|
80
93
|
}
|
|
81
|
-
function
|
|
82
|
-
let { measureController:
|
|
83
|
-
function
|
|
84
|
-
|
|
94
|
+
function P(l, t, n) {
|
|
95
|
+
let { measureController: i } = t, s;
|
|
96
|
+
function r(e) {
|
|
97
|
+
e === "Edit" ? n(2, c = !0) : (s(null), n(2, c = !1));
|
|
85
98
|
}
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
}),
|
|
89
|
-
|
|
99
|
+
F(() => {
|
|
100
|
+
i.hook.on("modeChange", r);
|
|
101
|
+
}), G(() => {
|
|
102
|
+
i.hook.off("modeChange", r);
|
|
90
103
|
});
|
|
91
|
-
let
|
|
92
|
-
const d = () =>
|
|
93
|
-
|
|
104
|
+
let c = !1;
|
|
105
|
+
const d = () => i.revoke(), a = () => i.save({ mode: "Watch" }), p = (e) => {
|
|
106
|
+
i.save().changeMode("Edit"), i.changeMeasureType(e);
|
|
94
107
|
};
|
|
95
|
-
function
|
|
96
|
-
|
|
108
|
+
function v(e) {
|
|
109
|
+
s = e, n(1, s);
|
|
97
110
|
}
|
|
98
|
-
return
|
|
99
|
-
"measureController" in
|
|
111
|
+
return l.$$set = (e) => {
|
|
112
|
+
"measureController" in e && n(0, i = e.measureController);
|
|
100
113
|
}, [
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
114
|
+
i,
|
|
115
|
+
s,
|
|
116
|
+
c,
|
|
104
117
|
d,
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
118
|
+
a,
|
|
119
|
+
p,
|
|
120
|
+
v
|
|
108
121
|
];
|
|
109
122
|
}
|
|
110
|
-
class
|
|
123
|
+
class V extends q {
|
|
111
124
|
constructor(t) {
|
|
112
|
-
super(),
|
|
125
|
+
super(), A(this, t, P, O, D, { measureController: 0 }, N);
|
|
113
126
|
}
|
|
114
127
|
}
|
|
115
128
|
export {
|
|
116
|
-
|
|
129
|
+
V as default
|
|
117
130
|
};
|
|
@@ -1,157 +1,255 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
import
|
|
3
|
-
import
|
|
1
|
+
import { SvelteComponent as D, init as W, safe_not_equal as F, append_styles as G, element as k, create_component as P, space as $, attr as v, toggle_class as E, insert as q, mount_component as S, append as c, listen as K, transition_in as b, transition_out as w, check_outros as H, detach as B, destroy_component as T, run_all as I, onMount as J, onDestroy as L, group_outros as N } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
import O from "./Common/Switcher1.js";
|
|
3
|
+
import Q from "./Common/CircleButton.js";
|
|
4
|
+
import R from "../Controller/EditController.js";
|
|
5
|
+
import U from "./Common/Exit.js";
|
|
4
6
|
import "../Modules/UIController/mobileHTML.js";
|
|
5
|
-
|
|
6
|
-
|
|
7
|
+
import "hammerjs";
|
|
8
|
+
import "../Model/line.js";
|
|
9
|
+
import "../../shared-utils/uuid.js";
|
|
10
|
+
import "../utils/line.js";
|
|
11
|
+
import "@realsee/five/line";
|
|
12
|
+
import "../utils/constants.js";
|
|
13
|
+
import "three";
|
|
14
|
+
import "@realsee/five";
|
|
15
|
+
import "../utils/dom/distanceItem.js";
|
|
16
|
+
import "../utils/dom/base.js";
|
|
17
|
+
import "../utils/isNDCPointInScreen.js";
|
|
18
|
+
import "../Model/point.js";
|
|
19
|
+
import "../../shared-utils/removeArrayItem.js";
|
|
20
|
+
import "../../shared-utils/throttle.js";
|
|
21
|
+
import "../Controller/BaseController.js";
|
|
22
|
+
import "../utils/ironbox.js";
|
|
23
|
+
import "../utils/getIntersectionFromEvent.js";
|
|
24
|
+
import "../utils/getPointFromHammerEvent.js";
|
|
25
|
+
import "../Model/polyline.js";
|
|
26
|
+
import "../Model/area.js";
|
|
27
|
+
import "../Model/polygon.js";
|
|
28
|
+
import "../../shared-utils/three/IObject3D.js";
|
|
29
|
+
import "../utils/generatePolygonGeometry.js";
|
|
30
|
+
import "earcut";
|
|
31
|
+
import "../utils/dom/areaDom.js";
|
|
32
|
+
import "../utils/geometryUtil.js";
|
|
33
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
34
|
+
import "../utils/isIntersecting.js";
|
|
35
|
+
import "../../shared-utils/three/PointSelector.js";
|
|
36
|
+
import "../../shared-utils/three/PointSelectorHelper.js";
|
|
37
|
+
import "../../shared-utils/three/Magnifier.js";
|
|
38
|
+
import "../../shared-utils/three/getIntersect.js";
|
|
39
|
+
import "../../shared-utils/three/PointHelper.js";
|
|
40
|
+
import "../../shared-utils/three/Assets/index.js";
|
|
41
|
+
import "../../shared-utils/three/PointDomHelper.js";
|
|
42
|
+
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
43
|
+
import "../Modules/rangePiece/html.js";
|
|
44
|
+
import "../../CSS3DRenderPlugin/index.js";
|
|
45
|
+
import "../../CSS3DRenderPlugin/Controller.js";
|
|
46
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
47
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
48
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
49
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
50
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
51
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
52
|
+
import "../../shared-utils/Subscribe.js";
|
|
53
|
+
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
54
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
55
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
56
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
57
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
58
|
+
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
59
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
60
|
+
import "../../shared-utils/isAbsoluteURL.js";
|
|
61
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
62
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
63
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
64
|
+
function V(l) {
|
|
65
|
+
G(l, "svelte-12klgza", ".Measure-Controller.svelte-12klgza.svelte-12klgza{pointer-events:none;color:white}.Measure-Controller.svelte-12klgza .mode-switcher.svelte-12klgza{margin-top:2.25rem}.Measure-Controller.svelte-12klgza .bottom.svelte-12klgza{position:absolute;width:100%;bottom:2.5rem}.Measure-Controller.svelte-12klgza .bottom .center.svelte-12klgza{display:flex;flex-direction:column;align-items:center}.Measure-Controller.svelte-12klgza .controller.svelte-12klgza{pointer-events:all;display:flex;align-items:center}.Measure-Controller.svelte-12klgza .controller .button.svelte-12klgza{cursor:pointer;display:flex;align-items:center;justify-content:center;height:2.5rem;padding-left:1rem;padding-right:1rem;border-radius:624.9375rem;font-size:0.875rem;background-color:rgba(0, 0, 0, 0.2)}.Measure-Controller.svelte-12klgza .controller .main-button.svelte-12klgza{margin-left:1.75rem;margin-right:1.75rem}.Measure-Controller.svelte-12klgza .controller .main-button.forbid.svelte-12klgza{pointer-events:none;opacity:0.5}");
|
|
7
66
|
}
|
|
8
|
-
function
|
|
9
|
-
let
|
|
10
|
-
return
|
|
67
|
+
function j(l) {
|
|
68
|
+
let n, o, t;
|
|
69
|
+
return o = new O({
|
|
11
70
|
props: {
|
|
12
71
|
options: [{ key: "line", value: "测距离" }, { key: "area", value: "测面积" }],
|
|
13
72
|
defaultKey: (
|
|
14
73
|
/*measureController*/
|
|
15
|
-
|
|
74
|
+
l[0].currentMeasureType
|
|
16
75
|
),
|
|
17
76
|
onChange: (
|
|
18
77
|
/*func*/
|
|
19
|
-
|
|
78
|
+
l[8]
|
|
20
79
|
)
|
|
21
80
|
}
|
|
22
|
-
}),
|
|
81
|
+
}), {
|
|
82
|
+
c() {
|
|
83
|
+
n = k("div"), P(o.$$.fragment), v(n, "class", "mode-switcher svelte-12klgza");
|
|
84
|
+
},
|
|
85
|
+
m(i, a) {
|
|
86
|
+
q(i, n, a), S(o, n, null), t = !0;
|
|
87
|
+
},
|
|
88
|
+
p(i, a) {
|
|
89
|
+
const m = {};
|
|
90
|
+
a & /*measureController*/
|
|
91
|
+
1 && (m.defaultKey = /*measureController*/
|
|
92
|
+
i[0].currentMeasureType), a & /*measureController*/
|
|
93
|
+
1 && (m.onChange = /*func*/
|
|
94
|
+
i[8]), o.$set(m);
|
|
95
|
+
},
|
|
96
|
+
i(i) {
|
|
97
|
+
t || (b(o.$$.fragment, i), t = !0);
|
|
98
|
+
},
|
|
99
|
+
o(i) {
|
|
100
|
+
w(o.$$.fragment, i), t = !1;
|
|
101
|
+
},
|
|
102
|
+
d(i) {
|
|
103
|
+
i && B(n), T(o);
|
|
104
|
+
}
|
|
105
|
+
};
|
|
106
|
+
}
|
|
107
|
+
function X(l) {
|
|
108
|
+
let n, o, t, i, a, m, s, f, h, u, p, z, g, C, _, M;
|
|
109
|
+
o = new U({
|
|
110
|
+
props: {
|
|
111
|
+
onClick: (
|
|
112
|
+
/*measureController*/
|
|
113
|
+
l[0].disable
|
|
114
|
+
)
|
|
115
|
+
}
|
|
116
|
+
});
|
|
117
|
+
let r = (
|
|
118
|
+
/*measureController*/
|
|
119
|
+
l[0].allowMeasureType.length >= 2 && j(l)
|
|
120
|
+
);
|
|
121
|
+
return p = new Q({
|
|
23
122
|
props: {
|
|
24
123
|
onClick: (
|
|
25
124
|
/*func_1*/
|
|
26
|
-
|
|
125
|
+
l[10]
|
|
27
126
|
),
|
|
28
127
|
text: (
|
|
29
128
|
/*buttonTextMap*/
|
|
30
|
-
|
|
129
|
+
l[3][
|
|
31
130
|
/*buttonState*/
|
|
32
|
-
|
|
131
|
+
l[2]
|
|
33
132
|
]
|
|
34
133
|
),
|
|
35
134
|
color: (
|
|
36
135
|
/*buttonColorMap*/
|
|
37
|
-
|
|
136
|
+
l[4][
|
|
38
137
|
/*buttonState*/
|
|
39
|
-
|
|
138
|
+
l[2]
|
|
40
139
|
]
|
|
41
140
|
)
|
|
42
141
|
}
|
|
43
142
|
}), {
|
|
44
143
|
c() {
|
|
45
|
-
|
|
46
|
-
|
|
144
|
+
n = k("div"), P(o.$$.fragment), t = $(), i = k("div"), a = k("div"), r && r.c(), m = $(), s = k("div"), f = k("div"), f.textContent = "撤销", h = $(), u = k("div"), P(p.$$.fragment), z = $(), g = k("div"), g.textContent = "结束", v(f, "class", "button svelte-12klgza"), v(u, "class", "main-button svelte-12klgza"), E(u, "forbid", !/*allowAddPoint*/
|
|
145
|
+
l[1]), v(g, "class", "button svelte-12klgza"), v(s, "class", "controller svelte-12klgza"), v(a, "class", "center svelte-12klgza"), v(i, "class", "bottom svelte-12klgza"), v(n, "class", "Measure-Controller svelte-12klgza");
|
|
47
146
|
},
|
|
48
|
-
m(
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
147
|
+
m(e, d) {
|
|
148
|
+
q(e, n, d), S(o, n, null), c(n, t), c(n, i), c(i, a), r && r.m(a, null), c(a, m), c(a, s), c(s, f), c(s, h), c(s, u), S(p, u, null), c(s, z), c(s, g), C = !0, _ || (M = [
|
|
149
|
+
K(
|
|
150
|
+
f,
|
|
52
151
|
"click",
|
|
53
152
|
/*click_handler*/
|
|
54
|
-
|
|
153
|
+
l[9]
|
|
55
154
|
),
|
|
56
|
-
|
|
57
|
-
|
|
155
|
+
K(
|
|
156
|
+
g,
|
|
58
157
|
"click",
|
|
59
158
|
/*click_handler_1*/
|
|
60
|
-
|
|
159
|
+
l[11]
|
|
61
160
|
)
|
|
62
|
-
],
|
|
161
|
+
], _ = !0);
|
|
63
162
|
},
|
|
64
|
-
p(
|
|
65
|
-
const
|
|
66
|
-
|
|
67
|
-
1 && (
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
4 && (
|
|
76
|
-
|
|
163
|
+
p(e, [d]) {
|
|
164
|
+
const A = {};
|
|
165
|
+
d & /*measureController*/
|
|
166
|
+
1 && (A.onClick = /*measureController*/
|
|
167
|
+
e[0].disable), o.$set(A), /*measureController*/
|
|
168
|
+
e[0].allowMeasureType.length >= 2 ? r ? (r.p(e, d), d & /*measureController*/
|
|
169
|
+
1 && b(r, 1)) : (r = j(e), r.c(), b(r, 1), r.m(a, m)) : r && (N(), w(r, 1, 1, () => {
|
|
170
|
+
r = null;
|
|
171
|
+
}), H());
|
|
172
|
+
const y = {};
|
|
173
|
+
d & /*buttonState*/
|
|
174
|
+
4 && (y.onClick = /*func_1*/
|
|
175
|
+
e[10]), d & /*buttonState*/
|
|
176
|
+
4 && (y.text = /*buttonTextMap*/
|
|
177
|
+
e[3][
|
|
77
178
|
/*buttonState*/
|
|
78
|
-
|
|
79
|
-
]),
|
|
80
|
-
4 && (
|
|
81
|
-
|
|
179
|
+
e[2]
|
|
180
|
+
]), d & /*buttonState*/
|
|
181
|
+
4 && (y.color = /*buttonColorMap*/
|
|
182
|
+
e[4][
|
|
82
183
|
/*buttonState*/
|
|
83
|
-
|
|
84
|
-
]),
|
|
85
|
-
2) &&
|
|
86
|
-
|
|
184
|
+
e[2]
|
|
185
|
+
]), p.$set(y), (!C || d & /*allowAddPoint*/
|
|
186
|
+
2) && E(u, "forbid", !/*allowAddPoint*/
|
|
187
|
+
e[1]);
|
|
87
188
|
},
|
|
88
|
-
i(
|
|
89
|
-
|
|
189
|
+
i(e) {
|
|
190
|
+
C || (b(o.$$.fragment, e), b(r), b(p.$$.fragment, e), C = !0);
|
|
90
191
|
},
|
|
91
|
-
o(
|
|
92
|
-
|
|
192
|
+
o(e) {
|
|
193
|
+
w(o.$$.fragment, e), w(r), w(p.$$.fragment, e), C = !1;
|
|
93
194
|
},
|
|
94
|
-
d(
|
|
95
|
-
|
|
195
|
+
d(e) {
|
|
196
|
+
e && B(n), T(o), r && r.d(), T(p), _ = !1, I(M);
|
|
96
197
|
}
|
|
97
198
|
};
|
|
98
199
|
}
|
|
99
|
-
function
|
|
100
|
-
let { measureController:
|
|
101
|
-
const
|
|
200
|
+
function Y(l, n, o) {
|
|
201
|
+
let { measureController: t } = n;
|
|
202
|
+
const i = { start: "开始", add: "添加", end: "结束" }, a = {
|
|
102
203
|
start: "white",
|
|
103
204
|
add: "white",
|
|
104
205
|
end: "blue"
|
|
105
206
|
};
|
|
106
|
-
let
|
|
107
|
-
const
|
|
108
|
-
|
|
109
|
-
},
|
|
110
|
-
|
|
111
|
-
},
|
|
112
|
-
|
|
113
|
-
},
|
|
114
|
-
|
|
115
|
-
},
|
|
116
|
-
|
|
207
|
+
let m = !0, s = "start";
|
|
208
|
+
const f = () => {
|
|
209
|
+
t.getCurrentMode() !== "Edit" ? t.changeMode("Edit") : (o(2, s = "add"), h());
|
|
210
|
+
}, h = () => {
|
|
211
|
+
t.controller instanceof R && t.controller.selectPoint();
|
|
212
|
+
}, u = () => {
|
|
213
|
+
h();
|
|
214
|
+
}, p = () => {
|
|
215
|
+
o(2, s = "end");
|
|
216
|
+
}, z = () => {
|
|
217
|
+
o(2, s = "start");
|
|
218
|
+
}, g = (e) => {
|
|
219
|
+
o(1, m = e === "allow");
|
|
117
220
|
};
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
}),
|
|
121
|
-
|
|
221
|
+
J(() => {
|
|
222
|
+
t.hook.on("allowAddPointStateChange", g), t.hook.on("readyComplete", p), t.hook.on("complete", z);
|
|
223
|
+
}), L(() => {
|
|
224
|
+
t.hook.off("allowAddPointStateChange", g), t.hook.off("readyComplete", p), t.hook.off("complete", z);
|
|
122
225
|
});
|
|
123
|
-
const
|
|
124
|
-
|
|
125
|
-
},
|
|
126
|
-
|
|
127
|
-
},
|
|
128
|
-
return
|
|
129
|
-
"measureController" in
|
|
130
|
-
}, o.$$.update = () => {
|
|
131
|
-
o.$$.dirty & /*started, state*/
|
|
132
|
-
768 && n(2, h = (() => r ? a === "editing" ? "add" : a === "readyComplete" ? "end" : "start" : "start")());
|
|
226
|
+
const C = (e) => {
|
|
227
|
+
t.changeMeasureType(e);
|
|
228
|
+
}, _ = () => t.revoke(), M = () => {
|
|
229
|
+
s === "start" ? f() : s === "add" ? h() : s === "end" && u();
|
|
230
|
+
}, r = () => t.save({ mode: "Watch" });
|
|
231
|
+
return l.$$set = (e) => {
|
|
232
|
+
"measureController" in e && o(0, t = e.measureController);
|
|
133
233
|
}, [
|
|
134
|
-
|
|
135
|
-
|
|
234
|
+
t,
|
|
235
|
+
m,
|
|
236
|
+
s,
|
|
237
|
+
i,
|
|
238
|
+
a,
|
|
239
|
+
f,
|
|
136
240
|
h,
|
|
137
|
-
k,
|
|
138
241
|
u,
|
|
139
|
-
|
|
140
|
-
g,
|
|
141
|
-
M,
|
|
142
|
-
r,
|
|
143
|
-
a,
|
|
242
|
+
C,
|
|
144
243
|
_,
|
|
145
|
-
|
|
146
|
-
|
|
147
|
-
b
|
|
244
|
+
M,
|
|
245
|
+
r
|
|
148
246
|
];
|
|
149
247
|
}
|
|
150
|
-
class
|
|
151
|
-
constructor(
|
|
152
|
-
super(),
|
|
248
|
+
class st extends D {
|
|
249
|
+
constructor(n) {
|
|
250
|
+
super(), W(this, n, Y, X, F, { measureController: 0 }, V);
|
|
153
251
|
}
|
|
154
252
|
}
|
|
155
253
|
export {
|
|
156
|
-
|
|
254
|
+
st as default
|
|
157
255
|
};
|
|
@@ -19,6 +19,7 @@ export interface ControllerParams {
|
|
|
19
19
|
fiveHelper: FiveHelper;
|
|
20
20
|
openParams: OpenParameter;
|
|
21
21
|
editParams: EditParameter;
|
|
22
|
+
magnifierParams: ConstructorParameters<typeof Magnifier>[1];
|
|
22
23
|
getMeasureType: () => MeasureType;
|
|
23
24
|
hook: Subscribe<PanoMeasurePluginEvent>;
|
|
24
25
|
userDistanceItemCreator?: () => UserDistanceItem;
|
|
@@ -36,6 +37,7 @@ export default class BaseController {
|
|
|
36
37
|
protected container: Element;
|
|
37
38
|
protected fiveHelper: FiveHelper;
|
|
38
39
|
protected editParams: EditParameter;
|
|
40
|
+
protected magnifierParams: ConstructorParameters<typeof Magnifier>[1];
|
|
39
41
|
protected hook: ControllerParams['hook'];
|
|
40
42
|
protected magnifier: ControllerParams['magnifier'];
|
|
41
43
|
protected userDistanceItemCreator: ControllerParams['userDistanceItemCreator'];
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
var m = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var t = (s, e, i) => (
|
|
4
|
-
import { Color as
|
|
2
|
+
var u = (s, e, i) => e in s ? m(s, e, { enumerable: !0, configurable: !0, writable: !0, value: i }) : s[e] = i;
|
|
3
|
+
var t = (s, e, i) => (u(s, typeof e != "symbol" ? e + "" : e, i), i);
|
|
4
|
+
import { Color as l } from "three";
|
|
5
5
|
import h from "../Model/line.js";
|
|
6
6
|
import r from "../Model/point.js";
|
|
7
7
|
import { preventDefault as n } from "../utils/ironbox.js";
|
|
@@ -14,7 +14,7 @@ import "../utils/dom/distanceItem.js";
|
|
|
14
14
|
import "../utils/dom/base.js";
|
|
15
15
|
import "../utils/isNDCPointInScreen.js";
|
|
16
16
|
import "../../shared-utils/removeArrayItem.js";
|
|
17
|
-
class
|
|
17
|
+
class k {
|
|
18
18
|
constructor(e) {
|
|
19
19
|
t(this, "model");
|
|
20
20
|
t(this, "five");
|
|
@@ -28,6 +28,7 @@ class P {
|
|
|
28
28
|
t(this, "container");
|
|
29
29
|
t(this, "fiveHelper");
|
|
30
30
|
t(this, "editParams");
|
|
31
|
+
t(this, "magnifierParams");
|
|
31
32
|
t(this, "hook");
|
|
32
33
|
t(this, "magnifier");
|
|
33
34
|
t(this, "userDistanceItemCreator");
|
|
@@ -36,7 +37,7 @@ class P {
|
|
|
36
37
|
this.dashed.distanceItem.update(this.five), this.model.getAllLines().forEach((e) => e.distanceItem.update(this.five));
|
|
37
38
|
});
|
|
38
39
|
var a, o;
|
|
39
|
-
this.five = e.five, this.hook = e.hook, this.model = e.model, this.getMeasureType = e.getMeasureType, this.config = e.config, this.magnifier = e.magnifier, this.container = e.container, this.fiveHelper = e.fiveHelper, this.editParams = e.editParams, this.isMobile = (o = (a = e.openParams) == null ? void 0 : a.isMobile) != null ? o : !1, this.userDistanceItemCreator = e.userDistanceItemCreator, this.group = e.group, this.mouseGroup = e.mouseGroup, this.dashed = new h(new r([0, 0, 0]), new r([0, 0, 0]), this.model), this.dashed.distanceItem.setCanSelect(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine",
|
|
40
|
+
this.five = e.five, this.hook = e.hook, this.model = e.model, this.getMeasureType = e.getMeasureType, this.config = e.config, this.magnifierParams = e.magnifierParams, this.magnifier = e.magnifier, this.container = e.container, this.fiveHelper = e.fiveHelper, this.editParams = e.editParams, this.isMobile = (o = (a = e.openParams) == null ? void 0 : a.isMobile) != null ? o : !1, this.userDistanceItemCreator = e.userDistanceItemCreator, this.group = e.group, this.mouseGroup = e.mouseGroup, this.dashed = new h(new r([0, 0, 0]), new r([0, 0, 0]), this.model), this.dashed.distanceItem.setCanSelect(!1), this.dashed.mesh.setMaterial({ dashed: !0, dashScale: 100 }), this.dashed.mesh.name = "dashLine", this.perpendicularDashed = new h(new r([0, 0, 0]), new r([0, 0, 0]), this.model), this.perpendicularDashed.distanceItem.setCanSelect(!1), this.perpendicularDashed.mesh.setMaterial({ dashed: !0, dashScale: 40, color: new l(10218089) }), this.perpendicularDashed.mesh.name = "perpendicularDashLine";
|
|
40
41
|
const i = this.five.getElement();
|
|
41
42
|
i && (i.addEventListener("touchstart", n), i.addEventListener("contextmenu", n));
|
|
42
43
|
}
|
|
@@ -64,5 +65,5 @@ class P {
|
|
|
64
65
|
}
|
|
65
66
|
}
|
|
66
67
|
export {
|
|
67
|
-
|
|
68
|
+
k as default
|
|
68
69
|
};
|