@kq_npm/client3d_webgl_vue 4.5.29-beta → 4.5.30
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 +518 -262
- package/adddata/style/adddata.css +1 -1
- package/aspectanalysis/index.js +201 -123
- package/baseterraingallery/index.js +123 -94
- package/baseterraingallery/style/baseterraingallery.css +1 -1
- package/boxclip/index.js +442 -249
- package/clientPrint/index.js +27088 -14116
- package/clientPrint/style/clientPrint.css +1 -1
- package/comparemap/index.js +243 -213
- package/compass/index.js +68 -74
- package/excavatefillanalysis/index.js +225 -143
- package/fixedzoomin/index.js +82 -72
- package/fixedzoomout/index.js +80 -71
- package/flight/index.js +371 -257
- package/flight/style/flight.css +1 -1
- package/floodanalysis/index.js +347 -199
- package/geologicalbodyanalysis/index.js +260 -166
- package/gpuspatialquery/index.js +359 -198
- package/hawkeye/index.js +100 -131
- package/headertemp/index.js +25 -14
- package/heatmap3d/index.js +678 -366
- package/heatmap3d/style/heatmap3d.css +1 -1
- package/index.js +20310 -7159
- package/isolineanalysis/index.js +1202 -504
- package/light/index.js +494 -349
- package/limitheightanalysis/index.js +223 -159
- package/measure/index.js +353 -198
- package/modelFlat/index.js +204 -167
- package/modelexcavate/index.js +191 -130
- package/modelfilter/index.js +271 -179
- package/modelprofileanalysis/index.js +316 -206
- package/modelselect/index.js +147 -142
- package/package.json +1 -1
- package/particleeffect/index.js +403 -225
- package/planeclip/index.js +300 -198
- package/resetview/index.js +52 -66
- package/roller/index.js +372 -304
- package/scaneffect/index.js +537 -230
- package/sceneadvancedtoimage/index.js +358 -205
- package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -1
- package/sceneapp/index.js +27088 -14116
- package/sceneset/index.js +864 -350
- package/scenetohdimage/index.js +297 -159
- package/scenetohdimage/style/scenetohdimage.css +1 -1
- package/sceneview/index.js +27088 -14116
- package/sceneview/style/sceneview.css +1 -1
- package/screenshot/index.js +301 -257
- package/shadowanalysis/index.js +405 -217
- package/sightlineanalysis/index.js +271 -183
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +308 -160
- package/slopeanalysis/index.js +397 -227
- package/slopeaspectanalysis/index.js +485 -259
- package/statusbar/index.js +65 -88
- package/style.css +1 -1
- package/terrainoperation/index.js +237 -176
- package/terrainprofileanalysis/index.js +138 -120
- package/typhoontrac/index.js +970 -234
- package/typhoontrac/style/typhoontrac.css +1 -1
- package/underground/index.js +61 -70
- package/videofusion/index.js +488 -265
- package/videoproject/index.js +490 -271
- package/viewshedanalysis/index.js +255 -151
- package/weathereffect/index.js +317 -166
- package/windyslicing/index.js +1947 -0
- package/windyslicing/style/index.js +3 -0
- package/windyslicing/style/windyslicing.css +1 -0
- package/wireframesketch/index.js +142 -110
package/measure/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
3
|
module.exports = 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"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define(["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/_utils/util", "@kq_npm/client_common_vue/init.js"], factory);
|
|
6
|
-
else
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
define("@kq_npm/client3d_webgl_vue", ["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/_utils/util", "@kq_npm/client_common_vue/init.js"], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["@kq_npm/client3d_webgl_vue"] = 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"));
|
|
8
|
+
else
|
|
9
|
+
root["@kq_npm/client3d_webgl_vue"] = 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"]);
|
|
10
10
|
})(this, function(__WEBPACK_EXTERNAL_MODULE__1895__, __WEBPACK_EXTERNAL_MODULE__7135__, __WEBPACK_EXTERNAL_MODULE__3458__, __WEBPACK_EXTERNAL_MODULE__7997__) {
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
@@ -25,10 +25,12 @@ return /******/ (function() { // webpackBootstrap
|
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
|
|
28
|
+
|
|
28
29
|
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
29
30
|
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
30
31
|
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
31
32
|
};
|
|
33
|
+
|
|
32
34
|
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
33
35
|
|
|
34
36
|
/***/ }),
|
|
@@ -39,12 +41,7 @@ element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install =
|
|
|
39
41
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
40
42
|
/* harmony export */ "Z": function() { return /* binding */ MeasureViewModel; }
|
|
41
43
|
/* harmony export */ });
|
|
42
|
-
/* harmony import */ var
|
|
43
|
-
/* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8470);
|
|
44
|
-
/* harmony import */ var core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_constructor_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
45
|
-
/* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(1058);
|
|
46
|
-
/* harmony import */ var core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(core_js_modules_esnext_iterator_for_each_js__WEBPACK_IMPORTED_MODULE_1__);
|
|
47
|
-
|
|
44
|
+
/* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
|
|
48
45
|
|
|
49
46
|
|
|
50
47
|
/*
|
|
@@ -53,24 +50,32 @@ element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install =
|
|
|
53
50
|
*/
|
|
54
51
|
//测量操作类
|
|
55
52
|
class MeasureViewModel {
|
|
53
|
+
//测量三维对象
|
|
54
|
+
//测量事件
|
|
55
|
+
//活动事件
|
|
56
56
|
constructor(viewer) {
|
|
57
|
-
(0,
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
57
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
|
|
58
|
+
|
|
59
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_measureHandler", null);
|
|
60
|
+
|
|
61
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "measureEvent", null);
|
|
62
|
+
|
|
63
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "activeEvent", null);
|
|
64
|
+
|
|
65
|
+
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "nauticalMileUnit", "nmi");
|
|
66
|
+
|
|
67
|
+
this._measureHandler = new Cesium.Kq3dMeasureHandler(viewer, {
|
|
68
|
+
exaggerateCompute: true
|
|
69
|
+
});
|
|
66
70
|
this._viewer = viewer;
|
|
67
71
|
this.measureEvent = this._measureHandler.measureEvent;
|
|
68
72
|
this.activeEvent = this._measureHandler.activeEvent;
|
|
69
|
-
}
|
|
73
|
+
} //距离测量
|
|
74
|
+
|
|
70
75
|
|
|
71
|
-
//距离测量
|
|
72
76
|
distanceMeasure(mode) {
|
|
73
77
|
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
78
|
+
|
|
74
79
|
if (mode === "ground") {
|
|
75
80
|
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.TerrainDistance);
|
|
76
81
|
} else if (mode === "model") {
|
|
@@ -78,17 +83,19 @@ class MeasureViewModel {
|
|
|
78
83
|
} else {
|
|
79
84
|
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Distance);
|
|
80
85
|
}
|
|
81
|
-
}
|
|
86
|
+
} //高度测量(三角测量)
|
|
87
|
+
|
|
82
88
|
|
|
83
|
-
//高度测量(三角测量)
|
|
84
89
|
heightMeasure() {
|
|
85
90
|
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
91
|
+
|
|
86
92
|
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.ComplexDistance);
|
|
87
|
-
}
|
|
93
|
+
} //面积测量
|
|
94
|
+
|
|
88
95
|
|
|
89
|
-
//面积测量
|
|
90
96
|
areaMeasure(mode) {
|
|
91
97
|
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
98
|
+
|
|
92
99
|
if (mode === "ground") {
|
|
93
100
|
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.TerrainArea);
|
|
94
101
|
} else if (mode === "model") {
|
|
@@ -96,124 +103,142 @@ class MeasureViewModel {
|
|
|
96
103
|
} else {
|
|
97
104
|
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Area);
|
|
98
105
|
}
|
|
99
|
-
}
|
|
106
|
+
} //方位角测量
|
|
107
|
+
|
|
100
108
|
|
|
101
|
-
//方位角测量
|
|
102
109
|
azimuthMeasure() {
|
|
103
110
|
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
111
|
+
|
|
104
112
|
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Azimuth);
|
|
105
|
-
}
|
|
113
|
+
} //坐标测量
|
|
114
|
+
|
|
106
115
|
|
|
107
|
-
//坐标测量
|
|
108
116
|
coordinateMeasure() {
|
|
109
117
|
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
118
|
+
|
|
110
119
|
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Coordinate);
|
|
111
|
-
}
|
|
120
|
+
} //地形坡度测量
|
|
121
|
+
|
|
112
122
|
|
|
113
|
-
//地形坡度测量
|
|
114
123
|
terrainSlopeMeasure() {
|
|
115
124
|
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
125
|
+
|
|
116
126
|
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.TerrainSlope);
|
|
117
|
-
}
|
|
127
|
+
} //场景坡度测量
|
|
128
|
+
|
|
118
129
|
|
|
119
|
-
//场景坡度测量
|
|
120
130
|
sceneSlopeMeasure() {
|
|
121
131
|
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
132
|
+
|
|
122
133
|
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.SceneSlope);
|
|
123
|
-
}
|
|
134
|
+
} //结束测量
|
|
135
|
+
|
|
124
136
|
|
|
125
|
-
//结束测量
|
|
126
137
|
stopMeasure() {
|
|
127
138
|
this._measureHandler.stopMeasure();
|
|
139
|
+
|
|
128
140
|
this._viewer.scene.globe.depthTestAgainstTerrain = false;
|
|
129
|
-
}
|
|
141
|
+
} //更新距离测量单位
|
|
142
|
+
|
|
130
143
|
|
|
131
|
-
//更新距离测量单位
|
|
132
144
|
updateDistanceUnit(distanceTotal, unit) {
|
|
133
145
|
if (this._measureHandler.measureResults) {
|
|
134
146
|
this._measureHandler.measureResults.forEach(measureResult => {
|
|
135
147
|
if (measureResult.polyline) {
|
|
136
148
|
let labels = measureResult.labels._labels;
|
|
137
149
|
let positions = measureResult.polyline.positions;
|
|
138
|
-
let dist = 0;
|
|
139
|
-
|
|
150
|
+
let dist = 0; // 更新每段长度值
|
|
151
|
+
|
|
140
152
|
for (let i = 0; i < labels.length - 1; i++) {
|
|
141
153
|
if (labels[i].show && labels[i].text) {
|
|
142
154
|
dist = Cesium.Cartesian3.distance(positions[i], positions[i + 1]);
|
|
143
155
|
labels[i].text = this.convertValueUnit(dist, unit);
|
|
144
156
|
}
|
|
145
157
|
}
|
|
146
|
-
}
|
|
147
|
-
|
|
158
|
+
} // 更新总长度值
|
|
159
|
+
|
|
160
|
+
|
|
148
161
|
measureResult.label.text = this.convertValueUnit(distanceTotal, unit);
|
|
149
162
|
}, this);
|
|
150
163
|
}
|
|
151
|
-
}
|
|
164
|
+
} //测量距离数值单位换算
|
|
165
|
+
|
|
152
166
|
|
|
153
|
-
//测量距离数值单位换算
|
|
154
167
|
convertValueUnit(value, unit) {
|
|
155
168
|
let newValue = "";
|
|
169
|
+
|
|
156
170
|
switch (unit) {
|
|
157
171
|
case "m":
|
|
158
172
|
newValue = value.toFixed(2) + " m";
|
|
159
173
|
break;
|
|
174
|
+
|
|
160
175
|
case "km":
|
|
161
176
|
newValue = (value / 1000).toFixed(2) + " km";
|
|
162
177
|
break;
|
|
178
|
+
|
|
163
179
|
case this.nauticalMileUnit:
|
|
164
180
|
newValue = (value / 1852).toFixed(2) + " " + this.nauticalMileUnit;
|
|
165
181
|
break;
|
|
182
|
+
|
|
166
183
|
case "m²":
|
|
167
184
|
newValue = value.toFixed(2) + " m²";
|
|
168
185
|
break;
|
|
186
|
+
|
|
169
187
|
case "km²":
|
|
170
188
|
newValue = (value / 1000000).toFixed(2) + " km²";
|
|
171
189
|
break;
|
|
190
|
+
|
|
172
191
|
case "mu":
|
|
173
192
|
newValue = (value * 2 / 3).toFixed(2) + " mu";
|
|
174
193
|
break;
|
|
194
|
+
|
|
175
195
|
case "ha":
|
|
176
196
|
newValue = (value / 10000).toFixed(2) + " ha";
|
|
177
197
|
break;
|
|
198
|
+
|
|
178
199
|
default:
|
|
179
200
|
break;
|
|
180
201
|
}
|
|
202
|
+
|
|
181
203
|
return newValue;
|
|
182
|
-
}
|
|
204
|
+
} // 判断是否加载地形
|
|
205
|
+
|
|
183
206
|
|
|
184
|
-
// 判断是否加载地形
|
|
185
207
|
checkTerrainAdded() {
|
|
186
208
|
return this._viewer.terrainProvider.availability;
|
|
187
|
-
}
|
|
209
|
+
} // 判断是否加载模型
|
|
210
|
+
|
|
188
211
|
|
|
189
|
-
// 判断是否加载模型
|
|
190
212
|
checkModelAdded() {
|
|
191
213
|
let isAdd = false;
|
|
192
214
|
let models = this._viewer.scene.primitives._primitives;
|
|
215
|
+
|
|
193
216
|
for (let i = 0; i < models.length; i++) {
|
|
194
217
|
if (models[i] instanceof Cesium.Cesium3DTileset) {
|
|
195
218
|
isAdd = true;
|
|
196
219
|
break;
|
|
197
220
|
}
|
|
198
221
|
}
|
|
222
|
+
|
|
199
223
|
return isAdd;
|
|
200
|
-
}
|
|
224
|
+
} //清除全部测量结果
|
|
225
|
+
|
|
201
226
|
|
|
202
|
-
//清除全部测量结果
|
|
203
227
|
clear() {
|
|
204
228
|
this._measureHandler && this._measureHandler.clear();
|
|
205
|
-
}
|
|
229
|
+
} //销毁
|
|
230
|
+
|
|
206
231
|
|
|
207
|
-
//销毁
|
|
208
232
|
destroy() {
|
|
209
233
|
this.clear();
|
|
210
234
|
this._measureHandler = null;
|
|
211
235
|
}
|
|
236
|
+
|
|
212
237
|
}
|
|
213
238
|
|
|
214
239
|
/***/ }),
|
|
215
240
|
|
|
216
|
-
/***/
|
|
241
|
+
/***/ 8918:
|
|
217
242
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
218
243
|
|
|
219
244
|
|
|
@@ -222,10 +247,6 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
222
247
|
"Z": function() { return /* binding */ Measure; }
|
|
223
248
|
});
|
|
224
249
|
|
|
225
|
-
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
|
|
226
|
-
var esnext_iterator_constructor_js_ = __webpack_require__(8470);
|
|
227
|
-
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.for-each.js"
|
|
228
|
-
var esnext_iterator_for_each_js_ = __webpack_require__(1058);
|
|
229
250
|
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
230
251
|
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
231
252
|
// EXTERNAL MODULE: external "@element-plus/icons-vue"
|
|
@@ -242,9 +263,7 @@ var util_ = __webpack_require__(3458);
|
|
|
242
263
|
var message = __webpack_require__(1349);
|
|
243
264
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
244
265
|
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
245
|
-
;// 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
|
|
246
|
-
|
|
247
|
-
|
|
266
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/webgl/measure/Measure.vue?vue&type=script&setup=true&lang=js
|
|
248
267
|
|
|
249
268
|
const _hoisted_1 = {
|
|
250
269
|
class: "kq-measure3d-box"
|
|
@@ -394,6 +413,7 @@ const __default__ = {
|
|
|
394
413
|
type: Boolean,
|
|
395
414
|
default: true
|
|
396
415
|
},
|
|
416
|
+
|
|
397
417
|
/**
|
|
398
418
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
399
419
|
*/
|
|
@@ -423,20 +443,22 @@ const __default__ = {
|
|
|
423
443
|
default: true
|
|
424
444
|
}
|
|
425
445
|
},
|
|
446
|
+
|
|
426
447
|
setup(__props, {
|
|
427
448
|
expose: __expose
|
|
428
449
|
}) {
|
|
429
450
|
const props = __props;
|
|
430
451
|
let measureType = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 测量类型
|
|
452
|
+
|
|
431
453
|
let isActive = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
432
454
|
let isResult = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
433
455
|
let isTips = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
434
|
-
let distanceValue = null;
|
|
435
|
-
|
|
436
|
-
let distanceUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.distanceUnit || "");
|
|
437
|
-
|
|
438
|
-
let nauticalMileUnit = props.settingParams && props.settingParams.nauticalMileUnit || "nmi";
|
|
439
|
-
|
|
456
|
+
let distanceValue = null; // 默认显示距离的单位
|
|
457
|
+
|
|
458
|
+
let distanceUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.distanceUnit || ""); // 海里单位选择
|
|
459
|
+
|
|
460
|
+
let nauticalMileUnit = props.settingParams && props.settingParams.nauticalMileUnit || "nmi"; // 面积单位
|
|
461
|
+
|
|
440
462
|
let areaUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.areaUnit || "");
|
|
441
463
|
let result = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0);
|
|
442
464
|
const {
|
|
@@ -445,8 +467,8 @@ const __default__ = {
|
|
|
445
467
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(Object.assign({}, proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"], proxy.$i18n.global.messages[proxy.$i18n.global.locale]["leaflet"]));
|
|
446
468
|
let mode = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("space");
|
|
447
469
|
let modeList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(loadModeData());
|
|
448
|
-
let viewModel = null;
|
|
449
|
-
|
|
470
|
+
let viewModel = null; // 国际化
|
|
471
|
+
|
|
450
472
|
let {
|
|
451
473
|
locale,
|
|
452
474
|
messages
|
|
@@ -459,10 +481,10 @@ const __default__ = {
|
|
|
459
481
|
modeList.value = loadModeData();
|
|
460
482
|
distanceUnits.value = setDistanceUnits();
|
|
461
483
|
areaUnits.value = setAreaUnits();
|
|
462
|
-
});
|
|
484
|
+
}); // 距离测量单位
|
|
463
485
|
|
|
464
|
-
// 距离测量单位
|
|
465
486
|
let distanceUnits = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
487
|
+
|
|
466
488
|
let setDistanceUnits = () => {
|
|
467
489
|
return [{
|
|
468
490
|
label: language.value.kilometre,
|
|
@@ -475,9 +497,11 @@ const __default__ = {
|
|
|
475
497
|
value: nauticalMileUnit
|
|
476
498
|
}];
|
|
477
499
|
};
|
|
478
|
-
|
|
479
|
-
// 面积测量单位
|
|
500
|
+
|
|
501
|
+
distanceUnits.value = setDistanceUnits(); // 面积测量单位
|
|
502
|
+
|
|
480
503
|
let areaUnits = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
504
|
+
|
|
481
505
|
let setAreaUnits = () => {
|
|
482
506
|
return [{
|
|
483
507
|
label: language.value.squareKilometers,
|
|
@@ -493,12 +517,11 @@ const __default__ = {
|
|
|
493
517
|
value: "ha"
|
|
494
518
|
}];
|
|
495
519
|
};
|
|
496
|
-
areaUnits.value = setAreaUnits();
|
|
497
520
|
|
|
498
|
-
// 组件容器Ref
|
|
499
|
-
|
|
521
|
+
areaUnits.value = setAreaUnits(); // 组件容器Ref
|
|
522
|
+
|
|
523
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
500
524
|
|
|
501
|
-
// 生成组件默认header
|
|
502
525
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
503
526
|
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
504
527
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
@@ -515,12 +538,13 @@ const __default__ = {
|
|
|
515
538
|
gis_utils_.utils.getWebMap(props.target, scenceView => {
|
|
516
539
|
if (scenceView) {
|
|
517
540
|
viewModel = new MeasureViewModel/* default */.Z(scenceView._viewer);
|
|
518
|
-
viewModel.nauticalMileUnit = nauticalMileUnit;
|
|
519
|
-
|
|
541
|
+
viewModel.nauticalMileUnit = nauticalMileUnit; //注册测量事件,以获取测量结果
|
|
542
|
+
|
|
520
543
|
viewModel.measureEvent.addEventListener(function (res) {
|
|
521
544
|
if (measureType.value === "distance") {
|
|
522
545
|
if (res.distance) {
|
|
523
546
|
distanceValue = res.distance;
|
|
547
|
+
|
|
524
548
|
if (props.settingParams && props.settingParams.distanceUnit) {
|
|
525
549
|
distanceUnit.value = props.settingParams && props.settingParams.distanceUnit || "";
|
|
526
550
|
onChangeUnit(distanceUnit.value);
|
|
@@ -538,6 +562,7 @@ const __default__ = {
|
|
|
538
562
|
} else if (measureType.value === "area") {
|
|
539
563
|
if (res && res.area || res && res.area == 0) {
|
|
540
564
|
distanceValue = res.area;
|
|
565
|
+
|
|
541
566
|
if (props.settingParams && props.settingParams.areaUnit) {
|
|
542
567
|
areaUnit.value = props.settingParams && props.settingParams.areaUnit || "";
|
|
543
568
|
onChangeUnit(areaUnit.value);
|
|
@@ -559,6 +584,7 @@ const __default__ = {
|
|
|
559
584
|
} else if (measureType.value === "coordinate") {
|
|
560
585
|
if (res && res.coordinate) {
|
|
561
586
|
let convertValue = null;
|
|
587
|
+
|
|
562
588
|
if (props.settingParams && props.settingParams.isConvert) {
|
|
563
589
|
result.value = {
|
|
564
590
|
longitude: res.coordinate.longitude ? convertXY(res.coordinate.longitude) : 0,
|
|
@@ -573,9 +599,11 @@ const __default__ = {
|
|
|
573
599
|
height: res.coordinate.height ? res.coordinate.height.toFixed(2) : 0
|
|
574
600
|
};
|
|
575
601
|
}
|
|
602
|
+
|
|
576
603
|
if (res.measureResult && res.measureResult.labels && res.measureResult.labels.length > 0) {
|
|
577
604
|
res.measureResult.labels._labels.forEach(label => {
|
|
578
605
|
label.text = label.text.replace('X', language.value.longitude).replace('Y', language.value.latitude).replace('Z', language.value.elevation).replace(/\n/g, '°\n');
|
|
606
|
+
|
|
579
607
|
if (convertValue) {
|
|
580
608
|
label.text = label.text.replace(res.coordinate.longitude.toFixed(5) + "°", convertValue[0]).replace(res.coordinate.latitude.toFixed(5) + "°", convertValue[1]);
|
|
581
609
|
}
|
|
@@ -598,11 +626,14 @@ const __default__ = {
|
|
|
598
626
|
handler.setInputAction(function () {
|
|
599
627
|
if (!viewModel._measureHandler.active) return;
|
|
600
628
|
let isDrawing = viewModel._measureHandler.isDrawing;
|
|
629
|
+
|
|
601
630
|
if (!isDrawing) {
|
|
602
631
|
let measureResults = viewModel._measureHandler.measureResults;
|
|
632
|
+
|
|
603
633
|
if (measureResults && measureResults.length > 0) {
|
|
604
634
|
measureResults[0].destroy();
|
|
605
635
|
}
|
|
636
|
+
|
|
606
637
|
if (measureType.value === "coordinate") {
|
|
607
638
|
isTips.value = false;
|
|
608
639
|
isResult.value = true;
|
|
@@ -611,6 +642,7 @@ const __default__ = {
|
|
|
611
642
|
isResult.value = false;
|
|
612
643
|
}
|
|
613
644
|
}
|
|
645
|
+
|
|
614
646
|
if (isDrawing) {
|
|
615
647
|
if (measureType.value !== 'distance' && measureType.value !== 'area') {
|
|
616
648
|
continueMeasure();
|
|
@@ -619,6 +651,7 @@ const __default__ = {
|
|
|
619
651
|
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
620
652
|
handler.setInputAction(function () {
|
|
621
653
|
let isDrawing = viewModel._measureHandler.isDrawing;
|
|
654
|
+
|
|
622
655
|
if (!isDrawing) {
|
|
623
656
|
isActive.value = null;
|
|
624
657
|
viewModel.stopMeasure();
|
|
@@ -629,33 +662,36 @@ const __default__ = {
|
|
|
629
662
|
window.measureClickHandler = handler;
|
|
630
663
|
}
|
|
631
664
|
});
|
|
632
|
-
});
|
|
633
|
-
|
|
665
|
+
}); // 经纬度转度分秒
|
|
666
|
+
|
|
634
667
|
function convertXY(val) {
|
|
635
668
|
if (!val) {
|
|
636
669
|
return "";
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
|
|
640
|
-
// 经纬度的小数部分*60
|
|
641
|
-
|
|
642
|
-
// 分=(经纬度的小数部分*60)的整数部分
|
|
643
|
-
|
|
644
|
-
// 秒=(经纬度的小数部分*60-分)*60
|
|
670
|
+
} // 度=经纬度的整数部分
|
|
671
|
+
|
|
672
|
+
|
|
673
|
+
let d = Math.floor(Number(val)); // 经纬度的小数部分*60
|
|
674
|
+
|
|
675
|
+
let temp1 = (Number(val) - Number(d)) * 60; // 分=(经纬度的小数部分*60)的整数部分
|
|
676
|
+
|
|
677
|
+
let f = Math.floor(Number(temp1)); // 秒=(经纬度的小数部分*60-分)*60
|
|
678
|
+
|
|
645
679
|
let m = Math.floor((Number(temp1) - Number(f)) * 60);
|
|
646
680
|
return d + "°" + f + "′" + m + "″";
|
|
647
681
|
}
|
|
648
682
|
/**
|
|
649
683
|
* @description 监听header生成
|
|
650
684
|
*/
|
|
685
|
+
|
|
686
|
+
|
|
651
687
|
const watchCreateHeaderTemp = () => {
|
|
652
688
|
if (props.showHeaderTemp) {
|
|
653
689
|
// 生成headerTemp
|
|
654
690
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, measureTitle);
|
|
655
691
|
}
|
|
656
|
-
};
|
|
692
|
+
}; //加载测量模式数据
|
|
693
|
+
|
|
657
694
|
|
|
658
|
-
//加载测量模式数据
|
|
659
695
|
function loadModeData() {
|
|
660
696
|
return [{
|
|
661
697
|
label: language.value.spaceMeasure,
|
|
@@ -668,6 +704,7 @@ const __default__ = {
|
|
|
668
704
|
value: "model"
|
|
669
705
|
}];
|
|
670
706
|
}
|
|
707
|
+
|
|
671
708
|
function formatDistance(dis) {
|
|
672
709
|
if (dis > 5000) {
|
|
673
710
|
dis = dis / 1000;
|
|
@@ -675,72 +712,87 @@ const __default__ = {
|
|
|
675
712
|
} else {
|
|
676
713
|
distanceUnit.value = "m";
|
|
677
714
|
}
|
|
715
|
+
|
|
678
716
|
return dis.toFixed(2) + " " + distanceUnit.value;
|
|
679
717
|
}
|
|
718
|
+
|
|
680
719
|
function formatArea(area) {
|
|
681
720
|
areaUnit.value = "m²";
|
|
721
|
+
|
|
682
722
|
if (area > 1000000) {
|
|
683
723
|
area = area / 1000000;
|
|
684
724
|
areaUnit.value = "km²";
|
|
685
725
|
}
|
|
726
|
+
|
|
686
727
|
return area.toFixed(2) + " " + areaUnit.value;
|
|
687
728
|
}
|
|
688
|
-
|
|
689
729
|
/**
|
|
690
730
|
* @description 监听单位变化操作
|
|
691
731
|
* @param {string} unit - 单位
|
|
692
732
|
*/
|
|
733
|
+
|
|
734
|
+
|
|
693
735
|
function onChangeUnit(unit) {
|
|
694
736
|
result.value = convertValueUnitTotal(distanceValue, unit);
|
|
695
737
|
viewModel && viewModel.updateDistanceUnit(distanceValue, unit);
|
|
696
738
|
}
|
|
697
|
-
|
|
698
739
|
/**
|
|
699
740
|
* @description 测量距离数值单位换算
|
|
700
741
|
* @param {string} value - 原始数值
|
|
701
742
|
* @param {string} unit - 单位
|
|
702
743
|
* @returns {string} 新数值
|
|
703
744
|
*/
|
|
745
|
+
|
|
746
|
+
|
|
704
747
|
function convertValueUnitTotal(value, unit) {
|
|
705
748
|
let newValue = "";
|
|
749
|
+
|
|
706
750
|
switch (unit) {
|
|
707
751
|
case "m":
|
|
708
752
|
newValue = value.toFixed(2) + " m";
|
|
709
753
|
break;
|
|
754
|
+
|
|
710
755
|
case "km":
|
|
711
756
|
newValue = (value / 1000).toFixed(2) + " km";
|
|
712
757
|
break;
|
|
758
|
+
|
|
713
759
|
case nauticalMileUnit:
|
|
714
760
|
newValue = (value / 1852).toFixed(2) + " " + nauticalMileUnit;
|
|
715
761
|
break;
|
|
762
|
+
|
|
716
763
|
case "m²":
|
|
717
764
|
newValue = value.toFixed(2) + " m²";
|
|
718
765
|
break;
|
|
766
|
+
|
|
719
767
|
case "km²":
|
|
720
768
|
newValue = (value / 1000000).toFixed(2) + " km²";
|
|
721
769
|
break;
|
|
770
|
+
|
|
722
771
|
case "mu":
|
|
723
772
|
newValue = (value * 2 / 3).toFixed(2) + " mu";
|
|
724
773
|
break;
|
|
774
|
+
|
|
725
775
|
case "ha":
|
|
726
776
|
newValue = (value / 10000).toFixed(2) + " ha";
|
|
727
777
|
break;
|
|
778
|
+
|
|
728
779
|
default:
|
|
729
780
|
break;
|
|
730
781
|
}
|
|
782
|
+
|
|
731
783
|
return newValue;
|
|
732
|
-
}
|
|
784
|
+
} // 销毁
|
|
785
|
+
|
|
733
786
|
|
|
734
|
-
// 销毁
|
|
735
787
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
736
788
|
clearMeasure();
|
|
789
|
+
|
|
737
790
|
if (window.measureClickHandler) {
|
|
738
791
|
window.measureClickHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
739
792
|
window.measureClickHandler.removeInputAction(Cesium.ScreenSpaceEventType.RIGHT_CLICK);
|
|
740
793
|
}
|
|
741
|
-
});
|
|
794
|
+
}); //开始测量
|
|
742
795
|
|
|
743
|
-
//开始测量
|
|
744
796
|
function startMeasure(type) {
|
|
745
797
|
if (mode.value === "ground") {
|
|
746
798
|
if (!viewModel.checkTerrainAdded()) {
|
|
@@ -751,6 +803,7 @@ const __default__ = {
|
|
|
751
803
|
return;
|
|
752
804
|
}
|
|
753
805
|
}
|
|
806
|
+
|
|
754
807
|
if (mode.value === "model") {
|
|
755
808
|
if (!viewModel.checkModelAdded()) {
|
|
756
809
|
(0,message/* default */.Z)({
|
|
@@ -760,73 +813,91 @@ const __default__ = {
|
|
|
760
813
|
return;
|
|
761
814
|
}
|
|
762
815
|
}
|
|
816
|
+
|
|
763
817
|
viewModel.clear();
|
|
764
818
|
result.value = 0;
|
|
765
819
|
isTips.value = true;
|
|
766
820
|
isResult.value = false;
|
|
767
821
|
measureType.value = type;
|
|
768
822
|
isActive.value = type;
|
|
823
|
+
|
|
769
824
|
switch (type) {
|
|
770
825
|
case "distance":
|
|
771
826
|
viewModel.distanceMeasure(mode.value);
|
|
772
827
|
break;
|
|
828
|
+
|
|
773
829
|
case "area":
|
|
774
830
|
viewModel.areaMeasure(mode.value);
|
|
775
831
|
break;
|
|
832
|
+
|
|
776
833
|
case "height":
|
|
777
834
|
viewModel.heightMeasure();
|
|
778
835
|
break;
|
|
836
|
+
|
|
779
837
|
case "coordinate":
|
|
780
838
|
viewModel.coordinateMeasure();
|
|
781
839
|
break;
|
|
840
|
+
|
|
782
841
|
case "azimuth":
|
|
783
842
|
viewModel.azimuthMeasure();
|
|
784
843
|
break;
|
|
844
|
+
|
|
785
845
|
case "slope":
|
|
786
846
|
if (mode.value === "ground") {
|
|
787
847
|
viewModel.terrainSlopeMeasure();
|
|
788
848
|
} else if (mode.value === "model") {
|
|
789
849
|
viewModel.sceneSlopeMeasure();
|
|
790
850
|
}
|
|
851
|
+
|
|
791
852
|
break;
|
|
853
|
+
|
|
792
854
|
default:
|
|
793
855
|
break;
|
|
794
856
|
}
|
|
795
857
|
}
|
|
858
|
+
|
|
796
859
|
function continueMeasure() {
|
|
797
860
|
setTimeout(() => {
|
|
798
861
|
switch (measureType.value) {
|
|
799
862
|
case "distance":
|
|
800
863
|
viewModel.distanceMeasure(mode.value);
|
|
801
864
|
break;
|
|
865
|
+
|
|
802
866
|
case "area":
|
|
803
867
|
viewModel.areaMeasure(mode.value);
|
|
804
868
|
break;
|
|
869
|
+
|
|
805
870
|
case "height":
|
|
806
871
|
viewModel.heightMeasure();
|
|
807
872
|
break;
|
|
873
|
+
|
|
808
874
|
case "coordinate":
|
|
809
875
|
viewModel.coordinateMeasure();
|
|
810
876
|
break;
|
|
877
|
+
|
|
811
878
|
case "azimuth":
|
|
812
879
|
viewModel.azimuthMeasure();
|
|
813
880
|
break;
|
|
881
|
+
|
|
814
882
|
case "slope":
|
|
815
883
|
if (mode.value === "ground") {
|
|
816
884
|
viewModel.terrainSlopeMeasure();
|
|
817
885
|
} else if (mode.value === "model") {
|
|
818
886
|
viewModel.sceneSlopeMeasure();
|
|
819
887
|
}
|
|
888
|
+
|
|
820
889
|
break;
|
|
890
|
+
|
|
821
891
|
default:
|
|
822
892
|
break;
|
|
823
893
|
}
|
|
824
894
|
}, 300);
|
|
825
895
|
}
|
|
826
|
-
|
|
827
896
|
/**
|
|
828
897
|
* 清除测量
|
|
829
898
|
*/
|
|
899
|
+
|
|
900
|
+
|
|
830
901
|
function clearMeasure() {
|
|
831
902
|
viewModel && viewModel.clear();
|
|
832
903
|
measureType.value = null;
|
|
@@ -834,6 +905,7 @@ const __default__ = {
|
|
|
834
905
|
isTips.value = false;
|
|
835
906
|
isResult.value = false;
|
|
836
907
|
}
|
|
908
|
+
|
|
837
909
|
__expose({
|
|
838
910
|
loadModeData,
|
|
839
911
|
formatDistance,
|
|
@@ -841,12 +913,18 @@ const __default__ = {
|
|
|
841
913
|
startMeasure,
|
|
842
914
|
clearMeasure
|
|
843
915
|
});
|
|
916
|
+
|
|
844
917
|
return (_ctx, _cache) => {
|
|
845
918
|
const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");
|
|
919
|
+
|
|
846
920
|
const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-select");
|
|
921
|
+
|
|
847
922
|
const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
|
|
923
|
+
|
|
848
924
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
925
|
+
|
|
849
926
|
const _component_kq_divider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-divider");
|
|
927
|
+
|
|
850
928
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
851
929
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq-measure3d", {
|
|
852
930
|
'kq-box-shadow': __props.showShadow
|
|
@@ -857,7 +935,11 @@ const __default__ = {
|
|
|
857
935
|
key: 0,
|
|
858
936
|
ref_key: "headerTempRef",
|
|
859
937
|
ref: headerTempRef
|
|
860
|
-
}, null, 512
|
|
938
|
+
}, null, 512
|
|
939
|
+
/* NEED_PATCH */
|
|
940
|
+
)) : (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
|
|
941
|
+
/* TEXT */
|
|
942
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_select, {
|
|
861
943
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode),
|
|
862
944
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(mode) ? mode.value = $event : mode = $event)
|
|
863
945
|
}, {
|
|
@@ -866,10 +948,18 @@ const __default__ = {
|
|
|
866
948
|
key: item.value,
|
|
867
949
|
label: item.label,
|
|
868
950
|
value: item.value
|
|
869
|
-
}, null, 8
|
|
870
|
-
|
|
871
|
-
|
|
872
|
-
|
|
951
|
+
}, null, 8
|
|
952
|
+
/* PROPS */
|
|
953
|
+
, ["label", "value"]);
|
|
954
|
+
}), 128
|
|
955
|
+
/* KEYED_FRAGMENT */
|
|
956
|
+
))]),
|
|
957
|
+
_: 1
|
|
958
|
+
/* STABLE */
|
|
959
|
+
|
|
960
|
+
}, 8
|
|
961
|
+
/* PROPS */
|
|
962
|
+
, ["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, {
|
|
873
963
|
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('distance'), ["stop"])),
|
|
874
964
|
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),
|
|
875
965
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).distance
|
|
@@ -878,10 +968,16 @@ const __default__ = {
|
|
|
878
968
|
size: 24
|
|
879
969
|
}, {
|
|
880
970
|
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))]),
|
|
881
|
-
_: 1
|
|
971
|
+
_: 1
|
|
972
|
+
/* STABLE */
|
|
973
|
+
|
|
882
974
|
})]),
|
|
883
|
-
_: 1
|
|
884
|
-
|
|
975
|
+
_: 1
|
|
976
|
+
/* STABLE */
|
|
977
|
+
|
|
978
|
+
}, 8
|
|
979
|
+
/* PROPS */
|
|
980
|
+
, ["class", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
885
981
|
onClick: _cache[2] || (_cache[2] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('area'), ["stop"])),
|
|
886
982
|
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),
|
|
887
983
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).area
|
|
@@ -890,10 +986,16 @@ const __default__ = {
|
|
|
890
986
|
size: 24
|
|
891
987
|
}, {
|
|
892
988
|
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))]),
|
|
893
|
-
_: 1
|
|
989
|
+
_: 1
|
|
990
|
+
/* STABLE */
|
|
991
|
+
|
|
894
992
|
})]),
|
|
895
|
-
_: 1
|
|
896
|
-
|
|
993
|
+
_: 1
|
|
994
|
+
/* STABLE */
|
|
995
|
+
|
|
996
|
+
}, 8
|
|
997
|
+
/* PROPS */
|
|
998
|
+
, ["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, {
|
|
897
999
|
onClick: _cache[3] || (_cache[3] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('height'), ["stop"])),
|
|
898
1000
|
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),
|
|
899
1001
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).height
|
|
@@ -902,10 +1004,16 @@ const __default__ = {
|
|
|
902
1004
|
size: 24
|
|
903
1005
|
}, {
|
|
904
1006
|
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))]),
|
|
905
|
-
_: 1
|
|
1007
|
+
_: 1
|
|
1008
|
+
/* STABLE */
|
|
1009
|
+
|
|
906
1010
|
})]),
|
|
907
|
-
_: 1
|
|
908
|
-
|
|
1011
|
+
_: 1
|
|
1012
|
+
/* STABLE */
|
|
1013
|
+
|
|
1014
|
+
}, 8
|
|
1015
|
+
/* PROPS */
|
|
1016
|
+
, ["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, {
|
|
909
1017
|
onClick: _cache[4] || (_cache[4] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('azimuth'), ["stop"])),
|
|
910
1018
|
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),
|
|
911
1019
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).azimuth
|
|
@@ -914,10 +1022,16 @@ const __default__ = {
|
|
|
914
1022
|
size: 24
|
|
915
1023
|
}, {
|
|
916
1024
|
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))]),
|
|
917
|
-
_: 1
|
|
1025
|
+
_: 1
|
|
1026
|
+
/* STABLE */
|
|
1027
|
+
|
|
918
1028
|
})]),
|
|
919
|
-
_: 1
|
|
920
|
-
|
|
1029
|
+
_: 1
|
|
1030
|
+
/* STABLE */
|
|
1031
|
+
|
|
1032
|
+
}, 8
|
|
1033
|
+
/* PROPS */
|
|
1034
|
+
, ["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, {
|
|
921
1035
|
onClick: _cache[5] || (_cache[5] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('coordinate'), ["stop"])),
|
|
922
1036
|
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),
|
|
923
1037
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).coordinate
|
|
@@ -926,10 +1040,16 @@ const __default__ = {
|
|
|
926
1040
|
size: 24
|
|
927
1041
|
}, {
|
|
928
1042
|
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))]),
|
|
929
|
-
_: 1
|
|
1043
|
+
_: 1
|
|
1044
|
+
/* STABLE */
|
|
1045
|
+
|
|
930
1046
|
})]),
|
|
931
|
-
_: 1
|
|
932
|
-
|
|
1047
|
+
_: 1
|
|
1048
|
+
/* STABLE */
|
|
1049
|
+
|
|
1050
|
+
}, 8
|
|
1051
|
+
/* PROPS */
|
|
1052
|
+
, ["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, {
|
|
933
1053
|
onClick: _cache[6] || (_cache[6] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('slope'), ["stop"])),
|
|
934
1054
|
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),
|
|
935
1055
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).slope
|
|
@@ -938,10 +1058,16 @@ const __default__ = {
|
|
|
938
1058
|
size: 24
|
|
939
1059
|
}, {
|
|
940
1060
|
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))]),
|
|
941
|
-
_: 1
|
|
1061
|
+
_: 1
|
|
1062
|
+
/* STABLE */
|
|
1063
|
+
|
|
942
1064
|
})]),
|
|
943
|
-
_: 1
|
|
944
|
-
|
|
1065
|
+
_: 1
|
|
1066
|
+
/* STABLE */
|
|
1067
|
+
|
|
1068
|
+
}, 8
|
|
1069
|
+
/* PROPS */
|
|
1070
|
+
, ["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, {
|
|
945
1071
|
type: "danger",
|
|
946
1072
|
plain: "",
|
|
947
1073
|
onClick: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)(clearMeasure, ["stop"]),
|
|
@@ -952,10 +1078,22 @@ const __default__ = {
|
|
|
952
1078
|
size: 24
|
|
953
1079
|
}, {
|
|
954
1080
|
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))]),
|
|
955
|
-
_: 1
|
|
1081
|
+
_: 1
|
|
1082
|
+
/* STABLE */
|
|
1083
|
+
|
|
956
1084
|
})]),
|
|
957
|
-
_: 1
|
|
958
|
-
|
|
1085
|
+
_: 1
|
|
1086
|
+
/* STABLE */
|
|
1087
|
+
|
|
1088
|
+
}, 8
|
|
1089
|
+
/* PROPS */
|
|
1090
|
+
, ["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
|
|
1091
|
+
/* TEXT */
|
|
1092
|
+
)) : ((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
|
|
1093
|
+
/* TEXT */
|
|
1094
|
+
))])) : (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
|
|
1095
|
+
/* TEXT */
|
|
1096
|
+
), (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, {
|
|
959
1097
|
key: 0,
|
|
960
1098
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(distanceUnit),
|
|
961
1099
|
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(distanceUnit) ? distanceUnit.value = $event : distanceUnit = $event),
|
|
@@ -966,10 +1104,18 @@ const __default__ = {
|
|
|
966
1104
|
key: item.value,
|
|
967
1105
|
label: item.label,
|
|
968
1106
|
value: item.value
|
|
969
|
-
}, null, 8
|
|
970
|
-
|
|
971
|
-
|
|
972
|
-
|
|
1107
|
+
}, null, 8
|
|
1108
|
+
/* PROPS */
|
|
1109
|
+
, ["label", "value"]);
|
|
1110
|
+
}), 128
|
|
1111
|
+
/* KEYED_FRAGMENT */
|
|
1112
|
+
))]),
|
|
1113
|
+
_: 1
|
|
1114
|
+
/* STABLE */
|
|
1115
|
+
|
|
1116
|
+
}, 8
|
|
1117
|
+
/* PROPS */
|
|
1118
|
+
, ["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, {
|
|
973
1119
|
key: 1,
|
|
974
1120
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(areaUnit),
|
|
975
1121
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(areaUnit) ? areaUnit.value = $event : areaUnit = $event),
|
|
@@ -980,12 +1126,65 @@ const __default__ = {
|
|
|
980
1126
|
key: item.value,
|
|
981
1127
|
label: item.label,
|
|
982
1128
|
value: item.value
|
|
983
|
-
}, null, 8
|
|
984
|
-
|
|
985
|
-
|
|
986
|
-
|
|
1129
|
+
}, null, 8
|
|
1130
|
+
/* PROPS */
|
|
1131
|
+
, ["label", "value"]);
|
|
1132
|
+
}), 128
|
|
1133
|
+
/* KEYED_FRAGMENT */
|
|
1134
|
+
))]),
|
|
1135
|
+
_: 1
|
|
1136
|
+
/* STABLE */
|
|
1137
|
+
|
|
1138
|
+
}, 8
|
|
1139
|
+
/* PROPS */
|
|
1140
|
+
, ["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
|
|
1141
|
+
/* TEXT */
|
|
1142
|
+
), (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
|
|
1143
|
+
/* TEXT */
|
|
1144
|
+
), (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
|
|
1145
|
+
/* TEXT */
|
|
1146
|
+
), (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
|
|
1147
|
+
/* TEXT */
|
|
1148
|
+
), (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
|
|
1149
|
+
/* TEXT */
|
|
1150
|
+
), (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
|
|
1151
|
+
/* TEXT */
|
|
1152
|
+
), (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
|
|
1153
|
+
/* TEXT */
|
|
1154
|
+
), (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
|
|
1155
|
+
/* TEXT */
|
|
1156
|
+
), (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
|
|
1157
|
+
/* TEXT */
|
|
1158
|
+
)])) : (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
|
|
1159
|
+
/* TEXT */
|
|
1160
|
+
), (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
|
|
1161
|
+
/* TEXT */
|
|
1162
|
+
), (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
|
|
1163
|
+
/* TEXT */
|
|
1164
|
+
), (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
|
|
1165
|
+
/* TEXT */
|
|
1166
|
+
), (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
|
|
1167
|
+
/* TEXT */
|
|
1168
|
+
), (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
|
|
1169
|
+
/* TEXT */
|
|
1170
|
+
)])) : (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
|
|
1171
|
+
/* TEXT */
|
|
1172
|
+
), (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
|
|
1173
|
+
/* TEXT */
|
|
1174
|
+
), (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
|
|
1175
|
+
/* TEXT */
|
|
1176
|
+
), (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
|
|
1177
|
+
/* TEXT */
|
|
1178
|
+
)])) : ((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
|
|
1179
|
+
/* TEXT */
|
|
1180
|
+
), (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
|
|
1181
|
+
/* TEXT */
|
|
1182
|
+
)]))])])])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)])], 2
|
|
1183
|
+
/* CLASS */
|
|
1184
|
+
);
|
|
987
1185
|
};
|
|
988
1186
|
}
|
|
1187
|
+
|
|
989
1188
|
}));
|
|
990
1189
|
;// CONCATENATED MODULE: ./src/webgl/measure/Measure.vue?vue&type=script&setup=true&lang=js
|
|
991
1190
|
|
|
@@ -1013,20 +1212,6 @@ module.exports = require("@kq_npm/client_icons_vue");
|
|
|
1013
1212
|
|
|
1014
1213
|
/***/ }),
|
|
1015
1214
|
|
|
1016
|
-
/***/ 8470:
|
|
1017
|
-
/***/ (function(module) {
|
|
1018
|
-
|
|
1019
|
-
module.exports = require("core-js/modules/esnext.iterator.constructor.js");
|
|
1020
|
-
|
|
1021
|
-
/***/ }),
|
|
1022
|
-
|
|
1023
|
-
/***/ 1058:
|
|
1024
|
-
/***/ (function(module) {
|
|
1025
|
-
|
|
1026
|
-
module.exports = require("core-js/modules/esnext.iterator.for-each.js");
|
|
1027
|
-
|
|
1028
|
-
/***/ }),
|
|
1029
|
-
|
|
1030
1215
|
/***/ 9389:
|
|
1031
1216
|
/***/ (function(module) {
|
|
1032
1217
|
|
|
@@ -1069,59 +1254,27 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
|
1069
1254
|
|
|
1070
1255
|
/***/ }),
|
|
1071
1256
|
|
|
1072
|
-
/***/
|
|
1257
|
+
/***/ 8270:
|
|
1073
1258
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
1074
1259
|
|
|
1075
|
-
|
|
1076
|
-
|
|
1077
|
-
|
|
1078
|
-
|
|
1079
|
-
|
|
1080
|
-
|
|
1081
|
-
|
|
1082
|
-
|
|
1083
|
-
|
|
1084
|
-
|
|
1085
|
-
|
|
1086
|
-
|
|
1087
|
-
|
|
1088
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
1089
|
-
}, _typeof(o);
|
|
1090
|
-
}
|
|
1091
|
-
|
|
1092
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
1093
|
-
|
|
1094
|
-
function toPrimitive(t, r) {
|
|
1095
|
-
if ("object" != _typeof(t) || !t) return t;
|
|
1096
|
-
var e = t[Symbol.toPrimitive];
|
|
1097
|
-
if (void 0 !== e) {
|
|
1098
|
-
var i = e.call(t, r || "default");
|
|
1099
|
-
if ("object" != _typeof(i)) return i;
|
|
1100
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
1260
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1261
|
+
/* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
|
|
1262
|
+
/* harmony export */ });
|
|
1263
|
+
function _defineProperty(obj, key, value) {
|
|
1264
|
+
if (key in obj) {
|
|
1265
|
+
Object.defineProperty(obj, key, {
|
|
1266
|
+
value: value,
|
|
1267
|
+
enumerable: true,
|
|
1268
|
+
configurable: true,
|
|
1269
|
+
writable: true
|
|
1270
|
+
});
|
|
1271
|
+
} else {
|
|
1272
|
+
obj[key] = value;
|
|
1101
1273
|
}
|
|
1102
|
-
return ("string" === r ? String : Number)(t);
|
|
1103
|
-
}
|
|
1104
|
-
|
|
1105
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
function toPropertyKey(t) {
|
|
1109
|
-
var i = toPrimitive(t, "string");
|
|
1110
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
1111
|
-
}
|
|
1112
|
-
|
|
1113
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
1114
1274
|
|
|
1115
|
-
|
|
1116
|
-
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
1117
|
-
value: t,
|
|
1118
|
-
enumerable: !0,
|
|
1119
|
-
configurable: !0,
|
|
1120
|
-
writable: !0
|
|
1121
|
-
}) : e[r] = t, e;
|
|
1275
|
+
return obj;
|
|
1122
1276
|
}
|
|
1123
1277
|
|
|
1124
|
-
|
|
1125
1278
|
/***/ })
|
|
1126
1279
|
|
|
1127
1280
|
/******/ });
|
|
@@ -1197,13 +1350,13 @@ var __webpack_exports__ = {};
|
|
|
1197
1350
|
!function() {
|
|
1198
1351
|
__webpack_require__.r(__webpack_exports__);
|
|
1199
1352
|
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
1200
|
-
/* harmony export */ "MeasureViewModel": function() { return /* reexport safe */
|
|
1353
|
+
/* harmony export */ "MeasureViewModel": function() { return /* reexport safe */ _MeasureViewModel__WEBPACK_IMPORTED_MODULE_2__.Z; },
|
|
1201
1354
|
/* harmony export */ "default": function() { return /* reexport safe */ _Measure__WEBPACK_IMPORTED_MODULE_0__.Z; }
|
|
1202
1355
|
/* harmony export */ });
|
|
1203
|
-
/* harmony import */ var _Measure__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
1204
|
-
/* harmony import */ var
|
|
1205
|
-
/* harmony import */ var
|
|
1206
|
-
/* harmony import */ var
|
|
1356
|
+
/* harmony import */ var _Measure__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8918);
|
|
1357
|
+
/* harmony import */ var _MeasureViewModel__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(193);
|
|
1358
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7997);
|
|
1359
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
|
|
1207
1360
|
/*
|
|
1208
1361
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
1209
1362
|
* All rights reserved.
|
|
@@ -1211,11 +1364,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
1211
1364
|
|
|
1212
1365
|
|
|
1213
1366
|
|
|
1367
|
+
|
|
1214
1368
|
_Measure__WEBPACK_IMPORTED_MODULE_0__/* ["default"].install */ .Z.install = (Vue, opts) => {
|
|
1215
|
-
|
|
1369
|
+
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
1216
1370
|
Vue.component(_Measure__WEBPACK_IMPORTED_MODULE_0__/* ["default"].name */ .Z.name, _Measure__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z);
|
|
1217
1371
|
};
|
|
1218
1372
|
|
|
1373
|
+
|
|
1219
1374
|
}();
|
|
1220
1375
|
/******/ return __webpack_exports__;
|
|
1221
1376
|
/******/ })()
|