@kq_npm/client3d_webgl_vue 4.5.28-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 +27093 -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 +20321 -7165
- 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 +27093 -14116
- package/sceneset/index.js +864 -350
- package/scenetohdimage/index.js +297 -159
- package/scenetohdimage/style/scenetohdimage.css +1 -1
- package/sceneview/index.js +27093 -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/floodanalysis/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/const-image"), 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/_utils/const-image", "@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/_utils/const-image", "@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/_utils/const-image"), 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/_utils/const-image"], 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__6277__, __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,20 +42,6 @@ module.exports = require("@kq_npm/client_icons_vue");
|
|
|
40
42
|
|
|
41
43
|
/***/ }),
|
|
42
44
|
|
|
43
|
-
/***/ 8470:
|
|
44
|
-
/***/ (function(module) {
|
|
45
|
-
|
|
46
|
-
module.exports = require("core-js/modules/esnext.iterator.constructor.js");
|
|
47
|
-
|
|
48
|
-
/***/ }),
|
|
49
|
-
|
|
50
|
-
/***/ 8697:
|
|
51
|
-
/***/ (function(module) {
|
|
52
|
-
|
|
53
|
-
module.exports = require("core-js/modules/esnext.iterator.find.js");
|
|
54
|
-
|
|
55
|
-
/***/ }),
|
|
56
|
-
|
|
57
45
|
/***/ 9389:
|
|
58
46
|
/***/ (function(module) {
|
|
59
47
|
|
|
@@ -103,59 +91,27 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
|
103
91
|
|
|
104
92
|
/***/ }),
|
|
105
93
|
|
|
106
|
-
/***/
|
|
94
|
+
/***/ 8270:
|
|
107
95
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
108
96
|
|
|
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.");
|
|
97
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
98
|
+
/* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
|
|
99
|
+
/* harmony export */ });
|
|
100
|
+
function _defineProperty(obj, key, value) {
|
|
101
|
+
if (key in obj) {
|
|
102
|
+
Object.defineProperty(obj, key, {
|
|
103
|
+
value: value,
|
|
104
|
+
enumerable: true,
|
|
105
|
+
configurable: true,
|
|
106
|
+
writable: true
|
|
107
|
+
});
|
|
108
|
+
} else {
|
|
109
|
+
obj[key] = value;
|
|
135
110
|
}
|
|
136
|
-
return ("string" === r ? String : Number)(t);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
140
|
-
|
|
141
111
|
|
|
142
|
-
|
|
143
|
-
var i = toPrimitive(t, "string");
|
|
144
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
112
|
+
return obj;
|
|
145
113
|
}
|
|
146
114
|
|
|
147
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
148
|
-
|
|
149
|
-
function _defineProperty(e, r, t) {
|
|
150
|
-
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
151
|
-
value: t,
|
|
152
|
-
enumerable: !0,
|
|
153
|
-
configurable: !0,
|
|
154
|
-
writable: !0
|
|
155
|
-
}) : e[r] = t, e;
|
|
156
|
-
}
|
|
157
|
-
|
|
158
|
-
|
|
159
115
|
/***/ })
|
|
160
116
|
|
|
161
117
|
/******/ });
|
|
@@ -238,16 +194,12 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
238
194
|
"default": function() { return /* reexport */ FloodAnalysis; }
|
|
239
195
|
});
|
|
240
196
|
|
|
241
|
-
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
|
|
242
|
-
var esnext_iterator_constructor_js_ = __webpack_require__(8470);
|
|
243
|
-
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.find.js"
|
|
244
|
-
var esnext_iterator_find_js_ = __webpack_require__(8697);
|
|
245
197
|
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
246
198
|
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
247
199
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
248
200
|
var gis_utils_ = __webpack_require__(7135);
|
|
249
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
250
|
-
var defineProperty = __webpack_require__(
|
|
201
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
202
|
+
var defineProperty = __webpack_require__(8270);
|
|
251
203
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
|
|
252
204
|
var const_image_ = __webpack_require__(6277);
|
|
253
205
|
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
@@ -255,30 +207,35 @@ var message = __webpack_require__(1349);
|
|
|
255
207
|
;// CONCATENATED MODULE: ./src/webgl/floodanalysis/FloodAnalysisViewModel.js
|
|
256
208
|
|
|
257
209
|
|
|
258
|
-
|
|
259
210
|
/*
|
|
260
211
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
261
212
|
* All rights reserved.
|
|
262
213
|
*/
|
|
214
|
+
//地形淹没分析逻辑类
|
|
263
215
|
|
|
264
|
-
//地形淹没分析逻辑类
|
|
265
216
|
|
|
266
217
|
class FloodAnalysisViewModel {
|
|
218
|
+
//地形淹没三维对象
|
|
219
|
+
//模型淹没三维对象
|
|
220
|
+
//测量三维对象
|
|
221
|
+
//测量结果
|
|
222
|
+
//淹没模式
|
|
267
223
|
constructor(scenceView, options) {
|
|
268
224
|
(0,defineProperty/* default */.Z)(this, "_options", {});
|
|
225
|
+
|
|
269
226
|
(0,defineProperty/* default */.Z)(this, "_floodTerrainAnalysis", null);
|
|
270
|
-
|
|
227
|
+
|
|
271
228
|
(0,defineProperty/* default */.Z)(this, "_floodModelAnalysis", null);
|
|
272
|
-
|
|
229
|
+
|
|
273
230
|
(0,defineProperty/* default */.Z)(this, "_measureHandler", null);
|
|
274
|
-
|
|
231
|
+
|
|
275
232
|
(0,defineProperty/* default */.Z)(this, "_measureResult", null);
|
|
276
|
-
|
|
233
|
+
|
|
277
234
|
(0,defineProperty/* default */.Z)(this, "_mode", 0);
|
|
278
|
-
|
|
235
|
+
|
|
279
236
|
(0,defineProperty/* default */.Z)(this, "_language", {});
|
|
280
|
-
|
|
281
|
-
//淹没纹理图片集合
|
|
237
|
+
|
|
238
|
+
(0,defineProperty/* default */.Z)(this, "_colorImages", [//淹没纹理图片集合
|
|
282
239
|
{
|
|
283
240
|
value: "0",
|
|
284
241
|
src: const_image_.RED_TO_PURPLE_URL
|
|
@@ -289,13 +246,14 @@ class FloodAnalysisViewModel {
|
|
|
289
246
|
value: "2",
|
|
290
247
|
src: const_image_.GREEN_TO_BLUE_URL
|
|
291
248
|
}]);
|
|
249
|
+
|
|
292
250
|
this._language = scenceView._language;
|
|
293
251
|
this._mode = options.mode;
|
|
294
252
|
options.viewer = scenceView._viewer;
|
|
295
253
|
options.viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
296
254
|
options.colorImage = this.getImagePath(options.colorImage);
|
|
297
|
-
this._options = options;
|
|
298
|
-
|
|
255
|
+
this._options = options; //this._floodModelAnalysis = new Cesium.Kq3dFloodModelAnalysis(options);
|
|
256
|
+
|
|
299
257
|
this._floodModelAnalysis = scenceView._floodModelAnalysis;
|
|
300
258
|
this._floodModelAnalysis.moveMode = options.moveMode;
|
|
301
259
|
this._floodModelAnalysis.speed = options.speed;
|
|
@@ -305,54 +263,66 @@ class FloodAnalysisViewModel {
|
|
|
305
263
|
this._floodModelAnalysis.colorImage = options.colorImage;
|
|
306
264
|
var that = this;
|
|
307
265
|
this._measureHandler = new Cesium.Kq3dMeasureHandler(scenceView._viewer);
|
|
266
|
+
|
|
308
267
|
this._measureHandler.measureEvent.addEventListener(function (result) {
|
|
309
268
|
that._measureResult = result;
|
|
310
269
|
result.measureResult.label.show = false;
|
|
311
270
|
});
|
|
271
|
+
|
|
312
272
|
this._measureHandler.activeEvent.addEventListener(function (ret) {
|
|
313
273
|
if (ret == false) {
|
|
314
274
|
if (that._measureResult) {
|
|
315
275
|
if (that._mode === 0) {
|
|
316
276
|
that._options.positions = that._measureResult.positions;
|
|
277
|
+
|
|
317
278
|
if (!that._floodTerrainAnalysis) {
|
|
318
279
|
that._floodTerrainAnalysis = new Cesium.Kq3dFloodTerrainAnalysis(that._options);
|
|
319
280
|
} else {
|
|
320
281
|
that._floodTerrainAnalysis.positions = that._measureResult.positions;
|
|
321
282
|
}
|
|
283
|
+
|
|
322
284
|
that._floodTerrainAnalysis.start();
|
|
323
285
|
} else if (that._mode === 1) {
|
|
324
286
|
if (that._measureResult.positions && that._measureResult.positions.length > 0) {
|
|
325
287
|
that._floodModelAnalysis.center = that._measureResult.positions[0];
|
|
326
288
|
}
|
|
289
|
+
|
|
327
290
|
let polygon = Cesium.PolygonGeometry.fromPositions({
|
|
328
291
|
positions: that._measureResult.positions
|
|
329
292
|
});
|
|
293
|
+
|
|
330
294
|
that._floodModelAnalysis.addPolygon(polygon);
|
|
295
|
+
|
|
331
296
|
that._floodModelAnalysis.start();
|
|
332
297
|
}
|
|
298
|
+
|
|
333
299
|
that._measureResult.measureResult.destroy();
|
|
334
300
|
}
|
|
335
301
|
}
|
|
336
302
|
});
|
|
337
|
-
}
|
|
303
|
+
} //获取图片路径
|
|
304
|
+
|
|
338
305
|
|
|
339
|
-
//获取图片路径
|
|
340
306
|
getImagePath(value) {
|
|
341
307
|
var imagePath = '';
|
|
308
|
+
|
|
342
309
|
var image = this._colorImages.find(item => item.value === value);
|
|
310
|
+
|
|
343
311
|
if (image) {
|
|
344
312
|
imagePath = image.src;
|
|
345
313
|
}
|
|
314
|
+
|
|
346
315
|
return imagePath;
|
|
347
|
-
}
|
|
316
|
+
} //开始分析
|
|
317
|
+
|
|
348
318
|
|
|
349
|
-
//开始分析
|
|
350
319
|
start() {
|
|
351
320
|
// 判断是否添加了地形
|
|
352
321
|
if (this._mode === 0) {
|
|
353
322
|
if (this._floodModelAnalysis.viewer.terrainProvider.availability) {
|
|
354
323
|
if (this._floodModelAnalysis.viewer.terrainProvider && !this._floodModelAnalysis.viewer.terrainProvider._heightmapStructure) {
|
|
355
324
|
this.clear();
|
|
325
|
+
|
|
356
326
|
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
|
|
357
327
|
} else {
|
|
358
328
|
(0,message/* default */.Z)({
|
|
@@ -369,14 +339,17 @@ class FloodAnalysisViewModel {
|
|
|
369
339
|
} else if (this._mode === 1) {
|
|
370
340
|
var modelFlag = false;
|
|
371
341
|
var models = this._floodModelAnalysis.viewer.scene.primitives._primitives;
|
|
342
|
+
|
|
372
343
|
for (let i = 0; i < models.length; i++) {
|
|
373
344
|
if (models[i] instanceof Cesium.Cesium3DTileset) {
|
|
374
345
|
modelFlag = true;
|
|
375
346
|
break;
|
|
376
347
|
}
|
|
377
348
|
}
|
|
349
|
+
|
|
378
350
|
if (modelFlag) {
|
|
379
351
|
this.clear();
|
|
352
|
+
|
|
380
353
|
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
|
|
381
354
|
} else {
|
|
382
355
|
(0,message/* default */.Z)({
|
|
@@ -385,11 +358,12 @@ class FloodAnalysisViewModel {
|
|
|
385
358
|
});
|
|
386
359
|
}
|
|
387
360
|
}
|
|
388
|
-
}
|
|
361
|
+
} //清除全部结果
|
|
362
|
+
|
|
389
363
|
|
|
390
|
-
//清除全部结果
|
|
391
364
|
clear() {
|
|
392
365
|
this._measureHandler.stopMeasure();
|
|
366
|
+
|
|
393
367
|
if (this._floodTerrainAnalysis) {
|
|
394
368
|
var options = {
|
|
395
369
|
viewer: this._floodTerrainAnalysis.viewer,
|
|
@@ -401,15 +375,18 @@ class FloodAnalysisViewModel {
|
|
|
401
375
|
maxHeight: this._floodTerrainAnalysis.maxHeight,
|
|
402
376
|
colorImage: this._floodTerrainAnalysis.colorImage
|
|
403
377
|
};
|
|
378
|
+
|
|
404
379
|
this._floodTerrainAnalysis.destroy();
|
|
380
|
+
|
|
405
381
|
this._floodTerrainAnalysis = new Cesium.Kq3dFloodTerrainAnalysis(options);
|
|
406
382
|
}
|
|
383
|
+
|
|
407
384
|
if (this._floodModelAnalysis) {
|
|
408
385
|
this._floodModelAnalysis.reset();
|
|
409
386
|
}
|
|
410
|
-
}
|
|
387
|
+
} //销毁
|
|
388
|
+
|
|
411
389
|
|
|
412
|
-
//销毁
|
|
413
390
|
destroy() {
|
|
414
391
|
this._floodTerrainAnalysis && this._floodTerrainAnalysis.destroy();
|
|
415
392
|
this._floodTerrainAnalysis = null;
|
|
@@ -417,53 +394,60 @@ class FloodAnalysisViewModel {
|
|
|
417
394
|
this._floodModelAnalysis = null;
|
|
418
395
|
this._measureHandler && this._measureHandler.destroy();
|
|
419
396
|
this._measureHandler = null;
|
|
420
|
-
}
|
|
397
|
+
} //设置淹没模式
|
|
398
|
+
|
|
421
399
|
|
|
422
|
-
//设置淹没模式
|
|
423
400
|
setMoveMode(mode) {
|
|
424
401
|
this._mode = Number(mode);
|
|
425
|
-
}
|
|
426
|
-
|
|
402
|
+
} //设置淹没方向
|
|
403
|
+
|
|
404
|
+
|
|
427
405
|
setMoveDirection(direction) {
|
|
428
406
|
direction = Number(direction);
|
|
429
407
|
this._options.moveMode = direction;
|
|
430
408
|
if (this._floodTerrainAnalysis) this._floodTerrainAnalysis.moveMode = direction;
|
|
431
409
|
if (this._floodModelAnalysis) this._floodModelAnalysis.moveMode = direction;
|
|
432
|
-
}
|
|
433
|
-
|
|
410
|
+
} //设置淹没速度
|
|
411
|
+
|
|
412
|
+
|
|
434
413
|
setMoveSpeed(speed) {
|
|
435
414
|
speed = Number(speed);
|
|
436
415
|
this._options.speed = speed;
|
|
437
416
|
if (this._floodTerrainAnalysis) this._floodTerrainAnalysis.speed = speed;
|
|
438
417
|
if (this._floodModelAnalysis) this._floodModelAnalysis.speed = speed;
|
|
439
|
-
}
|
|
440
|
-
|
|
418
|
+
} //设置淹没纹理透明度
|
|
419
|
+
|
|
420
|
+
|
|
441
421
|
setMoveAlpha(alpha) {
|
|
442
422
|
alpha = Number(alpha);
|
|
443
423
|
this._options.alpha = alpha;
|
|
444
424
|
if (this._floodTerrainAnalysis) this._floodTerrainAnalysis.alpha = alpha;
|
|
445
425
|
if (this._floodModelAnalysis) this._floodModelAnalysis.alpha = alpha;
|
|
446
|
-
}
|
|
447
|
-
|
|
426
|
+
} //设置最小淹没高度
|
|
427
|
+
|
|
428
|
+
|
|
448
429
|
setMoveMinHeight(minHeight) {
|
|
449
430
|
minHeight = Number(minHeight);
|
|
450
431
|
this._options.minHeight = minHeight;
|
|
451
432
|
if (this._floodTerrainAnalysis) this._floodTerrainAnalysis.minHeight = minHeight;
|
|
452
433
|
if (this._floodModelAnalysis) this._floodModelAnalysis.minHeight = minHeight;
|
|
453
|
-
}
|
|
454
|
-
|
|
434
|
+
} //设置最大淹没高度
|
|
435
|
+
|
|
436
|
+
|
|
455
437
|
setMoveMaxHeight(maxHeight) {
|
|
456
438
|
maxHeight = Number(maxHeight);
|
|
457
439
|
this._options.maxHeight = maxHeight;
|
|
458
440
|
if (this._floodTerrainAnalysis) this._floodTerrainAnalysis.maxHeight = maxHeight;
|
|
459
441
|
if (this._floodModelAnalysis) this._floodModelAnalysis.maxHeight = maxHeight;
|
|
460
|
-
}
|
|
461
|
-
|
|
442
|
+
} //设置淹没填充纹理
|
|
443
|
+
|
|
444
|
+
|
|
462
445
|
setMoveImage(image) {
|
|
463
446
|
this._options.colorImage = image;
|
|
464
447
|
if (this._floodTerrainAnalysis) this._floodTerrainAnalysis.colorImage = image;
|
|
465
448
|
if (this._floodModelAnalysis) this._floodModelAnalysis.colorImage = image;
|
|
466
449
|
}
|
|
450
|
+
|
|
467
451
|
}
|
|
468
452
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
469
453
|
var client_icons_vue_ = __webpack_require__(348);
|
|
@@ -471,9 +455,7 @@ var client_icons_vue_ = __webpack_require__(348);
|
|
|
471
455
|
var util_ = __webpack_require__(3458);
|
|
472
456
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
473
457
|
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
474
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/floodanalysis/FloodAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
475
|
-
|
|
476
|
-
|
|
458
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/webgl/floodanalysis/FloodAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
477
459
|
|
|
478
460
|
const _hoisted_1 = {
|
|
479
461
|
class: "kq3d-flood-analysis-box"
|
|
@@ -510,6 +492,7 @@ const __default__ = {
|
|
|
510
492
|
type: Boolean,
|
|
511
493
|
default: true
|
|
512
494
|
},
|
|
495
|
+
|
|
513
496
|
/**
|
|
514
497
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
515
498
|
*/
|
|
@@ -539,6 +522,7 @@ const __default__ = {
|
|
|
539
522
|
default: true
|
|
540
523
|
}
|
|
541
524
|
},
|
|
525
|
+
|
|
542
526
|
setup(__props, {
|
|
543
527
|
expose: __expose
|
|
544
528
|
}) {
|
|
@@ -546,9 +530,8 @@ const __default__ = {
|
|
|
546
530
|
const {
|
|
547
531
|
proxy
|
|
548
532
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
549
|
-
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
|
|
533
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]); // 淹没色调图片
|
|
550
534
|
|
|
551
|
-
// 淹没色调图片
|
|
552
535
|
const colorImages = [{
|
|
553
536
|
value: "0",
|
|
554
537
|
src: const_image_.RED_TO_PURPLE_URL
|
|
@@ -558,9 +541,7 @@ const __default__ = {
|
|
|
558
541
|
}, {
|
|
559
542
|
value: "2",
|
|
560
543
|
src: const_image_.GREEN_TO_BLUE_URL
|
|
561
|
-
}];
|
|
562
|
-
|
|
563
|
-
// 获取组件传参
|
|
544
|
+
}]; // 获取组件传参
|
|
564
545
|
|
|
565
546
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
566
547
|
collapseValue: props.settingParams && props.settingParams.collapseValue || ((props.settingParams && props.settingParams.collapseValue) == '' ? "" : "setting"),
|
|
@@ -596,17 +577,15 @@ const __default__ = {
|
|
|
596
577
|
maxFloodMaxHeight: props.settingParams && props.settingParams.maxFloodMaxHeight || 10000,
|
|
597
578
|
// 淹没最大高度范围的最大值
|
|
598
579
|
floodColorImage: props.settingParams && props.settingParams.floodColorImage || "0" // 淹没纹理色带值
|
|
580
|
+
|
|
599
581
|
});
|
|
600
|
-
let viewModel = null;
|
|
582
|
+
let viewModel = null; // 组件容器Ref
|
|
601
583
|
|
|
602
|
-
//
|
|
603
|
-
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
584
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
604
585
|
|
|
605
|
-
// 生成组件默认header
|
|
606
586
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
607
|
-
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
587
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
|
|
608
588
|
|
|
609
|
-
// 国际化
|
|
610
589
|
let {
|
|
611
590
|
locale,
|
|
612
591
|
messages
|
|
@@ -642,91 +621,117 @@ const __default__ = {
|
|
|
642
621
|
}
|
|
643
622
|
});
|
|
644
623
|
});
|
|
645
|
-
|
|
646
624
|
/**
|
|
647
625
|
* @description 监听header生成
|
|
648
626
|
*/
|
|
627
|
+
|
|
649
628
|
const watchCreateHeaderTemp = () => {
|
|
650
629
|
if (props.showHeaderTemp) {
|
|
651
630
|
// 生成headerTemp
|
|
652
631
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
653
632
|
}
|
|
654
|
-
};
|
|
633
|
+
}; //获取图片路径
|
|
634
|
+
|
|
655
635
|
|
|
656
|
-
//获取图片路径
|
|
657
636
|
function getImagePath(value) {
|
|
658
637
|
var imagePath = "";
|
|
659
638
|
var image = colorImages.find(item => item.value === value);
|
|
639
|
+
|
|
660
640
|
if (image) {
|
|
661
641
|
imagePath = image.src;
|
|
662
642
|
}
|
|
643
|
+
|
|
663
644
|
return imagePath;
|
|
664
|
-
}
|
|
645
|
+
} // 开始分析
|
|
646
|
+
|
|
665
647
|
|
|
666
|
-
// 开始分析
|
|
667
648
|
function startAnalysis() {
|
|
668
649
|
viewModel && viewModel.start();
|
|
669
|
-
}
|
|
650
|
+
} // 清除结果
|
|
651
|
+
|
|
670
652
|
|
|
671
|
-
// 清除结果
|
|
672
653
|
function clearResult() {
|
|
673
654
|
viewModel && viewModel.clear();
|
|
674
|
-
}
|
|
675
|
-
|
|
655
|
+
} // 参数切换
|
|
656
|
+
|
|
657
|
+
|
|
676
658
|
function paramsChanged(key) {
|
|
677
659
|
if (!viewModel) return;
|
|
660
|
+
|
|
678
661
|
switch (key) {
|
|
679
662
|
case "mode":
|
|
680
663
|
viewModel.setMoveMode(formItem.floodMode);
|
|
681
664
|
break;
|
|
665
|
+
|
|
682
666
|
case "moveMode":
|
|
683
667
|
viewModel.setMoveDirection(formItem.floodDirection);
|
|
684
668
|
break;
|
|
669
|
+
|
|
685
670
|
case "speed":
|
|
686
671
|
viewModel.setMoveSpeed(formItem.floodSpeed);
|
|
687
672
|
break;
|
|
673
|
+
|
|
688
674
|
case "alpha":
|
|
689
675
|
viewModel.setMoveAlpha(formItem.floodAlpha);
|
|
690
676
|
break;
|
|
677
|
+
|
|
691
678
|
case "minHeight":
|
|
692
679
|
viewModel.setMoveMinHeight(formItem.floodMinHeight);
|
|
693
680
|
break;
|
|
681
|
+
|
|
694
682
|
case "maxHeight":
|
|
695
683
|
viewModel.setMoveMaxHeight(formItem.floodMaxHeight);
|
|
696
684
|
break;
|
|
685
|
+
|
|
697
686
|
case "colorImage":
|
|
698
687
|
var imageUrl = getImagePath(formItem.floodColorImage);
|
|
699
688
|
viewModel.setMoveImage(imageUrl);
|
|
700
689
|
break;
|
|
690
|
+
|
|
701
691
|
default:
|
|
702
692
|
break;
|
|
703
693
|
}
|
|
704
|
-
}
|
|
694
|
+
} // 销毁
|
|
695
|
+
|
|
705
696
|
|
|
706
|
-
// 销毁
|
|
707
697
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
708
698
|
viewModel && viewModel.destroy();
|
|
709
699
|
});
|
|
700
|
+
|
|
710
701
|
__expose({
|
|
711
702
|
startAnalysis,
|
|
712
703
|
clearResult,
|
|
713
704
|
getImagePath,
|
|
714
705
|
paramsChanged
|
|
715
706
|
});
|
|
707
|
+
|
|
716
708
|
return (_ctx, _cache) => {
|
|
717
709
|
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
710
|
+
|
|
718
711
|
const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");
|
|
712
|
+
|
|
719
713
|
const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-select");
|
|
714
|
+
|
|
720
715
|
const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
|
|
716
|
+
|
|
721
717
|
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
718
|
+
|
|
722
719
|
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
720
|
+
|
|
723
721
|
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
|
|
722
|
+
|
|
724
723
|
const _component_kq_radio = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-radio");
|
|
724
|
+
|
|
725
725
|
const _component_kq_radio_group = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-radio-group");
|
|
726
|
+
|
|
726
727
|
const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
|
|
728
|
+
|
|
727
729
|
const _component_kq_collapse_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse-item");
|
|
730
|
+
|
|
728
731
|
const _component_kq_collapse = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse");
|
|
732
|
+
|
|
729
733
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
734
|
+
|
|
730
735
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
731
736
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-flood-analysis", {
|
|
732
737
|
'kq-box-shadow': __props.showShadow
|
|
@@ -737,11 +742,17 @@ const __default__ = {
|
|
|
737
742
|
key: 0,
|
|
738
743
|
ref_key: "headerTempRef",
|
|
739
744
|
ref: headerTempRef
|
|
740
|
-
}, null, 512
|
|
745
|
+
}, null, 512
|
|
746
|
+
/* NEED_PATCH */
|
|
747
|
+
)) : (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, {
|
|
741
748
|
class: "kq3d-flood-analysis-tip"
|
|
742
749
|
}, {
|
|
743
|
-
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).floodTips), 1
|
|
744
|
-
|
|
750
|
+
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).floodTips), 1
|
|
751
|
+
/* TEXT */
|
|
752
|
+
)]),
|
|
753
|
+
_: 1
|
|
754
|
+
/* STABLE */
|
|
755
|
+
|
|
745
756
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse, {
|
|
746
757
|
"model-value": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).collapseValue
|
|
747
758
|
}, {
|
|
@@ -766,15 +777,29 @@ const __default__ = {
|
|
|
766
777
|
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_option, {
|
|
767
778
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).floodTerrain,
|
|
768
779
|
value: 0
|
|
769
|
-
}, null, 8
|
|
780
|
+
}, null, 8
|
|
781
|
+
/* PROPS */
|
|
782
|
+
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
770
783
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).floodModel,
|
|
771
784
|
value: 1
|
|
772
|
-
}, null, 8
|
|
773
|
-
|
|
774
|
-
|
|
775
|
-
|
|
776
|
-
|
|
777
|
-
|
|
785
|
+
}, null, 8
|
|
786
|
+
/* PROPS */
|
|
787
|
+
, ["label"])]),
|
|
788
|
+
_: 1
|
|
789
|
+
/* STABLE */
|
|
790
|
+
|
|
791
|
+
}, 8
|
|
792
|
+
/* PROPS */
|
|
793
|
+
, ["modelValue"])]),
|
|
794
|
+
_: 1
|
|
795
|
+
/* STABLE */
|
|
796
|
+
|
|
797
|
+
}, 8
|
|
798
|
+
/* PROPS */
|
|
799
|
+
, ["label"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)]),
|
|
800
|
+
_: 1
|
|
801
|
+
/* STABLE */
|
|
802
|
+
|
|
778
803
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
779
804
|
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, {
|
|
780
805
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).floodDirection
|
|
@@ -787,15 +812,29 @@ const __default__ = {
|
|
|
787
812
|
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_option, {
|
|
788
813
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).floodDirection0,
|
|
789
814
|
value: 0
|
|
790
|
-
}, null, 8
|
|
815
|
+
}, null, 8
|
|
816
|
+
/* PROPS */
|
|
817
|
+
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
791
818
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).floodDirection1,
|
|
792
819
|
value: 1
|
|
793
|
-
}, null, 8
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
|
|
820
|
+
}, null, 8
|
|
821
|
+
/* PROPS */
|
|
822
|
+
, ["label"])]),
|
|
823
|
+
_: 1
|
|
824
|
+
/* STABLE */
|
|
825
|
+
|
|
826
|
+
}, 8
|
|
827
|
+
/* PROPS */
|
|
828
|
+
, ["modelValue"])]),
|
|
829
|
+
_: 1
|
|
830
|
+
/* STABLE */
|
|
831
|
+
|
|
832
|
+
}, 8
|
|
833
|
+
/* PROPS */
|
|
834
|
+
, ["label"])]),
|
|
835
|
+
_: 1
|
|
836
|
+
/* STABLE */
|
|
837
|
+
|
|
799
838
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
800
839
|
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, {
|
|
801
840
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).floodSpeed
|
|
@@ -815,8 +854,12 @@ const __default__ = {
|
|
|
815
854
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minFloodSpeed,
|
|
816
855
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxFloodSpeed,
|
|
817
856
|
onChange: _cache[5] || (_cache[5] = $event => paramsChanged('speed'))
|
|
818
|
-
}, null, 8
|
|
819
|
-
|
|
857
|
+
}, null, 8
|
|
858
|
+
/* PROPS */
|
|
859
|
+
, ["modelValue", "min", "max"])]),
|
|
860
|
+
_: 1
|
|
861
|
+
/* STABLE */
|
|
862
|
+
|
|
820
863
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
821
864
|
span: 8
|
|
822
865
|
}, {
|
|
@@ -828,14 +871,26 @@ const __default__ = {
|
|
|
828
871
|
step: 1,
|
|
829
872
|
"controls-position": "right",
|
|
830
873
|
onChange: _cache[7] || (_cache[7] = $event => paramsChanged('speed'))
|
|
831
|
-
}, null, 8
|
|
832
|
-
|
|
874
|
+
}, null, 8
|
|
875
|
+
/* PROPS */
|
|
876
|
+
, ["modelValue", "min", "max"])]),
|
|
877
|
+
_: 1
|
|
878
|
+
/* STABLE */
|
|
879
|
+
|
|
833
880
|
})]),
|
|
834
|
-
_: 1
|
|
881
|
+
_: 1
|
|
882
|
+
/* STABLE */
|
|
883
|
+
|
|
835
884
|
})]),
|
|
836
|
-
_: 1
|
|
837
|
-
|
|
838
|
-
|
|
885
|
+
_: 1
|
|
886
|
+
/* STABLE */
|
|
887
|
+
|
|
888
|
+
}, 8
|
|
889
|
+
/* PROPS */
|
|
890
|
+
, ["label"])]),
|
|
891
|
+
_: 1
|
|
892
|
+
/* STABLE */
|
|
893
|
+
|
|
839
894
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
840
895
|
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, {
|
|
841
896
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).floodAlpha
|
|
@@ -855,8 +910,12 @@ const __default__ = {
|
|
|
855
910
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minFloodAlpha,
|
|
856
911
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxFloodAlpha,
|
|
857
912
|
onChange: _cache[9] || (_cache[9] = $event => paramsChanged('alpha'))
|
|
858
|
-
}, null, 8
|
|
859
|
-
|
|
913
|
+
}, null, 8
|
|
914
|
+
/* PROPS */
|
|
915
|
+
, ["modelValue", "step", "min", "max"])]),
|
|
916
|
+
_: 1
|
|
917
|
+
/* STABLE */
|
|
918
|
+
|
|
860
919
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
861
920
|
span: 8
|
|
862
921
|
}, {
|
|
@@ -868,14 +927,26 @@ const __default__ = {
|
|
|
868
927
|
step: 0.01,
|
|
869
928
|
"controls-position": "right",
|
|
870
929
|
onChange: _cache[11] || (_cache[11] = $event => paramsChanged('alpha'))
|
|
871
|
-
}, null, 8
|
|
872
|
-
|
|
930
|
+
}, null, 8
|
|
931
|
+
/* PROPS */
|
|
932
|
+
, ["modelValue", "min", "max", "step"])]),
|
|
933
|
+
_: 1
|
|
934
|
+
/* STABLE */
|
|
935
|
+
|
|
873
936
|
})]),
|
|
874
|
-
_: 1
|
|
937
|
+
_: 1
|
|
938
|
+
/* STABLE */
|
|
939
|
+
|
|
875
940
|
})]),
|
|
876
|
-
_: 1
|
|
877
|
-
|
|
878
|
-
|
|
941
|
+
_: 1
|
|
942
|
+
/* STABLE */
|
|
943
|
+
|
|
944
|
+
}, 8
|
|
945
|
+
/* PROPS */
|
|
946
|
+
, ["label"])]),
|
|
947
|
+
_: 1
|
|
948
|
+
/* STABLE */
|
|
949
|
+
|
|
879
950
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
880
951
|
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, {
|
|
881
952
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).floodMinHeight
|
|
@@ -895,8 +966,12 @@ const __default__ = {
|
|
|
895
966
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minFloodMinHeight,
|
|
896
967
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxFloodMinHeight,
|
|
897
968
|
onChange: _cache[13] || (_cache[13] = $event => paramsChanged('minHeight'))
|
|
898
|
-
}, null, 8
|
|
899
|
-
|
|
969
|
+
}, null, 8
|
|
970
|
+
/* PROPS */
|
|
971
|
+
, ["modelValue", "step", "min", "max"])]),
|
|
972
|
+
_: 1
|
|
973
|
+
/* STABLE */
|
|
974
|
+
|
|
900
975
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
901
976
|
span: 8
|
|
902
977
|
}, {
|
|
@@ -908,14 +983,26 @@ const __default__ = {
|
|
|
908
983
|
step: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).floodHeightStep,
|
|
909
984
|
"controls-position": "right",
|
|
910
985
|
onChange: _cache[15] || (_cache[15] = $event => paramsChanged('minHeight'))
|
|
911
|
-
}, null, 8
|
|
912
|
-
|
|
986
|
+
}, null, 8
|
|
987
|
+
/* PROPS */
|
|
988
|
+
, ["modelValue", "min", "max", "step"])]),
|
|
989
|
+
_: 1
|
|
990
|
+
/* STABLE */
|
|
991
|
+
|
|
913
992
|
})]),
|
|
914
|
-
_: 1
|
|
993
|
+
_: 1
|
|
994
|
+
/* STABLE */
|
|
995
|
+
|
|
915
996
|
})]),
|
|
916
|
-
_: 1
|
|
917
|
-
|
|
918
|
-
|
|
997
|
+
_: 1
|
|
998
|
+
/* STABLE */
|
|
999
|
+
|
|
1000
|
+
}, 8
|
|
1001
|
+
/* PROPS */
|
|
1002
|
+
, ["label"])]),
|
|
1003
|
+
_: 1
|
|
1004
|
+
/* STABLE */
|
|
1005
|
+
|
|
919
1006
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
920
1007
|
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, {
|
|
921
1008
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).floodMaxHeight
|
|
@@ -935,8 +1022,12 @@ const __default__ = {
|
|
|
935
1022
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minFloodMaxHeight,
|
|
936
1023
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxFloodMaxHeight,
|
|
937
1024
|
onChange: _cache[17] || (_cache[17] = $event => paramsChanged('maxHeight'))
|
|
938
|
-
}, null, 8
|
|
939
|
-
|
|
1025
|
+
}, null, 8
|
|
1026
|
+
/* PROPS */
|
|
1027
|
+
, ["modelValue", "step", "min", "max"])]),
|
|
1028
|
+
_: 1
|
|
1029
|
+
/* STABLE */
|
|
1030
|
+
|
|
940
1031
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
941
1032
|
span: 8
|
|
942
1033
|
}, {
|
|
@@ -948,14 +1039,26 @@ const __default__ = {
|
|
|
948
1039
|
step: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).floodHeightStep,
|
|
949
1040
|
"controls-position": "right",
|
|
950
1041
|
onChange: _cache[19] || (_cache[19] = $event => paramsChanged('maxHeight'))
|
|
951
|
-
}, null, 8
|
|
952
|
-
|
|
1042
|
+
}, null, 8
|
|
1043
|
+
/* PROPS */
|
|
1044
|
+
, ["modelValue", "min", "max", "step"])]),
|
|
1045
|
+
_: 1
|
|
1046
|
+
/* STABLE */
|
|
1047
|
+
|
|
953
1048
|
})]),
|
|
954
|
-
_: 1
|
|
1049
|
+
_: 1
|
|
1050
|
+
/* STABLE */
|
|
1051
|
+
|
|
955
1052
|
})]),
|
|
956
|
-
_: 1
|
|
957
|
-
|
|
958
|
-
|
|
1053
|
+
_: 1
|
|
1054
|
+
/* STABLE */
|
|
1055
|
+
|
|
1056
|
+
}, 8
|
|
1057
|
+
/* PROPS */
|
|
1058
|
+
, ["label"])]),
|
|
1059
|
+
_: 1
|
|
1060
|
+
/* STABLE */
|
|
1061
|
+
|
|
959
1062
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
960
1063
|
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, {
|
|
961
1064
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).floodColorImage
|
|
@@ -974,37 +1077,80 @@ const __default__ = {
|
|
|
974
1077
|
class: "kq3d-flood-analysis-legend",
|
|
975
1078
|
src: item.src,
|
|
976
1079
|
alt: ""
|
|
977
|
-
}, null, 8
|
|
978
|
-
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
|
|
982
|
-
|
|
983
|
-
|
|
984
|
-
|
|
985
|
-
|
|
1080
|
+
}, null, 8
|
|
1081
|
+
/* PROPS */
|
|
1082
|
+
, _hoisted_2)]),
|
|
1083
|
+
_: 2
|
|
1084
|
+
/* DYNAMIC */
|
|
1085
|
+
|
|
1086
|
+
}, 1032
|
|
1087
|
+
/* PROPS, DYNAMIC_SLOTS */
|
|
1088
|
+
, ["label"]);
|
|
1089
|
+
}), 64
|
|
1090
|
+
/* STABLE_FRAGMENT */
|
|
1091
|
+
))]),
|
|
1092
|
+
_: 1
|
|
1093
|
+
/* STABLE */
|
|
1094
|
+
|
|
1095
|
+
}, 8
|
|
1096
|
+
/* PROPS */
|
|
1097
|
+
, ["modelValue"])]),
|
|
1098
|
+
_: 1
|
|
1099
|
+
/* STABLE */
|
|
1100
|
+
|
|
1101
|
+
}, 8
|
|
1102
|
+
/* PROPS */
|
|
1103
|
+
, ["label"])]),
|
|
1104
|
+
_: 1
|
|
1105
|
+
/* STABLE */
|
|
1106
|
+
|
|
986
1107
|
})]),
|
|
987
|
-
_: 1
|
|
1108
|
+
_: 1
|
|
1109
|
+
/* STABLE */
|
|
1110
|
+
|
|
988
1111
|
})]),
|
|
989
|
-
_: 1
|
|
990
|
-
|
|
991
|
-
|
|
992
|
-
|
|
1112
|
+
_: 1
|
|
1113
|
+
/* STABLE */
|
|
1114
|
+
|
|
1115
|
+
}, 8
|
|
1116
|
+
/* PROPS */
|
|
1117
|
+
, ["title"])]),
|
|
1118
|
+
_: 1
|
|
1119
|
+
/* STABLE */
|
|
1120
|
+
|
|
1121
|
+
}, 8
|
|
1122
|
+
/* PROPS */
|
|
1123
|
+
, ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
993
1124
|
onClick: _cache[22] || (_cache[22] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startAnalysis(), ["stop"])),
|
|
994
1125
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startAnalysis,
|
|
995
1126
|
type: "primary"
|
|
996
1127
|
}, {
|
|
997
|
-
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
|
|
998
|
-
|
|
999
|
-
|
|
1128
|
+
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
|
|
1129
|
+
/* TEXT */
|
|
1130
|
+
)]),
|
|
1131
|
+
_: 1
|
|
1132
|
+
/* STABLE */
|
|
1133
|
+
|
|
1134
|
+
}, 8
|
|
1135
|
+
/* PROPS */
|
|
1136
|
+
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1000
1137
|
onClick: _cache[23] || (_cache[23] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clearResult(), ["stop"])),
|
|
1001
1138
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult
|
|
1002
1139
|
}, {
|
|
1003
|
-
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
|
|
1004
|
-
|
|
1005
|
-
|
|
1140
|
+
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
|
|
1141
|
+
/* TEXT */
|
|
1142
|
+
)]),
|
|
1143
|
+
_: 1
|
|
1144
|
+
/* STABLE */
|
|
1145
|
+
|
|
1146
|
+
}, 8
|
|
1147
|
+
/* PROPS */
|
|
1148
|
+
, ["title"])])])], 2
|
|
1149
|
+
/* CLASS */
|
|
1150
|
+
);
|
|
1006
1151
|
};
|
|
1007
1152
|
}
|
|
1153
|
+
|
|
1008
1154
|
}));
|
|
1009
1155
|
;// CONCATENATED MODULE: ./src/webgl/floodanalysis/FloodAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
1010
1156
|
|
|
@@ -1026,11 +1172,13 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
|
1026
1172
|
|
|
1027
1173
|
|
|
1028
1174
|
|
|
1175
|
+
|
|
1029
1176
|
FloodAnalysis.install = (Vue, opts) => {
|
|
1030
1177
|
init_js_default()(Vue, opts);
|
|
1031
1178
|
Vue.component(FloodAnalysis.name, FloodAnalysis);
|
|
1032
1179
|
};
|
|
1033
1180
|
|
|
1181
|
+
|
|
1034
1182
|
}();
|
|
1035
1183
|
/******/ return __webpack_exports__;
|
|
1036
1184
|
/******/ })()
|