@realsee/dnalogel 3.44.5 → 3.46.0
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/CHANGELOG.md +6 -0
- package/dist/Sculpt/Meshes/Area.d.ts +1 -1
- package/dist/Sculpt/Meshes/Box.d.ts +1 -1
- package/dist/Sculpt/Meshes/Circle.d.ts +1 -1
- package/dist/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Line.d.ts +8 -2
- package/dist/Sculpt/Meshes/LineWithDots.d.ts +1 -1
- package/dist/Sculpt/Meshes/Point.d.ts +1 -1
- package/dist/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/dist/Sculpt/Meshes/Prism.d.ts +1 -1
- package/dist/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
- package/dist/Sculpt/Objects/Line/Editor.d.ts +22 -0
- package/dist/Sculpt/Objects/Line/index.d.ts +33 -0
- package/dist/Sculpt/Objects/Point/index.d.ts +1 -1
- package/dist/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
- package/dist/Sculpt/Objects/Polygon/index.d.ts +3 -2
- package/dist/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
- package/dist/Sculpt/Objects/Polyline/index.d.ts +7 -6
- package/dist/Sculpt/index.d.ts +5 -0
- package/dist/Sculpt/typings/index.d.ts +11 -6
- package/dist/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
- package/dist/Sculpt/typings/utils.type.d.ts +2 -0
- package/dist/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
- package/dist/Sculpt/utils/three/rayOnLine.d.ts +3 -5
- package/dist/index.cjs.js +56 -56
- package/dist/index.js +29820 -29686
- package/dist/index.umd.js +49 -49
- package/dist/shared-utils/Utils/WorkUtil.d.ts +6 -6
- package/dist/shared-utils/tag.d.ts +6 -3
- package/libs/AreaMakerPlugin/Controller.js +150 -78
- package/libs/AreaMakerPlugin/index.js +76 -4
- package/libs/AreaMakerPlugin/utils/Item.js +190 -111
- package/libs/CSS3DRenderPlugin/Controller.js +89 -29
- package/libs/CSS3DRenderPlugin/index.js +75 -15
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DObject.js +132 -58
- package/libs/CSS3DRenderPlugin/utils/three/CSS3DRender.js +181 -116
- package/libs/CruisePlugin/BaseController.js +121 -49
- package/libs/CruisePlugin/Move.js +73 -21
- package/libs/CruisePlugin/Work.js +98 -46
- package/libs/CruisePlugin/index.js +79 -27
- package/libs/CurrentPanoImagePlugin/Controller.js +176 -104
- package/libs/CurrentPanoImagePlugin/index.js +76 -4
- package/libs/GuideLinePlugin/Controller.js +82 -30
- package/libs/GuideLinePlugin/GuideLineItem.js +82 -30
- package/libs/GuideLinePlugin/GuideLineModeItem/index.js +3 -2
- package/libs/GuideLinePlugin/GuideLineModeItem.js +81 -29
- package/libs/GuideLinePlugin/index.js +79 -27
- package/libs/ModelMakerPlugin/Controller.js +140 -83
- package/libs/ModelMakerPlugin/index.js +75 -18
- package/libs/ModelTVVideoPlugin/Plugin.js +117 -57
- package/libs/ModelTVVideoPlugin/index.js +68 -8
- package/libs/Object3DHelperPlugin/Controller.js +54 -31
- package/libs/Object3DHelperPlugin/index.js +35 -13
- package/libs/PanoCompassPlugin/Controller.js +97 -42
- package/libs/PanoCompassPlugin/index.js +71 -16
- package/libs/PanoDoorLabelPlugin/BaseController.js +98 -26
- package/libs/PanoDoorLabelPlugin/Controller.js +187 -115
- package/libs/PanoDoorLabelPlugin/index.js +76 -4
- package/libs/PanoMeasurePlugin/Components/Controller0.js +141 -89
- package/libs/PanoMeasurePlugin/Components/Controller1.js +179 -127
- package/libs/PanoMeasurePlugin/Controller/EditController.js +125 -73
- package/libs/PanoMeasurePlugin/Controller/WatchController.js +167 -92
- package/libs/PanoMeasurePlugin/Controller/index.js +110 -65
- package/libs/PanoMeasurePlugin/Model/area.js +114 -38
- package/libs/PanoMeasurePlugin/Modules/Magnifier.js +78 -0
- package/libs/PanoMeasurePlugin/Modules/UIController/index.js +98 -46
- package/libs/PanoMeasurePlugin/index.js +77 -32
- package/libs/PanoMeasurePlugin/utils/dom/areaDom.js +98 -20
- package/libs/PanoSpatialTagPlugin/Plugin.js +210 -150
- package/libs/PanoSpatialTagPlugin/index.js +66 -6
- package/libs/PanoTagPlugin/Components/Common/TagPoint.js +133 -53
- package/libs/PanoTagPlugin/Components/Tag/MarketingTag.js +295 -216
- package/libs/PanoTagPlugin/Components/Tag/index.js +257 -187
- package/libs/PanoTagPlugin/Components/TagContainer.js +157 -87
- package/libs/PanoTagPlugin/Components/TagItem.js +144 -74
- package/libs/PanoTagPlugin/controller/Tag/BaseTag.js +73 -3
- package/libs/PanoTagPlugin/controller/Tag/ModelTag.js +109 -39
- package/libs/PanoTagPlugin/controller/Tag/PlaneTag.js +105 -35
- package/libs/PanoTagPlugin/controller/Tag/PointTag.js +113 -43
- package/libs/PanoTagPlugin/controller/TagRender.js +132 -80
- package/libs/PanoTagPlugin/controller/TagUtil.js +136 -84
- package/libs/PanoTagPlugin/controller/index.js +113 -61
- package/libs/PanoTagPlugin/index.js +89 -37
- package/libs/PanoTagPlugin/utils/tag/calculateTagConfig.js +121 -41
- package/libs/PanoVideoPlugin/Controller.js +137 -65
- package/libs/PanoVideoPlugin/VideoMeshController.js +149 -69
- package/libs/PanoVideoPlugin/index.js +82 -10
- package/libs/PipelinePlugin/Controller.js +199 -128
- package/libs/PipelinePlugin/index.js +76 -5
- package/libs/PipelinePlugin/utils/Objects/FlowPipe.js +102 -22
- package/libs/PipelinePlugin/utils/Objects/HighlightPipe.js +95 -15
- package/libs/PipelinePlugin/utils/Objects/Pipe.js +136 -56
- package/libs/Sculpt/Meshes/Area.d.ts +1 -1
- package/libs/Sculpt/Meshes/Box.d.ts +1 -1
- package/libs/Sculpt/Meshes/Box.js +16 -15
- package/libs/Sculpt/Meshes/Circle.d.ts +1 -1
- package/libs/Sculpt/Meshes/Circle.js +1 -1
- package/libs/Sculpt/Meshes/CircleWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Cylinder.js +8 -7
- package/libs/Sculpt/Meshes/Line.d.ts +8 -2
- package/libs/Sculpt/Meshes/Line.js +93 -65
- package/libs/Sculpt/Meshes/LineWithDots.d.ts +1 -1
- package/libs/Sculpt/Meshes/LineWithDots.js +26 -26
- package/libs/Sculpt/Meshes/Point.d.ts +1 -1
- package/libs/Sculpt/Meshes/Point.js +7 -6
- package/libs/Sculpt/Meshes/Polygon.js +1 -1
- package/libs/Sculpt/Meshes/PolygonWithEdge.d.ts +1 -1
- package/libs/Sculpt/Meshes/Polyline.js +5 -4
- package/libs/Sculpt/Meshes/Prism.d.ts +1 -1
- package/libs/Sculpt/Meshes/Rectangle.js +3 -2
- package/libs/Sculpt/Meshes/RectangleWithEdge.d.ts +3 -4
- package/libs/Sculpt/Objects/Box/index.js +41 -43
- package/libs/Sculpt/Objects/Cylinder/index.js +35 -37
- package/libs/Sculpt/Objects/Line/Editor.d.ts +22 -0
- package/libs/Sculpt/Objects/Line/Editor.js +62 -0
- package/libs/Sculpt/Objects/Line/index.d.ts +33 -0
- package/libs/Sculpt/Objects/Line/index.js +107 -0
- package/libs/Sculpt/Objects/Point/index.d.ts +1 -1
- package/libs/Sculpt/Objects/Polygon/Editor.d.ts +2 -2
- package/libs/Sculpt/Objects/Polygon/Editor.js +5 -5
- package/libs/Sculpt/Objects/Polygon/index.d.ts +3 -2
- package/libs/Sculpt/Objects/Polygon/index.js +80 -80
- package/libs/Sculpt/Objects/Polyline/Editor.d.ts +3 -17
- package/libs/Sculpt/Objects/Polyline/Editor.js +10 -48
- package/libs/Sculpt/Objects/Polyline/index.d.ts +7 -6
- package/libs/Sculpt/Objects/Polyline/index.js +63 -58
- package/libs/Sculpt/Objects/Prism/index.js +56 -58
- package/libs/Sculpt/index.d.ts +5 -0
- package/libs/Sculpt/index.js +58 -48
- package/libs/Sculpt/typings/index.d.ts +11 -6
- package/libs/Sculpt/{utils/color.d.ts → typings/style.d.ts} +7 -0
- package/libs/Sculpt/typings/utils.type.d.ts +2 -0
- package/libs/Sculpt/utils/three/ColoredMesh.d.ts +1 -1
- package/libs/Sculpt/utils/three/ColoredMesh.js +15 -14
- package/libs/Sculpt/utils/three/rayOnLine.d.ts +3 -5
- package/libs/Sculpt/utils/three/rayOnLine.js +15 -14
- package/libs/base/BasePlugin.js +14 -13
- package/libs/floorplan/MapviewFloorplanPlugin/Controller.js +131 -61
- package/libs/floorplan/MapviewFloorplanPlugin/index.js +75 -6
- package/libs/floorplan/ModelFloorplanPlugin/Controller.js +129 -59
- package/libs/floorplan/ModelFloorplanPlugin/index.js +75 -5
- package/libs/floorplan/PanoFloorplanRadarPlugin/Controller.js +158 -86
- package/libs/floorplan/PanoFloorplanRadarPlugin/index.js +76 -4
- package/libs/floorplan/TopviewFloorplanPlugin/Controller.js +151 -81
- package/libs/floorplan/TopviewFloorplanPlugin/index.js +75 -5
- package/libs/floorplan/index.js +1 -0
- package/libs/index.js +194 -192
- package/libs/shared-utils/Object3DHelper/Controller/MoveController.js +1 -1
- package/libs/shared-utils/Object3DHelper/Controller/ScaleController.js +23 -23
- package/libs/shared-utils/Utils/WorkUtil.d.ts +6 -6
- package/libs/shared-utils/Utils/WorkUtil.js +8 -7
- package/libs/shared-utils/five/index.js +3 -2
- package/libs/shared-utils/five/lookObject.js +3 -2
- package/libs/shared-utils/logger.js +1 -1
- package/libs/shared-utils/tag.d.ts +6 -3
- package/libs/shared-utils/tag.js +38 -24
- package/libs/shared-utils/three/PointSelector/utils/PointSelectorHelper.js +15 -15
- package/libs/shared-utils/three/index.js +1 -0
- package/package.json +1 -1
- package/dist/Sculpt/typings/SimplifyDeep.d.ts +0 -3
- package/libs/Sculpt/typings/SimplifyDeep.d.ts +0 -3
- /package/libs/Sculpt/{utils/color.js → typings/style.js} +0 -0
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import { SvelteComponent as j, init as x, safe_not_equal as B, append_styles as F, binding_callbacks as G, bind as H, element as h, space as C, create_component as P, attr as g, insert as R, append as
|
|
1
|
+
import { SvelteComponent as j, init as x, safe_not_equal as B, append_styles as F, binding_callbacks as G, bind as H, element as h, space as C, create_component as P, attr as g, insert as R, append as m, mount_component as T, transition_in as w, transition_out as I, check_outros as J, add_flush_callback as K, detach as U, destroy_component as W, onMount as N, onDestroy as Q, text as y, set_style as E, toggle_class as z, listen as S, set_data as A, run_all as V, group_outros as X } from "../../vendor/svelte/internal/index.js";
|
|
2
2
|
import Y from "./Common/Switcher0.js";
|
|
3
3
|
import Z from "./Common/Exit.js";
|
|
4
4
|
import $ from "../Controller/EditController.js";
|
|
5
|
-
import { IconLine as q, IconArea as D, IconUndo as
|
|
5
|
+
import { IconLine as q, IconArea as D, IconUndo as tt, IconOk as et } from "./Common/icons/index.js";
|
|
6
6
|
import "../Model/line.js";
|
|
7
7
|
import "../../shared-utils/uuid.js";
|
|
8
8
|
import "../utils/line.js";
|
|
@@ -31,41 +31,93 @@ import "../utils/dom/areaDom.js";
|
|
|
31
31
|
import "../../shared-utils/three/geometryUtil.js";
|
|
32
32
|
import "hammerjs";
|
|
33
33
|
import "three/examples/jsm/renderers/CSS3DRenderer";
|
|
34
|
+
import "../../Sculpt/utils/Modules/Global.js";
|
|
35
|
+
import "../../Sculpt/utils/Modules/Cursor.js";
|
|
36
|
+
import "../../Object3DHelperPlugin/Controller.js";
|
|
37
|
+
import "../../base/BasePlugin.js";
|
|
38
|
+
import "../../shared-utils/Subscribe.js";
|
|
34
39
|
import "../../shared-utils/three/THREESphere.js";
|
|
35
40
|
import "animejs";
|
|
36
|
-
import "../../shared-utils/
|
|
41
|
+
import "../../shared-utils/Utils/FiveUtil.js";
|
|
42
|
+
import "../../shared-utils/Utils/BaseUtil.js";
|
|
43
|
+
import "../../shared-utils/Utils/WorkUtil.js";
|
|
44
|
+
import "../../shared-utils/five/transformPosition.js";
|
|
45
|
+
import "../../shared-utils/five/getFiveModel.js";
|
|
46
|
+
import "../../shared-utils/url/absoluteUrl.js";
|
|
37
47
|
import "../../vendor/@tweenjs/tween/dist/tween.esm.js.js";
|
|
38
|
-
import "
|
|
48
|
+
import "../../shared-utils/Object3DHelper/Helper/MoveHelper.js";
|
|
49
|
+
import "../../shared-utils/Object3DHelper/Base/BaseHelper.js";
|
|
50
|
+
import "../../shared-utils/Object3DHelper/utils/setObjectQuaternion.js";
|
|
51
|
+
import "../../shared-utils/three/boundingBox.js";
|
|
52
|
+
import "../../shared-utils/Object3DHelper/Helper/Objects/ArrowGroup.js";
|
|
53
|
+
import "../../shared-utils/Object3DHelper/utils/direction.js";
|
|
54
|
+
import "../../shared-utils/Object3DHelper/Constants/color.js";
|
|
55
|
+
import "../../shared-utils/Object3DHelper/utils/calculateScaleByCamera.js";
|
|
56
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRender.js";
|
|
57
|
+
import "../../shared-utils/positionToVector3.js";
|
|
58
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
59
|
+
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
60
|
+
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
61
|
+
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
62
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
63
|
+
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
64
|
+
import "../../shared-utils/three/getObjectVisible.js";
|
|
65
|
+
import "../../shared-utils/isNil.js";
|
|
66
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DScene.js";
|
|
67
|
+
import "../../CSS3DRenderPlugin/utils/getAllCSS3DObject.js";
|
|
68
|
+
import "../../shared-utils/util.js";
|
|
69
|
+
import "../../CSS3DRenderPlugin/utils/three/CSS3DGroup.js";
|
|
70
|
+
import "../../shared-utils/Object3DHelper/Helper/RotateHelper.js";
|
|
71
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/tipsDom.js";
|
|
72
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/utils/createElement.js";
|
|
73
|
+
import "../../shared-utils/Object3DHelper/Helper/CSS3DScaleHelper.js";
|
|
74
|
+
import "../../shared-utils/Object3DHelper/Helper/HTML/rectangleScaleDom.js";
|
|
75
|
+
import "../../shared-utils/Object3DHelper/Helper/BoundingBoxHelper.js";
|
|
76
|
+
import "../../shared-utils/Object3DHelper/Controller/MoveController.js";
|
|
77
|
+
import "../../shared-utils/Object3DHelper/Base/BaseController.js";
|
|
78
|
+
import "../../shared-utils/threex/domevents/index.js";
|
|
79
|
+
import "../../shared-utils/Object3DHelper/utils/getMouseRaycaster.js";
|
|
80
|
+
import "../../shared-utils/Object3DHelper/utils/calculateThreeMouse.js";
|
|
81
|
+
import "../../Sculpt/utils/three/rayOnLine.js";
|
|
82
|
+
import "../../Object3DHelperPlugin/FiveControllerWrapper.js";
|
|
83
|
+
import "../../shared-utils/Object3DHelper/index.js";
|
|
84
|
+
import "../../shared-utils/Object3DHelper/Controller/RotateController.js";
|
|
85
|
+
import "../../shared-utils/math/rad2Deg.js";
|
|
86
|
+
import "../../shared-utils/math/deg2Rad.js";
|
|
87
|
+
import "../../shared-utils/Object3DHelper/Controller/CSS3DScaleController.js";
|
|
88
|
+
import "../../shared-utils/Object3DHelper/Controller/RectangleScaleController.js";
|
|
89
|
+
import "../../shared-utils/Object3DHelper/utils/vectorIsEqual.js";
|
|
90
|
+
import "../../CSS3DRenderPlugin/utils/generateBehindFiveElement.js";
|
|
91
|
+
import "../../shared-utils/Object3DHelper/Controller/BoundingBoxController.js";
|
|
92
|
+
import "../../shared-utils/Object3DHelper/Helper/ScaleHelper.js";
|
|
93
|
+
import "../../shared-utils/Object3DHelper/Controller/ScaleController.js";
|
|
94
|
+
import "../../shared-utils/five/fiveModelLoad.js";
|
|
95
|
+
import "../../shared-utils/five/FiveDomEvents.js";
|
|
96
|
+
import "../../shared-utils/five/calculateThreeMouse.js";
|
|
97
|
+
import "../../shared-utils/three/THREERaycaster.js";
|
|
39
98
|
import "../../shared-utils/three/PointSelector/index.js";
|
|
40
99
|
import "../../shared-utils/three/PointSelector/utils/PointSelectorHelper.js";
|
|
41
100
|
import "../../shared-utils/three/Magnifier.js";
|
|
42
|
-
import "../../shared-utils/Subscribe.js";
|
|
43
101
|
import "../../shared-utils/three/PointSelector/utils/PointHelper.js";
|
|
44
102
|
import "../../shared-utils/three/Assets/index.js";
|
|
45
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DObject.js";
|
|
46
|
-
import "../../CSS3DRenderPlugin/utils/even.js";
|
|
47
|
-
import "../../CSS3DRenderPlugin/utils/three/OpacityMesh.js";
|
|
48
|
-
import "../../shared-utils/three/getObjectVisible.js";
|
|
49
103
|
import "../../shared-utils/three/PointSelector/utils/html.js";
|
|
50
104
|
import "../../shared-utils/five/initialCSS3DRender.js";
|
|
51
|
-
import "../../CSS3DRenderPlugin/utils/three/CSS3DRenderer.js";
|
|
52
|
-
import "../../CSS3DRenderPlugin/utils/three/THREEJS_CSS3DRenderer.js";
|
|
53
|
-
import "../../CSS3DRenderPlugin/utils/createResizeObserver.js";
|
|
54
105
|
import "../../shared-utils/three/PointSelector/utils/PointHelper2.js";
|
|
55
106
|
import "../../Sculpt/Meshes/Line.js";
|
|
56
|
-
import "../../Sculpt/
|
|
57
|
-
import "../../shared-utils/
|
|
107
|
+
import "../../Sculpt/typings/style.js";
|
|
108
|
+
import "../../shared-utils/tag.js";
|
|
109
|
+
import "../../shared-utils/five/vector3ToScreen.js";
|
|
58
110
|
import "../../CSS3DRenderPlugin/utils/three/CSS3DSprite.js";
|
|
59
111
|
import "../../shared-utils/isTouchDevice.js";
|
|
60
112
|
import "../../shared-utils/five/getPosition.js";
|
|
61
113
|
import "../../shared-utils/five/getRaycasterByNdcPosition.js";
|
|
62
|
-
import "
|
|
114
|
+
import "../utils/isIntersecting.js";
|
|
63
115
|
import "../Modules/DeleteDom/index.js";
|
|
64
116
|
import "../Modules/DeleteDom/_Assets/delete.svg.js";
|
|
65
117
|
import "../Modules/DeleteDom/_Assets/delete_bg.png.js";
|
|
66
118
|
import "../Modules/DeleteDom/_Assets/delete_hover_bg.png.js";
|
|
67
119
|
import "../utils/math.js";
|
|
68
|
-
function
|
|
120
|
+
function ot(n) {
|
|
69
121
|
F(n, "svelte-468fdd", '*.forbid.svelte-468fdd.svelte-468fdd{pointer-events:none !important;opacity:0.5}.Measure-Controller.svelte-468fdd.svelte-468fdd{pointer-events:none;position:relative;width:100%;height:100%;z-index:2}.Measure-Controller.svelte-468fdd .mode-switcher.svelte-468fdd{margin-top:2.25rem}.Measure-Controller.svelte-468fdd .bottom.svelte-468fdd{position:absolute;width:100%;bottom:0}.Measure-Controller.svelte-468fdd .bottom .mask.svelte-468fdd{position:absolute;bottom:0;width:100%;height:11.5rem;background-size:100%;background-image:linear-gradient(to bottom, transparent, rgba(0, 0, 0, 0.3))}.Measure-Controller.svelte-468fdd .bottom .center.svelte-468fdd{display:flex;flex-direction:column;align-items:center;margin-bottom:2.5rem}.Measure-Controller.svelte-468fdd .buttons.svelte-468fdd{pointer-events:all;display:flex;align-items:center;height:2.5rem;background:rgba(0, 0, 0, 0.2);color:rgba(255, 255, 255, 0.85);width:-moz-max-content;width:max-content;border-radius:624.9375rem;overflow:hidden}.Measure-Controller.svelte-468fdd .buttons .button.svelte-468fdd{cursor:pointer;display:flex;align-items:center;position:relative;font-size:0.875rem;padding:0rem 1rem}.Measure-Controller.svelte-468fdd .buttons .button .icon.svelte-468fdd{width:1.5rem;height:1.5rem;background-repeat:no-repeat;background-size:100%;margin-right:0.25rem}.Measure-Controller.svelte-468fdd .buttons .button.svelte-468fdd::after{content:"";position:absolute;display:block;right:-0.03125rem;height:1.5rem;width:0.0625rem;background-image:linear-gradient(to bottom, transparent, rgba(255, 255, 255, 0.3), transparent);background-size:100%;background-repeat:no-repeat;background-position:center}.Measure-Controller.svelte-468fdd .buttons .button.svelte-468fdd:last-child::after{display:none}');
|
|
70
122
|
}
|
|
71
123
|
function L(n) {
|
|
@@ -81,41 +133,41 @@ function L(n) {
|
|
|
81
133
|
c() {
|
|
82
134
|
P(o.$$.fragment);
|
|
83
135
|
},
|
|
84
|
-
m(
|
|
85
|
-
T(o,
|
|
136
|
+
m(e, a) {
|
|
137
|
+
T(o, e, a), i = !0;
|
|
86
138
|
},
|
|
87
|
-
p(
|
|
88
|
-
const
|
|
89
|
-
|
|
90
|
-
1 && (
|
|
91
|
-
|
|
139
|
+
p(e, a) {
|
|
140
|
+
const f = {};
|
|
141
|
+
a & /*measureController*/
|
|
142
|
+
1 && (f.onClick = /*measureController*/
|
|
143
|
+
e[0].disable), o.$set(f);
|
|
92
144
|
},
|
|
93
|
-
i(
|
|
94
|
-
i || (w(o.$$.fragment,
|
|
145
|
+
i(e) {
|
|
146
|
+
i || (w(o.$$.fragment, e), i = !0);
|
|
95
147
|
},
|
|
96
|
-
o(
|
|
97
|
-
I(o.$$.fragment,
|
|
148
|
+
o(e) {
|
|
149
|
+
I(o.$$.fragment, e), i = !1;
|
|
98
150
|
},
|
|
99
|
-
d(
|
|
100
|
-
W(o,
|
|
151
|
+
d(e) {
|
|
152
|
+
W(o, e);
|
|
101
153
|
}
|
|
102
154
|
};
|
|
103
155
|
}
|
|
104
156
|
function O(n) {
|
|
105
|
-
let o, i,
|
|
157
|
+
let o, i, e, a, f = (
|
|
106
158
|
/*i18n*/
|
|
107
159
|
n[2]("撤销") + ""
|
|
108
|
-
),
|
|
160
|
+
), s, v, p, d, b, c = (
|
|
109
161
|
/*i18n*/
|
|
110
162
|
n[2]("结束") + ""
|
|
111
163
|
), r, l, _;
|
|
112
164
|
return {
|
|
113
165
|
c() {
|
|
114
|
-
o = h("div"), i = h("div"),
|
|
115
|
-
n[3]), g(
|
|
166
|
+
o = h("div"), i = h("div"), e = h("div"), a = C(), s = y(f), v = C(), p = h("div"), d = h("div"), b = C(), r = y(c), g(e, "class", "icon svelte-468fdd"), E(e, "background-image", `url(${tt})`), g(i, "class", "button svelte-468fdd"), z(i, "forbid", !/*canRevoke*/
|
|
167
|
+
n[3]), g(d, "class", "icon svelte-468fdd"), E(d, "background-image", `url(${et})`), g(p, "class", "button svelte-468fdd"), g(o, "class", "buttons svelte-468fdd");
|
|
116
168
|
},
|
|
117
|
-
m(u,
|
|
118
|
-
R(u, o,
|
|
169
|
+
m(u, t) {
|
|
170
|
+
R(u, o, t), m(o, i), m(i, e), m(i, a), m(i, s), m(o, v), m(o, p), m(p, d), m(p, b), m(p, r), l || (_ = [
|
|
119
171
|
S(
|
|
120
172
|
i,
|
|
121
173
|
"click",
|
|
@@ -123,19 +175,19 @@ function O(n) {
|
|
|
123
175
|
n[7]
|
|
124
176
|
),
|
|
125
177
|
S(
|
|
126
|
-
|
|
178
|
+
p,
|
|
127
179
|
"click",
|
|
128
180
|
/*complete*/
|
|
129
181
|
n[6]
|
|
130
182
|
)
|
|
131
183
|
], l = !0);
|
|
132
184
|
},
|
|
133
|
-
p(u,
|
|
134
|
-
|
|
135
|
-
4 &&
|
|
136
|
-
u[2]("撤销") + "") && A(
|
|
185
|
+
p(u, t) {
|
|
186
|
+
t & /*i18n*/
|
|
187
|
+
4 && f !== (f = /*i18n*/
|
|
188
|
+
u[2]("撤销") + "") && A(s, f), t & /*canRevoke*/
|
|
137
189
|
8 && z(i, "forbid", !/*canRevoke*/
|
|
138
|
-
u[3]),
|
|
190
|
+
u[3]), t & /*i18n*/
|
|
139
191
|
4 && c !== (c = /*i18n*/
|
|
140
192
|
u[2]("结束") + "") && A(r, c);
|
|
141
193
|
},
|
|
@@ -144,16 +196,16 @@ function O(n) {
|
|
|
144
196
|
}
|
|
145
197
|
};
|
|
146
198
|
}
|
|
147
|
-
function
|
|
148
|
-
let o, i,
|
|
199
|
+
function it(n) {
|
|
200
|
+
let o, i, e, a, f, s, v, p, d, b, c, r = (
|
|
149
201
|
/*showExit*/
|
|
150
202
|
n[1] && L(n)
|
|
151
203
|
), l = (
|
|
152
204
|
/*showController*/
|
|
153
205
|
n[5] && O(n)
|
|
154
206
|
);
|
|
155
|
-
function _(
|
|
156
|
-
n[9](
|
|
207
|
+
function _(t) {
|
|
208
|
+
n[9](t);
|
|
157
209
|
}
|
|
158
210
|
let u = {
|
|
159
211
|
options: [
|
|
@@ -182,20 +234,20 @@ function ie(n) {
|
|
|
182
234
|
return (
|
|
183
235
|
/*setSwitcherActiveIndex*/
|
|
184
236
|
n[4] !== void 0 && (u.setIndex = /*setSwitcherActiveIndex*/
|
|
185
|
-
n[4]),
|
|
237
|
+
n[4]), d = new Y({ props: u }), G.push(() => H(d, "setIndex", _)), {
|
|
186
238
|
c() {
|
|
187
|
-
o = h("div"), r && r.c(), i = C(),
|
|
239
|
+
o = h("div"), r && r.c(), i = C(), e = h("div"), a = h("div"), f = C(), s = h("div"), l && l.c(), v = C(), p = h("div"), P(d.$$.fragment), g(a, "class", "mask svelte-468fdd"), g(p, "class", "mode-switcher svelte-468fdd"), g(s, "class", "center svelte-468fdd"), g(e, "class", "bottom svelte-468fdd"), g(o, "class", "Measure-Controller svelte-468fdd");
|
|
188
240
|
},
|
|
189
|
-
m(
|
|
190
|
-
R(
|
|
241
|
+
m(t, k) {
|
|
242
|
+
R(t, o, k), r && r.m(o, null), m(o, i), m(o, e), m(e, a), m(e, f), m(e, s), l && l.m(s, null), m(s, v), m(s, p), T(d, p, null), c = !0;
|
|
191
243
|
},
|
|
192
|
-
p(
|
|
244
|
+
p(t, [k]) {
|
|
193
245
|
/*showExit*/
|
|
194
|
-
|
|
195
|
-
2 && w(r, 1)) : (r = L(
|
|
246
|
+
t[1] ? r ? (r.p(t, k), k & /*showExit*/
|
|
247
|
+
2 && w(r, 1)) : (r = L(t), r.c(), w(r, 1), r.m(o, i)) : r && (X(), I(r, 1, 1, () => {
|
|
196
248
|
r = null;
|
|
197
249
|
}), J()), /*showController*/
|
|
198
|
-
|
|
250
|
+
t[5] ? l ? l.p(t, k) : (l = O(t), l.c(), l.m(s, v)) : l && (l.d(1), l = null);
|
|
199
251
|
const M = {};
|
|
200
252
|
k & /*i18n*/
|
|
201
253
|
4 && (M.options = [
|
|
@@ -203,7 +255,7 @@ function ie(n) {
|
|
|
203
255
|
key: "line",
|
|
204
256
|
value: (
|
|
205
257
|
/*i18n*/
|
|
206
|
-
|
|
258
|
+
t[2]("测距离")
|
|
207
259
|
),
|
|
208
260
|
icon: q
|
|
209
261
|
},
|
|
@@ -211,86 +263,86 @@ function ie(n) {
|
|
|
211
263
|
key: "area",
|
|
212
264
|
value: (
|
|
213
265
|
/*i18n*/
|
|
214
|
-
|
|
266
|
+
t[2]("测面积")
|
|
215
267
|
),
|
|
216
268
|
icon: D
|
|
217
269
|
}
|
|
218
270
|
]), k & /*measureController*/
|
|
219
271
|
1 && (M.onChange = /*func*/
|
|
220
|
-
|
|
272
|
+
t[8]), !b && k & /*setSwitcherActiveIndex*/
|
|
221
273
|
16 && (b = !0, M.setIndex = /*setSwitcherActiveIndex*/
|
|
222
|
-
|
|
274
|
+
t[4], K(() => b = !1)), d.$set(M);
|
|
223
275
|
},
|
|
224
|
-
i(
|
|
225
|
-
c || (w(r), w(
|
|
276
|
+
i(t) {
|
|
277
|
+
c || (w(r), w(d.$$.fragment, t), c = !0);
|
|
226
278
|
},
|
|
227
|
-
o(
|
|
228
|
-
I(r), I(
|
|
279
|
+
o(t) {
|
|
280
|
+
I(r), I(d.$$.fragment, t), c = !1;
|
|
229
281
|
},
|
|
230
|
-
d(
|
|
231
|
-
|
|
282
|
+
d(t) {
|
|
283
|
+
t && U(o), r && r.d(), l && l.d(), W(d);
|
|
232
284
|
}
|
|
233
285
|
}
|
|
234
286
|
);
|
|
235
287
|
}
|
|
236
|
-
function
|
|
237
|
-
let { measureController:
|
|
238
|
-
function
|
|
239
|
-
|
|
288
|
+
function rt(n, o, i) {
|
|
289
|
+
let { measureController: e } = o, { showExit: a = !1 } = o, { i18n: f = (t) => t } = o, s = !1, v;
|
|
290
|
+
function p(t) {
|
|
291
|
+
t === "Edit" ? i(5, r = !0) : (v(null), i(5, r = !1));
|
|
240
292
|
}
|
|
241
|
-
function
|
|
242
|
-
|
|
293
|
+
function d() {
|
|
294
|
+
e.controller instanceof $ && e.controller.complete(), e.save({ mode: "Watch" });
|
|
243
295
|
}
|
|
244
|
-
function b(
|
|
245
|
-
i(3,
|
|
296
|
+
function b(t) {
|
|
297
|
+
i(3, s = t.length > 0);
|
|
246
298
|
}
|
|
247
299
|
function c() {
|
|
248
|
-
i(3,
|
|
300
|
+
i(3, s = !1);
|
|
249
301
|
}
|
|
250
302
|
N(() => {
|
|
251
|
-
|
|
303
|
+
e.hook.on("modeChange", p), e.hook.on("complete", c), e.hook.on("pointsChange", b);
|
|
252
304
|
}), Q(() => {
|
|
253
|
-
|
|
305
|
+
e.hook.off("modeChange", p), e.hook.off("complete", c), e.hook.off("pointsChange", b);
|
|
254
306
|
});
|
|
255
307
|
let r = !1;
|
|
256
|
-
const l = () =>
|
|
257
|
-
|
|
308
|
+
const l = () => e.revoke(), _ = (t) => {
|
|
309
|
+
e.save().changeMode("Edit"), e.changeMeasureType(t);
|
|
258
310
|
};
|
|
259
|
-
function u(
|
|
260
|
-
v =
|
|
311
|
+
function u(t) {
|
|
312
|
+
v = t, i(4, v);
|
|
261
313
|
}
|
|
262
|
-
return n.$$set = (
|
|
263
|
-
"measureController" in
|
|
314
|
+
return n.$$set = (t) => {
|
|
315
|
+
"measureController" in t && i(0, e = t.measureController), "showExit" in t && i(1, a = t.showExit), "i18n" in t && i(2, f = t.i18n);
|
|
264
316
|
}, [
|
|
265
|
-
|
|
317
|
+
e,
|
|
318
|
+
a,
|
|
266
319
|
f,
|
|
267
|
-
|
|
268
|
-
d,
|
|
320
|
+
s,
|
|
269
321
|
v,
|
|
270
322
|
r,
|
|
271
|
-
|
|
323
|
+
d,
|
|
272
324
|
l,
|
|
273
325
|
_,
|
|
274
326
|
u
|
|
275
327
|
];
|
|
276
328
|
}
|
|
277
|
-
class
|
|
329
|
+
class go extends j {
|
|
278
330
|
constructor(o) {
|
|
279
331
|
super(), x(
|
|
280
332
|
this,
|
|
281
333
|
o,
|
|
282
|
-
|
|
283
|
-
|
|
334
|
+
rt,
|
|
335
|
+
it,
|
|
284
336
|
B,
|
|
285
337
|
{
|
|
286
338
|
measureController: 0,
|
|
287
339
|
showExit: 1,
|
|
288
340
|
i18n: 2
|
|
289
341
|
},
|
|
290
|
-
|
|
342
|
+
ot
|
|
291
343
|
);
|
|
292
344
|
}
|
|
293
345
|
}
|
|
294
346
|
export {
|
|
295
|
-
|
|
347
|
+
go as default
|
|
296
348
|
};
|