@kq_npm/client3d_webgl_vue 4.5.3-beta → 4.5.5-beta
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/adddata/index.js +337 -524
- package/adddata/style/adddata.css +1 -1
- package/aspectanalysis/index.js +163 -229
- package/baseterraingallery/index.js +122 -145
- package/boxclip/index.js +291 -472
- package/clientPrint/index.js +368 -906
- package/clientPrint/style/clientPrint.css +1 -1
- package/comparemap/index.js +224 -246
- package/compass/index.js +96 -84
- package/excavatefillanalysis/index.js +185 -255
- package/fixedzoomin/index.js +91 -76
- package/fixedzoomout/index.js +91 -76
- package/flight/index.js +298 -402
- package/flight/style/flight.css +1 -1
- package/floodanalysis/index.js +248 -385
- package/geologicalbodyanalysis/index.js +206 -288
- package/gpuspatialquery/index.js +243 -392
- package/hawkeye/index.js +139 -103
- package/headertemp/index.js +23 -33
- package/heatmap3d/index.js +427 -734
- package/heatmap3d/style/heatmap3d.css +1 -1
- package/index.js +8170 -17000
- package/isolineanalysis/index.js +557 -1233
- package/light/index.js +351 -488
- package/limitheightanalysis/index.js +249 -312
- package/measure/index.js +341 -495
- package/modelFlat/index.js +261 -259
- package/modelexcavate/index.js +214 -266
- package/modelfilter/index.js +216 -299
- package/modelprofileanalysis/index.js +354 -465
- package/modelselect/index.js +183 -175
- package/package.json +1 -1
- package/particleeffect/index.js +257 -430
- package/planeclip/index.js +240 -330
- package/resetview/index.js +89 -69
- package/roller/index.js +305 -363
- package/scaneffect/index.js +274 -572
- package/sceneadvancedtoimage/index.js +1057 -0
- package/sceneadvancedtoimage/style/index.js +3 -0
- package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -0
- package/sceneapp/index.js +818 -2179
- package/sceneset/index.js +391 -885
- package/scenetohdimage/index.js +212 -346
- package/scenetohdimage/style/scenetohdimage.css +1 -1
- package/sceneview/index.js +9208 -17907
- package/sceneview/style/sceneview.css +1 -1
- package/screenshot/index.js +273 -312
- package/shadowanalysis/index.js +259 -437
- package/sightlineanalysis/index.js +229 -312
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +204 -341
- package/slopeanalysis/index.js +274 -435
- package/slopeaspectanalysis/index.js +307 -524
- package/statusbar/index.js +113 -84
- package/style.css +1 -1
- package/terrainoperation/index.js +222 -271
- package/terrainprofileanalysis/index.js +166 -173
- package/underground/index.js +96 -82
- package/videofusion/index.js +305 -519
- package/videoproject/index.js +311 -521
- package/viewshedanalysis/index.js +176 -275
- package/weathereffect/index.js +197 -343
- package/wireframesketch/index.js +133 -141
package/measure/index.js
CHANGED
|
@@ -7,301 +7,155 @@
|
|
|
7
7
|
var a = typeof exports === 'object' ? factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/_utils/util"), require("@kq_npm/client_common_vue/init.js")) : factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/_utils/util"], root["@kq_npm/client_common_vue/init.js"]);
|
|
8
8
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
9
|
}
|
|
10
|
-
})(this, function(
|
|
10
|
+
})(this, function(__WEBPACK_EXTERNAL_MODULE__154__, __WEBPACK_EXTERNAL_MODULE__64__, __WEBPACK_EXTERNAL_MODULE__2975__, __WEBPACK_EXTERNAL_MODULE__455__) {
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
-
/***/
|
|
15
|
+
/***/ 3275:
|
|
16
16
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
17
|
|
|
18
|
-
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
18
|
+
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6363);
|
|
19
19
|
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
20
|
-
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
20
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(455);
|
|
21
21
|
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
|
|
22
|
-
|
|
22
|
+
/*
|
|
23
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
24
|
+
* All rights reserved.
|
|
25
|
+
*/
|
|
23
26
|
|
|
24
27
|
|
|
25
28
|
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
26
29
|
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
27
30
|
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
28
31
|
};
|
|
29
|
-
|
|
30
|
-
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
32
|
+
/* harmony default export */ __webpack_exports__.A = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
31
33
|
|
|
32
34
|
/***/ }),
|
|
33
35
|
|
|
34
|
-
/***/
|
|
35
|
-
/***/ (function(
|
|
36
|
-
|
|
37
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
38
|
-
/* harmony export */ "Z": function() { return /* binding */ MeasureViewModel; }
|
|
39
|
-
/* harmony export */ });
|
|
40
|
-
/* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
|
|
41
|
-
|
|
42
|
-
//测量操作类
|
|
43
|
-
class MeasureViewModel {
|
|
44
|
-
//测量三维对象
|
|
45
|
-
//测量事件
|
|
46
|
-
//活动事件
|
|
47
|
-
constructor(viewer) {
|
|
48
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
|
|
49
|
-
|
|
50
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_measureHandler", null);
|
|
51
|
-
|
|
52
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "measureEvent", null);
|
|
53
|
-
|
|
54
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "activeEvent", null);
|
|
55
|
-
|
|
56
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "nauticalMileUnit", "nmi");
|
|
57
|
-
|
|
58
|
-
this._measureHandler = new Cesium.Kq3dMeasureHandler(viewer);
|
|
59
|
-
this._viewer = viewer;
|
|
60
|
-
this.measureEvent = this._measureHandler.measureEvent;
|
|
61
|
-
this.activeEvent = this._measureHandler.activeEvent;
|
|
62
|
-
} //距离测量
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
distanceMeasure(mode) {
|
|
66
|
-
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
67
|
-
|
|
68
|
-
if (mode === "ground") {
|
|
69
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.TerrainDistance);
|
|
70
|
-
} else if (mode === "model") {
|
|
71
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.ModelDistance);
|
|
72
|
-
} else {
|
|
73
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Distance);
|
|
74
|
-
}
|
|
75
|
-
} //高度测量(三角测量)
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
heightMeasure() {
|
|
79
|
-
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
80
|
-
|
|
81
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.ComplexDistance);
|
|
82
|
-
} //面积测量
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
areaMeasure(mode) {
|
|
86
|
-
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
87
|
-
|
|
88
|
-
if (mode === "ground") {
|
|
89
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.TerrainArea);
|
|
90
|
-
} else if (mode === "model") {
|
|
91
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.ModelArea);
|
|
92
|
-
} else {
|
|
93
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Area);
|
|
94
|
-
}
|
|
95
|
-
} //方位角测量
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
azimuthMeasure() {
|
|
99
|
-
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
100
|
-
|
|
101
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Azimuth);
|
|
102
|
-
} //坐标测量
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
coordinateMeasure() {
|
|
106
|
-
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
107
|
-
|
|
108
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Coordinate);
|
|
109
|
-
} //地形坡度测量
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
terrainSlopeMeasure() {
|
|
113
|
-
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
114
|
-
|
|
115
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.TerrainSlope);
|
|
116
|
-
} //场景坡度测量
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
sceneSlopeMeasure() {
|
|
120
|
-
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
121
|
-
|
|
122
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.SceneSlope);
|
|
123
|
-
} //结束测量
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
stopMeasure() {
|
|
127
|
-
this._measureHandler.stopMeasure();
|
|
128
|
-
} //更新距离测量单位
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
updateDistanceUnit(distanceTotal, unit) {
|
|
132
|
-
if (this._measureHandler.measureResults) {
|
|
133
|
-
this._measureHandler.measureResults.forEach(measureResult => {
|
|
134
|
-
if (measureResult.polyline) {
|
|
135
|
-
let labels = measureResult.labels._labels;
|
|
136
|
-
let positions = measureResult.polyline.positions;
|
|
137
|
-
let dist = 0; // 更新每段长度值
|
|
138
|
-
|
|
139
|
-
for (let i = 0; i < labels.length - 1; i++) {
|
|
140
|
-
if (labels[i].show && labels[i].text) {
|
|
141
|
-
dist = Cesium.Cartesian3.distance(positions[i], positions[i + 1]);
|
|
142
|
-
labels[i].text = this.convertValueUnit(dist, unit);
|
|
143
|
-
}
|
|
144
|
-
}
|
|
145
|
-
} // 更新总长度值
|
|
146
|
-
|
|
147
|
-
|
|
148
|
-
measureResult.label.text = this.convertValueUnit(distanceTotal, unit);
|
|
149
|
-
}, this);
|
|
150
|
-
}
|
|
151
|
-
} //测量距离数值单位换算
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
convertValueUnit(value, unit) {
|
|
155
|
-
let newValue = "";
|
|
156
|
-
|
|
157
|
-
switch (unit) {
|
|
158
|
-
case "m":
|
|
159
|
-
newValue = value.toFixed(2) + " m";
|
|
160
|
-
break;
|
|
161
|
-
|
|
162
|
-
case "km":
|
|
163
|
-
newValue = (value / 1000).toFixed(2) + " km";
|
|
164
|
-
break;
|
|
165
|
-
|
|
166
|
-
case this.nauticalMileUnit:
|
|
167
|
-
newValue = (value / 1852).toFixed(2) + " " + this.nauticalMileUnit;
|
|
168
|
-
break;
|
|
169
|
-
|
|
170
|
-
case "m²":
|
|
171
|
-
newValue = value.toFixed(2) + " m²";
|
|
172
|
-
break;
|
|
173
|
-
|
|
174
|
-
case "km²":
|
|
175
|
-
newValue = (value / 1000000).toFixed(2) + " km²";
|
|
176
|
-
break;
|
|
177
|
-
|
|
178
|
-
case "mu":
|
|
179
|
-
newValue = (value * 2 / 3).toFixed(2) + " mu";
|
|
180
|
-
break;
|
|
181
|
-
|
|
182
|
-
case "ha":
|
|
183
|
-
newValue = (value / 10000).toFixed(2) + " ha";
|
|
184
|
-
break;
|
|
185
|
-
|
|
186
|
-
default:
|
|
187
|
-
break;
|
|
188
|
-
}
|
|
189
|
-
|
|
190
|
-
return newValue;
|
|
191
|
-
} // 判断是否加载地形
|
|
192
|
-
|
|
193
|
-
|
|
194
|
-
checkTerrainAdded() {
|
|
195
|
-
return this._viewer.terrainProvider.availability;
|
|
196
|
-
} // 判断是否加载模型
|
|
197
|
-
|
|
198
|
-
|
|
199
|
-
checkModelAdded() {
|
|
200
|
-
let isAdd = false;
|
|
201
|
-
let models = this._viewer.scene.primitives._primitives;
|
|
202
|
-
|
|
203
|
-
for (let i = 0; i < models.length; i++) {
|
|
204
|
-
if (models[i] instanceof Cesium.Cesium3DTileset) {
|
|
205
|
-
isAdd = true;
|
|
206
|
-
break;
|
|
207
|
-
}
|
|
208
|
-
}
|
|
209
|
-
|
|
210
|
-
return isAdd;
|
|
211
|
-
} //清除全部测量结果
|
|
212
|
-
|
|
36
|
+
/***/ 9371:
|
|
37
|
+
/***/ (function(module) {
|
|
213
38
|
|
|
214
|
-
|
|
215
|
-
this._measureHandler && this._measureHandler.clear();
|
|
216
|
-
} //销毁
|
|
39
|
+
module.exports = require("@element-plus/icons-vue");
|
|
217
40
|
|
|
41
|
+
/***/ }),
|
|
218
42
|
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
this._measureHandler = null;
|
|
222
|
-
}
|
|
43
|
+
/***/ 5698:
|
|
44
|
+
/***/ (function(module) {
|
|
223
45
|
|
|
224
|
-
|
|
46
|
+
module.exports = require("@kq_npm/client_icons_vue");
|
|
225
47
|
|
|
226
48
|
/***/ }),
|
|
227
49
|
|
|
228
|
-
/***/
|
|
50
|
+
/***/ 3658:
|
|
229
51
|
/***/ (function(module) {
|
|
230
52
|
|
|
231
|
-
module.exports = require("
|
|
53
|
+
module.exports = require("core-js/modules/esnext.iterator.constructor.js");
|
|
232
54
|
|
|
233
55
|
/***/ }),
|
|
234
56
|
|
|
235
|
-
/***/
|
|
57
|
+
/***/ 4669:
|
|
236
58
|
/***/ (function(module) {
|
|
237
59
|
|
|
238
|
-
module.exports = require("
|
|
60
|
+
module.exports = require("core-js/modules/esnext.iterator.for-each.js");
|
|
239
61
|
|
|
240
62
|
/***/ }),
|
|
241
63
|
|
|
242
|
-
/***/
|
|
64
|
+
/***/ 6363:
|
|
243
65
|
/***/ (function(module) {
|
|
244
66
|
|
|
245
67
|
module.exports = require("element-plus/dist/index.full.js");
|
|
246
68
|
|
|
247
69
|
/***/ }),
|
|
248
70
|
|
|
249
|
-
/***/
|
|
71
|
+
/***/ 3579:
|
|
250
72
|
/***/ (function(module) {
|
|
251
73
|
|
|
252
74
|
module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
|
|
253
75
|
|
|
254
76
|
/***/ }),
|
|
255
77
|
|
|
256
|
-
/***/
|
|
78
|
+
/***/ 64:
|
|
257
79
|
/***/ (function(module) {
|
|
258
80
|
|
|
259
|
-
module.exports =
|
|
81
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__64__;
|
|
260
82
|
|
|
261
83
|
/***/ }),
|
|
262
84
|
|
|
263
|
-
/***/
|
|
85
|
+
/***/ 2975:
|
|
264
86
|
/***/ (function(module) {
|
|
265
87
|
|
|
266
|
-
module.exports =
|
|
88
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__2975__;
|
|
267
89
|
|
|
268
90
|
/***/ }),
|
|
269
91
|
|
|
270
|
-
/***/
|
|
92
|
+
/***/ 455:
|
|
271
93
|
/***/ (function(module) {
|
|
272
94
|
|
|
273
|
-
module.exports =
|
|
95
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__455__;
|
|
274
96
|
|
|
275
97
|
/***/ }),
|
|
276
98
|
|
|
277
|
-
/***/
|
|
99
|
+
/***/ 154:
|
|
278
100
|
/***/ (function(module) {
|
|
279
101
|
|
|
280
|
-
module.exports =
|
|
102
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__154__;
|
|
281
103
|
|
|
282
104
|
/***/ }),
|
|
283
105
|
|
|
284
|
-
/***/
|
|
106
|
+
/***/ 6913:
|
|
285
107
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
286
108
|
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
function
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
109
|
+
|
|
110
|
+
// EXPORTS
|
|
111
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
112
|
+
A: function() { return /* binding */ _defineProperty; }
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
116
|
+
function _typeof(o) {
|
|
117
|
+
"@babel/helpers - typeof";
|
|
118
|
+
|
|
119
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
120
|
+
return typeof o;
|
|
121
|
+
} : function (o) {
|
|
122
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
123
|
+
}, _typeof(o);
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
127
|
+
|
|
128
|
+
function toPrimitive(t, r) {
|
|
129
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
130
|
+
var e = t[Symbol.toPrimitive];
|
|
131
|
+
if (void 0 !== e) {
|
|
132
|
+
var i = e.call(t, r || "default");
|
|
133
|
+
if ("object" != _typeof(i)) return i;
|
|
134
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
300
135
|
}
|
|
136
|
+
return ("string" === r ? String : Number)(t);
|
|
137
|
+
}
|
|
301
138
|
|
|
302
|
-
|
|
139
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
140
|
+
|
|
141
|
+
|
|
142
|
+
function toPropertyKey(t) {
|
|
143
|
+
var i = toPrimitive(t, "string");
|
|
144
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
303
145
|
}
|
|
304
146
|
|
|
147
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
148
|
+
|
|
149
|
+
function _defineProperty(e, r, t) {
|
|
150
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
151
|
+
value: t,
|
|
152
|
+
enumerable: !0,
|
|
153
|
+
configurable: !0,
|
|
154
|
+
writable: !0
|
|
155
|
+
}) : e[r] = t, e;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
|
|
305
159
|
/***/ })
|
|
306
160
|
|
|
307
161
|
/******/ });
|
|
@@ -373,35 +227,205 @@ function _defineProperty(obj, key, value) {
|
|
|
373
227
|
/******/
|
|
374
228
|
/************************************************************************/
|
|
375
229
|
var __webpack_exports__ = {};
|
|
376
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
377
|
-
!function() {
|
|
378
230
|
// ESM COMPAT FLAG
|
|
379
231
|
__webpack_require__.r(__webpack_exports__);
|
|
380
232
|
|
|
381
233
|
// EXPORTS
|
|
382
234
|
__webpack_require__.d(__webpack_exports__, {
|
|
383
|
-
|
|
235
|
+
MeasureViewModel: function() { return /* reexport */ MeasureViewModel; },
|
|
384
236
|
"default": function() { return /* reexport */ Measure; }
|
|
385
237
|
});
|
|
386
238
|
|
|
239
|
+
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
|
|
240
|
+
var esnext_iterator_constructor_js_ = __webpack_require__(3658);
|
|
241
|
+
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.for-each.js"
|
|
242
|
+
var esnext_iterator_for_each_js_ = __webpack_require__(4669);
|
|
387
243
|
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
388
|
-
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
|
|
244
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(154);
|
|
389
245
|
// EXTERNAL MODULE: external "@element-plus/icons-vue"
|
|
390
|
-
var icons_vue_ = __webpack_require__(
|
|
246
|
+
var icons_vue_ = __webpack_require__(9371);
|
|
391
247
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
392
|
-
var client_icons_vue_ = __webpack_require__(
|
|
248
|
+
var client_icons_vue_ = __webpack_require__(5698);
|
|
393
249
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
394
|
-
var gis_utils_ = __webpack_require__(
|
|
395
|
-
// EXTERNAL MODULE: ./
|
|
396
|
-
var
|
|
250
|
+
var gis_utils_ = __webpack_require__(64);
|
|
251
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js + 3 modules
|
|
252
|
+
var defineProperty = __webpack_require__(6913);
|
|
253
|
+
;// CONCATENATED MODULE: ./src/webgl/measure/MeasureViewModel.js
|
|
254
|
+
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
/*
|
|
258
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
259
|
+
* All rights reserved.
|
|
260
|
+
*/
|
|
261
|
+
//测量操作类
|
|
262
|
+
class MeasureViewModel {
|
|
263
|
+
constructor(viewer) {
|
|
264
|
+
(0,defineProperty/* default */.A)(this, "_viewer", null);
|
|
265
|
+
(0,defineProperty/* default */.A)(this, "_measureHandler", null);
|
|
266
|
+
//测量三维对象
|
|
267
|
+
(0,defineProperty/* default */.A)(this, "measureEvent", null);
|
|
268
|
+
//测量事件
|
|
269
|
+
(0,defineProperty/* default */.A)(this, "activeEvent", null);
|
|
270
|
+
//活动事件
|
|
271
|
+
(0,defineProperty/* default */.A)(this, "nauticalMileUnit", "nmi");
|
|
272
|
+
this._measureHandler = new Cesium.Kq3dMeasureHandler(viewer);
|
|
273
|
+
this._viewer = viewer;
|
|
274
|
+
this.measureEvent = this._measureHandler.measureEvent;
|
|
275
|
+
this.activeEvent = this._measureHandler.activeEvent;
|
|
276
|
+
}
|
|
277
|
+
|
|
278
|
+
//距离测量
|
|
279
|
+
distanceMeasure(mode) {
|
|
280
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
281
|
+
if (mode === "ground") {
|
|
282
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.TerrainDistance);
|
|
283
|
+
} else if (mode === "model") {
|
|
284
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.ModelDistance);
|
|
285
|
+
} else {
|
|
286
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Distance);
|
|
287
|
+
}
|
|
288
|
+
}
|
|
289
|
+
|
|
290
|
+
//高度测量(三角测量)
|
|
291
|
+
heightMeasure() {
|
|
292
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
293
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.ComplexDistance);
|
|
294
|
+
}
|
|
295
|
+
|
|
296
|
+
//面积测量
|
|
297
|
+
areaMeasure(mode) {
|
|
298
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
299
|
+
if (mode === "ground") {
|
|
300
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.TerrainArea);
|
|
301
|
+
} else if (mode === "model") {
|
|
302
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.ModelArea);
|
|
303
|
+
} else {
|
|
304
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Area);
|
|
305
|
+
}
|
|
306
|
+
}
|
|
307
|
+
|
|
308
|
+
//方位角测量
|
|
309
|
+
azimuthMeasure() {
|
|
310
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
311
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Azimuth);
|
|
312
|
+
}
|
|
313
|
+
|
|
314
|
+
//坐标测量
|
|
315
|
+
coordinateMeasure() {
|
|
316
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
317
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Coordinate);
|
|
318
|
+
}
|
|
319
|
+
|
|
320
|
+
//地形坡度测量
|
|
321
|
+
terrainSlopeMeasure() {
|
|
322
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
323
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.TerrainSlope);
|
|
324
|
+
}
|
|
325
|
+
|
|
326
|
+
//场景坡度测量
|
|
327
|
+
sceneSlopeMeasure() {
|
|
328
|
+
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
329
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.SceneSlope);
|
|
330
|
+
}
|
|
331
|
+
|
|
332
|
+
//结束测量
|
|
333
|
+
stopMeasure() {
|
|
334
|
+
this._measureHandler.stopMeasure();
|
|
335
|
+
}
|
|
336
|
+
|
|
337
|
+
//更新距离测量单位
|
|
338
|
+
updateDistanceUnit(distanceTotal, unit) {
|
|
339
|
+
if (this._measureHandler.measureResults) {
|
|
340
|
+
this._measureHandler.measureResults.forEach(measureResult => {
|
|
341
|
+
if (measureResult.polyline) {
|
|
342
|
+
let labels = measureResult.labels._labels;
|
|
343
|
+
let positions = measureResult.polyline.positions;
|
|
344
|
+
let dist = 0;
|
|
345
|
+
// 更新每段长度值
|
|
346
|
+
for (let i = 0; i < labels.length - 1; i++) {
|
|
347
|
+
if (labels[i].show && labels[i].text) {
|
|
348
|
+
dist = Cesium.Cartesian3.distance(positions[i], positions[i + 1]);
|
|
349
|
+
labels[i].text = this.convertValueUnit(dist, unit);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
}
|
|
353
|
+
// 更新总长度值
|
|
354
|
+
measureResult.label.text = this.convertValueUnit(distanceTotal, unit);
|
|
355
|
+
}, this);
|
|
356
|
+
}
|
|
357
|
+
}
|
|
358
|
+
|
|
359
|
+
//测量距离数值单位换算
|
|
360
|
+
convertValueUnit(value, unit) {
|
|
361
|
+
let newValue = "";
|
|
362
|
+
switch (unit) {
|
|
363
|
+
case "m":
|
|
364
|
+
newValue = value.toFixed(2) + " m";
|
|
365
|
+
break;
|
|
366
|
+
case "km":
|
|
367
|
+
newValue = (value / 1000).toFixed(2) + " km";
|
|
368
|
+
break;
|
|
369
|
+
case this.nauticalMileUnit:
|
|
370
|
+
newValue = (value / 1852).toFixed(2) + " " + this.nauticalMileUnit;
|
|
371
|
+
break;
|
|
372
|
+
case "m²":
|
|
373
|
+
newValue = value.toFixed(2) + " m²";
|
|
374
|
+
break;
|
|
375
|
+
case "km²":
|
|
376
|
+
newValue = (value / 1000000).toFixed(2) + " km²";
|
|
377
|
+
break;
|
|
378
|
+
case "mu":
|
|
379
|
+
newValue = (value * 2 / 3).toFixed(2) + " mu";
|
|
380
|
+
break;
|
|
381
|
+
case "ha":
|
|
382
|
+
newValue = (value / 10000).toFixed(2) + " ha";
|
|
383
|
+
break;
|
|
384
|
+
default:
|
|
385
|
+
break;
|
|
386
|
+
}
|
|
387
|
+
return newValue;
|
|
388
|
+
}
|
|
389
|
+
|
|
390
|
+
// 判断是否加载地形
|
|
391
|
+
checkTerrainAdded() {
|
|
392
|
+
return this._viewer.terrainProvider.availability;
|
|
393
|
+
}
|
|
394
|
+
|
|
395
|
+
// 判断是否加载模型
|
|
396
|
+
checkModelAdded() {
|
|
397
|
+
let isAdd = false;
|
|
398
|
+
let models = this._viewer.scene.primitives._primitives;
|
|
399
|
+
for (let i = 0; i < models.length; i++) {
|
|
400
|
+
if (models[i] instanceof Cesium.Cesium3DTileset) {
|
|
401
|
+
isAdd = true;
|
|
402
|
+
break;
|
|
403
|
+
}
|
|
404
|
+
}
|
|
405
|
+
return isAdd;
|
|
406
|
+
}
|
|
407
|
+
|
|
408
|
+
//清除全部测量结果
|
|
409
|
+
clear() {
|
|
410
|
+
this._measureHandler && this._measureHandler.clear();
|
|
411
|
+
}
|
|
412
|
+
|
|
413
|
+
//销毁
|
|
414
|
+
destroy() {
|
|
415
|
+
this.clear();
|
|
416
|
+
this._measureHandler = null;
|
|
417
|
+
}
|
|
418
|
+
}
|
|
397
419
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
398
|
-
var util_ = __webpack_require__(
|
|
420
|
+
var util_ = __webpack_require__(2975);
|
|
399
421
|
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
400
|
-
var message = __webpack_require__(
|
|
422
|
+
var message = __webpack_require__(3275);
|
|
401
423
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
402
|
-
var vue_i18n_cjs_js_ = __webpack_require__(
|
|
424
|
+
var vue_i18n_cjs_js_ = __webpack_require__(3579);
|
|
403
425
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/measure/Measure.vue?vue&type=script&setup=true&lang=js
|
|
404
426
|
|
|
427
|
+
|
|
428
|
+
|
|
405
429
|
const _hoisted_1 = {
|
|
406
430
|
class: "kq-measure3d-box"
|
|
407
431
|
};
|
|
@@ -537,7 +561,7 @@ const _hoisted_38 = {
|
|
|
537
561
|
const __default__ = {
|
|
538
562
|
name: "Kq3dMeasure"
|
|
539
563
|
};
|
|
540
|
-
/* harmony default export */ var Measurevue_type_script_setup_true_lang_js = (
|
|
564
|
+
/* harmony default export */ var Measurevue_type_script_setup_true_lang_js = (/*@__PURE__*/Object.assign(__default__, {
|
|
541
565
|
props: {
|
|
542
566
|
//指定组件绑定的viewer对象的div的id
|
|
543
567
|
target: String,
|
|
@@ -550,7 +574,6 @@ const __default__ = {
|
|
|
550
574
|
type: Boolean,
|
|
551
575
|
default: true
|
|
552
576
|
},
|
|
553
|
-
|
|
554
577
|
/**
|
|
555
578
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
556
579
|
*/
|
|
@@ -580,29 +603,28 @@ const __default__ = {
|
|
|
580
603
|
default: true
|
|
581
604
|
}
|
|
582
605
|
},
|
|
583
|
-
|
|
584
606
|
setup(__props, {
|
|
585
607
|
expose: __expose
|
|
586
608
|
}) {
|
|
587
609
|
const props = __props;
|
|
588
610
|
let measureType = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 测量类型
|
|
589
|
-
|
|
590
611
|
let isActive = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
591
612
|
let isResult = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
592
613
|
let isTips = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
593
|
-
let distanceValue = null;
|
|
594
|
-
|
|
595
|
-
let distanceUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.distanceUnit || "");
|
|
596
|
-
|
|
597
|
-
let nauticalMileUnit = props.settingParams && props.settingParams.nauticalMileUnit || "nmi";
|
|
598
|
-
|
|
614
|
+
let distanceValue = null;
|
|
615
|
+
// 默认显示距离的单位
|
|
616
|
+
let distanceUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.distanceUnit || "");
|
|
617
|
+
// 海里单位选择
|
|
618
|
+
let nauticalMileUnit = props.settingParams && props.settingParams.nauticalMileUnit || "nmi";
|
|
619
|
+
// 面积单位
|
|
599
620
|
let areaUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.areaUnit || "");
|
|
600
621
|
let result = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0);
|
|
601
622
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
602
623
|
let mode = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("space");
|
|
603
624
|
let modeList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
604
|
-
let viewModel = null;
|
|
625
|
+
let viewModel = null;
|
|
605
626
|
|
|
627
|
+
// 国际化
|
|
606
628
|
let {
|
|
607
629
|
locale,
|
|
608
630
|
messages
|
|
@@ -614,10 +636,10 @@ const __default__ = {
|
|
|
614
636
|
modeList.value = loadModeData();
|
|
615
637
|
distanceUnits.value = setDistanceUnits();
|
|
616
638
|
areaUnits.value = setAreaUnits();
|
|
617
|
-
});
|
|
639
|
+
});
|
|
618
640
|
|
|
641
|
+
// 距离测量单位
|
|
619
642
|
let distanceUnits = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
620
|
-
|
|
621
643
|
let setDistanceUnits = () => {
|
|
622
644
|
return [{
|
|
623
645
|
label: language.value.kilometre,
|
|
@@ -630,11 +652,9 @@ const __default__ = {
|
|
|
630
652
|
value: nauticalMileUnit
|
|
631
653
|
}];
|
|
632
654
|
};
|
|
633
|
-
|
|
634
|
-
|
|
635
|
-
|
|
655
|
+
distanceUnits.value = setDistanceUnits();
|
|
656
|
+
// 面积测量单位
|
|
636
657
|
let areaUnits = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
637
|
-
|
|
638
658
|
let setAreaUnits = () => {
|
|
639
659
|
return [{
|
|
640
660
|
label: language.value.squareKilometers,
|
|
@@ -650,11 +670,12 @@ const __default__ = {
|
|
|
650
670
|
value: "ha"
|
|
651
671
|
}];
|
|
652
672
|
};
|
|
673
|
+
areaUnits.value = setAreaUnits();
|
|
653
674
|
|
|
654
|
-
|
|
655
|
-
|
|
656
|
-
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
675
|
+
// 组件容器Ref
|
|
676
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
657
677
|
|
|
678
|
+
// 生成组件默认header
|
|
658
679
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
659
680
|
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
660
681
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
@@ -668,14 +689,13 @@ const __default__ = {
|
|
|
668
689
|
});
|
|
669
690
|
gis_utils_.utils.getWebMap(props.target, scenceView => {
|
|
670
691
|
if (scenceView) {
|
|
671
|
-
viewModel = new MeasureViewModel
|
|
672
|
-
viewModel.nauticalMileUnit = nauticalMileUnit;
|
|
673
|
-
|
|
692
|
+
viewModel = new MeasureViewModel(scenceView._viewer);
|
|
693
|
+
viewModel.nauticalMileUnit = nauticalMileUnit;
|
|
694
|
+
//注册测量事件,以获取测量结果
|
|
674
695
|
viewModel.measureEvent.addEventListener(function (res) {
|
|
675
696
|
if (measureType.value === "distance") {
|
|
676
697
|
if (res.distance) {
|
|
677
698
|
distanceValue = res.distance;
|
|
678
|
-
|
|
679
699
|
if (props.settingParams && props.settingParams.distanceUnit) {
|
|
680
700
|
distanceUnit.value = props.settingParams && props.settingParams.distanceUnit || "";
|
|
681
701
|
onChangeUnit(distanceUnit.value);
|
|
@@ -693,7 +713,6 @@ const __default__ = {
|
|
|
693
713
|
} else if (measureType.value === "area") {
|
|
694
714
|
if (res && res.area || res && res.area == 0) {
|
|
695
715
|
distanceValue = res.area;
|
|
696
|
-
|
|
697
716
|
if (props.settingParams && props.settingParams.areaUnit) {
|
|
698
717
|
areaUnit.value = props.settingParams && props.settingParams.areaUnit || "";
|
|
699
718
|
onChangeUnit(areaUnit.value);
|
|
@@ -715,7 +734,6 @@ const __default__ = {
|
|
|
715
734
|
} else if (measureType.value === "coordinate") {
|
|
716
735
|
if (res && res.coordinate) {
|
|
717
736
|
let convertValue = null;
|
|
718
|
-
|
|
719
737
|
if (props.settingParams && props.settingParams.isConvert) {
|
|
720
738
|
result.value = {
|
|
721
739
|
longitude: res.coordinate.longitude ? convertXY(res.coordinate.longitude) : 0,
|
|
@@ -730,11 +748,9 @@ const __default__ = {
|
|
|
730
748
|
height: res.coordinate.height ? res.coordinate.height.toFixed(2) : 0
|
|
731
749
|
};
|
|
732
750
|
}
|
|
733
|
-
|
|
734
751
|
if (res.measureResult && res.measureResult.labels && res.measureResult.labels.length > 0) {
|
|
735
752
|
res.measureResult.labels._labels.forEach(label => {
|
|
736
753
|
label.text = label.text.replace('X', language.value.longitude).replace('Y', language.value.latitude).replace('Z', language.value.elevation).replace(/\n/g, '°\n');
|
|
737
|
-
|
|
738
754
|
if (convertValue) {
|
|
739
755
|
label.text = label.text.replace(res.coordinate.longitude.toFixed(5) + "°", convertValue[0]).replace(res.coordinate.latitude.toFixed(5) + "°", convertValue[1]);
|
|
740
756
|
}
|
|
@@ -757,14 +773,11 @@ const __default__ = {
|
|
|
757
773
|
handler.setInputAction(function () {
|
|
758
774
|
if (!viewModel._measureHandler.active) return;
|
|
759
775
|
let isDrawing = viewModel._measureHandler.isDrawing;
|
|
760
|
-
|
|
761
776
|
if (!isDrawing) {
|
|
762
777
|
let measureResults = viewModel._measureHandler.measureResults;
|
|
763
|
-
|
|
764
778
|
if (measureResults && measureResults.length > 0) {
|
|
765
779
|
measureResults[0].destroy();
|
|
766
780
|
}
|
|
767
|
-
|
|
768
781
|
if (measureType.value === "coordinate") {
|
|
769
782
|
isTips.value = false;
|
|
770
783
|
isResult.value = true;
|
|
@@ -773,7 +786,6 @@ const __default__ = {
|
|
|
773
786
|
isResult.value = false;
|
|
774
787
|
}
|
|
775
788
|
}
|
|
776
|
-
|
|
777
789
|
if (isDrawing) {
|
|
778
790
|
if (measureType.value !== 'distance' && measureType.value !== 'area') {
|
|
779
791
|
continueMeasure();
|
|
@@ -782,7 +794,6 @@ const __default__ = {
|
|
|
782
794
|
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
783
795
|
handler.setInputAction(function () {
|
|
784
796
|
let isDrawing = viewModel._measureHandler.isDrawing;
|
|
785
|
-
|
|
786
797
|
if (!isDrawing) {
|
|
787
798
|
isActive.value = null;
|
|
788
799
|
viewModel.stopMeasure();
|
|
@@ -793,36 +804,33 @@ const __default__ = {
|
|
|
793
804
|
window.measureClickHandler = handler;
|
|
794
805
|
}
|
|
795
806
|
});
|
|
796
|
-
});
|
|
797
|
-
|
|
807
|
+
});
|
|
808
|
+
// 经纬度转度分秒
|
|
798
809
|
function convertXY(val) {
|
|
799
810
|
if (!val) {
|
|
800
811
|
return "";
|
|
801
|
-
}
|
|
802
|
-
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
812
|
+
}
|
|
813
|
+
// 度=经纬度的整数部分
|
|
814
|
+
let d = Math.floor(Number(val));
|
|
815
|
+
// 经纬度的小数部分*60
|
|
816
|
+
let temp1 = (Number(val) - Number(d)) * 60;
|
|
817
|
+
// 分=(经纬度的小数部分*60)的整数部分
|
|
818
|
+
let f = Math.floor(Number(temp1));
|
|
819
|
+
// 秒=(经纬度的小数部分*60-分)*60
|
|
810
820
|
let m = Math.floor((Number(temp1) - Number(f)) * 60);
|
|
811
821
|
return d + "°" + f + "′" + m + "″";
|
|
812
822
|
}
|
|
813
823
|
/**
|
|
814
824
|
* @description 监听header生成
|
|
815
825
|
*/
|
|
816
|
-
|
|
817
|
-
|
|
818
826
|
const watchCreateHeaderTemp = () => {
|
|
819
827
|
if (props.showHeaderTemp) {
|
|
820
828
|
// 生成headerTemp
|
|
821
829
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, measureTitle);
|
|
822
830
|
}
|
|
823
|
-
};
|
|
824
|
-
|
|
831
|
+
};
|
|
825
832
|
|
|
833
|
+
//加载测量模式数据
|
|
826
834
|
function loadModeData() {
|
|
827
835
|
return [{
|
|
828
836
|
label: language.value.spaceMeasure,
|
|
@@ -835,7 +843,6 @@ const __default__ = {
|
|
|
835
843
|
value: "model"
|
|
836
844
|
}];
|
|
837
845
|
}
|
|
838
|
-
|
|
839
846
|
function formatDistance(dis) {
|
|
840
847
|
if (dis > 5000) {
|
|
841
848
|
dis = dis / 1000;
|
|
@@ -843,192 +850,158 @@ const __default__ = {
|
|
|
843
850
|
} else {
|
|
844
851
|
distanceUnit.value = "m";
|
|
845
852
|
}
|
|
846
|
-
|
|
847
853
|
return dis.toFixed(2) + " " + distanceUnit.value;
|
|
848
854
|
}
|
|
849
|
-
|
|
850
855
|
function formatArea(area) {
|
|
851
856
|
areaUnit.value = "m²";
|
|
852
|
-
|
|
853
857
|
if (area > 1000000) {
|
|
854
858
|
area = area / 1000000;
|
|
855
859
|
areaUnit.value = "km²";
|
|
856
860
|
}
|
|
857
|
-
|
|
858
861
|
return area.toFixed(2) + " " + areaUnit.value;
|
|
859
862
|
}
|
|
863
|
+
|
|
860
864
|
/**
|
|
861
865
|
* @description 监听单位变化操作
|
|
862
866
|
* @param {string} unit - 单位
|
|
863
867
|
*/
|
|
864
|
-
|
|
865
|
-
|
|
866
868
|
function onChangeUnit(unit) {
|
|
867
869
|
result.value = convertValueUnitTotal(distanceValue, unit);
|
|
868
870
|
viewModel && viewModel.updateDistanceUnit(distanceValue, unit);
|
|
869
871
|
}
|
|
872
|
+
|
|
870
873
|
/**
|
|
871
874
|
* @description 测量距离数值单位换算
|
|
872
875
|
* @param {string} value - 原始数值
|
|
873
876
|
* @param {string} unit - 单位
|
|
874
877
|
* @returns {string} 新数值
|
|
875
878
|
*/
|
|
876
|
-
|
|
877
|
-
|
|
878
879
|
function convertValueUnitTotal(value, unit) {
|
|
879
880
|
let newValue = "";
|
|
880
|
-
|
|
881
881
|
switch (unit) {
|
|
882
882
|
case "m":
|
|
883
883
|
newValue = value.toFixed(2) + " m";
|
|
884
884
|
break;
|
|
885
|
-
|
|
886
885
|
case "km":
|
|
887
886
|
newValue = (value / 1000).toFixed(2) + " km";
|
|
888
887
|
break;
|
|
889
|
-
|
|
890
888
|
case nauticalMileUnit:
|
|
891
889
|
newValue = (value / 1852).toFixed(2) + " " + nauticalMileUnit;
|
|
892
890
|
break;
|
|
893
|
-
|
|
894
891
|
case "m²":
|
|
895
892
|
newValue = value.toFixed(2) + " m²";
|
|
896
893
|
break;
|
|
897
|
-
|
|
898
894
|
case "km²":
|
|
899
895
|
newValue = (value / 1000000).toFixed(2) + " km²";
|
|
900
896
|
break;
|
|
901
|
-
|
|
902
897
|
case "mu":
|
|
903
898
|
newValue = (value * 2 / 3).toFixed(2) + " mu";
|
|
904
899
|
break;
|
|
905
|
-
|
|
906
900
|
case "ha":
|
|
907
901
|
newValue = (value / 10000).toFixed(2) + " ha";
|
|
908
902
|
break;
|
|
909
|
-
|
|
910
903
|
default:
|
|
911
904
|
break;
|
|
912
905
|
}
|
|
913
|
-
|
|
914
906
|
return newValue;
|
|
915
|
-
}
|
|
916
|
-
|
|
907
|
+
}
|
|
917
908
|
|
|
909
|
+
// 销毁
|
|
918
910
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
919
911
|
clearMeasure();
|
|
920
|
-
|
|
921
912
|
if (window.measureClickHandler) {
|
|
922
913
|
window.measureClickHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
923
914
|
window.measureClickHandler.removeInputAction(Cesium.ScreenSpaceEventType.RIGHT_CLICK);
|
|
924
915
|
}
|
|
925
|
-
});
|
|
916
|
+
});
|
|
926
917
|
|
|
918
|
+
//开始测量
|
|
927
919
|
function startMeasure(type) {
|
|
928
920
|
if (mode.value === "ground") {
|
|
929
921
|
if (!viewModel.checkTerrainAdded()) {
|
|
930
|
-
(0,message/* default */.
|
|
931
|
-
message: "
|
|
922
|
+
(0,message/* default */.A)({
|
|
923
|
+
message: language.value["measuretAddTerrainTips"],
|
|
932
924
|
type: "warning"
|
|
933
925
|
});
|
|
934
926
|
return;
|
|
935
927
|
}
|
|
936
928
|
}
|
|
937
|
-
|
|
938
929
|
if (mode.value === "model") {
|
|
939
930
|
if (!viewModel.checkModelAdded()) {
|
|
940
|
-
(0,message/* default */.
|
|
941
|
-
message: "
|
|
931
|
+
(0,message/* default */.A)({
|
|
932
|
+
message: language.value["measuretAddModelTips"],
|
|
942
933
|
type: "warning"
|
|
943
934
|
});
|
|
944
935
|
return;
|
|
945
936
|
}
|
|
946
937
|
}
|
|
947
|
-
|
|
948
938
|
viewModel.clear();
|
|
949
939
|
result.value = 0;
|
|
950
940
|
isTips.value = true;
|
|
951
941
|
isResult.value = false;
|
|
952
942
|
measureType.value = type;
|
|
953
943
|
isActive.value = type;
|
|
954
|
-
|
|
955
944
|
switch (type) {
|
|
956
945
|
case "distance":
|
|
957
946
|
viewModel.distanceMeasure(mode.value);
|
|
958
947
|
break;
|
|
959
|
-
|
|
960
948
|
case "area":
|
|
961
949
|
viewModel.areaMeasure(mode.value);
|
|
962
950
|
break;
|
|
963
|
-
|
|
964
951
|
case "height":
|
|
965
952
|
viewModel.heightMeasure();
|
|
966
953
|
break;
|
|
967
|
-
|
|
968
954
|
case "coordinate":
|
|
969
955
|
viewModel.coordinateMeasure();
|
|
970
956
|
break;
|
|
971
|
-
|
|
972
957
|
case "azimuth":
|
|
973
958
|
viewModel.azimuthMeasure();
|
|
974
959
|
break;
|
|
975
|
-
|
|
976
960
|
case "slope":
|
|
977
961
|
if (mode.value === "ground") {
|
|
978
962
|
viewModel.terrainSlopeMeasure();
|
|
979
963
|
} else if (mode.value === "model") {
|
|
980
964
|
viewModel.sceneSlopeMeasure();
|
|
981
965
|
}
|
|
982
|
-
|
|
983
966
|
break;
|
|
984
|
-
|
|
985
967
|
default:
|
|
986
968
|
break;
|
|
987
969
|
}
|
|
988
970
|
}
|
|
989
|
-
|
|
990
971
|
function continueMeasure() {
|
|
991
972
|
setTimeout(() => {
|
|
992
973
|
switch (measureType.value) {
|
|
993
974
|
case "distance":
|
|
994
975
|
viewModel.distanceMeasure(mode.value);
|
|
995
976
|
break;
|
|
996
|
-
|
|
997
977
|
case "area":
|
|
998
978
|
viewModel.areaMeasure(mode.value);
|
|
999
979
|
break;
|
|
1000
|
-
|
|
1001
980
|
case "height":
|
|
1002
981
|
viewModel.heightMeasure();
|
|
1003
982
|
break;
|
|
1004
|
-
|
|
1005
983
|
case "coordinate":
|
|
1006
984
|
viewModel.coordinateMeasure();
|
|
1007
985
|
break;
|
|
1008
|
-
|
|
1009
986
|
case "azimuth":
|
|
1010
987
|
viewModel.azimuthMeasure();
|
|
1011
988
|
break;
|
|
1012
|
-
|
|
1013
989
|
case "slope":
|
|
1014
990
|
if (mode.value === "ground") {
|
|
1015
991
|
viewModel.terrainSlopeMeasure();
|
|
1016
992
|
} else if (mode.value === "model") {
|
|
1017
993
|
viewModel.sceneSlopeMeasure();
|
|
1018
994
|
}
|
|
1019
|
-
|
|
1020
995
|
break;
|
|
1021
|
-
|
|
1022
996
|
default:
|
|
1023
997
|
break;
|
|
1024
998
|
}
|
|
1025
999
|
}, 300);
|
|
1026
1000
|
}
|
|
1001
|
+
|
|
1027
1002
|
/**
|
|
1028
1003
|
* 清除测量
|
|
1029
1004
|
*/
|
|
1030
|
-
|
|
1031
|
-
|
|
1032
1005
|
function clearMeasure() {
|
|
1033
1006
|
viewModel && viewModel.clear();
|
|
1034
1007
|
measureType.value = null;
|
|
@@ -1036,7 +1009,6 @@ const __default__ = {
|
|
|
1036
1009
|
isTips.value = false;
|
|
1037
1010
|
isResult.value = false;
|
|
1038
1011
|
}
|
|
1039
|
-
|
|
1040
1012
|
__expose({
|
|
1041
1013
|
loadModeData,
|
|
1042
1014
|
formatDistance,
|
|
@@ -1044,18 +1016,12 @@ const __default__ = {
|
|
|
1044
1016
|
startMeasure,
|
|
1045
1017
|
clearMeasure
|
|
1046
1018
|
});
|
|
1047
|
-
|
|
1048
1019
|
return (_ctx, _cache) => {
|
|
1049
1020
|
const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");
|
|
1050
|
-
|
|
1051
1021
|
const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-select");
|
|
1052
|
-
|
|
1053
1022
|
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
|
|
1054
|
-
|
|
1055
1023
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
1056
|
-
|
|
1057
1024
|
const _component_kq_divider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-divider");
|
|
1058
|
-
|
|
1059
1025
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
1060
1026
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq-measure3d", {
|
|
1061
1027
|
'kq-box-shadow': __props.showShadow
|
|
@@ -1066,11 +1032,7 @@ const __default__ = {
|
|
|
1066
1032
|
key: 0,
|
|
1067
1033
|
ref_key: "headerTempRef",
|
|
1068
1034
|
ref: headerTempRef
|
|
1069
|
-
}, null, 512
|
|
1070
|
-
/* NEED_PATCH */
|
|
1071
|
-
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_4, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).mode), 1
|
|
1072
|
-
/* TEXT */
|
|
1073
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_select, {
|
|
1035
|
+
}, null, 512 /* NEED_PATCH */)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_4, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).mode), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_select, {
|
|
1074
1036
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode),
|
|
1075
1037
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(mode) ? mode.value = $event : mode = $event)
|
|
1076
1038
|
}, {
|
|
@@ -1079,18 +1041,10 @@ const __default__ = {
|
|
|
1079
1041
|
key: item.value,
|
|
1080
1042
|
label: item.label,
|
|
1081
1043
|
value: item.value
|
|
1082
|
-
}, null, 8
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
/* KEYED_FRAGMENT */
|
|
1087
|
-
))]),
|
|
1088
|
-
_: 1
|
|
1089
|
-
/* STABLE */
|
|
1090
|
-
|
|
1091
|
-
}, 8
|
|
1092
|
-
/* PROPS */
|
|
1093
|
-
, ["modelValue"])])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_5, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1044
|
+
}, null, 8 /* PROPS */, ["label", "value"]);
|
|
1045
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
1046
|
+
_: 1 /* STABLE */
|
|
1047
|
+
}, 8 /* PROPS */, ["modelValue"])])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_5, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1094
1048
|
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('distance'), ["stop"])),
|
|
1095
1049
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'distance' ? 'is-active' : null),
|
|
1096
1050
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).distance
|
|
@@ -1099,16 +1053,10 @@ const __default__ = {
|
|
|
1099
1053
|
size: 24
|
|
1100
1054
|
}, {
|
|
1101
1055
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconMeasureDistance))]),
|
|
1102
|
-
_: 1
|
|
1103
|
-
/* STABLE */
|
|
1104
|
-
|
|
1056
|
+
_: 1 /* STABLE */
|
|
1105
1057
|
})]),
|
|
1106
|
-
_: 1
|
|
1107
|
-
|
|
1108
|
-
|
|
1109
|
-
}, 8
|
|
1110
|
-
/* PROPS */
|
|
1111
|
-
, ["class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1058
|
+
_: 1 /* STABLE */
|
|
1059
|
+
}, 8 /* PROPS */, ["class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1112
1060
|
onClick: _cache[2] || (_cache[2] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('area'), ["stop"])),
|
|
1113
1061
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'area' ? 'is-active' : null),
|
|
1114
1062
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).area
|
|
@@ -1117,16 +1065,10 @@ const __default__ = {
|
|
|
1117
1065
|
size: 24
|
|
1118
1066
|
}, {
|
|
1119
1067
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconMeasureArea))]),
|
|
1120
|
-
_: 1
|
|
1121
|
-
/* STABLE */
|
|
1122
|
-
|
|
1068
|
+
_: 1 /* STABLE */
|
|
1123
1069
|
})]),
|
|
1124
|
-
_: 1
|
|
1125
|
-
|
|
1126
|
-
|
|
1127
|
-
}, 8
|
|
1128
|
-
/* PROPS */
|
|
1129
|
-
, ["class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1070
|
+
_: 1 /* STABLE */
|
|
1071
|
+
}, 8 /* PROPS */, ["class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1130
1072
|
onClick: _cache[3] || (_cache[3] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('height'), ["stop"])),
|
|
1131
1073
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'height' ? 'is-active' : null),
|
|
1132
1074
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).height
|
|
@@ -1135,16 +1077,10 @@ const __default__ = {
|
|
|
1135
1077
|
size: 24
|
|
1136
1078
|
}, {
|
|
1137
1079
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconMeasureCoordinate))]),
|
|
1138
|
-
_: 1
|
|
1139
|
-
/* STABLE */
|
|
1140
|
-
|
|
1080
|
+
_: 1 /* STABLE */
|
|
1141
1081
|
})]),
|
|
1142
|
-
_: 1
|
|
1143
|
-
|
|
1144
|
-
|
|
1145
|
-
}, 8
|
|
1146
|
-
/* PROPS */
|
|
1147
|
-
, ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) == 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1082
|
+
_: 1 /* STABLE */
|
|
1083
|
+
}, 8 /* PROPS */, ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) == 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1148
1084
|
onClick: _cache[4] || (_cache[4] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('azimuth'), ["stop"])),
|
|
1149
1085
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'azimuth' ? 'is-active' : null),
|
|
1150
1086
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).azimuth
|
|
@@ -1153,16 +1089,10 @@ const __default__ = {
|
|
|
1153
1089
|
size: 24
|
|
1154
1090
|
}, {
|
|
1155
1091
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconAzimuthMeasure))]),
|
|
1156
|
-
_: 1
|
|
1157
|
-
/* STABLE */
|
|
1158
|
-
|
|
1092
|
+
_: 1 /* STABLE */
|
|
1159
1093
|
})]),
|
|
1160
|
-
_: 1
|
|
1161
|
-
|
|
1162
|
-
|
|
1163
|
-
}, 8
|
|
1164
|
-
/* PROPS */
|
|
1165
|
-
, ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) == 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1094
|
+
_: 1 /* STABLE */
|
|
1095
|
+
}, 8 /* PROPS */, ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) == 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1166
1096
|
onClick: _cache[5] || (_cache[5] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('coordinate'), ["stop"])),
|
|
1167
1097
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'coordinate' ? 'is-active' : null),
|
|
1168
1098
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).coordinate
|
|
@@ -1171,16 +1101,10 @@ const __default__ = {
|
|
|
1171
1101
|
size: 24
|
|
1172
1102
|
}, {
|
|
1173
1103
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconGroundSurvey))]),
|
|
1174
|
-
_: 1
|
|
1175
|
-
/* STABLE */
|
|
1176
|
-
|
|
1104
|
+
_: 1 /* STABLE */
|
|
1177
1105
|
})]),
|
|
1178
|
-
_: 1
|
|
1179
|
-
|
|
1180
|
-
|
|
1181
|
-
}, 8
|
|
1182
|
-
/* PROPS */
|
|
1183
|
-
, ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) == 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1106
|
+
_: 1 /* STABLE */
|
|
1107
|
+
}, 8 /* PROPS */, ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) == 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1184
1108
|
onClick: _cache[6] || (_cache[6] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('slope'), ["stop"])),
|
|
1185
1109
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'slope' ? 'is-active' : null),
|
|
1186
1110
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).slope
|
|
@@ -1189,16 +1113,10 @@ const __default__ = {
|
|
|
1189
1113
|
size: 24
|
|
1190
1114
|
}, {
|
|
1191
1115
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconSlopeMeasure))]),
|
|
1192
|
-
_: 1
|
|
1193
|
-
/* STABLE */
|
|
1194
|
-
|
|
1116
|
+
_: 1 /* STABLE */
|
|
1195
1117
|
})]),
|
|
1196
|
-
_: 1
|
|
1197
|
-
|
|
1198
|
-
|
|
1199
|
-
}, 8
|
|
1200
|
-
/* PROPS */
|
|
1201
|
-
, ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) != 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1118
|
+
_: 1 /* STABLE */
|
|
1119
|
+
}, 8 /* PROPS */, ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) != 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1202
1120
|
type: "danger",
|
|
1203
1121
|
plain: "",
|
|
1204
1122
|
onClick: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)(clearMeasure, ["stop"]),
|
|
@@ -1209,22 +1127,10 @@ const __default__ = {
|
|
|
1209
1127
|
size: 24
|
|
1210
1128
|
}, {
|
|
1211
1129
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(icons_vue_.Delete))]),
|
|
1212
|
-
_: 1
|
|
1213
|
-
/* STABLE */
|
|
1214
|
-
|
|
1130
|
+
_: 1 /* STABLE */
|
|
1215
1131
|
})]),
|
|
1216
|
-
_: 1
|
|
1217
|
-
|
|
1218
|
-
|
|
1219
|
-
}, 8
|
|
1220
|
-
/* PROPS */
|
|
1221
|
-
, ["onClick", "title"])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isTips) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_6, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_divider), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'height' || (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'azimuth' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("p", _hoisted_7, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).measureTips1), 1
|
|
1222
|
-
/* TEXT */
|
|
1223
|
-
)) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("p", _hoisted_8, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).measureTips), 1
|
|
1224
|
-
/* TEXT */
|
|
1225
|
-
))])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isResult) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_9, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_divider), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_10, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'distance' || (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'area' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_11, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_12, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).unit), 1
|
|
1226
|
-
/* TEXT */
|
|
1227
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'distance' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_select, {
|
|
1132
|
+
_: 1 /* STABLE */
|
|
1133
|
+
}, 8 /* PROPS */, ["title"])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isTips) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_6, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_divider), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'height' || (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'azimuth' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("p", _hoisted_7, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).measureTips1), 1 /* TEXT */)) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("p", _hoisted_8, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).measureTips), 1 /* TEXT */))])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isResult) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_9, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_divider), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_10, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'distance' || (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'area' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_11, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_12, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).unit), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'distance' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_select, {
|
|
1228
1134
|
key: 0,
|
|
1229
1135
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(distanceUnit),
|
|
1230
1136
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(distanceUnit) ? distanceUnit.value = $event : distanceUnit = $event),
|
|
@@ -1235,18 +1141,10 @@ const __default__ = {
|
|
|
1235
1141
|
key: item.value,
|
|
1236
1142
|
label: item.label,
|
|
1237
1143
|
value: item.value
|
|
1238
|
-
}, null, 8
|
|
1239
|
-
|
|
1240
|
-
|
|
1241
|
-
|
|
1242
|
-
/* KEYED_FRAGMENT */
|
|
1243
|
-
))]),
|
|
1244
|
-
_: 1
|
|
1245
|
-
/* STABLE */
|
|
1246
|
-
|
|
1247
|
-
}, 8
|
|
1248
|
-
/* PROPS */
|
|
1249
|
-
, ["modelValue"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'area' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_select, {
|
|
1144
|
+
}, null, 8 /* PROPS */, ["label", "value"]);
|
|
1145
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
1146
|
+
_: 1 /* STABLE */
|
|
1147
|
+
}, 8 /* PROPS */, ["modelValue"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'area' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_select, {
|
|
1250
1148
|
key: 1,
|
|
1251
1149
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(areaUnit),
|
|
1252
1150
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(areaUnit) ? areaUnit.value = $event : areaUnit = $event),
|
|
@@ -1257,65 +1155,12 @@ const __default__ = {
|
|
|
1257
1155
|
key: item.value,
|
|
1258
1156
|
label: item.label,
|
|
1259
1157
|
value: item.value
|
|
1260
|
-
}, null, 8
|
|
1261
|
-
|
|
1262
|
-
|
|
1263
|
-
|
|
1264
|
-
/* KEYED_FRAGMENT */
|
|
1265
|
-
))]),
|
|
1266
|
-
_: 1
|
|
1267
|
-
/* STABLE */
|
|
1268
|
-
|
|
1269
|
-
}, 8
|
|
1270
|
-
/* PROPS */
|
|
1271
|
-
, ["modelValue"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_13, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_14, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).measureResult), 1
|
|
1272
|
-
/* TEXT */
|
|
1273
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'height' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_15, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_16, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).spaceDistance), 1
|
|
1274
|
-
/* TEXT */
|
|
1275
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_17, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).spaceDistance) + " m", 1
|
|
1276
|
-
/* TEXT */
|
|
1277
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_18, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).horizontalDistance), 1
|
|
1278
|
-
/* TEXT */
|
|
1279
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_19, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).horizontalDistance) + " m", 1
|
|
1280
|
-
/* TEXT */
|
|
1281
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_20, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).verticalDistance), 1
|
|
1282
|
-
/* TEXT */
|
|
1283
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_21, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).verticalDistance) + " m", 1
|
|
1284
|
-
/* TEXT */
|
|
1285
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_22, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).angle), 1
|
|
1286
|
-
/* TEXT */
|
|
1287
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_23, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).angle) + " °", 1
|
|
1288
|
-
/* TEXT */
|
|
1289
|
-
)])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'coordinate' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_24, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_25, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).longitude), 1
|
|
1290
|
-
/* TEXT */
|
|
1291
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_26, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).longitude), 1
|
|
1292
|
-
/* TEXT */
|
|
1293
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_27, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).latitude), 1
|
|
1294
|
-
/* TEXT */
|
|
1295
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_28, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).latitude), 1
|
|
1296
|
-
/* TEXT */
|
|
1297
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_29, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).elevation), 1
|
|
1298
|
-
/* TEXT */
|
|
1299
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_30, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).height) + " m", 1
|
|
1300
|
-
/* TEXT */
|
|
1301
|
-
)])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'azimuth' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_31, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_32, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).azimuth), 1
|
|
1302
|
-
/* TEXT */
|
|
1303
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_33, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).azimuth) + " °", 1
|
|
1304
|
-
/* TEXT */
|
|
1305
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_34, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).distance), 1
|
|
1306
|
-
/* TEXT */
|
|
1307
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_35, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).distance) + " m", 1
|
|
1308
|
-
/* TEXT */
|
|
1309
|
-
)])) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_36, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_37, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language)[(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType)]), 1
|
|
1310
|
-
/* TEXT */
|
|
1311
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_38, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result)), 1
|
|
1312
|
-
/* TEXT */
|
|
1313
|
-
)]))])])])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)])], 2
|
|
1314
|
-
/* CLASS */
|
|
1315
|
-
);
|
|
1158
|
+
}, null, 8 /* PROPS */, ["label", "value"]);
|
|
1159
|
+
}), 128 /* KEYED_FRAGMENT */))]),
|
|
1160
|
+
_: 1 /* STABLE */
|
|
1161
|
+
}, 8 /* PROPS */, ["modelValue"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_13, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_14, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).measureResult), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'height' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_15, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_16, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).spaceDistance), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_17, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).spaceDistance) + " m", 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_18, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).horizontalDistance), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_19, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).horizontalDistance) + " m", 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_20, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).verticalDistance), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_21, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).verticalDistance) + " m", 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_22, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).angle), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_23, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).angle) + " °", 1 /* TEXT */)])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'coordinate' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_24, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_25, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).longitude), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_26, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).longitude), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_27, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).latitude), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_28, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).latitude), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_29, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).elevation), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_30, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).height) + " m", 1 /* TEXT */)])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'azimuth' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_31, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_32, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).azimuth), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_33, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).azimuth) + " °", 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_34, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).distance), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_35, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).distance) + " m", 1 /* TEXT */)])) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_36, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_37, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language)[(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType)]), 1 /* TEXT */), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_38, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result)), 1 /* TEXT */)]))])])])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)])], 2 /* CLASS */);
|
|
1316
1162
|
};
|
|
1317
1163
|
}
|
|
1318
|
-
|
|
1319
1164
|
}));
|
|
1320
1165
|
;// CONCATENATED MODULE: ./src/webgl/measure/Measure.vue?vue&type=script&setup=true&lang=js
|
|
1321
1166
|
|
|
@@ -1327,10 +1172,13 @@ const __exports__ = Measurevue_type_script_setup_true_lang_js;
|
|
|
1327
1172
|
|
|
1328
1173
|
/* harmony default export */ var Measure = (__exports__);
|
|
1329
1174
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
1330
|
-
var init_js_ = __webpack_require__(
|
|
1175
|
+
var init_js_ = __webpack_require__(455);
|
|
1331
1176
|
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
1332
1177
|
;// CONCATENATED MODULE: ./src/webgl/measure/index.js
|
|
1333
|
-
|
|
1178
|
+
/*
|
|
1179
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
1180
|
+
* All rights reserved.
|
|
1181
|
+
*/
|
|
1334
1182
|
|
|
1335
1183
|
|
|
1336
1184
|
|
|
@@ -1339,8 +1187,6 @@ Measure.install = (Vue, opts) => {
|
|
|
1339
1187
|
Vue.component(Measure.name, Measure);
|
|
1340
1188
|
};
|
|
1341
1189
|
|
|
1342
|
-
|
|
1343
|
-
}();
|
|
1344
1190
|
/******/ return __webpack_exports__;
|
|
1345
1191
|
/******/ })()
|
|
1346
1192
|
;
|