@realsee/dnalogel 2.21.0-dev.13 → 2.21.0-dev.14
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/index.cjs.js +34 -34
- package/dist/index.js +1784 -1785
- 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 +81 -81
- package/libs/PanoMeasurePlugin/Components/Controller0.js +101 -89
- package/libs/PanoMeasurePlugin/Components/Controller1.js +167 -178
- package/libs/PanoMeasurePlugin/Components/Tip.js +58 -84
- package/libs/PanoMeasurePlugin/Controller/BaseController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/EditController.js +10 -10
- package/libs/PanoMeasurePlugin/Controller/MixedController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/ViewController.js +3 -2
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +4 -4
- package/libs/PanoMeasurePlugin/Controller/index.js +1 -1
- 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 +1 -1
- 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 M, transition_in as m, transition_out as b, check_outros as O, detach as T, onMount as P, onDestroy as j, element as y, text as A, attr as g, append as k, set_data as B, add_render_callback as F, create_bidirectional_transition as x, group_outros as G, binding_callbacks as H } from "../../vendor/svelte/internal/index.js";
|
|
2
|
+
import { fade as C } 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
|
-
function
|
|
32
|
-
let
|
|
7
|
+
function v(l) {
|
|
8
|
+
let n, o, e, i, r;
|
|
33
9
|
return {
|
|
34
10
|
c() {
|
|
35
|
-
|
|
11
|
+
n = y("div"), o = y("div"), e = A(
|
|
36
12
|
/*tip*/
|
|
37
13
|
l[2]
|
|
38
|
-
),
|
|
14
|
+
), g(o, "class", "text svelte-1x2fiiy"), g(n, "class", "Measure-Tips svelte-1x2fiiy");
|
|
39
15
|
},
|
|
40
|
-
m(s,
|
|
41
|
-
|
|
16
|
+
m(s, f) {
|
|
17
|
+
M(s, n, f), k(n, o), k(o, e), l[6](o), 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 = x(n, C, {}, !0)), i.run(1));
|
|
30
|
+
}), r = !0);
|
|
55
31
|
},
|
|
56
32
|
o(s) {
|
|
57
|
-
i || (i =
|
|
33
|
+
i || (i = x(n, C, {}, !1)), i.run(0), r = !1;
|
|
58
34
|
},
|
|
59
35
|
d(s) {
|
|
60
|
-
s &&
|
|
36
|
+
s && T(n), l[6](null), s && i && i.end();
|
|
61
37
|
}
|
|
62
38
|
};
|
|
63
39
|
}
|
|
64
40
|
function J(l) {
|
|
65
|
-
let
|
|
41
|
+
let n, o, e = (
|
|
66
42
|
/*visible*/
|
|
67
|
-
l[0] &&
|
|
43
|
+
l[0] && v(l)
|
|
68
44
|
);
|
|
69
45
|
return {
|
|
70
46
|
c() {
|
|
71
|
-
e && e.c(),
|
|
47
|
+
e && e.c(), n = N();
|
|
72
48
|
},
|
|
73
|
-
m(i,
|
|
74
|
-
e && e.m(i,
|
|
49
|
+
m(i, r) {
|
|
50
|
+
e && e.m(i, r), M(i, n, r), o = !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 && m(e, 1)) : (e = v(i), e.c(), m(e, 1), e.m(n.parentNode, n)) : e && (G(), b(e, 1, 1, () => {
|
|
80
56
|
e = null;
|
|
81
|
-
}),
|
|
57
|
+
}), O());
|
|
82
58
|
},
|
|
83
59
|
i(i) {
|
|
84
|
-
|
|
60
|
+
o || (m(e), o = !0);
|
|
85
61
|
},
|
|
86
62
|
o(i) {
|
|
87
|
-
b(e),
|
|
63
|
+
b(e), o = !1;
|
|
88
64
|
},
|
|
89
65
|
d(i) {
|
|
90
|
-
e && e.d(i), i &&
|
|
66
|
+
e && e.d(i), i && T(n);
|
|
91
67
|
}
|
|
92
68
|
};
|
|
93
69
|
}
|
|
94
|
-
function K(l,
|
|
95
|
-
let { measureController: e } =
|
|
96
|
-
const
|
|
97
|
-
const
|
|
98
|
-
let
|
|
99
|
-
return
|
|
100
|
-
},
|
|
101
|
-
|
|
102
|
-
},
|
|
103
|
-
|
|
70
|
+
function K(l, n, o) {
|
|
71
|
+
let { measureController: e } = n, { tips: i } = n, { tipStyle: r = {} } = n, { visible: s = !0 } = n, 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
|
+
o(2, d = w(t));
|
|
78
|
+
}, u = () => {
|
|
79
|
+
o(2, d = "");
|
|
104
80
|
};
|
|
105
|
-
let
|
|
106
|
-
const
|
|
107
|
-
t === "Edit" ? e.changeMeasureType ?
|
|
81
|
+
let d = "";
|
|
82
|
+
const p = (t) => {
|
|
83
|
+
t === "Edit" ? e.changeMeasureType ? a("start") : a("select") : t === "Watch" ? a("select") : u();
|
|
108
84
|
}, h = () => {
|
|
109
|
-
|
|
85
|
+
e.getCurrentMode() === "Watch" && a("select");
|
|
110
86
|
}, _ = (t) => {
|
|
111
|
-
e.currentMeasureType === "area" && (t.length >= 2 ?
|
|
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", h), e.hook.on("pointsChange", _);
|
|
115
91
|
}), j(() => {
|
|
116
|
-
e.hook.off("modeChange",
|
|
92
|
+
e.hook.off("modeChange", p), e.hook.off("complete", h), e.hook.off("pointsChange", _), u();
|
|
117
93
|
});
|
|
118
|
-
function
|
|
94
|
+
function S(t) {
|
|
119
95
|
H[t ? "unshift" : "push"](() => {
|
|
120
|
-
|
|
96
|
+
f = t, o(1, f), o(5, r);
|
|
121
97
|
});
|
|
122
98
|
}
|
|
123
99
|
return l.$$set = (t) => {
|
|
124
|
-
"measureController" in t &&
|
|
100
|
+
"measureController" in t && o(3, e = t.measureController), "tips" in t && o(4, i = t.tips), "tipStyle" in t && o(5, r = t.tipStyle), "visible" in t && o(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) && o(1, f.style[t] = r[t], f);
|
|
106
|
+
}, [s, f, d, e, i, r, S];
|
|
133
107
|
}
|
|
134
|
-
class
|
|
135
|
-
constructor(
|
|
108
|
+
class U extends W {
|
|
109
|
+
constructor(n) {
|
|
136
110
|
super(), q(
|
|
137
111
|
this,
|
|
138
|
-
|
|
112
|
+
n,
|
|
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,21 +245,21 @@ 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,
|
|
259
259
|
onClick: (i, s) => {
|
|
260
260
|
var d;
|
|
261
261
|
const r = s.type === "area", l = Array.isArray(s) && ((d = s[0]) == null ? void 0 : d.type) === "line";
|
|
262
|
-
r && this.deleteArea(s), l && this.deleteLine(s);
|
|
262
|
+
console.log("target", s), r && this.deleteArea(s), l && this.deleteLine(s);
|
|
263
263
|
},
|
|
264
264
|
cancel: (i) => {
|
|
265
265
|
var l;
|
|
@@ -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
|
};
|
|
@@ -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";
|
|
@@ -136,7 +136,7 @@ class Pe extends G {
|
|
|
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) => {
|
|
@@ -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";
|
|
@@ -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);
|
|
@@ -1,36 +1,12 @@
|
|
|
1
|
-
var
|
|
2
|
-
var
|
|
3
|
-
var
|
|
4
|
-
import { objectAssignDeepExports as
|
|
5
|
-
import
|
|
1
|
+
var o = Object.defineProperty;
|
|
2
|
+
var r = (i, t, e) => t in i ? o(i, t, { enumerable: !0, configurable: !0, writable: !0, value: e }) : i[t] = e;
|
|
3
|
+
var s = (i, t, e) => (r(i, typeof t != "symbol" ? t + "" : t, e), e);
|
|
4
|
+
import { objectAssignDeepExports as p } from "../../vendor/object-assign-deep/objectAssignDeep.js";
|
|
5
|
+
import l from "../Components/Tip.js";
|
|
6
6
|
import "../../vendor/svelte/internal/index.js";
|
|
7
7
|
import "../../vendor/svelte/transition/index.js";
|
|
8
8
|
import "../../vendor/svelte/easing/index.js";
|
|
9
|
-
|
|
10
|
-
import "../utils/constants.js";
|
|
11
|
-
import "three";
|
|
12
|
-
import "@realsee/five";
|
|
13
|
-
import "../Model/polygon.js";
|
|
14
|
-
import "../../shared-utils/three/IObject3D.js";
|
|
15
|
-
import "../utils/generatePolygonGeometry.js";
|
|
16
|
-
import "earcut";
|
|
17
|
-
import "hammerjs";
|
|
18
|
-
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
19
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
20
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
21
|
-
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
22
|
-
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
23
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
24
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
25
|
-
import "../../shared-utils/Subscribe.js";
|
|
26
|
-
import "../../CSS3DRenderPlugin/utils/positionToVector3.js";
|
|
27
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
28
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
29
|
-
import "../../shared-utils/three/centerPoint.js";
|
|
30
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
31
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
32
|
-
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
33
|
-
const l = {
|
|
9
|
+
const c = {
|
|
34
10
|
select: "点击按钮选择功能",
|
|
35
11
|
line: {
|
|
36
12
|
start: "点击开始测量"
|
|
@@ -39,7 +15,7 @@ const l = {
|
|
|
39
15
|
start: "点击开始测量",
|
|
40
16
|
close: "选择三个点后将闭合平面,点击结束自动闭合"
|
|
41
17
|
}
|
|
42
|
-
},
|
|
18
|
+
}, n = {
|
|
43
19
|
select: "点击按钮选择功能",
|
|
44
20
|
line: {
|
|
45
21
|
start: "点击开始按钮打点"
|
|
@@ -49,14 +25,14 @@ const l = {
|
|
|
49
25
|
close: "选择三个点后将闭合平面,点击结束自动闭合"
|
|
50
26
|
}
|
|
51
27
|
};
|
|
52
|
-
class
|
|
53
|
-
constructor(t,
|
|
54
|
-
|
|
55
|
-
this.tipSvelteDom = new
|
|
56
|
-
target:
|
|
28
|
+
class D {
|
|
29
|
+
constructor(t, e) {
|
|
30
|
+
s(this, "tipSvelteDom");
|
|
31
|
+
this.tipSvelteDom = new l({
|
|
32
|
+
target: e.container,
|
|
57
33
|
props: {
|
|
58
34
|
measureController: t,
|
|
59
|
-
tips:
|
|
35
|
+
tips: p({}, e.pointSelectorMode === "fixed" ? n : c, e.tips),
|
|
60
36
|
visible: !0
|
|
61
37
|
}
|
|
62
38
|
});
|
|
@@ -75,5 +51,5 @@ class K {
|
|
|
75
51
|
}
|
|
76
52
|
}
|
|
77
53
|
export {
|
|
78
|
-
|
|
54
|
+
D as GuideController
|
|
79
55
|
};
|
|
@@ -23,6 +23,7 @@ import "@realsee/five";
|
|
|
23
23
|
import "../../utils/dom/distanceItem.js";
|
|
24
24
|
import "../../utils/dom/base.js";
|
|
25
25
|
import "../../utils/isNDCPointInScreen.js";
|
|
26
|
+
import "../../../shared-utils/three/centerPoint.js";
|
|
26
27
|
import "../../Model/point.js";
|
|
27
28
|
import "../../../shared-utils/removeArrayItem.js";
|
|
28
29
|
import "../../../shared-utils/throttle.js";
|
|
@@ -36,7 +37,6 @@ import "../../utils/generatePolygonGeometry.js";
|
|
|
36
37
|
import "earcut";
|
|
37
38
|
import "../../utils/dom/areaDom.js";
|
|
38
39
|
import "../../utils/geometryUtil.js";
|
|
39
|
-
import "../../../shared-utils/three/centerPoint.js";
|
|
40
40
|
import "../../utils/isIntersecting.js";
|
|
41
41
|
import "../../../shared-utils/three/PointSelector.js";
|
|
42
42
|
import "../../../shared-utils/three/PointSelectorHelper.js";
|
|
@@ -18,6 +18,7 @@ import "@realsee/five";
|
|
|
18
18
|
import "./utils/dom/distanceItem.js";
|
|
19
19
|
import "./utils/dom/base.js";
|
|
20
20
|
import "./utils/isNDCPointInScreen.js";
|
|
21
|
+
import "../shared-utils/three/centerPoint.js";
|
|
21
22
|
import "../shared-utils/removeArrayItem.js";
|
|
22
23
|
import "./Model/area.js";
|
|
23
24
|
import "./Model/polygon.js";
|
|
@@ -26,7 +27,6 @@ import "./utils/generatePolygonGeometry.js";
|
|
|
26
27
|
import "earcut";
|
|
27
28
|
import "./utils/dom/areaDom.js";
|
|
28
29
|
import "./utils/geometryUtil.js";
|
|
29
|
-
import "../shared-utils/three/centerPoint.js";
|
|
30
30
|
import "./utils/isIntersecting.js";
|
|
31
31
|
import "../shared-utils/three/PointSelector.js";
|
|
32
32
|
import "../shared-utils/three/PointSelectorHelper.js";
|