@kq_npm/client3d_webgl_vue 4.5.30 → 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 +227 -496
- package/aspectanalysis/index.js +71 -182
- package/baseterraingallery/index.js +40 -102
- package/boxclip/index.js +197 -423
- package/clientPrint/index.js +7324 -17727
- 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 +6896 -17544
- 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 +7324 -17727
- package/sceneset/index.js +299 -838
- package/scenetohdimage/index.js +105 -276
- package/sceneview/index.js +7324 -17727
- 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 +208 -330
- 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 +545 -727
- package/wireframesketch/index.js +49 -106
package/modelFlat/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,27 @@ 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
|
+
|
|
50
|
+
/***/ 8470:
|
|
51
|
+
/***/ (function(module) {
|
|
52
|
+
|
|
53
|
+
module.exports = require("core-js/modules/esnext.iterator.constructor.js");
|
|
54
|
+
|
|
55
|
+
/***/ }),
|
|
56
|
+
|
|
57
|
+
/***/ 1058:
|
|
58
|
+
/***/ (function(module) {
|
|
59
|
+
|
|
60
|
+
module.exports = require("core-js/modules/esnext.iterator.for-each.js");
|
|
61
|
+
|
|
62
|
+
/***/ }),
|
|
63
|
+
|
|
45
64
|
/***/ 9389:
|
|
46
65
|
/***/ (function(module) {
|
|
47
66
|
|
|
@@ -101,7 +120,6 @@ function _defineProperty(obj, key, value) {
|
|
|
101
120
|
} else {
|
|
102
121
|
obj[key] = value;
|
|
103
122
|
}
|
|
104
|
-
|
|
105
123
|
return obj;
|
|
106
124
|
}
|
|
107
125
|
|
|
@@ -193,11 +211,19 @@ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
|
|
|
193
211
|
var gis_utils_ = __webpack_require__(7135);
|
|
194
212
|
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
195
213
|
var defineProperty = __webpack_require__(8270);
|
|
214
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
|
|
215
|
+
var es_array_push_js_ = __webpack_require__(2118);
|
|
216
|
+
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
|
|
217
|
+
var esnext_iterator_constructor_js_ = __webpack_require__(8470);
|
|
218
|
+
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.for-each.js"
|
|
219
|
+
var esnext_iterator_for_each_js_ = __webpack_require__(1058);
|
|
196
220
|
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
197
221
|
var message = __webpack_require__(1349);
|
|
198
222
|
;// CONCATENATED MODULE: ./src/webgl/modelFlat/ModelFlatViewModel.js
|
|
199
223
|
|
|
200
224
|
|
|
225
|
+
|
|
226
|
+
|
|
201
227
|
/*
|
|
202
228
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
203
229
|
* All rights reserved.
|
|
@@ -205,85 +231,68 @@ var message = __webpack_require__(1349);
|
|
|
205
231
|
//模型平整逻辑类
|
|
206
232
|
|
|
207
233
|
class ModelFlatViewModel {
|
|
208
|
-
//三维viewer对象
|
|
209
|
-
//绘制管理对象
|
|
210
|
-
//全局参数
|
|
211
|
-
//绘制完成监听事件
|
|
212
|
-
//测量三维对象
|
|
213
|
-
//测量结果
|
|
214
|
-
// 平整对象
|
|
215
|
-
//平整辅助面数组
|
|
216
234
|
constructor(scenceView, viewModel) {
|
|
217
235
|
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
218
|
-
|
|
236
|
+
//三维viewer对象
|
|
219
237
|
(0,defineProperty/* default */.Z)(this, "_drawManager", null);
|
|
220
|
-
|
|
238
|
+
//绘制管理对象
|
|
221
239
|
(0,defineProperty/* default */.Z)(this, "_options", {});
|
|
222
|
-
|
|
240
|
+
//全局参数
|
|
223
241
|
(0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
|
|
224
|
-
|
|
242
|
+
//绘制完成监听事件
|
|
225
243
|
(0,defineProperty/* default */.Z)(this, "_measureHandler", null);
|
|
226
|
-
|
|
244
|
+
//测量三维对象
|
|
227
245
|
(0,defineProperty/* default */.Z)(this, "_measureResult", null);
|
|
228
|
-
|
|
246
|
+
//测量结果
|
|
229
247
|
(0,defineProperty/* default */.Z)(this, "_flatteningPolygonTex", null);
|
|
230
|
-
|
|
248
|
+
// 平整对象
|
|
231
249
|
(0,defineProperty/* default */.Z)(this, "_assistPolygons", []);
|
|
232
|
-
|
|
250
|
+
//平整辅助面数组
|
|
233
251
|
(0,defineProperty/* default */.Z)(this, "currentFlatPolygonIndex", -1);
|
|
234
|
-
|
|
235
252
|
(0,defineProperty/* default */.Z)(this, "_language", {});
|
|
236
|
-
|
|
237
253
|
this._viewer = scenceView._viewer;
|
|
238
254
|
this._options = viewModel;
|
|
239
255
|
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
240
256
|
this._language = scenceView._language;
|
|
241
|
-
this._drawManager = scenceView._drawManager;
|
|
242
|
-
|
|
257
|
+
this._drawManager = scenceView._drawManager;
|
|
258
|
+
//Create flattenning controller
|
|
243
259
|
var that = this;
|
|
244
|
-
|
|
245
260
|
if (scenceView.g_flattenedPolygonTexture) {
|
|
246
261
|
this._flatteningPolygonTex = scenceView.g_flattenedPolygonTexture;
|
|
247
262
|
} else {
|
|
248
263
|
let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
|
|
249
264
|
this._flatteningPolygonTex = kq3dFlattenning.createFlattenedPolygonTexture();
|
|
250
265
|
var models = this._viewer.scene.primitives._primitives;
|
|
251
|
-
|
|
252
266
|
for (let i = 0; i < models.length; i++) {
|
|
253
267
|
if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._originUrl) {
|
|
254
268
|
//edited by ly models[i]._url) {
|
|
255
269
|
that._flatteningPolygonTex.attachTileset(models[i]);
|
|
256
270
|
}
|
|
257
271
|
}
|
|
258
|
-
}
|
|
272
|
+
}
|
|
273
|
+
// this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
259
274
|
// if (shape) {
|
|
260
275
|
// that._options.positions = shape._controlPoints;
|
|
261
276
|
// that.createFlat();
|
|
262
277
|
// that._drawManager.clear();
|
|
263
278
|
// }
|
|
264
279
|
// });
|
|
265
|
-
|
|
266
|
-
|
|
267
280
|
this._measureHandler = new Cesium.Kq3dMeasureHandler(this._viewer);
|
|
268
|
-
|
|
269
281
|
this._measureHandler.measureEvent.addEventListener(function (result) {
|
|
270
282
|
that._measureResult = result;
|
|
271
283
|
result.measureResult.label.show = false;
|
|
272
284
|
});
|
|
273
|
-
|
|
274
285
|
this._measureHandler.activeEvent.addEventListener(function (ret) {
|
|
275
286
|
if (ret == false) {
|
|
276
287
|
if (that._measureResult) {
|
|
277
288
|
that._options.positions = that._measureResult.positions;
|
|
278
289
|
that.createFlat();
|
|
279
|
-
|
|
280
290
|
that._measureResult.measureResult.destroy();
|
|
281
291
|
}
|
|
282
292
|
}
|
|
283
293
|
});
|
|
284
|
-
}
|
|
285
|
-
|
|
286
|
-
|
|
294
|
+
}
|
|
295
|
+
// 创建平整
|
|
287
296
|
createFlat() {
|
|
288
297
|
// 创建压平面
|
|
289
298
|
let curAssitPolygon = this._viewer.entities.add({
|
|
@@ -293,62 +302,51 @@ class ModelFlatViewModel {
|
|
|
293
302
|
},
|
|
294
303
|
show: this._options.flatteningShow ? true : false
|
|
295
304
|
});
|
|
296
|
-
|
|
297
305
|
this._assistPolygons.push(curAssitPolygon);
|
|
298
|
-
|
|
299
306
|
let myPolygon = window.Cesium.PolygonGeometry.fromPositions({
|
|
300
307
|
positions: this._options.positions,
|
|
301
308
|
height: this._options.flatHeight
|
|
302
309
|
});
|
|
303
310
|
this._flatteningPolygonTex && this._flatteningPolygonTex.addFlattenedPolygon(myPolygon);
|
|
304
|
-
}
|
|
305
|
-
|
|
306
|
-
|
|
311
|
+
}
|
|
312
|
+
// 获取平整数量
|
|
307
313
|
getFlatCount() {
|
|
308
314
|
return this._flatteningPolygonTex.getFlattenedPolygons().length;
|
|
309
|
-
}
|
|
310
|
-
|
|
311
|
-
|
|
315
|
+
}
|
|
316
|
+
// 开始分析
|
|
312
317
|
start() {
|
|
313
318
|
// 判断是否添加了模型
|
|
314
319
|
var flag = false;
|
|
315
320
|
var models = this._viewer.scene.primitives._primitives;
|
|
316
|
-
|
|
317
321
|
for (let i = 0; i < models.length; i++) {
|
|
318
322
|
if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
|
|
319
323
|
models[i].flattenDiscard = false;
|
|
320
324
|
flag = true;
|
|
321
325
|
}
|
|
322
326
|
}
|
|
323
|
-
|
|
324
327
|
if (flag) {
|
|
325
328
|
this.remove(!this._options.showFlattenedPolygons);
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea);
|
|
330
|
+
// this._drawManager.startDraw("polygon", { clampToGround: true });
|
|
329
331
|
} else {
|
|
330
332
|
(0,message/* default */.Z)({
|
|
331
333
|
message: this._language["addModelTips"],
|
|
332
334
|
type: "warning"
|
|
333
335
|
});
|
|
334
336
|
}
|
|
335
|
-
}
|
|
336
|
-
|
|
337
|
-
|
|
337
|
+
}
|
|
338
|
+
// 切换高度重新计算
|
|
338
339
|
setHeight(val) {
|
|
339
340
|
this._options.flatHeight = Number(val);
|
|
340
|
-
|
|
341
341
|
if (this.currentFlatPolygonIndex == -1) {
|
|
342
342
|
this._flatteningPolygonTex.setFlattenedPolygonHeight(-1, Number(val));
|
|
343
343
|
} else {
|
|
344
344
|
this._flatteningPolygonTex.setFlattenedPolygonHeight(this.currentFlatPolygonIndex, Number(val));
|
|
345
345
|
}
|
|
346
|
-
}
|
|
347
|
-
|
|
348
|
-
|
|
346
|
+
}
|
|
347
|
+
// 切换辅助面显示
|
|
349
348
|
setFlatteningShow(val) {
|
|
350
349
|
this._options.flatteningShow = val;
|
|
351
|
-
|
|
352
350
|
if (val) {
|
|
353
351
|
this._assistPolygons.forEach(item => {
|
|
354
352
|
item.show = true;
|
|
@@ -358,43 +356,34 @@ class ModelFlatViewModel {
|
|
|
358
356
|
item.show = false;
|
|
359
357
|
});
|
|
360
358
|
}
|
|
361
|
-
}
|
|
362
|
-
|
|
363
|
-
|
|
359
|
+
}
|
|
360
|
+
// 设置平整实例
|
|
364
361
|
setCurrentFlatPolygonIndex(val) {
|
|
365
362
|
this.currentFlatPolygonIndex = val;
|
|
366
|
-
}
|
|
367
|
-
|
|
368
|
-
|
|
363
|
+
}
|
|
364
|
+
// 清除绘制
|
|
369
365
|
remove(bool) {
|
|
370
366
|
this._drawManager.stopDraw();
|
|
371
|
-
|
|
372
367
|
if (bool) {
|
|
373
368
|
this._flatteningPolygonTex && this._flatteningPolygonTex.removeAllFlattenedPolygon();
|
|
374
|
-
|
|
375
369
|
for (var i = 0; i < this._assistPolygons.length; i++) {
|
|
376
370
|
this._viewer.entities.remove(this._assistPolygons[i]);
|
|
377
371
|
}
|
|
378
|
-
|
|
379
372
|
this._assistPolygons = [];
|
|
380
373
|
}
|
|
381
|
-
}
|
|
382
|
-
|
|
383
|
-
|
|
374
|
+
}
|
|
375
|
+
// 清除
|
|
384
376
|
clear() {
|
|
385
377
|
this.remove(true);
|
|
386
378
|
this._measureResult = null;
|
|
387
|
-
|
|
388
379
|
this._measureHandler.clear();
|
|
389
|
-
}
|
|
390
|
-
|
|
391
|
-
|
|
380
|
+
}
|
|
381
|
+
//销毁
|
|
392
382
|
destroy() {
|
|
393
383
|
this.clear();
|
|
394
384
|
this._measureHandler && this._measureHandler.destroy();
|
|
395
385
|
this._measureHandler = null;
|
|
396
386
|
}
|
|
397
|
-
|
|
398
387
|
}
|
|
399
388
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
400
389
|
var client_icons_vue_ = __webpack_require__(348);
|
|
@@ -422,7 +411,9 @@ const _hoisted_4 = {
|
|
|
422
411
|
|
|
423
412
|
|
|
424
413
|
|
|
425
|
-
|
|
414
|
+
|
|
415
|
+
|
|
416
|
+
//语言
|
|
426
417
|
|
|
427
418
|
const __default__ = {
|
|
428
419
|
name: "Kq3dModelFlat"
|
|
@@ -438,7 +429,6 @@ const __default__ = {
|
|
|
438
429
|
type: Boolean,
|
|
439
430
|
default: true
|
|
440
431
|
},
|
|
441
|
-
|
|
442
432
|
/**
|
|
443
433
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
444
434
|
*/
|
|
@@ -468,7 +458,6 @@ const __default__ = {
|
|
|
468
458
|
default: true
|
|
469
459
|
}
|
|
470
460
|
},
|
|
471
|
-
|
|
472
461
|
setup(__props, {
|
|
473
462
|
expose: __expose
|
|
474
463
|
}) {
|
|
@@ -477,7 +466,9 @@ const __default__ = {
|
|
|
477
466
|
proxy
|
|
478
467
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
479
468
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
|
|
480
|
-
let viewModel = null;
|
|
469
|
+
let viewModel = null;
|
|
470
|
+
|
|
471
|
+
// 获取组件传参
|
|
481
472
|
|
|
482
473
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
483
474
|
flatHeight: props.settingParams && props.settingParams.excavationDepth || 10,
|
|
@@ -489,14 +480,16 @@ const __default__ = {
|
|
|
489
480
|
flatteningShow: props.settingParams && props.settingParams.maxExcavationDepth || true,
|
|
490
481
|
// 压平面是否显示
|
|
491
482
|
showFlattenedPolygons: props.settingParams && props.settingParams.showFlattenedPolygons || false // 是否显示多个压平面分析结果
|
|
483
|
+
});
|
|
492
484
|
|
|
493
|
-
|
|
494
|
-
|
|
495
|
-
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
485
|
+
// 组件容器Ref
|
|
486
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
496
487
|
|
|
488
|
+
// 生成组件默认header
|
|
497
489
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
498
|
-
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
490
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
499
491
|
|
|
492
|
+
// 国际化
|
|
500
493
|
let {
|
|
501
494
|
locale,
|
|
502
495
|
messages
|
|
@@ -517,79 +510,66 @@ const __default__ = {
|
|
|
517
510
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
518
511
|
watchCreateHeaderTemp();
|
|
519
512
|
});
|
|
520
|
-
});
|
|
513
|
+
});
|
|
521
514
|
|
|
515
|
+
//父组件ScenceView初始化完成后执行
|
|
522
516
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
523
517
|
if (scenceView) {
|
|
524
518
|
viewModel = new ModelFlatViewModel(scenceView, formItem);
|
|
525
519
|
}
|
|
526
520
|
});
|
|
527
521
|
});
|
|
522
|
+
|
|
528
523
|
/**
|
|
529
524
|
* @description 监听header生成
|
|
530
525
|
*/
|
|
531
|
-
|
|
532
526
|
const watchCreateHeaderTemp = () => {
|
|
533
527
|
if (props.showHeaderTemp) {
|
|
534
528
|
// 生成headerTemp
|
|
535
529
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
536
530
|
}
|
|
537
|
-
};
|
|
538
|
-
|
|
539
|
-
|
|
531
|
+
};
|
|
532
|
+
// 调整平整深度
|
|
540
533
|
function changeHeight() {
|
|
541
534
|
viewModel && viewModel.setHeight(formItem.flatHeight);
|
|
542
|
-
}
|
|
543
|
-
|
|
544
|
-
|
|
535
|
+
}
|
|
536
|
+
// 调整压平面是否显示
|
|
545
537
|
function onChangeFlatteningShow() {
|
|
546
538
|
viewModel && viewModel.setFlatteningShow(formItem.flatteningShow);
|
|
547
|
-
}
|
|
548
|
-
|
|
549
|
-
|
|
539
|
+
}
|
|
540
|
+
// 获取平整分析个数
|
|
550
541
|
function getFlatCount() {
|
|
551
542
|
return viewModel && viewModel.getFlatCount();
|
|
552
|
-
}
|
|
553
|
-
|
|
554
|
-
|
|
543
|
+
}
|
|
544
|
+
// 设置操作平整实例
|
|
555
545
|
function setCurrentFlatPolygonIndex(val) {
|
|
556
546
|
viewModel && viewModel.setCurrentFlatPolygonIndex(val);
|
|
557
|
-
}
|
|
558
|
-
|
|
559
|
-
|
|
547
|
+
}
|
|
548
|
+
// 开始分析
|
|
560
549
|
function startOperation() {
|
|
561
550
|
viewModel && viewModel.start();
|
|
562
|
-
}
|
|
563
|
-
|
|
564
|
-
|
|
551
|
+
}
|
|
552
|
+
// 清除
|
|
565
553
|
function clear() {
|
|
566
554
|
viewModel && viewModel.clear();
|
|
567
|
-
}
|
|
568
|
-
|
|
555
|
+
}
|
|
569
556
|
|
|
557
|
+
// 销毁
|
|
570
558
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
571
559
|
viewModel && viewModel.destroy();
|
|
572
560
|
});
|
|
573
|
-
|
|
574
561
|
__expose({
|
|
575
562
|
getFlatCount,
|
|
576
563
|
setCurrentFlatPolygonIndex,
|
|
577
564
|
clear
|
|
578
565
|
});
|
|
579
|
-
|
|
580
566
|
return (_ctx, _cache) => {
|
|
581
567
|
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
582
|
-
|
|
583
568
|
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
584
|
-
|
|
585
569
|
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
|
|
586
|
-
|
|
587
570
|
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
588
|
-
|
|
589
571
|
const _component_kq_switch = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-switch");
|
|
590
|
-
|
|
591
572
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
592
|
-
|
|
593
573
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
594
574
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-model-flat", {
|
|
595
575
|
'kq-box-shadow': __props.showShadow
|
|
@@ -600,20 +580,14 @@ const __default__ = {
|
|
|
600
580
|
key: 0,
|
|
601
581
|
ref_key: "headerTempRef",
|
|
602
582
|
ref: headerTempRef
|
|
603
|
-
}, null, 512
|
|
604
|
-
/* NEED_PATCH */
|
|
605
|
-
)) : (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, {
|
|
583
|
+
}, 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, {
|
|
606
584
|
gutter: 10
|
|
607
585
|
}, {
|
|
608
586
|
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, {
|
|
609
587
|
span: 7
|
|
610
588
|
}, {
|
|
611
|
-
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).flatHeight), 1
|
|
612
|
-
/*
|
|
613
|
-
)]),
|
|
614
|
-
_: 1
|
|
615
|
-
/* STABLE */
|
|
616
|
-
|
|
589
|
+
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).flatHeight), 1 /* TEXT */)]),
|
|
590
|
+
_: 1 /* STABLE */
|
|
617
591
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
618
592
|
span: 11
|
|
619
593
|
}, {
|
|
@@ -625,12 +599,8 @@ const __default__ = {
|
|
|
625
599
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxFlatDepth,
|
|
626
600
|
onChange: _cache[1] || (_cache[1] = $event => changeHeight()),
|
|
627
601
|
onClick: _cache[2] || (_cache[2] = $event => changeHeight())
|
|
628
|
-
}, null, 8
|
|
629
|
-
/*
|
|
630
|
-
, ["modelValue", "min", "max"])]),
|
|
631
|
-
_: 1
|
|
632
|
-
/* STABLE */
|
|
633
|
-
|
|
602
|
+
}, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
|
|
603
|
+
_: 1 /* STABLE */
|
|
634
604
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
635
605
|
span: 6,
|
|
636
606
|
style: {
|
|
@@ -645,28 +615,18 @@ const __default__ = {
|
|
|
645
615
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxFlatDepth,
|
|
646
616
|
"controls-position": "right",
|
|
647
617
|
onInput: _cache[4] || (_cache[4] = $event => changeHeight())
|
|
648
|
-
}, null, 8
|
|
649
|
-
/*
|
|
650
|
-
, ["modelValue", "min", "max"])]),
|
|
651
|
-
_: 1
|
|
652
|
-
/* STABLE */
|
|
653
|
-
|
|
618
|
+
}, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
|
|
619
|
+
_: 1 /* STABLE */
|
|
654
620
|
})]),
|
|
655
|
-
_: 1
|
|
656
|
-
/* STABLE */
|
|
657
|
-
|
|
621
|
+
_: 1 /* STABLE */
|
|
658
622
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
659
623
|
gutter: 10
|
|
660
624
|
}, {
|
|
661
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_col, {
|
|
662
626
|
span: 7
|
|
663
627
|
}, {
|
|
664
|
-
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_3, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).flatteningShow), 1
|
|
665
|
-
/*
|
|
666
|
-
)]),
|
|
667
|
-
_: 1
|
|
668
|
-
/* STABLE */
|
|
669
|
-
|
|
628
|
+
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_3, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).flatteningShow), 1 /* TEXT */)]),
|
|
629
|
+
_: 1 /* STABLE */
|
|
670
630
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
671
631
|
span: 11
|
|
672
632
|
}, {
|
|
@@ -674,58 +634,31 @@ const __default__ = {
|
|
|
674
634
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).flatteningShow,
|
|
675
635
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).flatteningShow = $event),
|
|
676
636
|
onChange: onChangeFlatteningShow
|
|
677
|
-
}, null, 8
|
|
678
|
-
/*
|
|
679
|
-
, ["modelValue"])]),
|
|
680
|
-
_: 1
|
|
681
|
-
/* STABLE */
|
|
682
|
-
|
|
637
|
+
}, null, 8 /* PROPS */, ["modelValue"])]),
|
|
638
|
+
_: 1 /* STABLE */
|
|
683
639
|
})]),
|
|
684
|
-
_: 1
|
|
685
|
-
/* STABLE */
|
|
686
|
-
|
|
640
|
+
_: 1 /* STABLE */
|
|
687
641
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
688
642
|
class: "kq3d-model-flat-tip"
|
|
689
643
|
}, {
|
|
690
|
-
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
|
|
691
|
-
/*
|
|
692
|
-
)]),
|
|
693
|
-
_: 1
|
|
694
|
-
/* STABLE */
|
|
695
|
-
|
|
644
|
+
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 */)]),
|
|
645
|
+
_: 1 /* STABLE */
|
|
696
646
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_4, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
697
647
|
onClick: _cache[6] || (_cache[6] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
|
|
698
648
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startOperation,
|
|
699
649
|
type: "primary"
|
|
700
650
|
}, {
|
|
701
|
-
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
|
|
702
|
-
/*
|
|
703
|
-
|
|
704
|
-
_: 1
|
|
705
|
-
/* STABLE */
|
|
706
|
-
|
|
707
|
-
}, 8
|
|
708
|
-
/* PROPS */
|
|
709
|
-
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
651
|
+
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 */)]),
|
|
652
|
+
_: 1 /* STABLE */
|
|
653
|
+
}, 8 /* PROPS */, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
710
654
|
onClick: _cache[7] || (_cache[7] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
|
|
711
655
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
|
|
712
656
|
}, {
|
|
713
|
-
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
|
|
714
|
-
/*
|
|
715
|
-
|
|
716
|
-
_: 1
|
|
717
|
-
/* STABLE */
|
|
718
|
-
|
|
719
|
-
}, 8
|
|
720
|
-
/* PROPS */
|
|
721
|
-
, ["title"])])], 512
|
|
722
|
-
/* NEED_PATCH */
|
|
723
|
-
)], 2
|
|
724
|
-
/* CLASS */
|
|
725
|
-
);
|
|
657
|
+
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 */)]),
|
|
658
|
+
_: 1 /* STABLE */
|
|
659
|
+
}, 8 /* PROPS */, ["title"])])], 512 /* NEED_PATCH */)], 2 /* CLASS */);
|
|
726
660
|
};
|
|
727
661
|
}
|
|
728
|
-
|
|
729
662
|
}));
|
|
730
663
|
;// CONCATENATED MODULE: ./src/webgl/modelFlat/ModelFlat.vue?vue&type=script&setup=true&lang=js
|
|
731
664
|
|
|
@@ -747,13 +680,11 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
|
747
680
|
|
|
748
681
|
|
|
749
682
|
|
|
750
|
-
|
|
751
683
|
ModelFlat.install = (Vue, opts) => {
|
|
752
684
|
init_js_default()(Vue, opts);
|
|
753
685
|
Vue.component(ModelFlat.name, ModelFlat);
|
|
754
686
|
};
|
|
755
687
|
|
|
756
|
-
|
|
757
688
|
}();
|
|
758
689
|
/******/ return __webpack_exports__;
|
|
759
690
|
/******/ })()
|