@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
|
@@ -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/init.js"), require("@kq_npm/client_common_vue/_utils/util"));
|
|
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/init.js", "@kq_npm/client_common_vue/_utils/util"], 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/init.js", "@kq_npm/client_common_vue/_utils/util"], 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/init.js"), require("@kq_npm/client_common_vue/_utils/util"));
|
|
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/init.js"], root["@kq_npm/client_common_vue/_utils/util"]);
|
|
10
10
|
})(this, function(__WEBPACK_EXTERNAL_MODULE__1895__, __WEBPACK_EXTERNAL_MODULE__7135__, __WEBPACK_EXTERNAL_MODULE__7997__, __WEBPACK_EXTERNAL_MODULE__3458__) {
|
|
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
|
/***/ }),
|
|
@@ -40,27 +42,6 @@ module.exports = require("@kq_npm/client_icons_vue");
|
|
|
40
42
|
|
|
41
43
|
/***/ }),
|
|
42
44
|
|
|
43
|
-
/***/ 2118:
|
|
44
|
-
/***/ (function(module) {
|
|
45
|
-
|
|
46
|
-
module.exports = require("core-js/modules/es.array.push.js");
|
|
47
|
-
|
|
48
|
-
/***/ }),
|
|
49
|
-
|
|
50
|
-
/***/ 8470:
|
|
51
|
-
/***/ (function(module) {
|
|
52
|
-
|
|
53
|
-
module.exports = require("core-js/modules/esnext.iterator.constructor.js");
|
|
54
|
-
|
|
55
|
-
/***/ }),
|
|
56
|
-
|
|
57
|
-
/***/ 1058:
|
|
58
|
-
/***/ (function(module) {
|
|
59
|
-
|
|
60
|
-
module.exports = require("core-js/modules/esnext.iterator.for-each.js");
|
|
61
|
-
|
|
62
|
-
/***/ }),
|
|
63
|
-
|
|
64
45
|
/***/ 9389:
|
|
65
46
|
/***/ (function(module) {
|
|
66
47
|
|
|
@@ -103,59 +84,27 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
|
103
84
|
|
|
104
85
|
/***/ }),
|
|
105
86
|
|
|
106
|
-
/***/
|
|
87
|
+
/***/ 8270:
|
|
107
88
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
108
89
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
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.");
|
|
90
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
91
|
+
/* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
|
|
92
|
+
/* harmony export */ });
|
|
93
|
+
function _defineProperty(obj, key, value) {
|
|
94
|
+
if (key in obj) {
|
|
95
|
+
Object.defineProperty(obj, key, {
|
|
96
|
+
value: value,
|
|
97
|
+
enumerable: true,
|
|
98
|
+
configurable: true,
|
|
99
|
+
writable: true
|
|
100
|
+
});
|
|
101
|
+
} else {
|
|
102
|
+
obj[key] = value;
|
|
135
103
|
}
|
|
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
|
-
}
|
|
146
|
-
|
|
147
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
148
104
|
|
|
149
|
-
|
|
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;
|
|
105
|
+
return obj;
|
|
156
106
|
}
|
|
157
107
|
|
|
158
|
-
|
|
159
108
|
/***/ })
|
|
160
109
|
|
|
161
110
|
/******/ });
|
|
@@ -244,21 +193,13 @@ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
|
|
|
244
193
|
var gis_utils_ = __webpack_require__(7135);
|
|
245
194
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
246
195
|
var client_icons_vue_ = __webpack_require__(348);
|
|
247
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
248
|
-
var defineProperty = __webpack_require__(
|
|
249
|
-
// EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
|
|
250
|
-
var es_array_push_js_ = __webpack_require__(2118);
|
|
251
|
-
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
|
|
252
|
-
var esnext_iterator_constructor_js_ = __webpack_require__(8470);
|
|
253
|
-
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.for-each.js"
|
|
254
|
-
var esnext_iterator_for_each_js_ = __webpack_require__(1058);
|
|
196
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
197
|
+
var defineProperty = __webpack_require__(8270);
|
|
255
198
|
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
256
199
|
var message = __webpack_require__(1349);
|
|
257
200
|
;// CONCATENATED MODULE: ./src/webgl/limitheightanalysis/LimitHeightAnalysisViewModel.js
|
|
258
201
|
|
|
259
202
|
|
|
260
|
-
|
|
261
|
-
|
|
262
203
|
/*
|
|
263
204
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
264
205
|
* All rights reserved.
|
|
@@ -266,40 +207,51 @@ var message = __webpack_require__(1349);
|
|
|
266
207
|
//限高分析逻辑类
|
|
267
208
|
|
|
268
209
|
class LimitHeightAnalysisViewModel {
|
|
210
|
+
//三维viewer对象
|
|
211
|
+
//限高分析存储参数对象
|
|
269
212
|
constructor(scenceView, options) {
|
|
270
213
|
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
271
|
-
|
|
214
|
+
|
|
272
215
|
(0,defineProperty/* default */.Z)(this, "_options", {});
|
|
273
|
-
|
|
216
|
+
|
|
274
217
|
(0,defineProperty/* default */.Z)(this, "_drawManager", null);
|
|
218
|
+
|
|
275
219
|
(0,defineProperty/* default */.Z)(this, "_drawFinishedEventListener", null);
|
|
220
|
+
|
|
276
221
|
(0,defineProperty/* default */.Z)(this, "_limitHeightAnalysis", null);
|
|
222
|
+
|
|
277
223
|
(0,defineProperty/* default */.Z)(this, "_language", {});
|
|
224
|
+
|
|
278
225
|
this._viewer = scenceView._viewer;
|
|
279
226
|
this._options = options;
|
|
280
227
|
this._drawManager = scenceView._drawManager;
|
|
281
228
|
this._language = scenceView._language;
|
|
282
229
|
this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
|
|
230
|
+
|
|
283
231
|
this._viewer.scene.postProcessStages._fxaa.enabled = true;
|
|
284
232
|
var that = this;
|
|
285
233
|
this._drawFinishedEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
286
234
|
if (shape) {
|
|
287
235
|
that._options.positions = shape._controlPoints;
|
|
288
236
|
that.drawPolygon();
|
|
237
|
+
|
|
289
238
|
that._drawManager.clear();
|
|
290
239
|
}
|
|
291
240
|
});
|
|
292
|
-
}
|
|
293
|
-
|
|
241
|
+
} // 绘制限高分析,显示分析体
|
|
242
|
+
|
|
243
|
+
|
|
294
244
|
drawPolygon() {
|
|
295
245
|
if (!this._options.positions) return;
|
|
296
246
|
var newPositions = [];
|
|
247
|
+
|
|
297
248
|
this._options.positions.forEach(item => {
|
|
298
249
|
var newPos = window.Cesium.Cartographic.fromCartesian(item);
|
|
299
250
|
newPositions.push(newPos.longitude);
|
|
300
251
|
newPositions.push(newPos.latitude);
|
|
301
252
|
newPositions.push(newPos.height);
|
|
302
253
|
});
|
|
254
|
+
|
|
303
255
|
var options = {
|
|
304
256
|
viewer: this._viewer,
|
|
305
257
|
baseHeight: Number(this._options.baseHeight),
|
|
@@ -311,20 +263,25 @@ class LimitHeightAnalysisViewModel {
|
|
|
311
263
|
classificationType: window.Cesium.ClassificationType.CESIUM_3D_TILE
|
|
312
264
|
};
|
|
313
265
|
this._limitHeightAnalysis = new window.Cesium.Kq3dLimitHeightAnalysis(options);
|
|
266
|
+
|
|
314
267
|
this._limitHeightAnalysis.add();
|
|
315
|
-
}
|
|
316
|
-
|
|
268
|
+
} // 开始分析
|
|
269
|
+
|
|
270
|
+
|
|
317
271
|
start() {
|
|
318
272
|
// 判断是否添加了模型
|
|
319
273
|
var flag = false;
|
|
320
274
|
var models = this._viewer.scene.primitives._primitives;
|
|
275
|
+
|
|
321
276
|
for (let i = 0; i < models.length; i++) {
|
|
322
277
|
if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
|
|
323
278
|
flag = true;
|
|
324
279
|
}
|
|
325
280
|
}
|
|
281
|
+
|
|
326
282
|
if (flag) {
|
|
327
283
|
this.clear();
|
|
284
|
+
|
|
328
285
|
if (this._drawManager) {
|
|
329
286
|
this._drawManager.startDraw("polygon", {
|
|
330
287
|
clampToGround: true
|
|
@@ -336,48 +293,55 @@ class LimitHeightAnalysisViewModel {
|
|
|
336
293
|
type: "warning"
|
|
337
294
|
});
|
|
338
295
|
}
|
|
339
|
-
}
|
|
340
|
-
|
|
296
|
+
} // 修改基底高度
|
|
297
|
+
|
|
298
|
+
|
|
341
299
|
changeBaseHeight(val) {
|
|
342
300
|
this._options.baseHeight = val;
|
|
343
301
|
this.clear();
|
|
344
302
|
this.drawPolygon();
|
|
345
|
-
}
|
|
346
|
-
|
|
303
|
+
} // 修改限制高度
|
|
304
|
+
|
|
305
|
+
|
|
347
306
|
changeLimitHeight(val) {
|
|
348
307
|
this._options.limitHeight = val;
|
|
349
308
|
this.clear();
|
|
350
309
|
this.drawPolygon();
|
|
351
|
-
}
|
|
352
|
-
|
|
310
|
+
} // 修改限制高度颜色
|
|
311
|
+
|
|
312
|
+
|
|
353
313
|
changeLimitHeightColor(val) {
|
|
354
314
|
this._options.limitHeightColor = val;
|
|
355
315
|
this.clear();
|
|
356
316
|
this.drawPolygon();
|
|
357
|
-
}
|
|
358
|
-
|
|
317
|
+
} // 修改超出高度颜色
|
|
318
|
+
|
|
319
|
+
|
|
359
320
|
changeOverHeightColor(val) {
|
|
360
321
|
this._options.overHeightColor = val;
|
|
361
322
|
this.clear();
|
|
362
323
|
this.drawPolygon();
|
|
363
|
-
}
|
|
364
|
-
|
|
324
|
+
} // 清除全部
|
|
325
|
+
|
|
326
|
+
|
|
365
327
|
clear() {
|
|
366
328
|
this._limitHeightAnalysis && this._limitHeightAnalysis.remove();
|
|
367
329
|
this._drawManager && this._drawManager.stopDraw();
|
|
368
|
-
}
|
|
369
|
-
|
|
330
|
+
} // 销毁
|
|
331
|
+
|
|
332
|
+
|
|
370
333
|
destroy() {
|
|
371
334
|
this.clear();
|
|
372
335
|
this._drawFinishedEventListener && this._drawFinishedEventListener();
|
|
373
336
|
this._drawFinishedEventListener = null;
|
|
374
337
|
}
|
|
338
|
+
|
|
375
339
|
}
|
|
376
340
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
377
341
|
var util_ = __webpack_require__(3458);
|
|
378
342
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
379
343
|
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
380
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/limitheightanalysis/LimitHeightAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
344
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/webgl/limitheightanalysis/LimitHeightAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
381
345
|
|
|
382
346
|
const _hoisted_1 = {
|
|
383
347
|
class: "kq3d-limitheight-analysis-box"
|
|
@@ -405,6 +369,7 @@ const __default__ = {
|
|
|
405
369
|
type: Boolean,
|
|
406
370
|
default: true
|
|
407
371
|
},
|
|
372
|
+
|
|
408
373
|
/**
|
|
409
374
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
410
375
|
*/
|
|
@@ -434,6 +399,7 @@ const __default__ = {
|
|
|
434
399
|
default: true
|
|
435
400
|
}
|
|
436
401
|
},
|
|
402
|
+
|
|
437
403
|
setup(__props, {
|
|
438
404
|
expose: __expose
|
|
439
405
|
}) {
|
|
@@ -442,9 +408,7 @@ const __default__ = {
|
|
|
442
408
|
proxy
|
|
443
409
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
444
410
|
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
445
|
-
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
|
|
446
|
-
|
|
447
|
-
// 获取组件传参
|
|
411
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]); // 获取组件传参
|
|
448
412
|
|
|
449
413
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
450
414
|
collapseValue: props.settingParams && props.settingParams.collapseValue || ((props.settingParams && props.settingParams.collapseValue) == '' ? "" : "setting"),
|
|
@@ -468,17 +432,15 @@ const __default__ = {
|
|
|
468
432
|
overHeightColor: props.settingParams && props.settingParams.overHeightColor || "#FF0000",
|
|
469
433
|
// 超出高度颜色
|
|
470
434
|
overHeightColorAlpha: props.settingParams && props.settingParams.overHeightColorAlpha || 0.6 // 超出高度颜色透明度
|
|
435
|
+
|
|
471
436
|
});
|
|
472
|
-
let viewModel = null;
|
|
437
|
+
let viewModel = null; // 组件容器Ref
|
|
473
438
|
|
|
474
|
-
//
|
|
475
|
-
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
439
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
476
440
|
|
|
477
|
-
// 生成组件默认header
|
|
478
441
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
479
|
-
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
442
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
|
|
480
443
|
|
|
481
|
-
// 国际化
|
|
482
444
|
let {
|
|
483
445
|
locale,
|
|
484
446
|
messages
|
|
@@ -501,6 +463,7 @@ const __default__ = {
|
|
|
501
463
|
});
|
|
502
464
|
});
|
|
503
465
|
currentLang.value = proxy.$i18n.locale; // 获取当前语言类型
|
|
466
|
+
|
|
504
467
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
505
468
|
if (scenceView) {
|
|
506
469
|
viewModel = new LimitHeightAnalysisViewModel(scenceView, {
|
|
@@ -514,66 +477,84 @@ const __default__ = {
|
|
|
514
477
|
}
|
|
515
478
|
});
|
|
516
479
|
});
|
|
517
|
-
|
|
518
480
|
/**
|
|
519
481
|
* @description 监听header生成
|
|
520
482
|
*/
|
|
483
|
+
|
|
521
484
|
const watchCreateHeaderTemp = () => {
|
|
522
485
|
if (props.showHeaderTemp) {
|
|
523
486
|
// 生成headerTemp
|
|
524
487
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
525
488
|
}
|
|
526
|
-
};
|
|
527
|
-
|
|
489
|
+
}; // 参数切换
|
|
490
|
+
|
|
491
|
+
|
|
528
492
|
function paramsChanged(key) {
|
|
529
493
|
switch (key) {
|
|
530
494
|
case "baseHeight":
|
|
531
495
|
viewModel && viewModel.changeBaseHeight(formItem.baseHeight);
|
|
532
496
|
break;
|
|
497
|
+
|
|
533
498
|
case "limitHeight":
|
|
534
499
|
viewModel && viewModel.changeLimitHeight(formItem.limitHeight);
|
|
535
500
|
break;
|
|
501
|
+
|
|
536
502
|
case "limitHeightColor":
|
|
537
503
|
viewModel && viewModel.changeLimitHeightColor(formItem.limitHeightColor);
|
|
538
504
|
break;
|
|
505
|
+
|
|
539
506
|
case "overHeightColor":
|
|
540
507
|
viewModel && viewModel.changeOverHeightColor(formItem.overHeightColor);
|
|
541
508
|
break;
|
|
509
|
+
|
|
542
510
|
default:
|
|
543
511
|
break;
|
|
544
512
|
}
|
|
545
|
-
}
|
|
546
|
-
|
|
513
|
+
} //开始分析
|
|
514
|
+
|
|
515
|
+
|
|
547
516
|
function startAnalysis() {
|
|
548
517
|
viewModel && viewModel.start();
|
|
549
|
-
}
|
|
518
|
+
} //清除结果
|
|
519
|
+
|
|
550
520
|
|
|
551
|
-
//清除结果
|
|
552
521
|
function clearResult() {
|
|
553
522
|
if (viewModel) viewModel._options.positions = null;
|
|
554
523
|
viewModel && viewModel.clear();
|
|
555
|
-
}
|
|
524
|
+
} // 销毁
|
|
525
|
+
|
|
556
526
|
|
|
557
|
-
// 销毁
|
|
558
527
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
559
528
|
viewModel && viewModel.destroy();
|
|
560
529
|
});
|
|
530
|
+
|
|
561
531
|
__expose({
|
|
562
532
|
paramsChanged,
|
|
563
533
|
startAnalysis,
|
|
564
534
|
clearResult
|
|
565
535
|
});
|
|
536
|
+
|
|
566
537
|
return (_ctx, _cache) => {
|
|
567
538
|
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
539
|
+
|
|
568
540
|
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
541
|
+
|
|
569
542
|
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
543
|
+
|
|
570
544
|
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
|
|
545
|
+
|
|
571
546
|
const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
|
|
547
|
+
|
|
572
548
|
const _component_kq_color_picker = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-color-picker");
|
|
549
|
+
|
|
573
550
|
const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
|
|
551
|
+
|
|
574
552
|
const _component_kq_collapse_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse-item");
|
|
553
|
+
|
|
575
554
|
const _component_kq_collapse = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse");
|
|
555
|
+
|
|
576
556
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
557
|
+
|
|
577
558
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
578
559
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-limitheight-analysis", {
|
|
579
560
|
'kq-box-shadow': __props.showShadow
|
|
@@ -584,11 +565,17 @@ const __default__ = {
|
|
|
584
565
|
key: 0,
|
|
585
566
|
ref_key: "headerTempRef",
|
|
586
567
|
ref: headerTempRef
|
|
587
|
-
}, null, 512
|
|
568
|
+
}, null, 512
|
|
569
|
+
/* NEED_PATCH */
|
|
570
|
+
)) : (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_.createVNode)(_component_kq_row, {
|
|
588
571
|
class: "kq3d-limitheight-analysis-tip"
|
|
589
572
|
}, {
|
|
590
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).skylineTips), 1
|
|
591
|
-
|
|
573
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).skylineTips), 1
|
|
574
|
+
/* TEXT */
|
|
575
|
+
)]),
|
|
576
|
+
_: 1
|
|
577
|
+
/* STABLE */
|
|
578
|
+
|
|
592
579
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse, {
|
|
593
580
|
"model-value": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).collapseValue
|
|
594
581
|
}, {
|
|
@@ -619,8 +606,12 @@ const __default__ = {
|
|
|
619
606
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minBaseHeight,
|
|
620
607
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxBaseHeight,
|
|
621
608
|
onChange: _cache[1] || (_cache[1] = $event => paramsChanged('baseHeight'))
|
|
622
|
-
}, null, 8
|
|
623
|
-
|
|
609
|
+
}, null, 8
|
|
610
|
+
/* PROPS */
|
|
611
|
+
, ["modelValue", "min", "max"])]),
|
|
612
|
+
_: 1
|
|
613
|
+
/* STABLE */
|
|
614
|
+
|
|
624
615
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
625
616
|
span: 8
|
|
626
617
|
}, {
|
|
@@ -632,14 +623,26 @@ const __default__ = {
|
|
|
632
623
|
step: 1,
|
|
633
624
|
"controls-position": "right",
|
|
634
625
|
onChange: _cache[3] || (_cache[3] = $event => paramsChanged('baseHeight'))
|
|
635
|
-
}, null, 8
|
|
636
|
-
|
|
626
|
+
}, null, 8
|
|
627
|
+
/* PROPS */
|
|
628
|
+
, ["modelValue", "min", "max"])]),
|
|
629
|
+
_: 1
|
|
630
|
+
/* STABLE */
|
|
631
|
+
|
|
637
632
|
})]),
|
|
638
|
-
_: 1
|
|
633
|
+
_: 1
|
|
634
|
+
/* STABLE */
|
|
635
|
+
|
|
639
636
|
})]),
|
|
640
|
-
_: 1
|
|
641
|
-
|
|
642
|
-
|
|
637
|
+
_: 1
|
|
638
|
+
/* STABLE */
|
|
639
|
+
|
|
640
|
+
}, 8
|
|
641
|
+
/* PROPS */
|
|
642
|
+
, ["label"])]),
|
|
643
|
+
_: 1
|
|
644
|
+
/* STABLE */
|
|
645
|
+
|
|
643
646
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
644
647
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
|
|
645
648
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).limitHeight
|
|
@@ -659,8 +662,12 @@ const __default__ = {
|
|
|
659
662
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minLimitHeight,
|
|
660
663
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxLimitHeight,
|
|
661
664
|
onChange: _cache[5] || (_cache[5] = $event => paramsChanged('limitHeight'))
|
|
662
|
-
}, null, 8
|
|
663
|
-
|
|
665
|
+
}, null, 8
|
|
666
|
+
/* PROPS */
|
|
667
|
+
, ["modelValue", "min", "max"])]),
|
|
668
|
+
_: 1
|
|
669
|
+
/* STABLE */
|
|
670
|
+
|
|
664
671
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
665
672
|
span: 8
|
|
666
673
|
}, {
|
|
@@ -672,14 +679,26 @@ const __default__ = {
|
|
|
672
679
|
step: 1,
|
|
673
680
|
"controls-position": "right",
|
|
674
681
|
onChange: _cache[7] || (_cache[7] = $event => paramsChanged('limitHeight'))
|
|
675
|
-
}, null, 8
|
|
676
|
-
|
|
682
|
+
}, null, 8
|
|
683
|
+
/* PROPS */
|
|
684
|
+
, ["modelValue", "min", "max"])]),
|
|
685
|
+
_: 1
|
|
686
|
+
/* STABLE */
|
|
687
|
+
|
|
677
688
|
})]),
|
|
678
|
-
_: 1
|
|
689
|
+
_: 1
|
|
690
|
+
/* STABLE */
|
|
691
|
+
|
|
679
692
|
})]),
|
|
680
|
-
_: 1
|
|
681
|
-
|
|
682
|
-
|
|
693
|
+
_: 1
|
|
694
|
+
/* STABLE */
|
|
695
|
+
|
|
696
|
+
}, 8
|
|
697
|
+
/* PROPS */
|
|
698
|
+
, ["label"])]),
|
|
699
|
+
_: 1
|
|
700
|
+
/* STABLE */
|
|
701
|
+
|
|
683
702
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
684
703
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
|
|
685
704
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).limitHeightColor
|
|
@@ -688,10 +707,18 @@ const __default__ = {
|
|
|
688
707
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).limitHeightColor,
|
|
689
708
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).limitHeightColor = $event),
|
|
690
709
|
onChange: _cache[9] || (_cache[9] = $event => paramsChanged('limitHeightColor'))
|
|
691
|
-
}, null, 8
|
|
692
|
-
|
|
693
|
-
|
|
694
|
-
|
|
710
|
+
}, null, 8
|
|
711
|
+
/* PROPS */
|
|
712
|
+
, ["modelValue"])]),
|
|
713
|
+
_: 1
|
|
714
|
+
/* STABLE */
|
|
715
|
+
|
|
716
|
+
}, 8
|
|
717
|
+
/* PROPS */
|
|
718
|
+
, ["label"])]),
|
|
719
|
+
_: 1
|
|
720
|
+
/* STABLE */
|
|
721
|
+
|
|
695
722
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
696
723
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
|
|
697
724
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).overHeightColor
|
|
@@ -700,32 +727,67 @@ const __default__ = {
|
|
|
700
727
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).overHeightColor,
|
|
701
728
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).overHeightColor = $event),
|
|
702
729
|
onChange: _cache[11] || (_cache[11] = $event => paramsChanged('overHeightColor'))
|
|
703
|
-
}, null, 8
|
|
704
|
-
|
|
705
|
-
|
|
706
|
-
|
|
730
|
+
}, null, 8
|
|
731
|
+
/* PROPS */
|
|
732
|
+
, ["modelValue"])]),
|
|
733
|
+
_: 1
|
|
734
|
+
/* STABLE */
|
|
735
|
+
|
|
736
|
+
}, 8
|
|
737
|
+
/* PROPS */
|
|
738
|
+
, ["label"])]),
|
|
739
|
+
_: 1
|
|
740
|
+
/* STABLE */
|
|
741
|
+
|
|
707
742
|
})]),
|
|
708
|
-
_: 1
|
|
709
|
-
|
|
710
|
-
|
|
711
|
-
|
|
712
|
-
|
|
713
|
-
|
|
743
|
+
_: 1
|
|
744
|
+
/* STABLE */
|
|
745
|
+
|
|
746
|
+
}, 8
|
|
747
|
+
/* PROPS */
|
|
748
|
+
, ["label-width"])]),
|
|
749
|
+
_: 1
|
|
750
|
+
/* STABLE */
|
|
751
|
+
|
|
752
|
+
}, 8
|
|
753
|
+
/* PROPS */
|
|
754
|
+
, ["title"])]),
|
|
755
|
+
_: 1
|
|
756
|
+
/* STABLE */
|
|
757
|
+
|
|
758
|
+
}, 8
|
|
759
|
+
/* PROPS */
|
|
760
|
+
, ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
714
761
|
onClick: _cache[12] || (_cache[12] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startAnalysis(), ["stop"])),
|
|
715
762
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startAnalysis,
|
|
716
763
|
type: "primary"
|
|
717
764
|
}, {
|
|
718
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startAnalysis), 1
|
|
719
|
-
|
|
720
|
-
|
|
765
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startAnalysis), 1
|
|
766
|
+
/* TEXT */
|
|
767
|
+
)]),
|
|
768
|
+
_: 1
|
|
769
|
+
/* STABLE */
|
|
770
|
+
|
|
771
|
+
}, 8
|
|
772
|
+
/* PROPS */
|
|
773
|
+
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
721
774
|
onClick: _cache[13] || (_cache[13] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clearResult(), ["stop"])),
|
|
722
775
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult
|
|
723
776
|
}, {
|
|
724
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult), 1
|
|
725
|
-
|
|
726
|
-
|
|
777
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult), 1
|
|
778
|
+
/* TEXT */
|
|
779
|
+
)]),
|
|
780
|
+
_: 1
|
|
781
|
+
/* STABLE */
|
|
782
|
+
|
|
783
|
+
}, 8
|
|
784
|
+
/* PROPS */
|
|
785
|
+
, ["title"])])])], 2
|
|
786
|
+
/* CLASS */
|
|
787
|
+
);
|
|
727
788
|
};
|
|
728
789
|
}
|
|
790
|
+
|
|
729
791
|
}));
|
|
730
792
|
;// CONCATENATED MODULE: ./src/webgl/limitheightanalysis/LimitHeightAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
731
793
|
|
|
@@ -747,11 +809,13 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
|
747
809
|
|
|
748
810
|
|
|
749
811
|
|
|
812
|
+
|
|
750
813
|
LimitHeightAnalysis.install = (Vue, opts) => {
|
|
751
814
|
init_js_default()(Vue, opts);
|
|
752
815
|
Vue.component(LimitHeightAnalysis.name, LimitHeightAnalysis);
|
|
753
816
|
};
|
|
754
817
|
|
|
818
|
+
|
|
755
819
|
}();
|
|
756
820
|
/******/ return __webpack_exports__;
|
|
757
821
|
/******/ })()
|