@kq_npm/client3d_webgl_vue 4.1.0-beta → 4.1.2-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,734 @@
1
+ /******/ (function() { // webpackBootstrap
2
+ /******/ "use strict";
3
+ /******/ var __webpack_modules__ = ({
4
+
5
+ /***/ 1349:
6
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
7
+
8
+ /* harmony import */ var element_plus_es__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2442);
9
+ /* harmony import */ var element_plus_es__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(element_plus_es__WEBPACK_IMPORTED_MODULE_0__);
10
+ /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(5406);
11
+ /* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
12
+
13
+
14
+
15
+ element_plus_es__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
16
+ _init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
17
+ Vue.component("KqMessage", element_plus_es__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
18
+ };
19
+
20
+ /* harmony default export */ __webpack_exports__["Z"] = (element_plus_es__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
21
+
22
+ /***/ }),
23
+
24
+ /***/ 348:
25
+ /***/ (function(module) {
26
+
27
+ module.exports = require("@kq_npm/client_icons_vue");
28
+
29
+ /***/ }),
30
+
31
+ /***/ 2442:
32
+ /***/ (function(module) {
33
+
34
+ module.exports = require("element-plus/es");
35
+
36
+ /***/ }),
37
+
38
+ /***/ 7080:
39
+ /***/ (function(module) {
40
+
41
+ module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
42
+
43
+ /***/ }),
44
+
45
+ /***/ 826:
46
+ /***/ (function(module) {
47
+
48
+ module.exports = require("@kq_npm/client_common_vue/_utils/gis-utils");
49
+
50
+ /***/ }),
51
+
52
+ /***/ 9519:
53
+ /***/ (function(module) {
54
+
55
+ module.exports = require("@kq_npm/client_common_vue/_utils/util");
56
+
57
+ /***/ }),
58
+
59
+ /***/ 5406:
60
+ /***/ (function(module) {
61
+
62
+ module.exports = require("@kq_npm/client_common_vue/init.js");
63
+
64
+ /***/ }),
65
+
66
+ /***/ 637:
67
+ /***/ (function(module) {
68
+
69
+ module.exports = require("vue");
70
+
71
+ /***/ }),
72
+
73
+ /***/ 8270:
74
+ /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
75
+
76
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
77
+ /* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
78
+ /* harmony export */ });
79
+ function _defineProperty(obj, key, value) {
80
+ if (key in obj) {
81
+ Object.defineProperty(obj, key, {
82
+ value: value,
83
+ enumerable: true,
84
+ configurable: true,
85
+ writable: true
86
+ });
87
+ } else {
88
+ obj[key] = value;
89
+ }
90
+
91
+ return obj;
92
+ }
93
+
94
+ /***/ })
95
+
96
+ /******/ });
97
+ /************************************************************************/
98
+ /******/ // The module cache
99
+ /******/ var __webpack_module_cache__ = {};
100
+ /******/
101
+ /******/ // The require function
102
+ /******/ function __webpack_require__(moduleId) {
103
+ /******/ // Check if module is in cache
104
+ /******/ var cachedModule = __webpack_module_cache__[moduleId];
105
+ /******/ if (cachedModule !== undefined) {
106
+ /******/ return cachedModule.exports;
107
+ /******/ }
108
+ /******/ // Create a new module (and put it into the cache)
109
+ /******/ var module = __webpack_module_cache__[moduleId] = {
110
+ /******/ // no module.id needed
111
+ /******/ // no module.loaded needed
112
+ /******/ exports: {}
113
+ /******/ };
114
+ /******/
115
+ /******/ // Execute the module function
116
+ /******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
117
+ /******/
118
+ /******/ // Return the exports of the module
119
+ /******/ return module.exports;
120
+ /******/ }
121
+ /******/
122
+ /************************************************************************/
123
+ /******/ /* webpack/runtime/compat get default export */
124
+ /******/ !function() {
125
+ /******/ // getDefaultExport function for compatibility with non-harmony modules
126
+ /******/ __webpack_require__.n = function(module) {
127
+ /******/ var getter = module && module.__esModule ?
128
+ /******/ function() { return module['default']; } :
129
+ /******/ function() { return module; };
130
+ /******/ __webpack_require__.d(getter, { a: getter });
131
+ /******/ return getter;
132
+ /******/ };
133
+ /******/ }();
134
+ /******/
135
+ /******/ /* webpack/runtime/define property getters */
136
+ /******/ !function() {
137
+ /******/ // define getter functions for harmony exports
138
+ /******/ __webpack_require__.d = function(exports, definition) {
139
+ /******/ for(var key in definition) {
140
+ /******/ if(__webpack_require__.o(definition, key) && !__webpack_require__.o(exports, key)) {
141
+ /******/ Object.defineProperty(exports, key, { enumerable: true, get: definition[key] });
142
+ /******/ }
143
+ /******/ }
144
+ /******/ };
145
+ /******/ }();
146
+ /******/
147
+ /******/ /* webpack/runtime/hasOwnProperty shorthand */
148
+ /******/ !function() {
149
+ /******/ __webpack_require__.o = function(obj, prop) { return Object.prototype.hasOwnProperty.call(obj, prop); }
150
+ /******/ }();
151
+ /******/
152
+ /******/ /* webpack/runtime/make namespace object */
153
+ /******/ !function() {
154
+ /******/ // define __esModule on exports
155
+ /******/ __webpack_require__.r = function(exports) {
156
+ /******/ if(typeof Symbol !== 'undefined' && Symbol.toStringTag) {
157
+ /******/ Object.defineProperty(exports, Symbol.toStringTag, { value: 'Module' });
158
+ /******/ }
159
+ /******/ Object.defineProperty(exports, '__esModule', { value: true });
160
+ /******/ };
161
+ /******/ }();
162
+ /******/
163
+ /************************************************************************/
164
+ var __webpack_exports__ = {};
165
+ // This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
166
+ !function() {
167
+ // ESM COMPAT FLAG
168
+ __webpack_require__.r(__webpack_exports__);
169
+
170
+ // EXPORTS
171
+ __webpack_require__.d(__webpack_exports__, {
172
+ "ModelExcavateViewModel": function() { return /* reexport */ ModelExcavateViewModel; },
173
+ "default": function() { return /* reexport */ ModelExcavate; }
174
+ });
175
+
176
+ // EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
177
+ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(637);
178
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
179
+ var gis_utils_ = __webpack_require__(826);
180
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
181
+ var defineProperty = __webpack_require__(8270);
182
+ // EXTERNAL MODULE: ./src/common/_ui/message/index.js
183
+ var message = __webpack_require__(1349);
184
+ ;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavateViewModel.js
185
+
186
+ //模型开挖逻辑类
187
+
188
+ class ModelExcavateViewModel {
189
+ //三维viewer对象
190
+ //Box裁剪存储参数对象
191
+ //绘制管理对象
192
+ //绘制完成监听事件
193
+ //Kq3dWallPrimitive
194
+ constructor(scenceView, options) {
195
+ (0,defineProperty/* default */.Z)(this, "_viewer", null);
196
+
197
+ (0,defineProperty/* default */.Z)(this, "_options", {});
198
+
199
+ (0,defineProperty/* default */.Z)(this, "_Kq3dTerrainExcavation", null);
200
+
201
+ (0,defineProperty/* default */.Z)(this, "_drawManager", null);
202
+
203
+ (0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
204
+
205
+ (0,defineProperty/* default */.Z)(this, "_wallPrimitive", void 0);
206
+
207
+ (0,defineProperty/* default */.Z)(this, "entity0", null);
208
+
209
+ (0,defineProperty/* default */.Z)(this, "wall", null);
210
+
211
+ (0,defineProperty/* default */.Z)(this, "ratio", 0.01);
212
+
213
+ (0,defineProperty/* default */.Z)(this, "ii", 1);
214
+
215
+ (0,defineProperty/* default */.Z)(this, "scratchCartesian2", new window.Cesium.Cartesian3());
216
+
217
+ (0,defineProperty/* default */.Z)(this, "scratchCartesian3", new window.Cesium.Cartesian3());
218
+
219
+ (0,defineProperty/* default */.Z)(this, "scratchCartesian4", new window.Cesium.Cartesian3());
220
+
221
+ (0,defineProperty/* default */.Z)(this, "scratchCartesian5", new window.Cesium.Cartesian3());
222
+
223
+ (0,defineProperty/* default */.Z)(this, "scratchCartesian6", new window.Cesium.Cartesian3());
224
+
225
+ (0,defineProperty/* default */.Z)(this, "scratchCartesian7", new window.Cesium.Cartesian3());
226
+
227
+ (0,defineProperty/* default */.Z)(this, "intervalId", null);
228
+
229
+ (0,defineProperty/* default */.Z)(this, "g_flattenedPolygonTexture", null);
230
+
231
+ this._viewer = scenceView._viewer;
232
+ this._options = options;
233
+ this._drawManager = scenceView._drawManager;
234
+ this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
235
+
236
+ let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
237
+ this.g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture();
238
+ var that = this;
239
+ this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
240
+ if (shape) {
241
+ that._options.positions = shape._controlPoints;
242
+ that.createDynamicExcavationEffect();
243
+
244
+ that._drawManager.clear();
245
+ }
246
+ });
247
+ } // 创建开挖模型
248
+
249
+
250
+ createDynamicExcavationEffect() {
251
+ this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
252
+ this._Kq3dTerrainExcavation = new window.Cesium.Kq3dTerrainExcavation({
253
+ viewer: this._viewer,
254
+ height: this._options.height,
255
+ positions: this._options.positions,
256
+ hasWall: false
257
+ });
258
+
259
+ if (this._wallPrimitive) {
260
+ this._viewer.scene.primitives.remove(this._wallPrimitive);
261
+
262
+ this._wallPrimitive = undefined;
263
+ }
264
+
265
+ this._wallPrimitive = new window.Cesium.Kq3dWallPrimitive({
266
+ viewer: this._viewer,
267
+ height: this._options.height,
268
+ positions: this._options.positions,
269
+ elevationOnTerrain: false
270
+ });
271
+
272
+ this._viewer.scene.primitives.add(this._wallPrimitive);
273
+
274
+ let that = this;
275
+
276
+ this._wallPrimitive._readyEvent.addEventListener(function (eventType) {
277
+ if (eventType != "Ready") {
278
+ return;
279
+ }
280
+
281
+ that.intervalId = setInterval(function () {
282
+ if (that.ii > 100) {
283
+ if (that.entity0) {
284
+ that._viewer.scene.primitives.remove(that.entity0);
285
+
286
+ that.entity0 = undefined;
287
+ }
288
+
289
+ if (that.wall) {
290
+ that._viewer.scene.primitives.remove(that.wall);
291
+
292
+ that.wall = undefined;
293
+ }
294
+
295
+ clearInterval(that.intervalId);
296
+ that.ii = 0;
297
+ return;
298
+ }
299
+
300
+ var carto2 = window.Cesium.Cartesian3.lerp(that._options.positions[0], that._options.positions[3], that.ratio * that.ii, that.scratchCartesian2);
301
+ var carto3 = window.Cesium.Cartesian3.lerp(that._options.positions[1], that._options.positions[2], that.ratio * that.ii, that.scratchCartesian3);
302
+
303
+ if (that.entity0) {
304
+ that._viewer.scene.primitives.remove(that.entity0);
305
+
306
+ that.entity0 = undefined;
307
+ }
308
+
309
+ that.entity0 = that.createPolyline([carto2, carto3]);
310
+ that.ii++;
311
+ that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
312
+ var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
313
+ positions: [that._options.positions[0], that._options.positions[1], carto3, carto2],
314
+ height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
315
+ });
316
+ that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon);
317
+ }, 100);
318
+ });
319
+ }
320
+
321
+ createPolyline(positions) {
322
+ var material = window.Cesium.Material.fromType("Kq3dLightningMaterial", {});
323
+
324
+ if (this.wall) {
325
+ this._viewer.scene.primitives.remove(this.wall);
326
+
327
+ this.wall = undefined;
328
+ }
329
+
330
+ var geometryInstances = [];
331
+ geometryInstances.push(new window.Cesium.GeometryInstance({
332
+ geometry: new window.Cesium.WallGeometry({
333
+ positions: positions,
334
+ maximumHeights: [10, 10],
335
+ minimumHeights: [-10, -10],
336
+ vertexFormat: window.Cesium.VertexFormat.POSITION_NORMAL_AND_ST
337
+ })
338
+ }));
339
+ this.wall = new window.Cesium.Primitive({
340
+ geometryInstances: geometryInstances,
341
+ appearance: new window.Cesium.MaterialAppearance({
342
+ material: material
343
+ })
344
+ });
345
+
346
+ this._viewer.scene.primitives.add(this.wall);
347
+
348
+ var geo = new window.Cesium.GroundPolylineGeometry({
349
+ positions: positions,
350
+ width: 40.0,
351
+ vertexFormat: window.Cesium.PolylineMaterialAppearance.VERTEX_FORMAT
352
+ });
353
+ var primitive = new window.Cesium.GroundPolylinePrimitive({
354
+ asynchronous: false,
355
+ classificationType: window.Cesium.ClassificationType.BOTH,
356
+ geometryInstances: new window.Cesium.GeometryInstance({
357
+ geometry: geo
358
+ }),
359
+ appearance: new window.Cesium.PolylineMaterialAppearance({
360
+ material: material
361
+ })
362
+ });
363
+ return this._viewer.scene.primitives.add(primitive);
364
+ }
365
+
366
+ start() {
367
+ // 判断是否添加了模型
368
+ var flag = false;
369
+ var models = this._viewer.scene.primitives._primitives;
370
+
371
+ for (let i = 0; i < models.length; i++) {
372
+ if (models[i]._url) {
373
+ models[i].enableFlattenning = true;
374
+ models[i].flattenDiscard = true;
375
+ this.g_flattenedPolygonTexture.attachTileset(models[i]);
376
+ flag = true;
377
+ }
378
+ }
379
+
380
+ if (flag) {
381
+ this.clear();
382
+
383
+ this._drawManager.startDraw("polygon", {
384
+ clampToGround: true
385
+ });
386
+ } else {
387
+ (0,message/* default */.Z)({
388
+ message: "请添加模型后绘制!",
389
+ type: "warning"
390
+ });
391
+ }
392
+ } // qi切换高度重新计算
393
+
394
+
395
+ setHeight(val) {
396
+ this._options.height = Number(val);
397
+ } // 清除
398
+
399
+
400
+ clear() {
401
+ this._drawManager.stopDraw(); // 销毁地形开挖
402
+
403
+
404
+ if (this.intervalId) {
405
+ clearInterval(this.intervalId);
406
+ this.ii = 0;
407
+
408
+ if (this.entity0) {
409
+ this._viewer.scene.primitives.remove(this.entity0);
410
+
411
+ this.entity0 = undefined;
412
+ }
413
+
414
+ if (this.wall) {
415
+ this._viewer.scene.primitives.remove(this.wall);
416
+
417
+ this.wall = undefined;
418
+ }
419
+ }
420
+
421
+ this.Kq3dTerrainExcavation && this.Kq3dTerrainExcavation.destroy();
422
+ this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
423
+ } //销毁
424
+
425
+
426
+ destroy() {
427
+ this.clear();
428
+ }
429
+
430
+ }
431
+ // EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
432
+ var client_icons_vue_ = __webpack_require__(348);
433
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
434
+ var util_ = __webpack_require__(9519);
435
+ // EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
436
+ var vue_i18n_cjs_js_ = __webpack_require__(7080);
437
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/modelexcavate/ModelExcavate.vue?vue&type=script&setup=true&lang=js
438
+
439
+ const _hoisted_1 = {
440
+ class: "kq3d-model-excavate-box",
441
+ ref: "ref_box"
442
+ };
443
+ const _hoisted_2 = {
444
+ class: "kq3d-model-excavate-span"
445
+ };
446
+ const _hoisted_3 = {
447
+ class: "kq3d-model-excavate-footer"
448
+ };
449
+
450
+
451
+
452
+
453
+
454
+ //语言
455
+
456
+ const __default__ = {
457
+ name: "Kq3dModelExcavate"
458
+ };
459
+ /* harmony default export */ var ModelExcavatevue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
460
+ props: {
461
+ //指定组件绑定的viewer对象的div的id
462
+ mapTarget: String,
463
+ // 设置参数
464
+ settingParams: {
465
+ type: Object
466
+ },
467
+ // 是否显示阴影效果
468
+ showShadow: {
469
+ type: Boolean,
470
+ default: true
471
+ },
472
+
473
+ /**
474
+ * 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
475
+ */
476
+ position: [String, Object],
477
+ // 是否生成HeaderTemp
478
+ showHeaderTemp: {
479
+ type: Boolean,
480
+ default: false
481
+ },
482
+ // 是否折叠HeaderTemp,showHeaderTemp为true时生效
483
+ isCollapseHeaderTemp: {
484
+ type: Boolean,
485
+ default: false
486
+ },
487
+ // HeaderTemp标题
488
+ headerTempTitle: {
489
+ type: String
490
+ },
491
+ // HeaderTemp图标
492
+ headerTempIcon: {
493
+ type: [Object, String],
494
+ default: client_icons_vue_.IconModelExcavation
495
+ },
496
+ // HeaderTemp Title&Icon的位置
497
+ isRight: {
498
+ type: Boolean,
499
+ default: true
500
+ }
501
+ },
502
+
503
+ setup(__props, {
504
+ expose
505
+ }) {
506
+ const props = __props;
507
+ let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
508
+ let viewModel = null;
509
+ let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(""); // 获取组件传参
510
+
511
+ let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
512
+ excavationDepth: props.settingParams && props.settingParams.excavationDepth || 20,
513
+ // 地形开挖深度
514
+ minExcavationDepth: props.settingParams && props.settingParams.minExcavationDepth || 0,
515
+ // 地形开挖深度范围最小值
516
+ maxExcavationDepth: props.settingParams && props.settingParams.maxExcavationDepth || 100 // 地形开挖深度范围最大值
517
+
518
+ }); // 组件容器Ref
519
+
520
+ let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
521
+
522
+ let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
523
+ let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
524
+
525
+ let {
526
+ locale,
527
+ messages
528
+ } = (0,vue_i18n_cjs_js_.useI18n)();
529
+ let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
530
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
531
+ language.value = messages.value[newVal]["webgl"];
532
+ headerTempTitle.value = language.value.modelExcavateTitle;
533
+ });
534
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
535
+ (0,util_.updatePosition)(boxRef.value, props);
536
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
537
+ (0,util_.updatePosition)(boxRef.value, props);
538
+ });
539
+ watchCreateHeaderTemp();
540
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
541
+ watchCreateHeaderTemp();
542
+ }); //父组件ScenceView初始化完成后执行
543
+
544
+ gis_utils_.utils.getWebMap(null, scenceView => {
545
+ if (scenceView) {
546
+ viewModel = new ModelExcavateViewModel(scenceView, {
547
+ height: formItem.excavationDepth
548
+ });
549
+ }
550
+ });
551
+ });
552
+ /**
553
+ * @description 监听header生成
554
+ */
555
+
556
+ const watchCreateHeaderTemp = () => {
557
+ if (props.showHeaderTemp) {
558
+ // 生成headerTemp
559
+ headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
560
+ }
561
+ }; // 调整开挖深度
562
+
563
+
564
+ function changeHeight() {
565
+ viewModel && viewModel.setHeight(formItem.excavationDepth);
566
+ } // 开始分析
567
+
568
+
569
+ function startOperation() {
570
+ viewModel && viewModel.start();
571
+ } // 清除
572
+
573
+
574
+ function clear() {
575
+ viewModel && viewModel.clear();
576
+ } // 销毁
577
+
578
+
579
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
580
+ viewModel && viewModel.destroy();
581
+ });
582
+ expose({
583
+ clear
584
+ });
585
+ return (_ctx, _cache) => {
586
+ const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
587
+
588
+ const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
589
+
590
+ const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
591
+
592
+ const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
593
+
594
+ const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
595
+
596
+ return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
597
+ class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-model-excavate", {
598
+ 'kq-box-shadow': __props.showShadow
599
+ }]),
600
+ ref_key: "boxRef",
601
+ ref: boxRef
602
+ }, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
603
+ key: 0,
604
+ ref_key: "headerTempRef",
605
+ ref: headerTempRef
606
+ }, null, 512
607
+ /* NEED_PATCH */
608
+ )) : (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, {
609
+ gutter: 10
610
+ }, {
611
+ 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, {
612
+ span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 7 : 10
613
+ }, {
614
+ 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
615
+ /* TEXT */
616
+ )]),
617
+ _: 1
618
+ /* STABLE */
619
+
620
+ }, 8
621
+ /* PROPS */
622
+ , ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
623
+ span: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? 11 : 8
624
+ }, {
625
+ 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, {
626
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth,
627
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth = $event),
628
+ step: 1,
629
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minExcavationDepth,
630
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxExcavationDepth,
631
+ onChange: _cache[1] || (_cache[1] = $event => changeHeight()),
632
+ onClick: _cache[2] || (_cache[2] = $event => changeHeight())
633
+ }, null, 8
634
+ /* PROPS */
635
+ , ["modelValue", "min", "max"])]),
636
+ _: 1
637
+ /* STABLE */
638
+
639
+ }, 8
640
+ /* PROPS */
641
+ , ["span"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
642
+ span: 6,
643
+ style: {
644
+ "text-align": "end"
645
+ }
646
+ }, {
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_input_number, {
648
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth,
649
+ "onUpdate:modelValue": _cache[3] || (_cache[3] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth = $event),
650
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minExcavationDepth,
651
+ step: 1,
652
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxExcavationDepth,
653
+ "controls-position": "right",
654
+ onInput: _cache[4] || (_cache[4] = $event => changeHeight())
655
+ }, null, 8
656
+ /* PROPS */
657
+ , ["modelValue", "min", "max"])]),
658
+ _: 1
659
+ /* STABLE */
660
+
661
+ })]),
662
+ _: 1
663
+ /* STABLE */
664
+
665
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
666
+ class: "kq3d-model-excavate-tip"
667
+ }, {
668
+ 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 + '(' + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).reverseDrawPolygon + ')'), 1
669
+ /* TEXT */
670
+ )]),
671
+ _: 1
672
+ /* STABLE */
673
+
674
+ }), (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, {
675
+ onClick: _cache[5] || (_cache[5] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
676
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startOperation,
677
+ type: "primary"
678
+ }, {
679
+ 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
680
+ /* TEXT */
681
+ )]),
682
+ _: 1
683
+ /* STABLE */
684
+
685
+ }, 8
686
+ /* PROPS */
687
+ , ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
688
+ onClick: _cache[6] || (_cache[6] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
689
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
690
+ }, {
691
+ 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
692
+ /* TEXT */
693
+ )]),
694
+ _: 1
695
+ /* STABLE */
696
+
697
+ }, 8
698
+ /* PROPS */
699
+ , ["title"])])], 512
700
+ /* NEED_PATCH */
701
+ )], 2
702
+ /* CLASS */
703
+ );
704
+ };
705
+ }
706
+
707
+ }));
708
+ ;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavate.vue?vue&type=script&setup=true&lang=js
709
+
710
+ ;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavate.vue
711
+
712
+
713
+
714
+ const __exports__ = ModelExcavatevue_type_script_setup_true_lang_js;
715
+
716
+ /* harmony default export */ var ModelExcavate = (__exports__);
717
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
718
+ var init_js_ = __webpack_require__(5406);
719
+ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
720
+ ;// CONCATENATED MODULE: ./src/webgl/modelexcavate/index.js
721
+
722
+
723
+
724
+
725
+ ModelExcavate.install = (Vue, opts) => {
726
+ init_js_default()(Vue, opts);
727
+ Vue.component(ModelExcavate.name, ModelExcavate);
728
+ };
729
+
730
+
731
+ }();
732
+ module.exports = __webpack_exports__;
733
+ /******/ })()
734
+ ;