@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
|
@@ -20,10 +20,10 @@ import { Group as E } from "three";
|
|
|
20
20
|
import { Model as k } from "../Model/index.js";
|
|
21
21
|
import { Subscribe as D } from "@realsee/five";
|
|
22
22
|
import { getMouseGroup as G } from "../utils/mouseGroup.js";
|
|
23
|
-
import { UIController as
|
|
23
|
+
import { UIController as P } from "../Modules/UIController/index.js";
|
|
24
24
|
import { GuideController as x } from "../Modules/GuideController.js";
|
|
25
25
|
import { ShortcutKeyController as H } from "./ShortcutKeyController.js";
|
|
26
|
-
import { safeObj as
|
|
26
|
+
import { safeObj as w } from "../../shared-utils/safeObj.js";
|
|
27
27
|
import { Magnifier as L } from "../../shared-utils/three/Magnifier.js";
|
|
28
28
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
29
29
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
@@ -54,6 +54,31 @@ import "../utils/dom/areaDom.js";
|
|
|
54
54
|
import "../utils/geometryUtil.js";
|
|
55
55
|
import "../../shared-utils/three/centerPoint.js";
|
|
56
56
|
import "../utils/isIntersecting.js";
|
|
57
|
+
import "../../shared-utils/three/PointSelector.js";
|
|
58
|
+
import "../../shared-utils/three/PointSelectorHelper.js";
|
|
59
|
+
import "../../shared-utils/three/getIntersect.js";
|
|
60
|
+
import "../../shared-utils/three/PointHelper.js";
|
|
61
|
+
import "../../shared-utils/three/Assets/index.js";
|
|
62
|
+
import "../../shared-utils/three/PointDomHelper.js";
|
|
63
|
+
import "../Modules/rangePiece/html.js";
|
|
64
|
+
import "../../CSS3DRenderPlugin/index.js";
|
|
65
|
+
import "../../CSS3DRenderPlugin/Controller.js";
|
|
66
|
+
import "../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
67
|
+
import "../../shared-utils/isAbsoluteURL.js";
|
|
68
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
69
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
70
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
71
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
72
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
73
|
+
import "../../shared-utils/Subscribe.js";
|
|
74
|
+
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
75
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
76
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
77
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
78
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
79
|
+
import "../../shared-utils/animationFrame/BetterTween.js";
|
|
80
|
+
import "../../shared-utils/animationFrame/index.js";
|
|
81
|
+
import "../../shared-utils/isTouchDevice.js";
|
|
57
82
|
import "../Modules/DeleteDom/index.js";
|
|
58
83
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
59
84
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
@@ -63,8 +88,6 @@ import "../utils/findClosestPoint.js";
|
|
|
63
88
|
import "../utils/ndc2Screen.js";
|
|
64
89
|
import "../utils/findAssociatedLines.js";
|
|
65
90
|
import "../Modules/rangePiece/index.js";
|
|
66
|
-
import "../Modules/rangePiece/html.js";
|
|
67
|
-
import "../../shared-utils/animationFrame/index.js";
|
|
68
91
|
import "../../shared-utils/noop.js";
|
|
69
92
|
import "../utils/calculateThreeMouse.js";
|
|
70
93
|
import "../../shared-utils/tap.js";
|
|
@@ -74,35 +97,27 @@ import "../Modules/UIController/style.js";
|
|
|
74
97
|
import "../Modules/UIController/MainBtnController.js";
|
|
75
98
|
import "../Modules/UIController/mobileMainBtnController.js";
|
|
76
99
|
import "../Modules/UIController/Revoke/index.js";
|
|
77
|
-
import "../Components/
|
|
100
|
+
import "../Components/Controller0.js";
|
|
78
101
|
import "../../vendor/svelte/internal/index.js";
|
|
102
|
+
import "../Components/Common/Switcher0.js";
|
|
103
|
+
import "../Components/Common/Exit.js";
|
|
104
|
+
import "../Components/Controller1.js";
|
|
79
105
|
import "../Components/Common/Switcher1.js";
|
|
80
106
|
import "../Components/Common/CircleButton.js";
|
|
81
|
-
|
|
82
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
83
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
84
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
85
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
86
|
-
import "../../shared-utils/Subscribe.js";
|
|
87
|
-
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
88
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
89
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
90
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
91
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
92
|
-
class nt {
|
|
107
|
+
class wt {
|
|
93
108
|
constructor(e, t) {
|
|
94
109
|
i(this, "hasOpen", !1);
|
|
95
110
|
i(this, "hook", new D());
|
|
96
111
|
i(this, "magnifier");
|
|
97
112
|
i(this, "controller", null);
|
|
113
|
+
/** 允许的测量类型 */
|
|
114
|
+
i(this, "allowMeasureType");
|
|
98
115
|
/** 当前的测量类型 */
|
|
99
116
|
i(this, "currentMeasureType");
|
|
100
117
|
i(this, "five");
|
|
101
118
|
i(this, "model");
|
|
102
119
|
i(this, "group");
|
|
103
120
|
i(this, "config");
|
|
104
|
-
/** 允许的测量类型 */
|
|
105
|
-
i(this, "allowMeasureType");
|
|
106
121
|
i(this, "isMobile");
|
|
107
122
|
i(this, "fiveHelper");
|
|
108
123
|
i(this, "useUIController");
|
|
@@ -110,15 +125,23 @@ class nt {
|
|
|
110
125
|
i(this, "useGuideController");
|
|
111
126
|
i(this, "container", document.createElement("div"));
|
|
112
127
|
i(this, "shortcutKeyController");
|
|
128
|
+
/** 关闭插件功能
|
|
129
|
+
* @description 清除标尺线条
|
|
130
|
+
* @description 还原点位展示和默认鼠标 UI
|
|
131
|
+
*/
|
|
132
|
+
i(this, "disable", () => {
|
|
133
|
+
var e, t, r, o;
|
|
134
|
+
this.hasOpen = !1, this.container.style.opacity = "0", (e = this.controller) == null || e.dispose(), (t = this.useUIController) == null || t.hide(), (r = this.useGuideController) == null || r.hide(), (o = this.shortcutKeyController) == null || o.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
|
|
135
|
+
});
|
|
113
136
|
i(this, "getCurrentMode", () => this.controller instanceof m ? "Edit" : this.controller instanceof M ? "Watch" : this.controller instanceof a ? "Mixed" : this.controller instanceof C ? "View" : null);
|
|
114
137
|
/** 变更场景
|
|
115
138
|
* @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
|
|
116
139
|
*/
|
|
117
140
|
i(this, "changeMode", (e) => {
|
|
118
|
-
var
|
|
141
|
+
var o;
|
|
119
142
|
if (!this.hasOpen || this.getCurrentMode() === e)
|
|
120
143
|
return;
|
|
121
|
-
(
|
|
144
|
+
(o = this.controller) == null || o.dispose();
|
|
122
145
|
const t = {
|
|
123
146
|
View: C,
|
|
124
147
|
Watch: M,
|
|
@@ -127,8 +150,8 @@ class nt {
|
|
|
127
150
|
};
|
|
128
151
|
if (!t[e])
|
|
129
152
|
throw new Error("不存在的 Mode");
|
|
130
|
-
const
|
|
131
|
-
this.controller = new t[e](
|
|
153
|
+
const r = this.createControllerParams();
|
|
154
|
+
this.controller = new t[e](r), this.hook.emit("modeChange", e);
|
|
132
155
|
});
|
|
133
156
|
/**
|
|
134
157
|
* @description: 切换测量的类型
|
|
@@ -136,15 +159,15 @@ class nt {
|
|
|
136
159
|
i(this, "changeMeasureType", (e) => {
|
|
137
160
|
this.currentMeasureType = e, this.hook.emit("measureTypeChange", e);
|
|
138
161
|
});
|
|
139
|
-
var
|
|
140
|
-
this.five = e, this.params = t, this.config = T(t, ["openParams", "magnifierParams"]), this.model = new k(this.config), this.fiveHelper = new U(e), this.isMobile = (l = (
|
|
141
|
-
const
|
|
162
|
+
var o, l, n, u, d, f, g;
|
|
163
|
+
this.five = e, this.params = t, this.config = T(t, ["openParams", "magnifierParams"]), this.model = new k(this.config), this.fiveHelper = new U(e), this.isMobile = (l = (o = t == null ? void 0 : t.openParams) == null ? void 0 : o.isMobile) != null ? l : !1, this.magnifier = new L(e, (n = t.magnifierParams) != null ? n : { width: 190, height: 190, scale: 2 }), this.allowMeasureType = Array.from(new Set((d = (u = t.editParams) == null ? void 0 : u.allowMeasureType) != null ? d : ["line"])), this.currentMeasureType = (f = this.allowMeasureType[0]) != null ? f : "line", this.group = new E(), this.group.name = "plugin-measure-group", this.container.classList.add("five-plugin-measure-container"), this.container.style.position = "absolute", this.container.style.left = "0", this.container.style.top = "0", this.container.style.pointerEvents = "none", this.container.style.width = "100%", this.container.style.height = "100%", this.container.style.opacity = "0";
|
|
164
|
+
const r = (g = this.params.openParams) != null ? g : {};
|
|
142
165
|
if (this.params.useUIController !== !1) {
|
|
143
|
-
const p = h({ container: this.container, openParams:
|
|
144
|
-
this.useUIController = new
|
|
166
|
+
const p = h({ container: this.container, openParams: r }, w(this.params.useUIController));
|
|
167
|
+
this.useUIController = new P(this, p);
|
|
145
168
|
}
|
|
146
169
|
if (this.params.useGuideController !== !1) {
|
|
147
|
-
const p = h({ container: this.container },
|
|
170
|
+
const p = h({ container: this.container }, w(this.params.useGuideController));
|
|
148
171
|
this.useGuideController = new x(this, p);
|
|
149
172
|
}
|
|
150
173
|
}
|
|
@@ -170,14 +193,6 @@ class nt {
|
|
|
170
193
|
var t;
|
|
171
194
|
this.hasOpen || (this.hasOpen = !0, this.five.scene.add(this.group), this.container.style.opacity = "1", e != null && e.mode ? this.changeMode(e.mode) : this.isMobile ? this.changeMode("Mixed") : this.changeMode("Watch"), (t = this.useUIController) == null || t.show(), this.shortcutKeyController = new H(this, this.five), this.hook.emit("enable", !0));
|
|
172
195
|
}
|
|
173
|
-
/** 关闭插件功能
|
|
174
|
-
* @description 清除标尺线条
|
|
175
|
-
* @description 还原点位展示和默认鼠标 UI
|
|
176
|
-
*/
|
|
177
|
-
disable() {
|
|
178
|
-
var e, t, o, r;
|
|
179
|
-
this.hasOpen = !1, this.container.style.opacity = "0", (e = this.controller) == null || e.dispose(), (t = this.useUIController) == null || t.hide(), (o = this.useGuideController) == null || o.hide(), (r = this.shortcutKeyController) == null || r.dispose(), this.controller = null, this.five.helperVisible = !0, this.five.scene.remove(this.group), this.five.needsRender = !0, this.hook.emit("disable", !0);
|
|
180
|
-
}
|
|
181
196
|
/** 进入编辑模式 */
|
|
182
197
|
edit(e) {
|
|
183
198
|
e && this.changeMeasureType(e);
|
|
@@ -219,10 +234,10 @@ class nt {
|
|
|
219
234
|
var l;
|
|
220
235
|
if (!(this.controller instanceof m) && !(this.controller instanceof a))
|
|
221
236
|
return this;
|
|
222
|
-
const t = (l = e == null ? void 0 : e.mode) != null ? l : "View",
|
|
223
|
-
return
|
|
237
|
+
const t = (l = e == null ? void 0 : e.mode) != null ? l : "View", r = this.controller.model.polylines, o = this.controller.model.areas;
|
|
238
|
+
return r.forEach((n) => {
|
|
224
239
|
this.model.addPolyline(n);
|
|
225
|
-
}),
|
|
240
|
+
}), o.forEach((n) => {
|
|
226
241
|
n.polygon.updatePoints(n.points), n.showArea(), this.model.addArea(n);
|
|
227
242
|
}), this.changeMode(t), this;
|
|
228
243
|
}
|
|
@@ -246,11 +261,11 @@ class nt {
|
|
|
246
261
|
var t;
|
|
247
262
|
if (this.isMobile = e, this.params.useUIController !== !1) {
|
|
248
263
|
(t = this.useUIController) == null || t.dispose();
|
|
249
|
-
const
|
|
264
|
+
const r = h({
|
|
250
265
|
container: this.container,
|
|
251
266
|
mode: this.isMobile ? "mobile" : "pc"
|
|
252
267
|
}, typeof this.params.useUIController == "object" ? this.params.useUIController : {});
|
|
253
|
-
this.useUIController = new
|
|
268
|
+
this.useUIController = new P(this, r);
|
|
254
269
|
}
|
|
255
270
|
}
|
|
256
271
|
changeConfigs(e) {
|
|
@@ -259,15 +274,15 @@ class nt {
|
|
|
259
274
|
}
|
|
260
275
|
/** 设置线段的文本 */
|
|
261
276
|
setCustomText(e, t) {
|
|
262
|
-
var
|
|
263
|
-
const
|
|
264
|
-
if (!
|
|
277
|
+
var o;
|
|
278
|
+
const r = this.model.getLineByID(e);
|
|
279
|
+
if (!r)
|
|
265
280
|
throw new Error("不存在的线段");
|
|
266
|
-
|
|
281
|
+
r.setText(t), (o = this.controller) == null || o.updateDistanceUI();
|
|
267
282
|
}
|
|
268
283
|
createControllerParams() {
|
|
269
|
-
var
|
|
270
|
-
const e = (
|
|
284
|
+
var r, o;
|
|
285
|
+
const e = (r = this.params.openParams) != null ? r : {}, t = (o = this.params.editParams) != null ? o : {};
|
|
271
286
|
return e.isMobile = this.isMobile, {
|
|
272
287
|
five: this.five,
|
|
273
288
|
hook: this.hook,
|
|
@@ -279,6 +294,7 @@ class nt {
|
|
|
279
294
|
fiveHelper: this.fiveHelper,
|
|
280
295
|
openParams: e,
|
|
281
296
|
editParams: t,
|
|
297
|
+
magnifierParams: this.params.magnifierParams,
|
|
282
298
|
getMeasureType: () => this.currentMeasureType,
|
|
283
299
|
mouseGroup: G(h({}, e.crossHairParameter)),
|
|
284
300
|
userDistanceItemCreator: this.params.userDistanceItemCreator
|
|
@@ -286,5 +302,5 @@ class nt {
|
|
|
286
302
|
}
|
|
287
303
|
}
|
|
288
304
|
export {
|
|
289
|
-
|
|
305
|
+
wt as default
|
|
290
306
|
};
|
|
@@ -1,16 +1,21 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { Vector3 as
|
|
1
|
+
var s = Object.defineProperty;
|
|
2
|
+
var n = (t, i, o) => i in t ? s(t, i, { enumerable: !0, configurable: !0, writable: !0, value: o }) : t[i] = o;
|
|
3
|
+
var r = (t, i, o) => (n(t, typeof i != "symbol" ? i + "" : i, o), o);
|
|
4
|
+
import { Vector3 as p } from "three";
|
|
5
5
|
import { uuid as h } from "../../shared-utils/uuid.js";
|
|
6
6
|
import { removeArrayItem as m } from "../../shared-utils/removeArrayItem.js";
|
|
7
|
-
class
|
|
7
|
+
class e {
|
|
8
8
|
constructor(i) {
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
this.id = h(), this.lines = [], this.position = new
|
|
9
|
+
r(this, "id");
|
|
10
|
+
r(this, "lines");
|
|
11
|
+
r(this, "position");
|
|
12
|
+
r(this, "type", "point");
|
|
13
|
+
if (this.id = h(), this.lines = [], this.position = new p(), Array.isArray(i))
|
|
14
|
+
this.position.fromArray(i);
|
|
15
|
+
else if (typeof i == "object" && i.isVector3)
|
|
16
|
+
this.position.copy(i);
|
|
17
|
+
else
|
|
18
|
+
throw new Error("position must be Vector3 or number[]");
|
|
14
19
|
}
|
|
15
20
|
toJson() {
|
|
16
21
|
return { id: this.id, position: this.position.toArray() };
|
|
@@ -22,9 +27,9 @@ class r {
|
|
|
22
27
|
m(i, this.lines);
|
|
23
28
|
}
|
|
24
29
|
clone() {
|
|
25
|
-
return new
|
|
30
|
+
return new e(this.position);
|
|
26
31
|
}
|
|
27
32
|
}
|
|
28
33
|
export {
|
|
29
|
-
|
|
34
|
+
e as default
|
|
30
35
|
};
|
|
@@ -1,11 +1,12 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var i = (o, t, e) => (
|
|
2
|
+
var d = (o, t, e) => t in o ? c(o, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : o[t] = e;
|
|
3
|
+
var i = (o, t, e) => (d(o, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
4
|
import * as r from "three";
|
|
5
5
|
import { IObject3D as h } from "../../shared-utils/three/IObject3D.js";
|
|
6
|
-
import
|
|
6
|
+
import l from "../utils/generatePolygonGeometry.js";
|
|
7
7
|
import "earcut";
|
|
8
|
-
|
|
8
|
+
const p = new r.BufferGeometry();
|
|
9
|
+
class w extends h {
|
|
9
10
|
constructor(e) {
|
|
10
11
|
super();
|
|
11
12
|
i(this, "geometry", new r.BufferGeometry());
|
|
@@ -15,24 +16,24 @@ class g extends h {
|
|
|
15
16
|
side: r.DoubleSide,
|
|
16
17
|
depthTest: !0,
|
|
17
18
|
opacity: 0.5
|
|
18
|
-
}),
|
|
19
|
+
}), m = new r.MeshBasicMaterial({
|
|
19
20
|
color: 16777215,
|
|
20
21
|
transparent: !0,
|
|
21
22
|
side: r.DoubleSide,
|
|
22
23
|
depthTest: !1,
|
|
23
24
|
depthWrite: !1,
|
|
24
25
|
opacity: 0.2
|
|
25
|
-
}),
|
|
26
|
-
|
|
26
|
+
}), n = new r.Mesh(this.geometry, s), a = new r.Mesh(this.geometry, m);
|
|
27
|
+
n.renderOrder = 10, a.renderOrder = 0, e && this.updatePoints(e), this.add(n, a);
|
|
27
28
|
}
|
|
28
29
|
/**
|
|
29
30
|
* @description: 按照新的端点来更新多边形的geometry
|
|
30
31
|
*/
|
|
31
32
|
updatePoints(e) {
|
|
32
|
-
const s =
|
|
33
|
-
s
|
|
33
|
+
const s = l(e);
|
|
34
|
+
s ? this.geometry.copy(s) : this.geometry.copy(p);
|
|
34
35
|
}
|
|
35
36
|
}
|
|
36
37
|
export {
|
|
37
|
-
|
|
38
|
+
w as default
|
|
38
39
|
};
|
|
@@ -52,7 +52,7 @@ class S {
|
|
|
52
52
|
* @description: 获取连续线段的顶点数量
|
|
53
53
|
*/
|
|
54
54
|
getPointLength() {
|
|
55
|
-
return this.
|
|
55
|
+
return this.lines.length + 1;
|
|
56
56
|
}
|
|
57
57
|
clear() {
|
|
58
58
|
const i = this.lines.slice();
|
|
@@ -83,14 +83,14 @@ class S {
|
|
|
83
83
|
}
|
|
84
84
|
fromJson(i) {
|
|
85
85
|
this.clear(), this.id = i.id;
|
|
86
|
-
const { getPoint: t, getAllPoints: h } = f(),
|
|
87
|
-
const [p,
|
|
86
|
+
const { getPoint: t, getAllPoints: h } = f(), u = i.lines.map((e) => {
|
|
87
|
+
const [p, d] = e.points, n = t(p), l = t(d);
|
|
88
88
|
if (!n || !l)
|
|
89
89
|
throw new Error("线上的点不存在");
|
|
90
90
|
const o = new P(n, l, this.model);
|
|
91
91
|
return o.id = e.id, o.text = e.text, o;
|
|
92
92
|
}), c = h();
|
|
93
|
-
this.points.push(...c), this.lines.push(...
|
|
93
|
+
this.points.push(...c), this.lines.push(...u), this.visiblePanoIndexes = i.visiblePanoIndexes;
|
|
94
94
|
function f() {
|
|
95
95
|
const e = /* @__PURE__ */ new Map();
|
|
96
96
|
function p(n) {
|
|
@@ -100,10 +100,10 @@ class S {
|
|
|
100
100
|
const o = new g(n.position);
|
|
101
101
|
return o.id = n.id, e.set(n.id, o), o;
|
|
102
102
|
}
|
|
103
|
-
function
|
|
103
|
+
function d() {
|
|
104
104
|
return Array.from(e.values());
|
|
105
105
|
}
|
|
106
|
-
return { getPoint: p, getAllPoints:
|
|
106
|
+
return { getPoint: p, getAllPoints: d };
|
|
107
107
|
}
|
|
108
108
|
return this;
|
|
109
109
|
}
|
|
@@ -1,13 +1,14 @@
|
|
|
1
1
|
import type MeasureController from '../../Controller';
|
|
2
|
+
export type UIMode = 'pc' | 'mobile';
|
|
2
3
|
export interface UIControllerParams {
|
|
3
|
-
container
|
|
4
|
-
mode?:
|
|
4
|
+
container?: Element;
|
|
5
|
+
mode?: UIMode;
|
|
6
|
+
useNewUI?: boolean;
|
|
5
7
|
startButtonText?: string;
|
|
6
8
|
endButtonText?: string;
|
|
7
9
|
revokeButtonText?: string;
|
|
8
10
|
exitButtonText?: string;
|
|
9
11
|
}
|
|
10
|
-
export type UIMode = 'pc' | 'mobile';
|
|
11
12
|
export declare class UIController {
|
|
12
13
|
private revoke?;
|
|
13
14
|
private container;
|
|
@@ -1,18 +1,79 @@
|
|
|
1
1
|
var c = Object.defineProperty;
|
|
2
|
-
var
|
|
3
|
-
var o = (
|
|
4
|
-
import
|
|
5
|
-
import
|
|
6
|
-
import { controllerBackgroundStyle as
|
|
2
|
+
var h = (i, e, t) => e in i ? c(i, e, { enumerable: !0, configurable: !0, writable: !0, value: t }) : i[e] = t;
|
|
3
|
+
var o = (i, e, t) => (h(i, typeof e != "symbol" ? e + "" : e, t), t);
|
|
4
|
+
import d from "./HTML.js";
|
|
5
|
+
import u from "./mobileHTML.js";
|
|
6
|
+
import { controllerBackgroundStyle as y, operatingSpaceStyle as f, uiWrapperStyle as v, textStyle as C, exitItemStyle as b, exitIconStyle as g } from "./style.js";
|
|
7
7
|
import { MainBtnController as _ } from "./MainBtnController.js";
|
|
8
|
-
import { MobileMainBtnController as
|
|
9
|
-
import
|
|
10
|
-
import
|
|
8
|
+
import { MobileMainBtnController as E } from "./mobileMainBtnController.js";
|
|
9
|
+
import S from "./Revoke/index.js";
|
|
10
|
+
import x from "../../Components/Controller0.js";
|
|
11
|
+
import k from "../../Components/Controller1.js";
|
|
11
12
|
import "../../../vendor/svelte/internal/index.js";
|
|
13
|
+
import "../../Components/Common/Switcher0.js";
|
|
14
|
+
import "../../Components/Common/Exit.js";
|
|
12
15
|
import "../../Components/Common/Switcher1.js";
|
|
13
16
|
import "../../Components/Common/CircleButton.js";
|
|
14
|
-
|
|
15
|
-
|
|
17
|
+
import "../../Controller/EditController.js";
|
|
18
|
+
import "hammerjs";
|
|
19
|
+
import "../../Model/line.js";
|
|
20
|
+
import "../../../shared-utils/uuid.js";
|
|
21
|
+
import "../../utils/line.js";
|
|
22
|
+
import "@realsee/five/line";
|
|
23
|
+
import "../../utils/constants.js";
|
|
24
|
+
import "three";
|
|
25
|
+
import "@realsee/five";
|
|
26
|
+
import "../../utils/dom/distanceItem.js";
|
|
27
|
+
import "../../utils/dom/base.js";
|
|
28
|
+
import "../../utils/isNDCPointInScreen.js";
|
|
29
|
+
import "../../Model/point.js";
|
|
30
|
+
import "../../../shared-utils/removeArrayItem.js";
|
|
31
|
+
import "../../../shared-utils/throttle.js";
|
|
32
|
+
import "../../Controller/BaseController.js";
|
|
33
|
+
import "../../utils/ironbox.js";
|
|
34
|
+
import "../../utils/getIntersectionFromEvent.js";
|
|
35
|
+
import "../../utils/getPointFromHammerEvent.js";
|
|
36
|
+
import "../../Model/polyline.js";
|
|
37
|
+
import "../../Model/area.js";
|
|
38
|
+
import "../../Model/polygon.js";
|
|
39
|
+
import "../../../shared-utils/three/IObject3D.js";
|
|
40
|
+
import "../../utils/generatePolygonGeometry.js";
|
|
41
|
+
import "earcut";
|
|
42
|
+
import "../../utils/dom/areaDom.js";
|
|
43
|
+
import "../../utils/geometryUtil.js";
|
|
44
|
+
import "../../../shared-utils/three/centerPoint.js";
|
|
45
|
+
import "../../utils/isIntersecting.js";
|
|
46
|
+
import "../../../shared-utils/three/PointSelector.js";
|
|
47
|
+
import "../../../shared-utils/three/PointSelectorHelper.js";
|
|
48
|
+
import "../../../shared-utils/three/Magnifier.js";
|
|
49
|
+
import "../../../shared-utils/three/getIntersect.js";
|
|
50
|
+
import "../../../shared-utils/three/PointHelper.js";
|
|
51
|
+
import "../../../shared-utils/three/Assets/index.js";
|
|
52
|
+
import "../../../shared-utils/three/PointDomHelper.js";
|
|
53
|
+
import "../../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
54
|
+
import "../rangePiece/html.js";
|
|
55
|
+
import "../../../CSS3DRenderPlugin/index.js";
|
|
56
|
+
import "../../../CSS3DRenderPlugin/Controller.js";
|
|
57
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
58
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
59
|
+
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
60
|
+
import "../../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
61
|
+
import "../../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
62
|
+
import "../../../CSS3DRenderPlugin/utils/even.js";
|
|
63
|
+
import "../../../shared-utils/Subscribe.js";
|
|
64
|
+
import "../../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
65
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
66
|
+
import "../../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
67
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
68
|
+
import "../../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
69
|
+
import "../../../CSS3DRenderPlugin/utils/waitFiveModelLoaded.js";
|
|
70
|
+
import "../../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
71
|
+
import "../../../shared-utils/isAbsoluteURL.js";
|
|
72
|
+
import "../../../shared-utils/animationFrame/BetterTween.js";
|
|
73
|
+
import "../../../shared-utils/animationFrame/index.js";
|
|
74
|
+
import "../../../shared-utils/isTouchDevice.js";
|
|
75
|
+
class Ft {
|
|
76
|
+
constructor(e, t) {
|
|
16
77
|
o(this, "revoke");
|
|
17
78
|
o(this, "container");
|
|
18
79
|
o(this, "mainController");
|
|
@@ -22,41 +83,48 @@ class D {
|
|
|
22
83
|
o(this, "svelteDom");
|
|
23
84
|
o(this, "_params");
|
|
24
85
|
o(this, "handleExit", () => {
|
|
25
|
-
const
|
|
26
|
-
if (!
|
|
86
|
+
const e = this.container.querySelector(".fpm__exit-icon"), t = this.container.querySelector(".fpm__exit");
|
|
87
|
+
if (!t || !e)
|
|
27
88
|
throw new Error("cannot find dom");
|
|
28
|
-
this.mode === "pc" && (Object.assign(
|
|
29
|
-
const
|
|
30
|
-
|
|
31
|
-
},
|
|
32
|
-
|
|
89
|
+
this.mode === "pc" && (Object.assign(t.style, b), Object.assign(e == null ? void 0 : e.style, g));
|
|
90
|
+
const r = () => {
|
|
91
|
+
t.style.opacity = "1";
|
|
92
|
+
}, s = () => {
|
|
93
|
+
t.style.opacity = "0.85";
|
|
33
94
|
}, n = () => {
|
|
34
95
|
this.measureController.disable();
|
|
35
96
|
};
|
|
36
|
-
return
|
|
37
|
-
|
|
97
|
+
return t.addEventListener("click", n), t.addEventListener("mouseenter", r), t.addEventListener("mouseleave", s), () => {
|
|
98
|
+
t.removeEventListener("click", n), t.removeEventListener("mouseenter", r), t.removeEventListener("mouseleave", s);
|
|
38
99
|
};
|
|
39
100
|
});
|
|
40
|
-
var
|
|
41
|
-
this._params =
|
|
42
|
-
|
|
101
|
+
var s, n;
|
|
102
|
+
this._params = t, this.measureController = e, this.mode = (s = t.mode) != null ? s : "pc", this.container = document.createElement("div"), this.container.innerHTML = this.mode === "mobile" ? u : d, this.container.classList.add("fpm__ui-controller", this.mode), this.container.style.background = "rgba(0, 0, 0, 0.15)";
|
|
103
|
+
const r = (n = t.useNewUI) != null ? n : !1;
|
|
104
|
+
if (r && (this.mode === "pc" ? this.svelteDom = new x({
|
|
105
|
+
target: t.container,
|
|
43
106
|
props: { measureController: this.measureController }
|
|
44
|
-
})
|
|
45
|
-
|
|
46
|
-
|
|
107
|
+
}) : this.mode === "mobile" && (this.svelteDom = new k({
|
|
108
|
+
target: t.container,
|
|
109
|
+
props: { measureController: this.measureController }
|
|
110
|
+
}))), !r) {
|
|
111
|
+
t.container.appendChild(this.container);
|
|
112
|
+
const l = this.container.querySelectorAll(".fpm__text"), m = this.container.querySelector(".fpm_ui-bg"), p = this.container.querySelector(".fpm_operating-space");
|
|
113
|
+
Object.assign(m == null ? void 0 : m.style, y), Object.assign(p == null ? void 0 : p.style, f), Object.assign(this.container.style, v), l.forEach((a) => Object.assign(a.style, C));
|
|
114
|
+
}
|
|
47
115
|
}
|
|
48
116
|
dispose() {
|
|
49
|
-
var
|
|
50
|
-
this.hide(), (
|
|
117
|
+
var e;
|
|
118
|
+
this.hide(), (e = this.svelteDom) == null || e.$destroy(), this.container.remove();
|
|
51
119
|
}
|
|
52
120
|
show() {
|
|
53
|
-
return this.container.style.display = "block", this.container.style.opacity = "1", this.container.style.transform = "translate(0, 0)", this.mode === "pc" ? (this.revoke = new
|
|
121
|
+
return this.container.style.display = "block", this.container.style.opacity = "1", this.container.style.transform = "translate(0, 0)", this.mode === "pc" ? (this.revoke = new S(this.measureController, this.container), this.mainController = new _(this.measureController, this.container, this._params)) : this.mainController = new E(this.measureController, this.container, this._params), this.disposers.push(this.handleExit()), this;
|
|
54
122
|
}
|
|
55
123
|
hide() {
|
|
56
|
-
var
|
|
57
|
-
return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.mode === "pc" && ((
|
|
124
|
+
var e, t;
|
|
125
|
+
return this.container.style.display = "none", this.container.style.opacity = "0", this.container.style.transform = "translate(0, 10px)", this.mode === "pc" && ((e = this.revoke) == null || e.dispose()), (t = this.mainController) == null || t.dispose(), this.disposers.forEach((r) => r()), this.disposers = [], this;
|
|
58
126
|
}
|
|
59
127
|
}
|
|
60
128
|
export {
|
|
61
|
-
|
|
129
|
+
Ft as UIController
|
|
62
130
|
};
|