@kq_npm/client3d_webgl_vue 4.5.2 → 4.5.4-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 +355 -538
- package/adddata/style/adddata.css +1 -1
- package/aspectanalysis/index.js +172 -239
- package/baseterraingallery/index.js +124 -145
- package/boxclip/index.js +300 -481
- package/clientPrint/index.js +335 -898
- package/clientPrint/style/clientPrint.css +1 -1
- package/comparemap/index.js +226 -246
- package/compass/index.js +96 -84
- package/excavatefillanalysis/index.js +193 -263
- package/fixedzoomin/index.js +91 -76
- package/fixedzoomout/index.js +91 -76
- package/flight/index.js +311 -415
- package/flight/style/flight.css +1 -1
- package/floodanalysis/index.js +255 -393
- package/geologicalbodyanalysis/index.js +215 -298
- package/gpuspatialquery/index.js +260 -402
- package/hawkeye/index.js +141 -103
- package/headertemp/index.js +25 -34
- package/heatmap3d/index.js +451 -763
- package/heatmap3d/style/heatmap3d.css +1 -1
- package/index.js +20826 -17774
- package/isolineanalysis/index.js +566 -1243
- package/light/index.js +353 -488
- package/limitheightanalysis/index.js +251 -312
- package/measure/index.js +350 -504
- package/modelFlat/index.js +214 -234
- package/modelexcavate/index.js +206 -262
- package/modelfilter/index.js +229 -308
- package/modelprofileanalysis/index.js +356 -465
- package/modelselect/index.js +192 -184
- package/package.json +1 -1
- package/particleeffect/index.js +259 -430
- package/planeclip/index.js +249 -339
- package/resetview/index.js +89 -69
- package/roller/index.js +307 -363
- package/scaneffect/index.js +285 -582
- package/sceneadvancedtoimage/index.js +1055 -0
- package/sceneadvancedtoimage/style/index.js +3 -0
- package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -0
- package/sceneapp/index.js +11149 -0
- package/sceneset/index.js +393 -885
- package/scenetohdimage/index.js +214 -346
- package/scenetohdimage/style/scenetohdimage.css +1 -1
- package/sceneview/index.js +22780 -19540
- package/sceneview/style/sceneview.css +1 -1
- package/screenshot/index.js +275 -312
- package/shadowanalysis/index.js +269 -448
- package/sightlineanalysis/index.js +231 -312
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +213 -351
- package/slopeanalysis/index.js +282 -444
- package/slopeaspectanalysis/index.js +315 -534
- package/statusbar/index.js +194 -164
- package/style.css +1 -1
- package/terrainoperation/index.js +230 -280
- package/terrainprofileanalysis/index.js +174 -182
- package/underground/index.js +98 -82
- package/videofusion/index.js +319 -532
- package/videoproject/index.js +325 -534
- package/viewshedanalysis/index.js +178 -275
- package/weathereffect/index.js +199 -343
- package/wireframesketch/index.js +146 -150
package/measure/index.js
CHANGED
|
@@ -7,302 +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
|
-
|
|
19
|
-
|
|
20
|
-
__webpack_require__
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
27
|
-
var init_js_ = __webpack_require__(7997);
|
|
28
|
-
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
29
|
-
;// CONCATENATED MODULE: ./src/common/_ui/message/index.js
|
|
18
|
+
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6363);
|
|
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__(455);
|
|
21
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
|
|
22
|
+
/*
|
|
23
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
24
|
+
* All rights reserved.
|
|
25
|
+
*/
|
|
30
26
|
|
|
31
27
|
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
Vue.component("KqMessage", index_full_js_namespaceObject.ElMessage);
|
|
28
|
+
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
29
|
+
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
30
|
+
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
36
31
|
};
|
|
37
|
-
|
|
38
|
-
/* harmony default export */ var message = (index_full_js_namespaceObject.ElMessage);
|
|
32
|
+
/* harmony default export */ __webpack_exports__.A = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
39
33
|
|
|
40
34
|
/***/ }),
|
|
41
35
|
|
|
42
|
-
/***/
|
|
43
|
-
/***/ (function(
|
|
44
|
-
|
|
45
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
46
|
-
/* harmony export */ "Z": function() { return /* binding */ MeasureViewModel; }
|
|
47
|
-
/* harmony export */ });
|
|
48
|
-
/* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
|
|
49
|
-
|
|
50
|
-
//测量操作类
|
|
51
|
-
class MeasureViewModel {
|
|
52
|
-
//测量三维对象
|
|
53
|
-
//测量事件
|
|
54
|
-
//活动事件
|
|
55
|
-
constructor(viewer) {
|
|
56
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
|
|
57
|
-
|
|
58
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_measureHandler", null);
|
|
59
|
-
|
|
60
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "measureEvent", null);
|
|
61
|
-
|
|
62
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "activeEvent", null);
|
|
63
|
-
|
|
64
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "nauticalMileUnit", "nmi");
|
|
65
|
-
|
|
66
|
-
this._measureHandler = new Cesium.Kq3dMeasureHandler(viewer);
|
|
67
|
-
this._viewer = viewer;
|
|
68
|
-
this.measureEvent = this._measureHandler.measureEvent;
|
|
69
|
-
this.activeEvent = this._measureHandler.activeEvent;
|
|
70
|
-
} //距离测量
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
distanceMeasure(mode) {
|
|
74
|
-
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
75
|
-
|
|
76
|
-
if (mode === "ground") {
|
|
77
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.TerrainDistance);
|
|
78
|
-
} else if (mode === "model") {
|
|
79
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.ModelDistance);
|
|
80
|
-
} else {
|
|
81
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Distance);
|
|
82
|
-
}
|
|
83
|
-
} //高度测量(三角测量)
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
heightMeasure() {
|
|
87
|
-
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
88
|
-
|
|
89
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.ComplexDistance);
|
|
90
|
-
} //面积测量
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
areaMeasure(mode) {
|
|
94
|
-
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
95
|
-
|
|
96
|
-
if (mode === "ground") {
|
|
97
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.TerrainArea);
|
|
98
|
-
} else if (mode === "model") {
|
|
99
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.ModelArea);
|
|
100
|
-
} else {
|
|
101
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Area);
|
|
102
|
-
}
|
|
103
|
-
} //方位角测量
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
azimuthMeasure() {
|
|
107
|
-
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
108
|
-
|
|
109
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Azimuth);
|
|
110
|
-
} //坐标测量
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
coordinateMeasure() {
|
|
114
|
-
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
115
|
-
|
|
116
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Coordinate);
|
|
117
|
-
} //地形坡度测量
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
terrainSlopeMeasure() {
|
|
121
|
-
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
122
|
-
|
|
123
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.TerrainSlope);
|
|
124
|
-
} //场景坡度测量
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
sceneSlopeMeasure() {
|
|
128
|
-
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
129
|
-
|
|
130
|
-
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.SceneSlope);
|
|
131
|
-
} //结束测量
|
|
132
|
-
|
|
133
|
-
|
|
134
|
-
stopMeasure() {
|
|
135
|
-
this._measureHandler.stopMeasure();
|
|
136
|
-
} //更新距离测量单位
|
|
137
|
-
|
|
138
|
-
|
|
139
|
-
updateDistanceUnit(distanceTotal, unit) {
|
|
140
|
-
if (this._measureHandler.measureResults) {
|
|
141
|
-
this._measureHandler.measureResults.forEach(measureResult => {
|
|
142
|
-
if (measureResult.polyline) {
|
|
143
|
-
let labels = measureResult.labels._labels;
|
|
144
|
-
let positions = measureResult.polyline.positions;
|
|
145
|
-
let dist = 0; // 更新每段长度值
|
|
146
|
-
|
|
147
|
-
for (let i = 0; i < labels.length - 1; i++) {
|
|
148
|
-
if (labels[i].show && labels[i].text) {
|
|
149
|
-
dist = Cesium.Cartesian3.distance(positions[i], positions[i + 1]);
|
|
150
|
-
labels[i].text = this.convertValueUnit(dist, unit);
|
|
151
|
-
}
|
|
152
|
-
}
|
|
153
|
-
} // 更新总长度值
|
|
154
|
-
|
|
155
|
-
|
|
156
|
-
measureResult.label.text = this.convertValueUnit(distanceTotal, unit);
|
|
157
|
-
}, this);
|
|
158
|
-
}
|
|
159
|
-
} //测量距离数值单位换算
|
|
160
|
-
|
|
161
|
-
|
|
162
|
-
convertValueUnit(value, unit) {
|
|
163
|
-
let newValue = "";
|
|
164
|
-
|
|
165
|
-
switch (unit) {
|
|
166
|
-
case "m":
|
|
167
|
-
newValue = value.toFixed(2) + " m";
|
|
168
|
-
break;
|
|
169
|
-
|
|
170
|
-
case "km":
|
|
171
|
-
newValue = (value / 1000).toFixed(2) + " km";
|
|
172
|
-
break;
|
|
173
|
-
|
|
174
|
-
case this.nauticalMileUnit:
|
|
175
|
-
newValue = (value / 1852).toFixed(2) + " " + this.nauticalMileUnit;
|
|
176
|
-
break;
|
|
177
|
-
|
|
178
|
-
case "m²":
|
|
179
|
-
newValue = value.toFixed(2) + " m²";
|
|
180
|
-
break;
|
|
181
|
-
|
|
182
|
-
case "km²":
|
|
183
|
-
newValue = (value / 1000000).toFixed(2) + " km²";
|
|
184
|
-
break;
|
|
185
|
-
|
|
186
|
-
case "mu":
|
|
187
|
-
newValue = (value * 2 / 3).toFixed(2) + " mu";
|
|
188
|
-
break;
|
|
189
|
-
|
|
190
|
-
case "ha":
|
|
191
|
-
newValue = (value / 10000).toFixed(2) + " ha";
|
|
192
|
-
break;
|
|
193
|
-
|
|
194
|
-
default:
|
|
195
|
-
break;
|
|
196
|
-
}
|
|
197
|
-
|
|
198
|
-
return newValue;
|
|
199
|
-
} // 判断是否加载地形
|
|
200
|
-
|
|
201
|
-
|
|
202
|
-
checkTerrainAdded() {
|
|
203
|
-
return this._viewer.terrainProvider.availability;
|
|
204
|
-
} // 判断是否加载模型
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
checkModelAdded() {
|
|
208
|
-
let isAdd = false;
|
|
209
|
-
let models = this._viewer.scene.primitives._primitives;
|
|
36
|
+
/***/ 9371:
|
|
37
|
+
/***/ (function(module) {
|
|
210
38
|
|
|
211
|
-
|
|
212
|
-
if (models[i] instanceof Cesium.Cesium3DTileset) {
|
|
213
|
-
isAdd = true;
|
|
214
|
-
break;
|
|
215
|
-
}
|
|
216
|
-
}
|
|
39
|
+
module.exports = require("@element-plus/icons-vue");
|
|
217
40
|
|
|
218
|
-
|
|
219
|
-
} //清除全部测量结果
|
|
41
|
+
/***/ }),
|
|
220
42
|
|
|
43
|
+
/***/ 5698:
|
|
44
|
+
/***/ (function(module) {
|
|
221
45
|
|
|
222
|
-
|
|
223
|
-
this._measureHandler && this._measureHandler.clear();
|
|
224
|
-
} //销毁
|
|
46
|
+
module.exports = require("@kq_npm/client_icons_vue");
|
|
225
47
|
|
|
48
|
+
/***/ }),
|
|
226
49
|
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
this._measureHandler = null;
|
|
230
|
-
}
|
|
50
|
+
/***/ 3658:
|
|
51
|
+
/***/ (function(module) {
|
|
231
52
|
|
|
232
|
-
|
|
53
|
+
module.exports = require("core-js/modules/esnext.iterator.constructor.js");
|
|
233
54
|
|
|
234
55
|
/***/ }),
|
|
235
56
|
|
|
236
|
-
/***/
|
|
57
|
+
/***/ 4669:
|
|
237
58
|
/***/ (function(module) {
|
|
238
59
|
|
|
239
|
-
module.exports = require("
|
|
60
|
+
module.exports = require("core-js/modules/esnext.iterator.for-each.js");
|
|
240
61
|
|
|
241
62
|
/***/ }),
|
|
242
63
|
|
|
243
|
-
/***/
|
|
64
|
+
/***/ 6363:
|
|
244
65
|
/***/ (function(module) {
|
|
245
66
|
|
|
246
|
-
module.exports = require("
|
|
67
|
+
module.exports = require("element-plus/dist/index.full.js");
|
|
247
68
|
|
|
248
69
|
/***/ }),
|
|
249
70
|
|
|
250
|
-
/***/
|
|
71
|
+
/***/ 3579:
|
|
251
72
|
/***/ (function(module) {
|
|
252
73
|
|
|
253
74
|
module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
|
|
254
75
|
|
|
255
76
|
/***/ }),
|
|
256
77
|
|
|
257
|
-
/***/
|
|
78
|
+
/***/ 64:
|
|
258
79
|
/***/ (function(module) {
|
|
259
80
|
|
|
260
|
-
module.exports =
|
|
81
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__64__;
|
|
261
82
|
|
|
262
83
|
/***/ }),
|
|
263
84
|
|
|
264
|
-
/***/
|
|
85
|
+
/***/ 2975:
|
|
265
86
|
/***/ (function(module) {
|
|
266
87
|
|
|
267
|
-
module.exports =
|
|
88
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__2975__;
|
|
268
89
|
|
|
269
90
|
/***/ }),
|
|
270
91
|
|
|
271
|
-
/***/
|
|
92
|
+
/***/ 455:
|
|
272
93
|
/***/ (function(module) {
|
|
273
94
|
|
|
274
|
-
module.exports =
|
|
95
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__455__;
|
|
275
96
|
|
|
276
97
|
/***/ }),
|
|
277
98
|
|
|
278
|
-
/***/
|
|
99
|
+
/***/ 154:
|
|
279
100
|
/***/ (function(module) {
|
|
280
101
|
|
|
281
|
-
module.exports =
|
|
102
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__154__;
|
|
282
103
|
|
|
283
104
|
/***/ }),
|
|
284
105
|
|
|
285
|
-
/***/
|
|
106
|
+
/***/ 6913:
|
|
286
107
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
287
108
|
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
function
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
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.");
|
|
301
135
|
}
|
|
136
|
+
return ("string" === r ? String : Number)(t);
|
|
137
|
+
}
|
|
138
|
+
|
|
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 + "";
|
|
145
|
+
}
|
|
302
146
|
|
|
303
|
-
|
|
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;
|
|
304
156
|
}
|
|
305
157
|
|
|
158
|
+
|
|
306
159
|
/***/ })
|
|
307
160
|
|
|
308
161
|
/******/ });
|
|
@@ -374,35 +227,205 @@ function _defineProperty(obj, key, value) {
|
|
|
374
227
|
/******/
|
|
375
228
|
/************************************************************************/
|
|
376
229
|
var __webpack_exports__ = {};
|
|
377
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
378
|
-
!function() {
|
|
379
230
|
// ESM COMPAT FLAG
|
|
380
231
|
__webpack_require__.r(__webpack_exports__);
|
|
381
232
|
|
|
382
233
|
// EXPORTS
|
|
383
234
|
__webpack_require__.d(__webpack_exports__, {
|
|
384
|
-
|
|
235
|
+
MeasureViewModel: function() { return /* reexport */ MeasureViewModel; },
|
|
385
236
|
"default": function() { return /* reexport */ Measure; }
|
|
386
237
|
});
|
|
387
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);
|
|
388
243
|
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
389
|
-
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);
|
|
390
245
|
// EXTERNAL MODULE: external "@element-plus/icons-vue"
|
|
391
|
-
var icons_vue_ = __webpack_require__(
|
|
246
|
+
var icons_vue_ = __webpack_require__(9371);
|
|
392
247
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
393
|
-
var client_icons_vue_ = __webpack_require__(
|
|
248
|
+
var client_icons_vue_ = __webpack_require__(5698);
|
|
394
249
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
395
|
-
var gis_utils_ = __webpack_require__(
|
|
396
|
-
// EXTERNAL MODULE: ./
|
|
397
|
-
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
|
+
}
|
|
398
419
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
399
|
-
var util_ = __webpack_require__(
|
|
400
|
-
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
401
|
-
var message = __webpack_require__(
|
|
420
|
+
var util_ = __webpack_require__(2975);
|
|
421
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
422
|
+
var message = __webpack_require__(3275);
|
|
402
423
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
403
|
-
var vue_i18n_cjs_js_ = __webpack_require__(
|
|
424
|
+
var vue_i18n_cjs_js_ = __webpack_require__(3579);
|
|
404
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
|
|
405
426
|
|
|
427
|
+
|
|
428
|
+
|
|
406
429
|
const _hoisted_1 = {
|
|
407
430
|
class: "kq-measure3d-box"
|
|
408
431
|
};
|
|
@@ -538,7 +561,7 @@ const _hoisted_38 = {
|
|
|
538
561
|
const __default__ = {
|
|
539
562
|
name: "Kq3dMeasure"
|
|
540
563
|
};
|
|
541
|
-
/* 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__, {
|
|
542
565
|
props: {
|
|
543
566
|
//指定组件绑定的viewer对象的div的id
|
|
544
567
|
target: String,
|
|
@@ -551,7 +574,6 @@ const __default__ = {
|
|
|
551
574
|
type: Boolean,
|
|
552
575
|
default: true
|
|
553
576
|
},
|
|
554
|
-
|
|
555
577
|
/**
|
|
556
578
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
557
579
|
*/
|
|
@@ -581,29 +603,28 @@ const __default__ = {
|
|
|
581
603
|
default: true
|
|
582
604
|
}
|
|
583
605
|
},
|
|
584
|
-
|
|
585
606
|
setup(__props, {
|
|
586
|
-
expose
|
|
607
|
+
expose: __expose
|
|
587
608
|
}) {
|
|
588
609
|
const props = __props;
|
|
589
610
|
let measureType = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 测量类型
|
|
590
|
-
|
|
591
611
|
let isActive = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
592
612
|
let isResult = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
593
613
|
let isTips = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
594
|
-
let distanceValue = null;
|
|
595
|
-
|
|
596
|
-
let distanceUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.distanceUnit || "");
|
|
597
|
-
|
|
598
|
-
let nauticalMileUnit = props.settingParams && props.settingParams.nauticalMileUnit || "nmi";
|
|
599
|
-
|
|
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
|
+
// 面积单位
|
|
600
620
|
let areaUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.areaUnit || "");
|
|
601
621
|
let result = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0);
|
|
602
622
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
603
623
|
let mode = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("space");
|
|
604
624
|
let modeList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
605
|
-
let viewModel = null;
|
|
625
|
+
let viewModel = null;
|
|
606
626
|
|
|
627
|
+
// 国际化
|
|
607
628
|
let {
|
|
608
629
|
locale,
|
|
609
630
|
messages
|
|
@@ -615,10 +636,10 @@ const __default__ = {
|
|
|
615
636
|
modeList.value = loadModeData();
|
|
616
637
|
distanceUnits.value = setDistanceUnits();
|
|
617
638
|
areaUnits.value = setAreaUnits();
|
|
618
|
-
});
|
|
639
|
+
});
|
|
619
640
|
|
|
641
|
+
// 距离测量单位
|
|
620
642
|
let distanceUnits = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
621
|
-
|
|
622
643
|
let setDistanceUnits = () => {
|
|
623
644
|
return [{
|
|
624
645
|
label: language.value.kilometre,
|
|
@@ -631,11 +652,9 @@ const __default__ = {
|
|
|
631
652
|
value: nauticalMileUnit
|
|
632
653
|
}];
|
|
633
654
|
};
|
|
634
|
-
|
|
635
|
-
|
|
636
|
-
|
|
655
|
+
distanceUnits.value = setDistanceUnits();
|
|
656
|
+
// 面积测量单位
|
|
637
657
|
let areaUnits = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
638
|
-
|
|
639
658
|
let setAreaUnits = () => {
|
|
640
659
|
return [{
|
|
641
660
|
label: language.value.squareKilometers,
|
|
@@ -651,11 +670,12 @@ const __default__ = {
|
|
|
651
670
|
value: "ha"
|
|
652
671
|
}];
|
|
653
672
|
};
|
|
673
|
+
areaUnits.value = setAreaUnits();
|
|
654
674
|
|
|
655
|
-
|
|
656
|
-
|
|
657
|
-
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);
|
|
658
677
|
|
|
678
|
+
// 生成组件默认header
|
|
659
679
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
660
680
|
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
661
681
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
@@ -669,14 +689,13 @@ const __default__ = {
|
|
|
669
689
|
});
|
|
670
690
|
gis_utils_.utils.getWebMap(props.target, scenceView => {
|
|
671
691
|
if (scenceView) {
|
|
672
|
-
viewModel = new MeasureViewModel
|
|
673
|
-
viewModel.nauticalMileUnit = nauticalMileUnit;
|
|
674
|
-
|
|
692
|
+
viewModel = new MeasureViewModel(scenceView._viewer);
|
|
693
|
+
viewModel.nauticalMileUnit = nauticalMileUnit;
|
|
694
|
+
//注册测量事件,以获取测量结果
|
|
675
695
|
viewModel.measureEvent.addEventListener(function (res) {
|
|
676
696
|
if (measureType.value === "distance") {
|
|
677
697
|
if (res.distance) {
|
|
678
698
|
distanceValue = res.distance;
|
|
679
|
-
|
|
680
699
|
if (props.settingParams && props.settingParams.distanceUnit) {
|
|
681
700
|
distanceUnit.value = props.settingParams && props.settingParams.distanceUnit || "";
|
|
682
701
|
onChangeUnit(distanceUnit.value);
|
|
@@ -694,7 +713,6 @@ const __default__ = {
|
|
|
694
713
|
} else if (measureType.value === "area") {
|
|
695
714
|
if (res && res.area || res && res.area == 0) {
|
|
696
715
|
distanceValue = res.area;
|
|
697
|
-
|
|
698
716
|
if (props.settingParams && props.settingParams.areaUnit) {
|
|
699
717
|
areaUnit.value = props.settingParams && props.settingParams.areaUnit || "";
|
|
700
718
|
onChangeUnit(areaUnit.value);
|
|
@@ -716,7 +734,6 @@ const __default__ = {
|
|
|
716
734
|
} else if (measureType.value === "coordinate") {
|
|
717
735
|
if (res && res.coordinate) {
|
|
718
736
|
let convertValue = null;
|
|
719
|
-
|
|
720
737
|
if (props.settingParams && props.settingParams.isConvert) {
|
|
721
738
|
result.value = {
|
|
722
739
|
longitude: res.coordinate.longitude ? convertXY(res.coordinate.longitude) : 0,
|
|
@@ -731,11 +748,9 @@ const __default__ = {
|
|
|
731
748
|
height: res.coordinate.height ? res.coordinate.height.toFixed(2) : 0
|
|
732
749
|
};
|
|
733
750
|
}
|
|
734
|
-
|
|
735
751
|
if (res.measureResult && res.measureResult.labels && res.measureResult.labels.length > 0) {
|
|
736
752
|
res.measureResult.labels._labels.forEach(label => {
|
|
737
753
|
label.text = label.text.replace('X', language.value.longitude).replace('Y', language.value.latitude).replace('Z', language.value.elevation).replace(/\n/g, '°\n');
|
|
738
|
-
|
|
739
754
|
if (convertValue) {
|
|
740
755
|
label.text = label.text.replace(res.coordinate.longitude.toFixed(5) + "°", convertValue[0]).replace(res.coordinate.latitude.toFixed(5) + "°", convertValue[1]);
|
|
741
756
|
}
|
|
@@ -758,14 +773,11 @@ const __default__ = {
|
|
|
758
773
|
handler.setInputAction(function () {
|
|
759
774
|
if (!viewModel._measureHandler.active) return;
|
|
760
775
|
let isDrawing = viewModel._measureHandler.isDrawing;
|
|
761
|
-
|
|
762
776
|
if (!isDrawing) {
|
|
763
777
|
let measureResults = viewModel._measureHandler.measureResults;
|
|
764
|
-
|
|
765
778
|
if (measureResults && measureResults.length > 0) {
|
|
766
779
|
measureResults[0].destroy();
|
|
767
780
|
}
|
|
768
|
-
|
|
769
781
|
if (measureType.value === "coordinate") {
|
|
770
782
|
isTips.value = false;
|
|
771
783
|
isResult.value = true;
|
|
@@ -774,7 +786,6 @@ const __default__ = {
|
|
|
774
786
|
isResult.value = false;
|
|
775
787
|
}
|
|
776
788
|
}
|
|
777
|
-
|
|
778
789
|
if (isDrawing) {
|
|
779
790
|
if (measureType.value !== 'distance' && measureType.value !== 'area') {
|
|
780
791
|
continueMeasure();
|
|
@@ -783,7 +794,6 @@ const __default__ = {
|
|
|
783
794
|
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
784
795
|
handler.setInputAction(function () {
|
|
785
796
|
let isDrawing = viewModel._measureHandler.isDrawing;
|
|
786
|
-
|
|
787
797
|
if (!isDrawing) {
|
|
788
798
|
isActive.value = null;
|
|
789
799
|
viewModel.stopMeasure();
|
|
@@ -794,36 +804,33 @@ const __default__ = {
|
|
|
794
804
|
window.measureClickHandler = handler;
|
|
795
805
|
}
|
|
796
806
|
});
|
|
797
|
-
});
|
|
798
|
-
|
|
807
|
+
});
|
|
808
|
+
// 经纬度转度分秒
|
|
799
809
|
function convertXY(val) {
|
|
800
810
|
if (!val) {
|
|
801
811
|
return "";
|
|
802
|
-
}
|
|
803
|
-
|
|
804
|
-
|
|
805
|
-
|
|
806
|
-
|
|
807
|
-
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
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
|
|
811
820
|
let m = Math.floor((Number(temp1) - Number(f)) * 60);
|
|
812
821
|
return d + "°" + f + "′" + m + "″";
|
|
813
822
|
}
|
|
814
823
|
/**
|
|
815
824
|
* @description 监听header生成
|
|
816
825
|
*/
|
|
817
|
-
|
|
818
|
-
|
|
819
826
|
const watchCreateHeaderTemp = () => {
|
|
820
827
|
if (props.showHeaderTemp) {
|
|
821
828
|
// 生成headerTemp
|
|
822
829
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, measureTitle);
|
|
823
830
|
}
|
|
824
|
-
};
|
|
825
|
-
|
|
831
|
+
};
|
|
826
832
|
|
|
833
|
+
//加载测量模式数据
|
|
827
834
|
function loadModeData() {
|
|
828
835
|
return [{
|
|
829
836
|
label: language.value.spaceMeasure,
|
|
@@ -836,7 +843,6 @@ const __default__ = {
|
|
|
836
843
|
value: "model"
|
|
837
844
|
}];
|
|
838
845
|
}
|
|
839
|
-
|
|
840
846
|
function formatDistance(dis) {
|
|
841
847
|
if (dis > 5000) {
|
|
842
848
|
dis = dis / 1000;
|
|
@@ -844,192 +850,158 @@ const __default__ = {
|
|
|
844
850
|
} else {
|
|
845
851
|
distanceUnit.value = "m";
|
|
846
852
|
}
|
|
847
|
-
|
|
848
853
|
return dis.toFixed(2) + " " + distanceUnit.value;
|
|
849
854
|
}
|
|
850
|
-
|
|
851
855
|
function formatArea(area) {
|
|
852
856
|
areaUnit.value = "m²";
|
|
853
|
-
|
|
854
857
|
if (area > 1000000) {
|
|
855
858
|
area = area / 1000000;
|
|
856
859
|
areaUnit.value = "km²";
|
|
857
860
|
}
|
|
858
|
-
|
|
859
861
|
return area.toFixed(2) + " " + areaUnit.value;
|
|
860
862
|
}
|
|
863
|
+
|
|
861
864
|
/**
|
|
862
865
|
* @description 监听单位变化操作
|
|
863
866
|
* @param {string} unit - 单位
|
|
864
867
|
*/
|
|
865
|
-
|
|
866
|
-
|
|
867
868
|
function onChangeUnit(unit) {
|
|
868
869
|
result.value = convertValueUnitTotal(distanceValue, unit);
|
|
869
870
|
viewModel && viewModel.updateDistanceUnit(distanceValue, unit);
|
|
870
871
|
}
|
|
872
|
+
|
|
871
873
|
/**
|
|
872
874
|
* @description 测量距离数值单位换算
|
|
873
875
|
* @param {string} value - 原始数值
|
|
874
876
|
* @param {string} unit - 单位
|
|
875
877
|
* @returns {string} 新数值
|
|
876
878
|
*/
|
|
877
|
-
|
|
878
|
-
|
|
879
879
|
function convertValueUnitTotal(value, unit) {
|
|
880
880
|
let newValue = "";
|
|
881
|
-
|
|
882
881
|
switch (unit) {
|
|
883
882
|
case "m":
|
|
884
883
|
newValue = value.toFixed(2) + " m";
|
|
885
884
|
break;
|
|
886
|
-
|
|
887
885
|
case "km":
|
|
888
886
|
newValue = (value / 1000).toFixed(2) + " km";
|
|
889
887
|
break;
|
|
890
|
-
|
|
891
888
|
case nauticalMileUnit:
|
|
892
889
|
newValue = (value / 1852).toFixed(2) + " " + nauticalMileUnit;
|
|
893
890
|
break;
|
|
894
|
-
|
|
895
891
|
case "m²":
|
|
896
892
|
newValue = value.toFixed(2) + " m²";
|
|
897
893
|
break;
|
|
898
|
-
|
|
899
894
|
case "km²":
|
|
900
895
|
newValue = (value / 1000000).toFixed(2) + " km²";
|
|
901
896
|
break;
|
|
902
|
-
|
|
903
897
|
case "mu":
|
|
904
898
|
newValue = (value * 2 / 3).toFixed(2) + " mu";
|
|
905
899
|
break;
|
|
906
|
-
|
|
907
900
|
case "ha":
|
|
908
901
|
newValue = (value / 10000).toFixed(2) + " ha";
|
|
909
902
|
break;
|
|
910
|
-
|
|
911
903
|
default:
|
|
912
904
|
break;
|
|
913
905
|
}
|
|
914
|
-
|
|
915
906
|
return newValue;
|
|
916
|
-
}
|
|
917
|
-
|
|
907
|
+
}
|
|
918
908
|
|
|
909
|
+
// 销毁
|
|
919
910
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
920
911
|
clearMeasure();
|
|
921
|
-
|
|
922
912
|
if (window.measureClickHandler) {
|
|
923
913
|
window.measureClickHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
924
914
|
window.measureClickHandler.removeInputAction(Cesium.ScreenSpaceEventType.RIGHT_CLICK);
|
|
925
915
|
}
|
|
926
|
-
});
|
|
916
|
+
});
|
|
927
917
|
|
|
918
|
+
//开始测量
|
|
928
919
|
function startMeasure(type) {
|
|
929
920
|
if (mode.value === "ground") {
|
|
930
921
|
if (!viewModel.checkTerrainAdded()) {
|
|
931
|
-
(0,message/* default */.
|
|
922
|
+
(0,message/* default */.A)({
|
|
932
923
|
message: "请先加载地形!",
|
|
933
924
|
type: "warning"
|
|
934
925
|
});
|
|
935
926
|
return;
|
|
936
927
|
}
|
|
937
928
|
}
|
|
938
|
-
|
|
939
929
|
if (mode.value === "model") {
|
|
940
930
|
if (!viewModel.checkModelAdded()) {
|
|
941
|
-
(0,message/* default */.
|
|
931
|
+
(0,message/* default */.A)({
|
|
942
932
|
message: "请先加载模型!",
|
|
943
933
|
type: "warning"
|
|
944
934
|
});
|
|
945
935
|
return;
|
|
946
936
|
}
|
|
947
937
|
}
|
|
948
|
-
|
|
949
938
|
viewModel.clear();
|
|
950
939
|
result.value = 0;
|
|
951
940
|
isTips.value = true;
|
|
952
941
|
isResult.value = false;
|
|
953
942
|
measureType.value = type;
|
|
954
943
|
isActive.value = type;
|
|
955
|
-
|
|
956
944
|
switch (type) {
|
|
957
945
|
case "distance":
|
|
958
946
|
viewModel.distanceMeasure(mode.value);
|
|
959
947
|
break;
|
|
960
|
-
|
|
961
948
|
case "area":
|
|
962
949
|
viewModel.areaMeasure(mode.value);
|
|
963
950
|
break;
|
|
964
|
-
|
|
965
951
|
case "height":
|
|
966
952
|
viewModel.heightMeasure();
|
|
967
953
|
break;
|
|
968
|
-
|
|
969
954
|
case "coordinate":
|
|
970
955
|
viewModel.coordinateMeasure();
|
|
971
956
|
break;
|
|
972
|
-
|
|
973
957
|
case "azimuth":
|
|
974
958
|
viewModel.azimuthMeasure();
|
|
975
959
|
break;
|
|
976
|
-
|
|
977
960
|
case "slope":
|
|
978
961
|
if (mode.value === "ground") {
|
|
979
962
|
viewModel.terrainSlopeMeasure();
|
|
980
963
|
} else if (mode.value === "model") {
|
|
981
964
|
viewModel.sceneSlopeMeasure();
|
|
982
965
|
}
|
|
983
|
-
|
|
984
966
|
break;
|
|
985
|
-
|
|
986
967
|
default:
|
|
987
968
|
break;
|
|
988
969
|
}
|
|
989
970
|
}
|
|
990
|
-
|
|
991
971
|
function continueMeasure() {
|
|
992
972
|
setTimeout(() => {
|
|
993
973
|
switch (measureType.value) {
|
|
994
974
|
case "distance":
|
|
995
975
|
viewModel.distanceMeasure(mode.value);
|
|
996
976
|
break;
|
|
997
|
-
|
|
998
977
|
case "area":
|
|
999
978
|
viewModel.areaMeasure(mode.value);
|
|
1000
979
|
break;
|
|
1001
|
-
|
|
1002
980
|
case "height":
|
|
1003
981
|
viewModel.heightMeasure();
|
|
1004
982
|
break;
|
|
1005
|
-
|
|
1006
983
|
case "coordinate":
|
|
1007
984
|
viewModel.coordinateMeasure();
|
|
1008
985
|
break;
|
|
1009
|
-
|
|
1010
986
|
case "azimuth":
|
|
1011
987
|
viewModel.azimuthMeasure();
|
|
1012
988
|
break;
|
|
1013
|
-
|
|
1014
989
|
case "slope":
|
|
1015
990
|
if (mode.value === "ground") {
|
|
1016
991
|
viewModel.terrainSlopeMeasure();
|
|
1017
992
|
} else if (mode.value === "model") {
|
|
1018
993
|
viewModel.sceneSlopeMeasure();
|
|
1019
994
|
}
|
|
1020
|
-
|
|
1021
995
|
break;
|
|
1022
|
-
|
|
1023
996
|
default:
|
|
1024
997
|
break;
|
|
1025
998
|
}
|
|
1026
999
|
}, 300);
|
|
1027
1000
|
}
|
|
1001
|
+
|
|
1028
1002
|
/**
|
|
1029
1003
|
* 清除测量
|
|
1030
1004
|
*/
|
|
1031
|
-
|
|
1032
|
-
|
|
1033
1005
|
function clearMeasure() {
|
|
1034
1006
|
viewModel && viewModel.clear();
|
|
1035
1007
|
measureType.value = null;
|
|
@@ -1037,8 +1009,7 @@ const __default__ = {
|
|
|
1037
1009
|
isTips.value = false;
|
|
1038
1010
|
isResult.value = false;
|
|
1039
1011
|
}
|
|
1040
|
-
|
|
1041
|
-
expose({
|
|
1012
|
+
__expose({
|
|
1042
1013
|
loadModeData,
|
|
1043
1014
|
formatDistance,
|
|
1044
1015
|
formatArea,
|
|
@@ -1047,15 +1018,10 @@ const __default__ = {
|
|
|
1047
1018
|
});
|
|
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
|
;
|