@kq_npm/client3d_webgl_vue 4.5.31 → 4.5.32
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 +226 -495
- package/aspectanalysis/index.js +71 -182
- package/baseterraingallery/index.js +40 -102
- package/boxclip/index.js +197 -423
- package/clientPrint/index.js +6953 -17145
- package/comparemap/index.js +165 -216
- package/compass/index.js +20 -47
- package/excavatefillanalysis/index.js +101 -206
- package/fixedzoomin/index.js +20 -43
- package/fixedzoomout/index.js +18 -42
- package/flight/index.js +206 -353
- package/floodanalysis/index.js +145 -328
- package/geologicalbodyanalysis/index.js +114 -241
- package/gpuspatialquery/index.js +146 -340
- package/hawkeye/index.js +78 -80
- package/headertemp/index.js +8 -19
- package/heatmap3d/index.js +304 -645
- package/index.js +6525 -16962
- package/isolineanalysis/index.js +451 -1183
- package/light/index.js +308 -486
- package/limitheightanalysis/index.js +107 -204
- package/measure/index.js +145 -331
- package/modelFlat/index.js +114 -183
- package/modelexcavate/index.js +78 -172
- package/modelfilter/index.js +127 -252
- package/modelprofileanalysis/index.js +154 -297
- package/modelselect/index.js +90 -128
- package/package.json +1 -1
- package/particleeffect/index.js +170 -381
- package/planeclip/index.js +146 -281
- package/resetview/index.js +12 -31
- package/roller/index.js +252 -353
- package/scaneffect/index.js +178 -518
- package/sceneadvancedtoimage/index.js +152 -337
- package/sceneapp/index.js +6953 -17145
- package/sceneset/index.js +299 -838
- package/scenetohdimage/index.js +105 -276
- package/sceneview/index.js +6953 -17145
- package/screenshot/index.js +204 -281
- package/shadowanalysis/index.js +175 -386
- package/sightlineanalysis/index.js +135 -245
- package/skylineanalysis/index.js +108 -289
- package/slopeanalysis/index.js +174 -378
- package/slopeaspectanalysis/index.js +206 -466
- package/statusbar/index.js +37 -39
- package/terrainoperation/index.js +124 -218
- package/terrainprofileanalysis/index.js +66 -118
- package/typhoontrac/index.js +165 -321
- package/underground/index.js +16 -40
- package/videofusion/index.js +214 -470
- package/videoproject/index.js +220 -472
- package/viewshedanalysis/index.js +93 -230
- package/weathereffect/index.js +111 -295
- package/windyslicing/index.js +262 -695
- package/wireframesketch/index.js +49 -106
package/modelexcavate/index.js
CHANGED
|
@@ -19,18 +19,16 @@ return /******/ (function() { // webpackBootstrap
|
|
|
19
19
|
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__);
|
|
20
20
|
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(7997);
|
|
21
21
|
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
|
|
22
|
-
/*
|
|
23
|
-
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
24
|
-
* All rights reserved.
|
|
22
|
+
/*
|
|
23
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
24
|
+
* All rights reserved.
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
|
|
28
|
-
|
|
29
28
|
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
30
29
|
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
31
30
|
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
32
31
|
};
|
|
33
|
-
|
|
34
32
|
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
35
33
|
|
|
36
34
|
/***/ }),
|
|
@@ -42,6 +40,13 @@ module.exports = require("@kq_npm/client_icons_vue");
|
|
|
42
40
|
|
|
43
41
|
/***/ }),
|
|
44
42
|
|
|
43
|
+
/***/ 2118:
|
|
44
|
+
/***/ (function(module) {
|
|
45
|
+
|
|
46
|
+
module.exports = require("core-js/modules/es.array.push.js");
|
|
47
|
+
|
|
48
|
+
/***/ }),
|
|
49
|
+
|
|
45
50
|
/***/ 9389:
|
|
46
51
|
/***/ (function(module) {
|
|
47
52
|
|
|
@@ -101,7 +106,6 @@ function _defineProperty(obj, key, value) {
|
|
|
101
106
|
} else {
|
|
102
107
|
obj[key] = value;
|
|
103
108
|
}
|
|
104
|
-
|
|
105
109
|
return obj;
|
|
106
110
|
}
|
|
107
111
|
|
|
@@ -193,6 +197,8 @@ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
|
|
|
193
197
|
var gis_utils_ = __webpack_require__(7135);
|
|
194
198
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
195
199
|
var defineProperty = __webpack_require__(8270);
|
|
200
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
|
|
201
|
+
var es_array_push_js_ = __webpack_require__(2118);
|
|
196
202
|
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
197
203
|
var message = __webpack_require__(1349);
|
|
198
204
|
;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavateViewModel.js
|
|
@@ -205,67 +211,44 @@ var message = __webpack_require__(1349);
|
|
|
205
211
|
//模型开挖逻辑类
|
|
206
212
|
|
|
207
213
|
class ModelExcavateViewModel {
|
|
208
|
-
//三维viewer对象
|
|
209
|
-
//Box裁剪存储参数对象
|
|
210
|
-
//绘制完成监听事件
|
|
211
|
-
//测量三维对象
|
|
212
|
-
//测量结果
|
|
213
|
-
//Kq3dWallPrimitive
|
|
214
214
|
constructor(scenceView, options) {
|
|
215
215
|
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
216
|
-
|
|
216
|
+
//三维viewer对象
|
|
217
217
|
(0,defineProperty/* default */.Z)(this, "_options", {});
|
|
218
|
-
|
|
218
|
+
//Box裁剪存储参数对象
|
|
219
219
|
(0,defineProperty/* default */.Z)(this, "_Kq3dTerrainExcavation", null);
|
|
220
|
-
|
|
221
220
|
(0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
|
|
222
|
-
|
|
221
|
+
//绘制完成监听事件
|
|
223
222
|
(0,defineProperty/* default */.Z)(this, "_measureHandler", null);
|
|
224
|
-
|
|
223
|
+
//测量三维对象
|
|
225
224
|
(0,defineProperty/* default */.Z)(this, "_measureResult", null);
|
|
226
|
-
|
|
225
|
+
//测量结果
|
|
227
226
|
(0,defineProperty/* default */.Z)(this, "_wallPrimitive", void 0);
|
|
228
|
-
|
|
227
|
+
//Kq3dWallPrimitive
|
|
229
228
|
(0,defineProperty/* default */.Z)(this, "entity0", null);
|
|
230
|
-
|
|
231
229
|
(0,defineProperty/* default */.Z)(this, "_language", {});
|
|
232
|
-
|
|
233
230
|
(0,defineProperty/* default */.Z)(this, "wall", null);
|
|
234
|
-
|
|
235
231
|
(0,defineProperty/* default */.Z)(this, "ratio", 0.01);
|
|
236
|
-
|
|
237
232
|
(0,defineProperty/* default */.Z)(this, "ii", 1);
|
|
238
|
-
|
|
239
233
|
(0,defineProperty/* default */.Z)(this, "scratchCartesian2", new window.Cesium.Cartesian3());
|
|
240
|
-
|
|
241
234
|
(0,defineProperty/* default */.Z)(this, "scratchCartesian3", new window.Cesium.Cartesian3());
|
|
242
|
-
|
|
243
235
|
(0,defineProperty/* default */.Z)(this, "scratchCartesian4", new window.Cesium.Cartesian3());
|
|
244
|
-
|
|
245
236
|
(0,defineProperty/* default */.Z)(this, "scratchCartesian5", new window.Cesium.Cartesian3());
|
|
246
|
-
|
|
247
237
|
(0,defineProperty/* default */.Z)(this, "scratchCartesian6", new window.Cesium.Cartesian3());
|
|
248
|
-
|
|
249
238
|
(0,defineProperty/* default */.Z)(this, "scratchCartesian7", new window.Cesium.Cartesian3());
|
|
250
|
-
|
|
251
239
|
(0,defineProperty/* default */.Z)(this, "intervalId", null);
|
|
252
|
-
|
|
253
240
|
(0,defineProperty/* default */.Z)(this, "g_flattenedPolygonTexture", null);
|
|
254
|
-
|
|
255
241
|
this._language = scenceView._language;
|
|
256
242
|
this._viewer = scenceView._viewer;
|
|
257
243
|
this._options = options;
|
|
258
244
|
this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
|
|
259
|
-
|
|
260
245
|
var that = this;
|
|
261
|
-
|
|
262
246
|
if (scenceView.g_flattenedPolygonTexture) {
|
|
263
247
|
this.g_flattenedPolygonTexture = scenceView.g_flattenedPolygonTexture;
|
|
264
248
|
} else {
|
|
265
249
|
let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
|
|
266
250
|
this.g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture();
|
|
267
251
|
var models = this._viewer.scene.primitives._primitives;
|
|
268
|
-
|
|
269
252
|
for (let i = 0; i < models.length; i++) {
|
|
270
253
|
if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
|
|
271
254
|
models[i].enableFlattenning = true;
|
|
@@ -276,27 +259,23 @@ class ModelExcavateViewModel {
|
|
|
276
259
|
}
|
|
277
260
|
}
|
|
278
261
|
}
|
|
279
|
-
|
|
280
262
|
this._measureHandler = new Cesium.Kq3dMeasureHandler(this._viewer);
|
|
281
|
-
|
|
282
263
|
this._measureHandler.measureEvent.addEventListener(function (result) {
|
|
283
264
|
that._measureResult = result;
|
|
284
265
|
result.measureResult.label.show = false;
|
|
285
266
|
});
|
|
286
|
-
|
|
287
267
|
this._measureHandler.activeEvent.addEventListener(function (ret) {
|
|
288
268
|
if (ret == false) {
|
|
289
269
|
if (that._measureResult) {
|
|
290
270
|
that._options.positions = that._measureResult.positions;
|
|
291
271
|
that.createDynamicExcavationEffect();
|
|
292
|
-
|
|
293
272
|
that._measureResult.measureResult.destroy();
|
|
294
273
|
}
|
|
295
274
|
}
|
|
296
275
|
});
|
|
297
|
-
}
|
|
298
|
-
|
|
276
|
+
}
|
|
299
277
|
|
|
278
|
+
// 创建开挖模型
|
|
300
279
|
createDynamicExcavationEffect() {
|
|
301
280
|
this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
|
|
302
281
|
this._Kq3dTerrainExcavation = new window.Cesium.Kq3dTerrainExcavation({
|
|
@@ -305,35 +284,30 @@ class ModelExcavateViewModel {
|
|
|
305
284
|
positions: this._options.positions,
|
|
306
285
|
hasWall: false
|
|
307
286
|
});
|
|
308
|
-
|
|
309
287
|
if (this._wallPrimitive) {
|
|
310
288
|
this._viewer.scene.primitives.remove(this._wallPrimitive);
|
|
311
|
-
|
|
312
289
|
this._wallPrimitive = undefined;
|
|
313
290
|
}
|
|
314
|
-
|
|
315
291
|
this._wallPrimitive = new window.Cesium.Kq3dWallPrimitive({
|
|
316
292
|
viewer: this._viewer,
|
|
317
293
|
height: this._options.height,
|
|
318
294
|
positions: this._options.positions,
|
|
319
295
|
elevationOnTerrain: false
|
|
320
296
|
});
|
|
321
|
-
|
|
322
297
|
this._viewer.scene.primitives.add(this._wallPrimitive);
|
|
323
|
-
|
|
324
298
|
let that = this;
|
|
325
|
-
|
|
326
299
|
this._wallPrimitive._readyEvent.addEventListener(function (eventType) {
|
|
327
300
|
if (eventType != "Ready") {
|
|
328
301
|
return;
|
|
329
302
|
}
|
|
330
|
-
|
|
331
303
|
that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
|
|
332
304
|
var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
|
|
333
305
|
positions: that._options.positions,
|
|
334
306
|
height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
|
|
335
307
|
});
|
|
336
|
-
that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon);
|
|
308
|
+
that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon);
|
|
309
|
+
|
|
310
|
+
// that.intervalId = setInterval(function () {
|
|
337
311
|
// if (that.ii > 100) {
|
|
338
312
|
// if (that.entity0) {
|
|
339
313
|
// that._viewer.scene.primitives.remove(that.entity0);
|
|
@@ -347,15 +321,20 @@ class ModelExcavateViewModel {
|
|
|
347
321
|
// that.ii = 0;
|
|
348
322
|
// return;
|
|
349
323
|
// }
|
|
324
|
+
|
|
350
325
|
// var carto2 = window.Cesium.Cartesian3.lerp(that._options.positions[0], that._options.positions[3], that.ratio * that.ii, that.scratchCartesian2);
|
|
351
326
|
// var carto3 = window.Cesium.Cartesian3.lerp(that._options.positions[1], that._options.positions[2], that.ratio * that.ii, that.scratchCartesian3);
|
|
327
|
+
|
|
352
328
|
// if (that.entity0) {
|
|
353
329
|
// that._viewer.scene.primitives.remove(that.entity0);
|
|
354
330
|
// that.entity0 = undefined;
|
|
355
331
|
// }
|
|
332
|
+
|
|
356
333
|
// that.entity0 = that.createPolyline([carto2, carto3]);
|
|
334
|
+
|
|
357
335
|
// that.ii++;
|
|
358
336
|
// that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
|
|
337
|
+
|
|
359
338
|
// var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
|
|
360
339
|
// positions: [that._options.positions[0], that._options.positions[1], carto3, carto2],
|
|
361
340
|
// height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
|
|
@@ -364,16 +343,12 @@ class ModelExcavateViewModel {
|
|
|
364
343
|
// }, 100);
|
|
365
344
|
});
|
|
366
345
|
}
|
|
367
|
-
|
|
368
346
|
createPolyline(positions) {
|
|
369
347
|
var material = window.Cesium.Material.fromType("Kq3dLightningMaterial", {});
|
|
370
|
-
|
|
371
348
|
if (this.wall) {
|
|
372
349
|
this._viewer.scene.primitives.remove(this.wall);
|
|
373
|
-
|
|
374
350
|
this.wall = undefined;
|
|
375
351
|
}
|
|
376
|
-
|
|
377
352
|
var geometryInstances = [];
|
|
378
353
|
geometryInstances.push(new window.Cesium.GeometryInstance({
|
|
379
354
|
geometry: new window.Cesium.WallGeometry({
|
|
@@ -389,9 +364,7 @@ class ModelExcavateViewModel {
|
|
|
389
364
|
material: material
|
|
390
365
|
})
|
|
391
366
|
});
|
|
392
|
-
|
|
393
367
|
this._viewer.scene.primitives.add(this.wall);
|
|
394
|
-
|
|
395
368
|
var geo = new window.Cesium.GroundPolylineGeometry({
|
|
396
369
|
positions: positions,
|
|
397
370
|
width: 40.0,
|
|
@@ -409,27 +382,23 @@ class ModelExcavateViewModel {
|
|
|
409
382
|
});
|
|
410
383
|
return this._viewer.scene.primitives.add(primitive);
|
|
411
384
|
}
|
|
412
|
-
|
|
413
385
|
start() {
|
|
414
386
|
// 判断是否添加了模型
|
|
415
387
|
var flag = false;
|
|
416
388
|
var that = this;
|
|
417
389
|
var models = this._viewer.scene.primitives._primitives;
|
|
418
|
-
|
|
419
390
|
for (let i = 0; i < models.length; i++) {
|
|
420
391
|
if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
|
|
421
392
|
models[i].enableFlattenning = true;
|
|
422
|
-
models[i].flattenDiscard = true;
|
|
393
|
+
models[i].flattenDiscard = true;
|
|
394
|
+
// models[i].readyPromise.then(function (tileset) {
|
|
423
395
|
// that.g_flattenedPolygonTexture.attachTileset(tileset);
|
|
424
396
|
// });
|
|
425
|
-
|
|
426
397
|
flag = true;
|
|
427
398
|
}
|
|
428
399
|
}
|
|
429
|
-
|
|
430
400
|
if (flag) {
|
|
431
401
|
this.remove();
|
|
432
|
-
|
|
433
402
|
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
|
|
434
403
|
} else {
|
|
435
404
|
(0,message/* default */.Z)({
|
|
@@ -437,60 +406,46 @@ class ModelExcavateViewModel {
|
|
|
437
406
|
type: "warning"
|
|
438
407
|
});
|
|
439
408
|
}
|
|
440
|
-
}
|
|
441
|
-
|
|
442
|
-
|
|
409
|
+
}
|
|
410
|
+
// 切换高度重新计算
|
|
443
411
|
setHeight(val) {
|
|
444
412
|
this._options.height = Number(val);
|
|
445
413
|
}
|
|
446
|
-
|
|
447
414
|
remove() {
|
|
448
415
|
// 销毁地形开挖
|
|
449
416
|
if (this.intervalId) {
|
|
450
417
|
clearInterval(this.intervalId);
|
|
451
418
|
this.ii = 0;
|
|
452
|
-
|
|
453
419
|
if (this.entity0) {
|
|
454
420
|
this._viewer.scene.primitives.remove(this.entity0);
|
|
455
|
-
|
|
456
421
|
this.entity0 = undefined;
|
|
457
422
|
}
|
|
458
|
-
|
|
459
423
|
if (this.wall) {
|
|
460
424
|
this._viewer.scene.primitives.remove(this.wall);
|
|
461
|
-
|
|
462
425
|
this.wall = undefined;
|
|
463
426
|
}
|
|
464
427
|
}
|
|
465
|
-
|
|
466
428
|
if (this._wallPrimitive) {
|
|
467
429
|
this._viewer.scene.primitives.remove(this._wallPrimitive);
|
|
468
|
-
|
|
469
430
|
this._wallPrimitive = undefined;
|
|
470
431
|
}
|
|
471
|
-
|
|
472
432
|
this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
|
|
473
433
|
this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
|
|
474
|
-
}
|
|
475
|
-
|
|
476
|
-
|
|
434
|
+
}
|
|
435
|
+
// 清除
|
|
477
436
|
clear() {
|
|
478
437
|
this._measureResult = null;
|
|
479
|
-
|
|
480
438
|
this._measureHandler.clear();
|
|
481
|
-
|
|
482
439
|
this.remove();
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
|
|
440
|
+
}
|
|
441
|
+
//销毁
|
|
486
442
|
destroy() {
|
|
487
|
-
this.clear();
|
|
443
|
+
this.clear();
|
|
444
|
+
// this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.detachAllTileset();
|
|
488
445
|
// this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.destroy();
|
|
489
|
-
|
|
490
446
|
this._measureHandler && this._measureHandler.destroy();
|
|
491
447
|
this._measureHandler = null;
|
|
492
448
|
}
|
|
493
|
-
|
|
494
449
|
}
|
|
495
450
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
496
451
|
var client_icons_vue_ = __webpack_require__(348);
|
|
@@ -515,7 +470,8 @@ const _hoisted_3 = {
|
|
|
515
470
|
|
|
516
471
|
|
|
517
472
|
|
|
518
|
-
|
|
473
|
+
|
|
474
|
+
//语言
|
|
519
475
|
|
|
520
476
|
const __default__ = {
|
|
521
477
|
name: "Kq3dModelExcavate"
|
|
@@ -533,7 +489,6 @@ const __default__ = {
|
|
|
533
489
|
type: Boolean,
|
|
534
490
|
default: true
|
|
535
491
|
},
|
|
536
|
-
|
|
537
492
|
/**
|
|
538
493
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
539
494
|
*/
|
|
@@ -563,7 +518,6 @@ const __default__ = {
|
|
|
563
518
|
default: true
|
|
564
519
|
}
|
|
565
520
|
},
|
|
566
|
-
|
|
567
521
|
setup(__props, {
|
|
568
522
|
expose: __expose
|
|
569
523
|
}) {
|
|
@@ -573,7 +527,9 @@ const __default__ = {
|
|
|
573
527
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
574
528
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
|
|
575
529
|
let viewModel = null;
|
|
576
|
-
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.locale);
|
|
530
|
+
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.locale);
|
|
531
|
+
|
|
532
|
+
// 获取组件传参
|
|
577
533
|
|
|
578
534
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
579
535
|
excavationDepth: props.settingParams && props.settingParams.excavationDepth || 20,
|
|
@@ -581,14 +537,16 @@ const __default__ = {
|
|
|
581
537
|
minExcavationDepth: props.settingParams && props.settingParams.minExcavationDepth || 0,
|
|
582
538
|
// 地形开挖深度范围最小值
|
|
583
539
|
maxExcavationDepth: props.settingParams && props.settingParams.maxExcavationDepth || 100 // 地形开挖深度范围最大值
|
|
540
|
+
});
|
|
584
541
|
|
|
585
|
-
|
|
586
|
-
|
|
587
|
-
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
542
|
+
// 组件容器Ref
|
|
543
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
588
544
|
|
|
545
|
+
// 生成组件默认header
|
|
589
546
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
590
|
-
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
547
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
591
548
|
|
|
549
|
+
// 国际化
|
|
592
550
|
let {
|
|
593
551
|
locale,
|
|
594
552
|
messages
|
|
@@ -609,8 +567,9 @@ const __default__ = {
|
|
|
609
567
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
610
568
|
watchCreateHeaderTemp();
|
|
611
569
|
});
|
|
612
|
-
});
|
|
570
|
+
});
|
|
613
571
|
|
|
572
|
+
//父组件ScenceView初始化完成后执行
|
|
614
573
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
615
574
|
if (scenceView) {
|
|
616
575
|
viewModel = new ModelExcavateViewModel(scenceView, {
|
|
@@ -620,52 +579,42 @@ const __default__ = {
|
|
|
620
579
|
}
|
|
621
580
|
});
|
|
622
581
|
});
|
|
582
|
+
|
|
623
583
|
/**
|
|
624
584
|
* @description 监听header生成
|
|
625
585
|
*/
|
|
626
|
-
|
|
627
586
|
const watchCreateHeaderTemp = () => {
|
|
628
587
|
if (props.showHeaderTemp) {
|
|
629
588
|
// 生成headerTemp
|
|
630
589
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
631
590
|
}
|
|
632
|
-
};
|
|
633
|
-
|
|
634
|
-
|
|
591
|
+
};
|
|
592
|
+
// 调整开挖深度
|
|
635
593
|
function changeHeight() {
|
|
636
594
|
viewModel && viewModel.setHeight(formItem.excavationDepth);
|
|
637
|
-
}
|
|
638
|
-
|
|
639
|
-
|
|
595
|
+
}
|
|
596
|
+
// 开始分析
|
|
640
597
|
function startOperation() {
|
|
641
598
|
viewModel && viewModel.start();
|
|
642
|
-
}
|
|
643
|
-
|
|
644
|
-
|
|
599
|
+
}
|
|
600
|
+
// 清除
|
|
645
601
|
function clear() {
|
|
646
602
|
viewModel && viewModel.clear();
|
|
647
|
-
}
|
|
648
|
-
|
|
603
|
+
}
|
|
649
604
|
|
|
605
|
+
// 销毁
|
|
650
606
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
651
607
|
viewModel && viewModel.destroy();
|
|
652
608
|
});
|
|
653
|
-
|
|
654
609
|
__expose({
|
|
655
610
|
clear
|
|
656
611
|
});
|
|
657
|
-
|
|
658
612
|
return (_ctx, _cache) => {
|
|
659
613
|
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
660
|
-
|
|
661
614
|
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
662
|
-
|
|
663
615
|
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
|
|
664
|
-
|
|
665
616
|
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
666
|
-
|
|
667
617
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
668
|
-
|
|
669
618
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
670
619
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-model-excavate", {
|
|
671
620
|
'kq-box-shadow': __props.showShadow
|
|
@@ -676,23 +625,15 @@ const __default__ = {
|
|
|
676
625
|
key: 0,
|
|
677
626
|
ref_key: "headerTempRef",
|
|
678
627
|
ref: headerTempRef
|
|
679
|
-
}, null, 512
|
|
680
|
-
/* NEED_PATCH */
|
|
681
|
-
)) : (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, {
|
|
628
|
+
}, null, 512 /* NEED_PATCH */)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
682
629
|
gutter: 10
|
|
683
630
|
}, {
|
|
684
631
|
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_col, {
|
|
685
632
|
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 7 : 10
|
|
686
633
|
}, {
|
|
687
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", _hoisted_2, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).excavationDepth), 1
|
|
688
|
-
/*
|
|
689
|
-
|
|
690
|
-
_: 1
|
|
691
|
-
/* STABLE */
|
|
692
|
-
|
|
693
|
-
}, 8
|
|
694
|
-
/* PROPS */
|
|
695
|
-
, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
634
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", _hoisted_2, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).excavationDepth), 1 /* TEXT */)]),
|
|
635
|
+
_: 1 /* STABLE */
|
|
636
|
+
}, 8 /* PROPS */, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
696
637
|
span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 11 : 8
|
|
697
638
|
}, {
|
|
698
639
|
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_slider, {
|
|
@@ -703,15 +644,9 @@ const __default__ = {
|
|
|
703
644
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxExcavationDepth,
|
|
704
645
|
onChange: _cache[1] || (_cache[1] = $event => changeHeight()),
|
|
705
646
|
onClick: _cache[2] || (_cache[2] = $event => changeHeight())
|
|
706
|
-
}, null, 8
|
|
707
|
-
/*
|
|
708
|
-
|
|
709
|
-
_: 1
|
|
710
|
-
/* STABLE */
|
|
711
|
-
|
|
712
|
-
}, 8
|
|
713
|
-
/* PROPS */
|
|
714
|
-
, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
647
|
+
}, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
|
|
648
|
+
_: 1 /* STABLE */
|
|
649
|
+
}, 8 /* PROPS */, ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
715
650
|
span: 6,
|
|
716
651
|
style: {
|
|
717
652
|
"text-align": "end"
|
|
@@ -725,58 +660,31 @@ const __default__ = {
|
|
|
725
660
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxExcavationDepth,
|
|
726
661
|
"controls-position": "right",
|
|
727
662
|
onInput: _cache[4] || (_cache[4] = $event => changeHeight())
|
|
728
|
-
}, null, 8
|
|
729
|
-
/*
|
|
730
|
-
, ["modelValue", "min", "max"])]),
|
|
731
|
-
_: 1
|
|
732
|
-
/* STABLE */
|
|
733
|
-
|
|
663
|
+
}, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
|
|
664
|
+
_: 1 /* STABLE */
|
|
734
665
|
})]),
|
|
735
|
-
_: 1
|
|
736
|
-
/* STABLE */
|
|
737
|
-
|
|
666
|
+
_: 1 /* STABLE */
|
|
738
667
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
739
668
|
class: "kq3d-model-excavate-tip"
|
|
740
669
|
}, {
|
|
741
|
-
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
|
|
742
|
-
/*
|
|
743
|
-
)]),
|
|
744
|
-
_: 1
|
|
745
|
-
/* STABLE */
|
|
746
|
-
|
|
670
|
+
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 /* TEXT */)]),
|
|
671
|
+
_: 1 /* STABLE */
|
|
747
672
|
}), (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, {
|
|
748
673
|
onClick: _cache[5] || (_cache[5] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
|
|
749
674
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startOperation,
|
|
750
675
|
type: "primary"
|
|
751
676
|
}, {
|
|
752
|
-
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).startOperation), 1
|
|
753
|
-
/*
|
|
754
|
-
|
|
755
|
-
_: 1
|
|
756
|
-
/* STABLE */
|
|
757
|
-
|
|
758
|
-
}, 8
|
|
759
|
-
/* PROPS */
|
|
760
|
-
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
677
|
+
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).startOperation), 1 /* TEXT */)]),
|
|
678
|
+
_: 1 /* STABLE */
|
|
679
|
+
}, 8 /* PROPS */, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
761
680
|
onClick: _cache[6] || (_cache[6] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
|
|
762
681
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
|
|
763
682
|
}, {
|
|
764
|
-
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).clear), 1
|
|
765
|
-
/*
|
|
766
|
-
|
|
767
|
-
_: 1
|
|
768
|
-
/* STABLE */
|
|
769
|
-
|
|
770
|
-
}, 8
|
|
771
|
-
/* PROPS */
|
|
772
|
-
, ["title"])])], 512
|
|
773
|
-
/* NEED_PATCH */
|
|
774
|
-
)], 2
|
|
775
|
-
/* CLASS */
|
|
776
|
-
);
|
|
683
|
+
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).clear), 1 /* TEXT */)]),
|
|
684
|
+
_: 1 /* STABLE */
|
|
685
|
+
}, 8 /* PROPS */, ["title"])])], 512 /* NEED_PATCH */)], 2 /* CLASS */);
|
|
777
686
|
};
|
|
778
687
|
}
|
|
779
|
-
|
|
780
688
|
}));
|
|
781
689
|
;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavate.vue?vue&type=script&setup=true&lang=js
|
|
782
690
|
|
|
@@ -798,13 +706,11 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
|
798
706
|
|
|
799
707
|
|
|
800
708
|
|
|
801
|
-
|
|
802
709
|
ModelExcavate.install = (Vue, opts) => {
|
|
803
710
|
init_js_default()(Vue, opts);
|
|
804
711
|
Vue.component(ModelExcavate.name, ModelExcavate);
|
|
805
712
|
};
|
|
806
713
|
|
|
807
|
-
|
|
808
714
|
}();
|
|
809
715
|
/******/ return __webpack_exports__;
|
|
810
716
|
/******/ })()
|