@realsee/dnalogel 2.21.0-dev.13 → 2.21.0-dev.15
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/PanoMeasurePlugin/Controller/index.d.ts +1 -0
- package/dist/index.cjs.js +29 -29
- package/dist/index.js +1792 -1790
- package/dist/index.umd.js +32 -32
- package/docs/classes/CSS3DRender.html +30 -30
- package/docs/classes/CruisePluginController.html +25 -25
- package/docs/classes/GuideLineItem.GuideLineItem.html +19 -19
- package/docs/classes/GuideLineModeItem.GuideLineModeItem.html +34 -34
- package/docs/classes/Magnifier.html +19 -19
- package/docs/classes/ModelRoomLabelController.html +10 -10
- package/docs/classes/Object3DHelperController.html +24 -24
- package/docs/classes/PaintBrush.html +14 -14
- package/docs/classes/PanoMeasurePluginLine.html +26 -26
- package/docs/classes/PanoMeasurePluginModel.html +26 -26
- package/docs/classes/PanoMeasurePluginPoint.html +13 -13
- package/docs/classes/PanoMeasurePluginPolyline.html +26 -26
- package/docs/classes/PanoTagPluginController.html +46 -46
- package/docs/classes/Util.BetterTween.html +8 -8
- package/docs/classes/Util.Interval.html +11 -11
- package/docs/classes/Util.Magnifier.html +19 -19
- package/docs/classes/Util.PointDomHelper.html +10 -10
- package/docs/classes/Util.PointHelper.html +10 -10
- package/docs/classes/Util.PointSelectorHelper.html +15 -15
- package/docs/classes/Util.Rectangle.html +12 -12
- package/docs/enums/CameraMovementEffect.html +6 -6
- package/docs/enums/ContentType.html +19 -19
- package/docs/enums/DIRECTION.html +8 -8
- package/docs/enums/DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/DimensionType.html +6 -6
- package/docs/enums/FLOOR_PLAN_ATTACHED_TO.html +7 -7
- package/docs/enums/ITEM_LABEL_PLUGIN_DISPLAY_STRATEGY_TYPE.html +8 -8
- package/docs/enums/PaintBrushTypeEnum.html +7 -7
- package/docs/enums/PointType.html +6 -6
- package/docs/enums/Rotation.html +7 -7
- package/docs/functions/CSS3DRenderPlugin.html +3 -3
- package/docs/functions/CameraMovementPlugin.html +3 -3
- package/docs/functions/CruisePlugin.html +3 -3
- package/docs/functions/GuideLinePlugin.html +4 -4
- package/docs/functions/ItemLabelPlugin.html +3 -3
- package/docs/functions/MapviewFloorplanPlugin.html +3 -3
- package/docs/functions/ModelChassisCompassPlugin.html +3 -3
- package/docs/functions/ModelEntryDoorGuidePlugin.html +3 -3
- package/docs/functions/ModelFloorplanPlugin.html +3 -3
- package/docs/functions/ModelItemLabelPlugin.html +3 -3
- package/docs/functions/ModelRoomLabelPlugin.html +3 -3
- package/docs/functions/ModelTVVideoPlugin.html +3 -3
- package/docs/functions/ModelViewPlugin.html +3 -3
- package/docs/functions/Object3DHelperPlugin.html +3 -3
- package/docs/functions/PanoCompassPlugin.html +3 -3
- package/docs/functions/PanoCursorRaycasterPlugin.html +3 -3
- package/docs/functions/PanoDoorLabelPlugin.html +3 -3
- package/docs/functions/PanoFloorplanRadarPlugin.html +3 -3
- package/docs/functions/PanoMeasurePlugin.html +3 -3
- package/docs/functions/PanoRulerPlugin.html +3 -3
- package/docs/functions/PanoRulerProPlugin.html +3 -3
- package/docs/functions/PanoSpatialTagPlugin.html +3 -3
- package/docs/functions/PanoTagPlugin.html +3 -3
- package/docs/functions/PanoVideoPlugin.html +3 -3
- package/docs/functions/TopviewFloorplanPlugin.html +3 -3
- package/docs/functions/Util.absoluteUrl.html +4 -4
- package/docs/functions/Util.getCoordsFromClient.html +4 -4
- package/docs/functions/Util.getCoordsFromElement.html +4 -4
- package/docs/functions/Util.getFrameTime.html +4 -4
- package/docs/functions/Util.getIntersectFromRelativePosition.html +4 -4
- package/docs/functions/Util.getRaycasterFromFivePointer.html +4 -4
- package/docs/functions/Util.isAbsoluteURL.html +4 -4
- package/docs/functions/Util.isModelLike.html +4 -4
- package/docs/functions/Util.isNil.html +4 -4
- package/docs/functions/Util.isPanoramaLike.html +4 -4
- package/docs/functions/Util.nextFrame.html +4 -4
- package/docs/functions/Util.notNil.html +4 -4
- package/docs/functions/Util.requestAnimationFrameInterval.html +4 -4
- package/docs/functions/Util.tweenProgress.html +4 -4
- package/docs/functions/Util.uuid.html +4 -4
- package/docs/functions/pluginFlag.html +4 -4
- package/docs/index.html +4 -4
- package/docs/interfaces/AddTagConfig.html +5 -5
- package/docs/interfaces/CSS3DRenderPluginEventMap.html +10 -10
- package/docs/interfaces/CSS3DRenderPluginState.html +7 -7
- package/docs/interfaces/CameraMovementPluginExportType.html +6 -6
- package/docs/interfaces/CruisePluginTypes.Config.html +7 -7
- package/docs/interfaces/CruisePluginTypes.CruiseKeyframe.html +11 -11
- package/docs/interfaces/CruisePluginTypes.EventMap.html +19 -19
- package/docs/interfaces/CruisePluginTypes.MoveAction.html +11 -11
- package/docs/interfaces/CruisePluginTypes.MoveWithKeyframesAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.MoveWithPanoIndexAction.html +13 -13
- package/docs/interfaces/CruisePluginTypes.PluginData.html +8 -8
- package/docs/interfaces/CruisePluginTypes.PluginServerData.html +6 -6
- package/docs/interfaces/CruisePluginTypes.PluginState.html +10 -10
- package/docs/interfaces/EventMap.html +14 -14
- package/docs/interfaces/FloorplanBounding.html +7 -7
- package/docs/interfaces/FloorplanData.html +9 -9
- package/docs/interfaces/FloorplanEntrance.html +10 -10
- package/docs/interfaces/FloorplanExtraObject.html +9 -9
- package/docs/interfaces/FloorplanExtraObject3D.html +7 -7
- package/docs/interfaces/FloorplanFloorData.html +8 -8
- package/docs/interfaces/FloorplanImagePosition.html +6 -6
- package/docs/interfaces/FloorplanObserver.html +8 -8
- package/docs/interfaces/FloorplanOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanPosition.html +6 -6
- package/docs/interfaces/FloorplanRoomItem.html +12 -12
- package/docs/interfaces/FloorplanRoomLabelItem.html +6 -6
- package/docs/interfaces/FloorplanServerBounding.html +7 -7
- package/docs/interfaces/FloorplanServerComputedData.html +9 -9
- package/docs/interfaces/FloorplanServerData.html +6 -6
- package/docs/interfaces/FloorplanServerDoorItem.html +9 -9
- package/docs/interfaces/FloorplanServerDoorPosition.html +7 -7
- package/docs/interfaces/FloorplanServerEntrance.html +10 -10
- package/docs/interfaces/FloorplanServerFloorData.html +8 -8
- package/docs/interfaces/FloorplanServerImagePosition.html +6 -6
- package/docs/interfaces/FloorplanServerObserver.html +8 -8
- package/docs/interfaces/FloorplanServerOutlineItem.html +8 -8
- package/docs/interfaces/FloorplanServerPosition.html +6 -6
- package/docs/interfaces/FloorplanServerRoomItem.html +13 -13
- package/docs/interfaces/FloorplanServerRoomLabelItem.html +6 -6
- package/docs/interfaces/GuideLineModeItem.GuideLineTagContainer.html +7 -7
- package/docs/interfaces/GuideLinePluginType.CatmullRomCurve3.html +9 -9
- package/docs/interfaces/GuideLinePluginType.EventMap.html +12 -12
- package/docs/interfaces/GuideLinePluginType.GuideLineGeometryStyle.html +7 -7
- package/docs/interfaces/GuideLinePluginType.GuideLineItemContainer.html +5 -5
- package/docs/interfaces/GuideLinePluginType.GuideLineMaterialStyle.html +12 -12
- package/docs/interfaces/GuideLinePluginType.LineGeometriesConfig.html +7 -7
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.ModelGuideLineTagData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PanoramaGuideLineStyle.html +17 -17
- package/docs/interfaces/GuideLinePluginType.PluginDataV2.html +4 -4
- package/docs/interfaces/GuideLinePluginType.PluginServerData.html +6 -6
- package/docs/interfaces/GuideLinePluginType.PluginState.html +7 -7
- package/docs/interfaces/GuideLinePluginType.Route.html +10 -10
- package/docs/interfaces/GuideLinePluginType.RouteConfig.html +8 -8
- package/docs/interfaces/HelperOffset.html +7 -7
- package/docs/interfaces/ImagePlaneGroup.html +5 -5
- package/docs/interfaces/ItemLabelPluginData.html +5 -5
- package/docs/interfaces/ItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ItemLabelPluginParametersType.html +8 -8
- package/docs/interfaces/MinMax.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginData.html +6 -6
- package/docs/interfaces/ModelChassisCompassPluginExportType.html +7 -7
- package/docs/interfaces/ModelChassisCompassPluginParameterType.html +6 -6
- package/docs/interfaces/ModelEntryDoorGuidePluginData.html +7 -7
- package/docs/interfaces/ModelEntryDoorGuidePluginExportType.html +7 -7
- package/docs/interfaces/ModelItemLabelPluginData.html +5 -5
- package/docs/interfaces/ModelItemLabelPluginExportReturnsType.html +10 -10
- package/docs/interfaces/ModelItemLabelPluginParametersType.html +6 -6
- package/docs/interfaces/ModelRoomLabelPluginData.html +5 -5
- package/docs/interfaces/ModelTVVideoPluginData.html +8 -8
- package/docs/interfaces/ModelTVVideoPluginExportType.html +7 -7
- package/docs/interfaces/ModelTVVideoPluginParameterType.html +5 -5
- package/docs/interfaces/ModelViewPluginExportType.html +10 -10
- package/docs/interfaces/Object3DHelperState.html +7 -7
- package/docs/interfaces/ObjectHelperControllers.html +8 -8
- package/docs/interfaces/PaintBrushAction.html +11 -11
- package/docs/interfaces/PaintBrushConfigs.html +11 -11
- package/docs/interfaces/PaintBrushState.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginExportType.html +9 -9
- package/docs/interfaces/PanoCursorRaycasterPluginParameterType.html +4 -4
- package/docs/interfaces/PanoMeasureParameterType.html +14 -14
- package/docs/interfaces/PanoMeasurePluginLineJson.html +7 -7
- package/docs/interfaces/PanoMeasurePluginOpenParameter.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPointJson.html +6 -6
- package/docs/interfaces/PanoMeasurePluginPolylineJson.html +7 -7
- package/docs/interfaces/PanoRulerPluginExportType.html +9 -9
- package/docs/interfaces/PanoRulerPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerPluginParameterType.html +7 -7
- package/docs/interfaces/PanoRulerProPluginExportType.html +8 -8
- package/docs/interfaces/PanoRulerProPluginOptions.html +6 -6
- package/docs/interfaces/PanoRulerProPluginParameterType.html +6 -6
- package/docs/interfaces/PanoRulerProPluginState.html +7 -7
- package/docs/interfaces/PanoSpatialTagPluginContentEvent.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginContentReplacement.html +4 -4
- package/docs/interfaces/PanoSpatialTagPluginData.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginDataElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginExportType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginOriginElement.html +9 -9
- package/docs/interfaces/PanoSpatialTagPluginParameterType.html +12 -12
- package/docs/interfaces/PanoSpatialTagPluginPointElement.html +10 -10
- package/docs/interfaces/PanoSpatialTagPluginTagElement.html +9 -9
- package/docs/interfaces/PanoVideoPluginType.LoadParams.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PanoVideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.PluginData.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.PluginEventMap.html +8 -8
- package/docs/interfaces/PanoVideoPluginType.PluginState.html +5 -5
- package/docs/interfaces/PanoVideoPluginType.VideoItem.html +7 -7
- package/docs/interfaces/PanoVideoPluginType.VideoMeshParams.html +9 -9
- package/docs/interfaces/Point.html +7 -7
- package/docs/interfaces/Room.html +8 -8
- package/docs/interfaces/RoomInfo.html +6 -6
- package/docs/interfaces/RoomLabel.html +13 -13
- package/docs/interfaces/RoomRules.html +4 -4
- package/docs/interfaces/Rooms.html +4 -4
- package/docs/interfaces/Scissor.html +8 -8
- package/docs/interfaces/State.html +7 -7
- package/docs/interfaces/TagCacheInterface.html +11 -11
- package/docs/interfaces/TagConfig.html +12 -12
- package/docs/interfaces/TagGLTFObjectGroup.html +5 -5
- package/docs/interfaces/TagIconUrl.html +11 -11
- package/docs/interfaces/TagObjectGroup.html +5 -5
- package/docs/interfaces/TagStyle.html +5 -5
- package/docs/interfaces/Tags.html +8 -8
- package/docs/interfaces/TemporaryState.html +5 -5
- package/docs/interfaces/Util.MagnifierParameter.html +10 -10
- package/docs/interfaces/Util.MouseGroupParameter.html +7 -7
- package/docs/interfaces/Util.PointIntersection.html +7 -7
- package/docs/modules/CruisePluginTypes.html +4 -4
- package/docs/modules/GuideLineItem.html +4 -4
- package/docs/modules/GuideLineModeItem.html +4 -4
- package/docs/modules/GuideLinePluginType.html +4 -4
- package/docs/modules/PanoVideoPluginType.html +4 -4
- package/docs/modules/Util.html +4 -4
- package/docs/modules.html +4 -4
- package/docs/types/ArrayPosition.html +4 -4
- package/docs/types/AudioAppearance.html +4 -4
- package/docs/types/AudioTagTypeConfigKey.html +4 -4
- package/docs/types/CSS3DRenderExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginExportType.html +4 -4
- package/docs/types/CSS3DRenderPluginParameterType.html +4 -4
- package/docs/types/ClassFunctionParameters.html +4 -4
- package/docs/types/Color.html +4 -4
- package/docs/types/ContentTypeConfigKey.html +4 -4
- package/docs/types/ContentTypeConfigKeySplit.html +4 -4
- package/docs/types/ContentTypeMap.html +4 -4
- package/docs/types/Create3DDomContainerReturnType.html +4 -4
- package/docs/types/Create3DElementReturnType.html +4 -4
- package/docs/types/CruisePluginExportType.html +4 -4
- package/docs/types/CruisePluginTypes.CruiseData.html +4 -4
- package/docs/types/CruisePluginTypes.MoveEffect.html +4 -4
- package/docs/types/DeprecatedMediaPlaneProperty.html +4 -4
- package/docs/types/DeprecatedTagProperty.html +4 -4
- package/docs/types/Direction-1.html +4 -4
- package/docs/types/Direction4.html +4 -4
- package/docs/types/ElementRenderer.html +4 -4
- package/docs/types/FloorplanRuleLabels.html +4 -4
- package/docs/types/FloorplanServerRuleLabels.html +4 -4
- package/docs/types/GuideLinePluginExportType.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItem.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineItemEventMap.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineModeItemMode.html +4 -4
- package/docs/types/GuideLinePluginType.GuideLineStyle.html +4 -4
- package/docs/types/GuideLinePluginType.ModelGuideLineTag.html +4 -4
- package/docs/types/GuideLinePluginType.PathItem.html +4 -4
- package/docs/types/GuideLinePluginType.PluginData.html +4 -4
- package/docs/types/HelperEventMap.html +4 -4
- package/docs/types/LoadTagConfig.html +4 -4
- package/docs/types/MapviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/MapviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/MediaData.html +4 -4
- package/docs/types/MediaStore.html +4 -4
- package/docs/types/ModelEntryDoorGuidePluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginParameterType.html +4 -4
- package/docs/types/ModelFloorplanPluginReturnType.html +4 -4
- package/docs/types/ModelRoomLabelPluginParameters.html +4 -4
- package/docs/types/ModelRoomLabelPluginReturnType.html +4 -4
- package/docs/types/MoveArgs.html +4 -4
- package/docs/types/MoveOpts.html +4 -4
- package/docs/types/Object3DHelperEventMap.html +4 -4
- package/docs/types/ObjectFit.html +4 -4
- package/docs/types/PaintBrushEventMap.html +4 -4
- package/docs/types/PanoCompassPluginData.html +4 -4
- package/docs/types/PanoCompassPluginExportType.html +4 -4
- package/docs/types/PanoCompassPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginParameterType.html +4 -4
- package/docs/types/PanoFloorplanRadarPluginReturnType.html +4 -4
- package/docs/types/PanoIndex.html +4 -4
- package/docs/types/PanoMeasurePluginEvent.html +4 -4
- package/docs/types/PanoMeasureReturnType.html +4 -4
- package/docs/types/PanoSpatialTagPluginId.html +4 -4
- package/docs/types/PanoTagPluginExportInterface.html +4 -4
- package/docs/types/PanoTagPluginParamsInterface.html +4 -4
- package/docs/types/PanoVideoPluginParameterType.html +4 -4
- package/docs/types/PanoVideoPluginReturnType.html +4 -4
- package/docs/types/PickTagContentTypeInContentTypeConfigKey.html +4 -4
- package/docs/types/PlaneTag.html +4 -4
- package/docs/types/Point2DTag.html +4 -4
- package/docs/types/Point3DTag.html +4 -4
- package/docs/types/PointTag.html +4 -4
- package/docs/types/PointTagInstance.html +4 -4
- package/docs/types/Position.html +4 -4
- package/docs/types/RotateArgs.html +4 -4
- package/docs/types/RotateOpts.html +4 -4
- package/docs/types/RuleLabelsKey.html +4 -4
- package/docs/types/RuleLabelsValue.html +4 -4
- package/docs/types/StickType.html +4 -4
- package/docs/types/Tag.html +4 -4
- package/docs/types/Tag2D.html +4 -4
- package/docs/types/Tag3D.html +4 -4
- package/docs/types/TagContentType.html +4 -4
- package/docs/types/TagDimensionType.html +4 -4
- package/docs/types/TagElement.html +4 -4
- package/docs/types/TagEvents.html +4 -4
- package/docs/types/TagGLTFObject.html +4 -4
- package/docs/types/TagHooks.html +4 -4
- package/docs/types/TagId.html +4 -4
- package/docs/types/TagInstance.html +4 -4
- package/docs/types/TagPointType.html +4 -4
- package/docs/types/TagRendererMap.html +4 -4
- package/docs/types/TopviewFloorplanPluginParameterType.html +4 -4
- package/docs/types/TopviewFloorplanPluginReturnType.html +4 -4
- package/docs/types/WorkCode.html +4 -4
- package/docs/variables/FLOOR_TYPE_MAP.html +4 -4
- package/docs/variables/PLUGIN.html +4 -4
- package/docs/variables/ROOM_FETILE_TYPE_MAP.html +4 -4
- package/docs/variables/ROOM_TYPE_MAP.html +4 -4
- package/docs/variables/itemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelItemLabelPluginServerParams.html +4 -4
- package/docs/variables/modelRoomLabelPluginServerParams.html +4 -4
- package/libs/PanoMeasurePlugin/Components/Common/Switcher0.js +116 -116
- package/libs/PanoMeasurePlugin/Components/Controller0.js +101 -89
- package/libs/PanoMeasurePlugin/Components/Controller1.js +167 -178
- package/libs/PanoMeasurePlugin/Components/Tip.js +56 -82
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +9 -9
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +11 -11
- package/libs/PanoMeasurePlugin/Controller/index.d.ts +1 -0
- package/libs/PanoMeasurePlugin/Controller/index.js +15 -12
- package/libs/PanoMeasurePlugin/Model/area.js +1 -1
- package/libs/PanoMeasurePlugin/Model/index.js +3 -2
- package/libs/PanoMeasurePlugin/Model/line.js +1 -0
- package/libs/PanoMeasurePlugin/Model/polyline.js +3 -2
- package/libs/PanoMeasurePlugin/Modules/DeleteDom/index.js +3 -3
- package/libs/PanoMeasurePlugin/Modules/GuideController.js +14 -38
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +1 -1
- package/libs/PanoMeasurePlugin/index.js +1 -1
- package/libs/PanoMeasurePlugin/utils/dom/distanceItem.js +21 -20
- package/libs/base/BasePlugin.js +1 -1
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/three/Magnifier.js +4 -4
- package/libs/shared-utils/three/PointSelector.js +14 -14
- package/package.json +1 -1
|
@@ -1,47 +1,23 @@
|
|
|
1
|
-
import { SvelteComponent as
|
|
2
|
-
import { fade as
|
|
3
|
-
import "@realsee/five/line";
|
|
4
|
-
import "../utils/constants.js";
|
|
5
|
-
import "three";
|
|
6
|
-
import "@realsee/five";
|
|
7
|
-
import "../Model/polygon.js";
|
|
8
|
-
import "hammerjs";
|
|
9
|
-
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
10
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
11
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
1
|
+
import { SvelteComponent as W, init as q, safe_not_equal as z, append_styles as E, empty as N, insert as v, transition_in as h, transition_out as _, check_outros as O, detach as M, onMount as P, onDestroy as j, element as b, text as A, attr as g, append as k, set_data as B, add_render_callback as F, create_bidirectional_transition as C, group_outros as G, binding_callbacks as H } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
import { fade as x } from "../../vendor/svelte/transition/index.js";
|
|
12
3
|
import "../../vendor/svelte/easing/index.js";
|
|
13
|
-
import "../../shared-utils/three/IObject3D.js";
|
|
14
|
-
import "../utils/generatePolygonGeometry.js";
|
|
15
|
-
import "earcut";
|
|
16
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
17
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
18
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
19
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
20
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
21
|
-
import "../../shared-utils/Subscribe.js";
|
|
22
|
-
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
23
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
24
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
25
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
26
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
27
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
28
4
|
function I(l) {
|
|
29
|
-
|
|
5
|
+
E(l, "svelte-1x2fiiy", ".Measure-Tips.svelte-1x2fiiy.svelte-1x2fiiy{box-sizing:border-box;position:absolute;pointer-events:none;top:0;width:100%;padding:0 2.5rem}.Measure-Tips.svelte-1x2fiiy .text.svelte-1x2fiiy{text-align:center;position:relative;max-width:100%;top:3.125rem;color:#fff;word-break:break-all;word-wrap:break-word;text-shadow:0 0.0625rem 0.375rem rgba(0, 0, 0, 0.5)}");
|
|
30
6
|
}
|
|
31
7
|
function T(l) {
|
|
32
|
-
let o,
|
|
8
|
+
let o, n, e, i, r;
|
|
33
9
|
return {
|
|
34
10
|
c() {
|
|
35
|
-
o =
|
|
11
|
+
o = b("div"), n = b("div"), e = A(
|
|
36
12
|
/*tip*/
|
|
37
13
|
l[2]
|
|
38
|
-
),
|
|
14
|
+
), g(n, "class", "text svelte-1x2fiiy"), g(o, "class", "Measure-Tips svelte-1x2fiiy");
|
|
39
15
|
},
|
|
40
|
-
m(s,
|
|
41
|
-
|
|
16
|
+
m(s, f) {
|
|
17
|
+
v(s, o, f), k(o, n), k(n, e), l[6](n), r = !0;
|
|
42
18
|
},
|
|
43
|
-
p(s,
|
|
44
|
-
(!
|
|
19
|
+
p(s, f) {
|
|
20
|
+
(!r || f & /*tip*/
|
|
45
21
|
4) && B(
|
|
46
22
|
e,
|
|
47
23
|
/*tip*/
|
|
@@ -49,96 +25,94 @@ function T(l) {
|
|
|
49
25
|
);
|
|
50
26
|
},
|
|
51
27
|
i(s) {
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
}),
|
|
28
|
+
r || (F(() => {
|
|
29
|
+
r && (i || (i = C(o, x, {}, !0)), i.run(1));
|
|
30
|
+
}), r = !0);
|
|
55
31
|
},
|
|
56
32
|
o(s) {
|
|
57
|
-
i || (i = C(o,
|
|
33
|
+
i || (i = C(o, x, {}, !1)), i.run(0), r = !1;
|
|
58
34
|
},
|
|
59
35
|
d(s) {
|
|
60
|
-
s &&
|
|
36
|
+
s && M(o), l[6](null), s && i && i.end();
|
|
61
37
|
}
|
|
62
38
|
};
|
|
63
39
|
}
|
|
64
40
|
function J(l) {
|
|
65
|
-
let o,
|
|
41
|
+
let o, n, e = (
|
|
66
42
|
/*visible*/
|
|
67
43
|
l[0] && T(l)
|
|
68
44
|
);
|
|
69
45
|
return {
|
|
70
46
|
c() {
|
|
71
|
-
e && e.c(), o =
|
|
47
|
+
e && e.c(), o = N();
|
|
72
48
|
},
|
|
73
|
-
m(i,
|
|
74
|
-
e && e.m(i,
|
|
49
|
+
m(i, r) {
|
|
50
|
+
e && e.m(i, r), v(i, o, r), n = !0;
|
|
75
51
|
},
|
|
76
|
-
p(i, [
|
|
52
|
+
p(i, [r]) {
|
|
77
53
|
/*visible*/
|
|
78
|
-
i[0] ? e ? (e.p(i,
|
|
79
|
-
1 &&
|
|
54
|
+
i[0] ? e ? (e.p(i, r), r & /*visible*/
|
|
55
|
+
1 && h(e, 1)) : (e = T(i), e.c(), h(e, 1), e.m(o.parentNode, o)) : e && (G(), _(e, 1, 1, () => {
|
|
80
56
|
e = null;
|
|
81
|
-
}),
|
|
57
|
+
}), O());
|
|
82
58
|
},
|
|
83
59
|
i(i) {
|
|
84
|
-
|
|
60
|
+
n || (h(e), n = !0);
|
|
85
61
|
},
|
|
86
62
|
o(i) {
|
|
87
|
-
|
|
63
|
+
_(e), n = !1;
|
|
88
64
|
},
|
|
89
65
|
d(i) {
|
|
90
|
-
e && e.d(i), i &&
|
|
66
|
+
e && e.d(i), i && M(o);
|
|
91
67
|
}
|
|
92
68
|
};
|
|
93
69
|
}
|
|
94
|
-
function K(l, o,
|
|
95
|
-
let { measureController: e } = o, { tips: i } = o, { tipStyle:
|
|
96
|
-
const
|
|
97
|
-
const
|
|
98
|
-
let
|
|
99
|
-
return
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
},
|
|
103
|
-
|
|
70
|
+
function K(l, o, n) {
|
|
71
|
+
let { measureController: e } = o, { tips: i } = o, { tipStyle: r = {} } = o, { visible: s = !0 } = o, f = null;
|
|
72
|
+
const w = (t) => {
|
|
73
|
+
const D = e.currentMeasureType;
|
|
74
|
+
let c = "";
|
|
75
|
+
return c = i[t], c === void 0 && (c = i[D][t]), c;
|
|
76
|
+
}, a = (t) => {
|
|
77
|
+
n(2, d = w(t));
|
|
78
|
+
}, u = () => {
|
|
79
|
+
n(2, d = "");
|
|
104
80
|
};
|
|
105
|
-
let
|
|
106
|
-
const
|
|
107
|
-
t === "Edit" ? e.changeMeasureType ?
|
|
108
|
-
},
|
|
109
|
-
|
|
110
|
-
},
|
|
111
|
-
e.currentMeasureType === "area" && (t.length >= 2 ?
|
|
81
|
+
let d = "";
|
|
82
|
+
const p = (t) => {
|
|
83
|
+
t === "Edit" ? e.changeMeasureType ? a("start") : a("select") : t === "Watch" ? a("select") : u();
|
|
84
|
+
}, m = () => {
|
|
85
|
+
e.getCurrentMode() === "Watch" && a("select");
|
|
86
|
+
}, y = (t) => {
|
|
87
|
+
e.currentMeasureType === "area" && (t.length >= 2 ? a("close") : t.length === 0 ? a("start") : u());
|
|
112
88
|
};
|
|
113
|
-
|
|
114
|
-
|
|
89
|
+
P(() => {
|
|
90
|
+
p(e.getCurrentMode()), e.hook.on("modeChange", p), e.hook.on("complete", m), e.hook.on("pointsChange", y), e.hook.on("measureTypeChange", u);
|
|
115
91
|
}), j(() => {
|
|
116
|
-
e.hook.off("modeChange",
|
|
92
|
+
e.hook.off("modeChange", p), e.hook.off("complete", m), e.hook.off("pointsChange", y), e.hook.off("measureTypeChange", u), u();
|
|
117
93
|
});
|
|
118
|
-
function
|
|
94
|
+
function S(t) {
|
|
119
95
|
H[t ? "unshift" : "push"](() => {
|
|
120
|
-
|
|
96
|
+
f = t, n(1, f), n(5, r);
|
|
121
97
|
});
|
|
122
98
|
}
|
|
123
99
|
return l.$$set = (t) => {
|
|
124
|
-
"measureController" in t &&
|
|
100
|
+
"measureController" in t && n(3, e = t.measureController), "tips" in t && n(4, i = t.tips), "tipStyle" in t && n(5, r = t.tipStyle), "visible" in t && n(0, s = t.visible);
|
|
125
101
|
}, l.$$.update = () => {
|
|
126
102
|
if (l.$$.dirty & /*textDom, tipStyle*/
|
|
127
|
-
34 &&
|
|
128
|
-
for (const t in
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
4 && console.log({ tip: c });
|
|
132
|
-
}, [s, a, c, e, i, n, x];
|
|
103
|
+
34 && f)
|
|
104
|
+
for (const t in r)
|
|
105
|
+
r.hasOwnProperty(t) && n(1, f.style[t] = r[t], f);
|
|
106
|
+
}, [s, f, d, e, i, r, S];
|
|
133
107
|
}
|
|
134
|
-
class
|
|
108
|
+
class U extends W {
|
|
135
109
|
constructor(o) {
|
|
136
110
|
super(), q(
|
|
137
111
|
this,
|
|
138
112
|
o,
|
|
139
113
|
K,
|
|
140
114
|
J,
|
|
141
|
-
|
|
115
|
+
z,
|
|
142
116
|
{
|
|
143
117
|
measureController: 3,
|
|
144
118
|
tips: 4,
|
|
@@ -150,5 +124,5 @@ class ge extends D {
|
|
|
150
124
|
}
|
|
151
125
|
}
|
|
152
126
|
export {
|
|
153
|
-
|
|
127
|
+
U as default
|
|
154
128
|
};
|
|
@@ -13,8 +13,9 @@ import "@realsee/five";
|
|
|
13
13
|
import "../utils/dom/distanceItem.js";
|
|
14
14
|
import "../utils/dom/base.js";
|
|
15
15
|
import "../utils/isNDCPointInScreen.js";
|
|
16
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
16
17
|
import "../../shared-utils/removeArrayItem.js";
|
|
17
|
-
class
|
|
18
|
+
class S {
|
|
18
19
|
constructor(e) {
|
|
19
20
|
t(this, "model");
|
|
20
21
|
t(this, "five");
|
|
@@ -65,5 +66,5 @@ class k {
|
|
|
65
66
|
}
|
|
66
67
|
}
|
|
67
68
|
export {
|
|
68
|
-
|
|
69
|
+
S as default
|
|
69
70
|
};
|
|
@@ -21,6 +21,7 @@ import "../utils/constants.js";
|
|
|
21
21
|
import "@realsee/five";
|
|
22
22
|
import "../utils/dom/distanceItem.js";
|
|
23
23
|
import "../utils/dom/base.js";
|
|
24
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
24
25
|
import "../../shared-utils/removeArrayItem.js";
|
|
25
26
|
import "../utils/ironbox.js";
|
|
26
27
|
import "../Model/polygon.js";
|
|
@@ -29,7 +30,6 @@ import "../utils/generatePolygonGeometry.js";
|
|
|
29
30
|
import "earcut";
|
|
30
31
|
import "../utils/dom/areaDom.js";
|
|
31
32
|
import "../utils/geometryUtil.js";
|
|
32
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
33
33
|
import "../../shared-utils/three/PointSelectorHelper.js";
|
|
34
34
|
import "../../shared-utils/three/Magnifier.js";
|
|
35
35
|
import "hammerjs";
|
|
@@ -64,7 +64,7 @@ import "../../shared-utils/three/getIntersect.js";
|
|
|
64
64
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
65
65
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
66
66
|
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
67
|
-
const
|
|
67
|
+
const E = () => !1;
|
|
68
68
|
class Xe extends j {
|
|
69
69
|
constructor(e) {
|
|
70
70
|
var t;
|
|
@@ -81,7 +81,7 @@ class Xe extends j {
|
|
|
81
81
|
o(this, "deleteDom");
|
|
82
82
|
/** 根据 intersection 更新放大镜和吸附点 */
|
|
83
83
|
o(this, "onIntersectionUpdate", H((e, t) => {
|
|
84
|
-
typeof t == "boolean" && (t ? this.hook.emit("readyComplete") : this.hook.emit("notReadyComplete")), this.updateDashed();
|
|
84
|
+
this.currentMeasureType === "area" && typeof t == "boolean" && (t ? this.hook.emit("readyComplete") : this.hook.emit("notReadyComplete")), this.updateDashed();
|
|
85
85
|
}, 20));
|
|
86
86
|
/** 撤销编辑 */
|
|
87
87
|
o(this, "revoke", () => {
|
|
@@ -225,8 +225,8 @@ class Xe extends j {
|
|
|
225
225
|
const [p, v] = h.points, f = p.position.clone().project(r), u = v.position.clone().project(r);
|
|
226
226
|
if (!w(f) && !w(u))
|
|
227
227
|
return null;
|
|
228
|
-
const
|
|
229
|
-
return { id: h.id, points: [
|
|
228
|
+
const I = new y(f.x * d, f.y * a), M = new y(u.x * d, u.y * a);
|
|
229
|
+
return { id: h.id, points: [I, M] };
|
|
230
230
|
}).filter((h) => !!h);
|
|
231
231
|
if (g.length === 0)
|
|
232
232
|
return;
|
|
@@ -245,14 +245,14 @@ class Xe extends j {
|
|
|
245
245
|
this.deleteDom.setTarget(t).setLines(t).updatePosition().show(), this.highlightLines(t), this.hook.emit("selectedChange", t);
|
|
246
246
|
});
|
|
247
247
|
o(this, "chooseArea", (e, t) => {
|
|
248
|
-
this.deleteDom.setTarget(e).updatePosition(t.left, `calc(${t.top} - 1.5rem)`).show(), this.highlightArea(e);
|
|
248
|
+
console.log("choose area"), this.deleteDom.setTarget(e).updatePosition(t.left, `calc(${t.top} - 1.5rem)`).show(), this.highlightArea(e);
|
|
249
249
|
});
|
|
250
250
|
o(this, "deleteArea", (e) => {
|
|
251
251
|
this.unHighlightArea(e), e.dispose(), this.deleteDom.hide();
|
|
252
252
|
});
|
|
253
253
|
o(this, "deleteLine", (e) => {
|
|
254
254
|
const t = e[0], i = this.model.getPolylineByLine(t);
|
|
255
|
-
i && (this.model.removePolyline(i), this.deleteDom.setLines([]).hide());
|
|
255
|
+
i && (this.model.removePolyline(i), i.lines.forEach((s) => this.removeLine(s)), this.deleteDom.setLines([]).hide());
|
|
256
256
|
});
|
|
257
257
|
this.fiveElement = this.five.getElement(), this.deleteDom = new G(this.five, {
|
|
258
258
|
i18n: this.config.i18n,
|
|
@@ -281,13 +281,13 @@ class Xe extends j {
|
|
|
281
281
|
i.areaItem.appendTo(this.container), i.areaItem.updateDomPosition(this.five), i.areaItem.setCanSelect(!0), this.group.add(i.polygon), i.polyline.lines.forEach((s) => {
|
|
282
282
|
s.distanceItem.appendTo(this.container), s.distanceItem.update(this.five), this.group.add(s.mesh);
|
|
283
283
|
});
|
|
284
|
-
}), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.wantsTapGesture), this.five.on("wantsToMoveToPano",
|
|
284
|
+
}), this.five.on("cameraUpdate", this.onCameraUpdate), this.five.on("wantsTapGesture", this.wantsTapGesture), this.five.on("wantsToMoveToPano", E), this.pointSelector.hook.on("intersectionUpdate", this.onIntersectionUpdate), this.pointSelector.hook.on("select", this.onSelect), this.pointSelector.hook.on("wantsSelect", this.onWantsSelect), this.polyline.hook.on("lineAdded", this.onLineChanged), this.polyline.hook.on("lineRemoved", this.onLineChanged), this.five.helperVisible = !1, (t = this.fiveElement) == null || t.addEventListener("mouseleave", this.onMouseLeave), this.hook.emit("anchorChange", null), this.hook.emit("editedDashedLineChange", null), this.five.refresh();
|
|
285
285
|
}
|
|
286
286
|
dispose() {
|
|
287
287
|
var e;
|
|
288
288
|
super.dispose(), this.model.areas.forEach((t) => {
|
|
289
289
|
(t.points.length < 2 || t.polygon.isBlank) && this.model.removeArea(t);
|
|
290
|
-
}), this.five.helperVisible = !0, this.pointSelector.disable(), this.dashed.remove(), this.perpendicularDashed.remove(), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsTapGesture", this.wantsTapGesture), this.five.off("wantsToMoveToPano",
|
|
290
|
+
}), this.five.helperVisible = !0, this.pointSelector.disable(), this.dashed.remove(), this.perpendicularDashed.remove(), this.five.off("cameraUpdate", this.onCameraUpdate), this.five.off("wantsTapGesture", this.wantsTapGesture), this.five.off("wantsToMoveToPano", E), this.pointSelector.hook.off("intersectionUpdate", this.onIntersectionUpdate), this.pointSelector.hook.off("select", this.onSelect), this.polyline.hook.off("lineAdded", this.onLineChanged), this.polyline.hook.off("lineRemoved", this.onLineChanged), (e = this.fiveElement) == null || e.removeEventListener("mouseleave", this.onMouseLeave), this.magnifier.dispose(), this.dashed.distanceItem.remove(), this.five.needsRender = !0;
|
|
291
291
|
}
|
|
292
292
|
getEditingLines() {
|
|
293
293
|
return this.polyline.lines;
|
|
@@ -18,6 +18,7 @@ import "@realsee/five/line";
|
|
|
18
18
|
import "../utils/constants.js";
|
|
19
19
|
import "../utils/dom/distanceItem.js";
|
|
20
20
|
import "../utils/dom/base.js";
|
|
21
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
21
22
|
import "../Model/point.js";
|
|
22
23
|
import "../../shared-utils/removeArrayItem.js";
|
|
23
24
|
import "../utils/ironbox.js";
|
|
@@ -30,7 +31,7 @@ import "../../shared-utils/animationFrame/index.js";
|
|
|
30
31
|
import "../../shared-utils/noop.js";
|
|
31
32
|
import "../utils/calculateThreeMouse.js";
|
|
32
33
|
import "../utils/mouseGroup.js";
|
|
33
|
-
class
|
|
34
|
+
class de extends T {
|
|
34
35
|
constructor(e) {
|
|
35
36
|
super(e);
|
|
36
37
|
t(this, "state", "watching");
|
|
@@ -144,5 +145,5 @@ class le extends T {
|
|
|
144
145
|
}
|
|
145
146
|
}
|
|
146
147
|
export {
|
|
147
|
-
|
|
148
|
+
de as default
|
|
148
149
|
};
|
|
@@ -13,10 +13,11 @@ import "@realsee/five";
|
|
|
13
13
|
import "../utils/dom/distanceItem.js";
|
|
14
14
|
import "../utils/dom/base.js";
|
|
15
15
|
import "../utils/isNDCPointInScreen.js";
|
|
16
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
16
17
|
import "../Model/point.js";
|
|
17
18
|
import "../../shared-utils/removeArrayItem.js";
|
|
18
19
|
import "../utils/ironbox.js";
|
|
19
|
-
class
|
|
20
|
+
class R extends h {
|
|
20
21
|
constructor(e) {
|
|
21
22
|
super(e);
|
|
22
23
|
s(this, "type", "view");
|
|
@@ -66,5 +67,5 @@ class F extends h {
|
|
|
66
67
|
}
|
|
67
68
|
}
|
|
68
69
|
export {
|
|
69
|
-
|
|
70
|
+
R as default
|
|
70
71
|
};
|
|
@@ -8,8 +8,8 @@ import G from "./BaseController.js";
|
|
|
8
8
|
import { Raycaster as T, Vector2 as u } from "three";
|
|
9
9
|
import { closestPointOnLine as U } from "../utils/math.js";
|
|
10
10
|
import { findClosestPoint as b } from "../utils/findClosestPoint.js";
|
|
11
|
-
import { findAssociatedLines as
|
|
12
|
-
import { getPointFromHammerEvent as
|
|
11
|
+
import { findAssociatedLines as D } from "../utils/findAssociatedLines.js";
|
|
12
|
+
import { getPointFromHammerEvent as w } from "../../shared-utils/getPointFromHammerEvent.js";
|
|
13
13
|
import j from "../Model/area.js";
|
|
14
14
|
import x from "../Model/polygon.js";
|
|
15
15
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
@@ -23,6 +23,7 @@ import "../utils/constants.js";
|
|
|
23
23
|
import "@realsee/five";
|
|
24
24
|
import "../utils/dom/distanceItem.js";
|
|
25
25
|
import "../utils/dom/base.js";
|
|
26
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
26
27
|
import "../Model/point.js";
|
|
27
28
|
import "../../shared-utils/removeArrayItem.js";
|
|
28
29
|
import "../utils/ironbox.js";
|
|
@@ -30,7 +31,6 @@ import "../utils/ndc2Screen.js";
|
|
|
30
31
|
import "../Model/polyline.js";
|
|
31
32
|
import "../utils/dom/areaDom.js";
|
|
32
33
|
import "../utils/geometryUtil.js";
|
|
33
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
34
34
|
import "../../shared-utils/three/IObject3D.js";
|
|
35
35
|
import "../utils/generatePolygonGeometry.js";
|
|
36
36
|
import "earcut";
|
|
@@ -50,14 +50,14 @@ class Pe extends G {
|
|
|
50
50
|
var a;
|
|
51
51
|
if (this.model.getAllLines().length === 0 || !this.fiveElement)
|
|
52
52
|
return;
|
|
53
|
-
const i =
|
|
53
|
+
const i = w(e).point, t = (a = b(this.five, this.model.getAllPoints(), i, 20)) == null ? void 0 : a.point;
|
|
54
54
|
if (!t) {
|
|
55
55
|
this.editPointState = void 0;
|
|
56
56
|
return;
|
|
57
57
|
}
|
|
58
58
|
const n = {
|
|
59
59
|
point: t,
|
|
60
|
-
associatedLines:
|
|
60
|
+
associatedLines: D(t.lines[0])
|
|
61
61
|
};
|
|
62
62
|
this.hook.emit("wantsDragLine", {
|
|
63
63
|
point: t.id,
|
|
@@ -70,7 +70,7 @@ class Pe extends G {
|
|
|
70
70
|
s(this, "onPan", (e) => {
|
|
71
71
|
if (!this.editPointState || !this.fiveElement)
|
|
72
72
|
return;
|
|
73
|
-
const i =
|
|
73
|
+
const i = w(e).ndcPoint, t = new T();
|
|
74
74
|
t.setFromCamera(i, this.five.camera);
|
|
75
75
|
const [n] = this.five.model.intersectRaycaster(t);
|
|
76
76
|
n && this.onIntersectionUpdate(n);
|
|
@@ -129,14 +129,14 @@ class Pe extends G {
|
|
|
129
129
|
});
|
|
130
130
|
s(this, "chooseLine", (e) => {
|
|
131
131
|
this.choose = "line";
|
|
132
|
-
const i =
|
|
133
|
-
this.deleteDom.setLines(i).updatePosition().show(), this.highlightLines(i), this.five.needsRender = !0, this.hook.emit(
|
|
132
|
+
const i = D(e);
|
|
133
|
+
this.deleteDom.setLines(i).updatePosition().show(), console.log(this.deleteDom), this.highlightLines(i), this.five.needsRender = !0, this.hook.emit(
|
|
134
134
|
"selectedChange",
|
|
135
135
|
i.map((t) => t)
|
|
136
136
|
);
|
|
137
137
|
});
|
|
138
138
|
s(this, "chooseArea", (e, i) => {
|
|
139
|
-
this.deleteDom.
|
|
139
|
+
this.choose = e, this.deleteDom.updatePosition(i.left, `calc(${i.top} - 20px)`).show(), this.highlightArea(e);
|
|
140
140
|
});
|
|
141
141
|
s(this, "polylineRemoved", (e) => {
|
|
142
142
|
e.lines.forEach((i) => this.removeLine(i)), this.hook.emit(
|
|
@@ -148,7 +148,7 @@ class Pe extends G {
|
|
|
148
148
|
this.updateDistanceUI(), this.highlightedLines.length > 0 && this.deleteDom.updatePosition();
|
|
149
149
|
});
|
|
150
150
|
s(this, "deleteArea", (e) => {
|
|
151
|
-
this.unHighlightArea(e), e.dispose(), this.deleteDom.hide();
|
|
151
|
+
console.log(e), this.unHighlightArea(e), e.dispose(), this.deleteDom.hide();
|
|
152
152
|
});
|
|
153
153
|
s(this, "deleteLine", () => {
|
|
154
154
|
const e = this.highlightedLines[0], i = this.model.getPolylineByLine(e);
|
|
@@ -160,7 +160,7 @@ class Pe extends G {
|
|
|
160
160
|
this.deleteDom = new R(this.five, {
|
|
161
161
|
i18n: this.config.i18n,
|
|
162
162
|
onClick: () => {
|
|
163
|
-
this.choose === "line" ? this.deleteLine() : this.choose instanceof j && this.deleteArea(this.choose);
|
|
163
|
+
console.log(this.choose), this.choose === "line" ? this.deleteLine() : this.choose instanceof j && this.deleteArea(this.choose);
|
|
164
164
|
},
|
|
165
165
|
cancel: this.cancelDeleteClickCallback
|
|
166
166
|
}).appendTo(this.container), this.model.getAllLines().forEach((t) => {
|
|
@@ -44,6 +44,7 @@ export default class MeasureController {
|
|
|
44
44
|
private shortcutKeyController?;
|
|
45
45
|
constructor(five: Five, params: PanoMeasureParameterType);
|
|
46
46
|
appendTo(parent: HTMLElement): void;
|
|
47
|
+
clear(): void;
|
|
47
48
|
dispose(): void;
|
|
48
49
|
/** 加载数据
|
|
49
50
|
* @description 数据加载时会覆盖当前已保存的数据
|
|
@@ -11,10 +11,10 @@ var c = (s, e, t) => e in s ? I(s, e, { enumerable: !0, configurable: !0, writab
|
|
|
11
11
|
};
|
|
12
12
|
var i = (s, e, t) => (c(s, typeof e != "symbol" ? e + "" : e, t), t);
|
|
13
13
|
import k from "../Modules/FiveHelper.js";
|
|
14
|
-
import
|
|
14
|
+
import a from "./EditController.js";
|
|
15
15
|
import w from "./ViewController.js";
|
|
16
16
|
import v from "./WatchController.js";
|
|
17
|
-
import
|
|
17
|
+
import h from "./MixedController.js";
|
|
18
18
|
import { omit as D } from "../../shared-utils/filter.js";
|
|
19
19
|
import { Group as U } from "three";
|
|
20
20
|
import { Model as x } from "../Model/index.js";
|
|
@@ -37,6 +37,7 @@ import "../utils/constants.js";
|
|
|
37
37
|
import "../utils/dom/distanceItem.js";
|
|
38
38
|
import "../utils/dom/base.js";
|
|
39
39
|
import "../utils/isNDCPointInScreen.js";
|
|
40
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
40
41
|
import "../Model/point.js";
|
|
41
42
|
import "../../shared-utils/removeArrayItem.js";
|
|
42
43
|
import "../../shared-utils/throttle.js";
|
|
@@ -50,7 +51,6 @@ import "../utils/generatePolygonGeometry.js";
|
|
|
50
51
|
import "earcut";
|
|
51
52
|
import "../utils/dom/areaDom.js";
|
|
52
53
|
import "../utils/geometryUtil.js";
|
|
53
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
54
54
|
import "../utils/isIntersecting.js";
|
|
55
55
|
import "../../shared-utils/three/PointSelector.js";
|
|
56
56
|
import "../../shared-utils/three/PointSelectorHelper.js";
|
|
@@ -138,7 +138,7 @@ class xt {
|
|
|
138
138
|
var e, t, r, o;
|
|
139
139
|
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);
|
|
140
140
|
});
|
|
141
|
-
i(this, "getCurrentMode", () => this.controller instanceof
|
|
141
|
+
i(this, "getCurrentMode", () => this.controller instanceof a ? "Edit" : this.controller instanceof v ? "Watch" : this.controller instanceof h ? "Mixed" : this.controller instanceof w ? "View" : null);
|
|
142
142
|
/** 变更场景
|
|
143
143
|
* @description 如果从编辑场景改变到观看场景,不会自动保存,默认丢弃所有改动
|
|
144
144
|
*/
|
|
@@ -150,8 +150,8 @@ class xt {
|
|
|
150
150
|
const t = {
|
|
151
151
|
View: w,
|
|
152
152
|
Watch: v,
|
|
153
|
-
Edit:
|
|
154
|
-
Mixed:
|
|
153
|
+
Edit: a,
|
|
154
|
+
Mixed: h
|
|
155
155
|
};
|
|
156
156
|
if (!t[e])
|
|
157
157
|
throw new Error("不存在的 Mode");
|
|
@@ -179,9 +179,12 @@ class xt {
|
|
|
179
179
|
appendTo(e) {
|
|
180
180
|
e.append(this.container);
|
|
181
181
|
}
|
|
182
|
+
clear() {
|
|
183
|
+
this.model.clear();
|
|
184
|
+
}
|
|
182
185
|
dispose() {
|
|
183
186
|
var e, t;
|
|
184
|
-
this.disable(), (e = this.useUIController) == null || e.dispose(), (t = this.magnifier) == null || t.dispose(), this.five.needsRender = !0;
|
|
187
|
+
this.disable(), this.clear(), (e = this.useUIController) == null || e.dispose(), (t = this.magnifier) == null || t.dispose(), this.five.needsRender = !0;
|
|
185
188
|
}
|
|
186
189
|
/** 加载数据
|
|
187
190
|
* @description 数据加载时会覆盖当前已保存的数据
|
|
@@ -206,7 +209,7 @@ class xt {
|
|
|
206
209
|
}
|
|
207
210
|
/** 撤销编辑 */
|
|
208
211
|
revoke() {
|
|
209
|
-
this.controller instanceof
|
|
212
|
+
this.controller instanceof a && this.controller.revoke();
|
|
210
213
|
}
|
|
211
214
|
removePolyline(e) {
|
|
212
215
|
this.model.removePolyline(e);
|
|
@@ -240,22 +243,22 @@ class xt {
|
|
|
240
243
|
*/
|
|
241
244
|
save(e) {
|
|
242
245
|
var l;
|
|
243
|
-
if (!(this.controller instanceof
|
|
246
|
+
if (!(this.controller instanceof a) && !(this.controller instanceof h))
|
|
244
247
|
return this;
|
|
245
248
|
const t = (l = e == null ? void 0 : e.mode) != null ? l : "View", r = this.controller.model.polylines, o = this.controller.model.areas;
|
|
246
249
|
return r.forEach((n) => {
|
|
247
250
|
this.model.addPolyline(n);
|
|
248
|
-
}), this.controller instanceof
|
|
251
|
+
}), this.controller instanceof a ? this.controller.complete() : o.forEach((n) => {
|
|
249
252
|
n.showArea(), this.model.addArea(n);
|
|
250
253
|
}), this.changeMode(t), this;
|
|
251
254
|
}
|
|
252
255
|
/** Mixed 模式才有用,添加起点 */
|
|
253
256
|
addStartPoint() {
|
|
254
|
-
this.controller instanceof
|
|
257
|
+
this.controller instanceof h && this.hook.emit("willChangeState", "watching", "editing");
|
|
255
258
|
}
|
|
256
259
|
/** Mixed 模式才有用,添加终点 */
|
|
257
260
|
addEndPoint() {
|
|
258
|
-
this.controller instanceof
|
|
261
|
+
this.controller instanceof h && this.hook.emit("willChangeState", "editing", "watching");
|
|
259
262
|
}
|
|
260
263
|
/** 导出数据 */
|
|
261
264
|
toJson() {
|
|
@@ -15,12 +15,12 @@ import "../utils/constants.js";
|
|
|
15
15
|
import "../utils/dom/distanceItem.js";
|
|
16
16
|
import "../utils/dom/base.js";
|
|
17
17
|
import "../utils/isNDCPointInScreen.js";
|
|
18
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
18
19
|
import "../../shared-utils/three/IObject3D.js";
|
|
19
20
|
import "../utils/generatePolygonGeometry.js";
|
|
20
21
|
import "earcut";
|
|
21
22
|
import "../../shared-utils/removeArrayItem.js";
|
|
22
23
|
import "../utils/geometryUtil.js";
|
|
23
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
24
24
|
class O {
|
|
25
25
|
constructor(t, i) {
|
|
26
26
|
e(this, "id", f());
|
|
@@ -12,9 +12,10 @@ import "three";
|
|
|
12
12
|
import "../utils/dom/distanceItem.js";
|
|
13
13
|
import "../utils/dom/base.js";
|
|
14
14
|
import "../utils/isNDCPointInScreen.js";
|
|
15
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
15
16
|
import "./point.js";
|
|
16
17
|
import "../../shared-utils/removeArrayItem.js";
|
|
17
|
-
class
|
|
18
|
+
class v {
|
|
18
19
|
constructor(e) {
|
|
19
20
|
r(this, "config");
|
|
20
21
|
r(this, "polylines", []);
|
|
@@ -95,5 +96,5 @@ class I {
|
|
|
95
96
|
}
|
|
96
97
|
}
|
|
97
98
|
export {
|
|
98
|
-
|
|
99
|
+
v as Model
|
|
99
100
|
};
|
|
@@ -12,8 +12,9 @@ import "three";
|
|
|
12
12
|
import "../utils/dom/distanceItem.js";
|
|
13
13
|
import "../utils/dom/base.js";
|
|
14
14
|
import "../utils/isNDCPointInScreen.js";
|
|
15
|
+
import "../../shared-utils/three/centerPoint.js";
|
|
15
16
|
import "../../shared-utils/removeArrayItem.js";
|
|
16
|
-
class
|
|
17
|
+
class W {
|
|
17
18
|
constructor(i) {
|
|
18
19
|
s(this, "id", L());
|
|
19
20
|
s(this, "lines", []);
|
|
@@ -112,5 +113,5 @@ class S {
|
|
|
112
113
|
}
|
|
113
114
|
}
|
|
114
115
|
export {
|
|
115
|
-
|
|
116
|
+
W as Polyline
|
|
116
117
|
};
|
|
@@ -17,7 +17,7 @@ class $ {
|
|
|
17
17
|
n(this, "masking", document.createElement("div"));
|
|
18
18
|
n(this, "target");
|
|
19
19
|
n(this, "clickHandler", (t) => {
|
|
20
|
-
this.onClick(t, this.target);
|
|
20
|
+
console.log("on click handler", this.onClick), this.onClick(t, this.target);
|
|
21
21
|
});
|
|
22
22
|
n(this, "cancelHandler", () => {
|
|
23
23
|
this.cancel(this.target);
|
|
@@ -52,7 +52,7 @@ class $ {
|
|
|
52
52
|
}
|
|
53
53
|
updatePosition(t, e) {
|
|
54
54
|
if (t && e)
|
|
55
|
-
return this.container.style.left = t, this.container.style.top = e, this.show();
|
|
55
|
+
return this.container.style.left = t, this.container.style.top = e, this.container.style.transform = "", this.show();
|
|
56
56
|
if (this.lines.length === 0)
|
|
57
57
|
return this;
|
|
58
58
|
const s = this.points.map((i) => i.position), c = s.map((i) => i.clone().project(this.five.camera));
|
|
@@ -67,7 +67,7 @@ class $ {
|
|
|
67
67
|
const i = (a[1] - a[0]) / (o[1] - o[0]), g = -((a[1] + a[0]) / 2 - 1) / 2 * h.clientHeight;
|
|
68
68
|
Math.abs(i) > 0.4 && (m = l + 57, d = g);
|
|
69
69
|
}
|
|
70
|
-
return this.container.style.top = "0", this.container.style.transform = `translate3d(${m}px, ${d}px, 0)`, this.show();
|
|
70
|
+
return this.container.style.top = "0", this.container.style.left = "0", this.container.style.transform = `translate3d(${m}px, ${d}px, 0)`, this.show();
|
|
71
71
|
}
|
|
72
72
|
hide() {
|
|
73
73
|
return this.visible = !1, this.masking.style.pointerEvents = "none", this.container.style.opacity = "0", this.container.style.pointerEvents = "none", this;
|