@kq_npm/client3d_webgl_vue 4.5.29-beta → 4.5.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adddata/index.js +518 -262
- package/adddata/style/adddata.css +1 -1
- package/aspectanalysis/index.js +201 -123
- package/baseterraingallery/index.js +123 -94
- package/baseterraingallery/style/baseterraingallery.css +1 -1
- package/boxclip/index.js +442 -249
- package/clientPrint/index.js +27088 -14116
- package/clientPrint/style/clientPrint.css +1 -1
- package/comparemap/index.js +243 -213
- package/compass/index.js +68 -74
- package/excavatefillanalysis/index.js +225 -143
- package/fixedzoomin/index.js +82 -72
- package/fixedzoomout/index.js +80 -71
- package/flight/index.js +371 -257
- package/flight/style/flight.css +1 -1
- package/floodanalysis/index.js +347 -199
- package/geologicalbodyanalysis/index.js +260 -166
- package/gpuspatialquery/index.js +359 -198
- package/hawkeye/index.js +100 -131
- package/headertemp/index.js +25 -14
- package/heatmap3d/index.js +678 -366
- package/heatmap3d/style/heatmap3d.css +1 -1
- package/index.js +20310 -7159
- package/isolineanalysis/index.js +1202 -504
- package/light/index.js +494 -349
- package/limitheightanalysis/index.js +223 -159
- package/measure/index.js +353 -198
- package/modelFlat/index.js +204 -167
- package/modelexcavate/index.js +191 -130
- package/modelfilter/index.js +271 -179
- package/modelprofileanalysis/index.js +316 -206
- package/modelselect/index.js +147 -142
- package/package.json +1 -1
- package/particleeffect/index.js +403 -225
- package/planeclip/index.js +300 -198
- package/resetview/index.js +52 -66
- package/roller/index.js +372 -304
- package/scaneffect/index.js +537 -230
- package/sceneadvancedtoimage/index.js +358 -205
- package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -1
- package/sceneapp/index.js +27088 -14116
- package/sceneset/index.js +864 -350
- package/scenetohdimage/index.js +297 -159
- package/scenetohdimage/style/scenetohdimage.css +1 -1
- package/sceneview/index.js +27088 -14116
- package/sceneview/style/sceneview.css +1 -1
- package/screenshot/index.js +301 -257
- package/shadowanalysis/index.js +405 -217
- package/sightlineanalysis/index.js +271 -183
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +308 -160
- package/slopeanalysis/index.js +397 -227
- package/slopeaspectanalysis/index.js +485 -259
- package/statusbar/index.js +65 -88
- package/style.css +1 -1
- package/terrainoperation/index.js +237 -176
- package/terrainprofileanalysis/index.js +138 -120
- package/typhoontrac/index.js +970 -234
- package/typhoontrac/style/typhoontrac.css +1 -1
- package/underground/index.js +61 -70
- package/videofusion/index.js +488 -265
- package/videoproject/index.js +490 -271
- package/viewshedanalysis/index.js +255 -151
- package/weathereffect/index.js +317 -166
- package/windyslicing/index.js +1947 -0
- package/windyslicing/style/index.js +3 -0
- package/windyslicing/style/windyslicing.css +1 -0
- package/wireframesketch/index.js +142 -110
package/modelFlat/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/init.js"), require("@kq_npm/client_common_vue/_utils/util"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define(["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js", "@kq_npm/client_common_vue/_utils/util"], factory);
|
|
6
|
-
else
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
define("@kq_npm/client3d_webgl_vue", ["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js", "@kq_npm/client_common_vue/_utils/util"], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["@kq_npm/client3d_webgl_vue"] = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"), require("@kq_npm/client_common_vue/_utils/util"));
|
|
8
|
+
else
|
|
9
|
+
root["@kq_npm/client3d_webgl_vue"] = factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/init.js"], root["@kq_npm/client_common_vue/_utils/util"]);
|
|
10
10
|
})(this, function(__WEBPACK_EXTERNAL_MODULE__1895__, __WEBPACK_EXTERNAL_MODULE__7135__, __WEBPACK_EXTERNAL_MODULE__7997__, __WEBPACK_EXTERNAL_MODULE__3458__) {
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
@@ -25,10 +25,12 @@ return /******/ (function() { // webpackBootstrap
|
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
|
|
28
|
+
|
|
28
29
|
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
29
30
|
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
30
31
|
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
31
32
|
};
|
|
33
|
+
|
|
32
34
|
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
33
35
|
|
|
34
36
|
/***/ }),
|
|
@@ -40,27 +42,6 @@ module.exports = require("@kq_npm/client_icons_vue");
|
|
|
40
42
|
|
|
41
43
|
/***/ }),
|
|
42
44
|
|
|
43
|
-
/***/ 2118:
|
|
44
|
-
/***/ (function(module) {
|
|
45
|
-
|
|
46
|
-
module.exports = require("core-js/modules/es.array.push.js");
|
|
47
|
-
|
|
48
|
-
/***/ }),
|
|
49
|
-
|
|
50
|
-
/***/ 8470:
|
|
51
|
-
/***/ (function(module) {
|
|
52
|
-
|
|
53
|
-
module.exports = require("core-js/modules/esnext.iterator.constructor.js");
|
|
54
|
-
|
|
55
|
-
/***/ }),
|
|
56
|
-
|
|
57
|
-
/***/ 1058:
|
|
58
|
-
/***/ (function(module) {
|
|
59
|
-
|
|
60
|
-
module.exports = require("core-js/modules/esnext.iterator.for-each.js");
|
|
61
|
-
|
|
62
|
-
/***/ }),
|
|
63
|
-
|
|
64
45
|
/***/ 9389:
|
|
65
46
|
/***/ (function(module) {
|
|
66
47
|
|
|
@@ -103,59 +84,27 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
|
103
84
|
|
|
104
85
|
/***/ }),
|
|
105
86
|
|
|
106
|
-
/***/
|
|
87
|
+
/***/ 8270:
|
|
107
88
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
108
89
|
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
118
|
-
|
|
119
|
-
|
|
120
|
-
|
|
121
|
-
|
|
122
|
-
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
123
|
-
}, _typeof(o);
|
|
124
|
-
}
|
|
125
|
-
|
|
126
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
127
|
-
|
|
128
|
-
function toPrimitive(t, r) {
|
|
129
|
-
if ("object" != _typeof(t) || !t) return t;
|
|
130
|
-
var e = t[Symbol.toPrimitive];
|
|
131
|
-
if (void 0 !== e) {
|
|
132
|
-
var i = e.call(t, r || "default");
|
|
133
|
-
if ("object" != _typeof(i)) return i;
|
|
134
|
-
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
90
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
91
|
+
/* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
|
|
92
|
+
/* harmony export */ });
|
|
93
|
+
function _defineProperty(obj, key, value) {
|
|
94
|
+
if (key in obj) {
|
|
95
|
+
Object.defineProperty(obj, key, {
|
|
96
|
+
value: value,
|
|
97
|
+
enumerable: true,
|
|
98
|
+
configurable: true,
|
|
99
|
+
writable: true
|
|
100
|
+
});
|
|
101
|
+
} else {
|
|
102
|
+
obj[key] = value;
|
|
135
103
|
}
|
|
136
|
-
return ("string" === r ? String : Number)(t);
|
|
137
|
-
}
|
|
138
|
-
|
|
139
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
140
|
-
|
|
141
104
|
|
|
142
|
-
|
|
143
|
-
var i = toPrimitive(t, "string");
|
|
144
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
105
|
+
return obj;
|
|
145
106
|
}
|
|
146
107
|
|
|
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
108
|
/***/ })
|
|
160
109
|
|
|
161
110
|
/******/ });
|
|
@@ -242,21 +191,13 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
242
191
|
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
243
192
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
244
193
|
var gis_utils_ = __webpack_require__(7135);
|
|
245
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
246
|
-
var defineProperty = __webpack_require__(
|
|
247
|
-
// EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
|
|
248
|
-
var es_array_push_js_ = __webpack_require__(2118);
|
|
249
|
-
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
|
|
250
|
-
var esnext_iterator_constructor_js_ = __webpack_require__(8470);
|
|
251
|
-
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.for-each.js"
|
|
252
|
-
var esnext_iterator_for_each_js_ = __webpack_require__(1058);
|
|
194
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
195
|
+
var defineProperty = __webpack_require__(8270);
|
|
253
196
|
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
254
197
|
var message = __webpack_require__(1349);
|
|
255
198
|
;// CONCATENATED MODULE: ./src/webgl/modelFlat/ModelFlatViewModel.js
|
|
256
199
|
|
|
257
200
|
|
|
258
|
-
|
|
259
|
-
|
|
260
201
|
/*
|
|
261
202
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
262
203
|
* All rights reserved.
|
|
@@ -264,67 +205,85 @@ var message = __webpack_require__(1349);
|
|
|
264
205
|
//模型平整逻辑类
|
|
265
206
|
|
|
266
207
|
class ModelFlatViewModel {
|
|
208
|
+
//三维viewer对象
|
|
209
|
+
//绘制管理对象
|
|
210
|
+
//全局参数
|
|
211
|
+
//绘制完成监听事件
|
|
212
|
+
//测量三维对象
|
|
213
|
+
//测量结果
|
|
214
|
+
// 平整对象
|
|
215
|
+
//平整辅助面数组
|
|
267
216
|
constructor(scenceView, viewModel) {
|
|
268
217
|
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
269
|
-
|
|
218
|
+
|
|
270
219
|
(0,defineProperty/* default */.Z)(this, "_drawManager", null);
|
|
271
|
-
|
|
220
|
+
|
|
272
221
|
(0,defineProperty/* default */.Z)(this, "_options", {});
|
|
273
|
-
|
|
222
|
+
|
|
274
223
|
(0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
|
|
275
|
-
|
|
224
|
+
|
|
276
225
|
(0,defineProperty/* default */.Z)(this, "_measureHandler", null);
|
|
277
|
-
|
|
226
|
+
|
|
278
227
|
(0,defineProperty/* default */.Z)(this, "_measureResult", null);
|
|
279
|
-
|
|
228
|
+
|
|
280
229
|
(0,defineProperty/* default */.Z)(this, "_flatteningPolygonTex", null);
|
|
281
|
-
|
|
230
|
+
|
|
282
231
|
(0,defineProperty/* default */.Z)(this, "_assistPolygons", []);
|
|
283
|
-
|
|
232
|
+
|
|
284
233
|
(0,defineProperty/* default */.Z)(this, "currentFlatPolygonIndex", -1);
|
|
234
|
+
|
|
285
235
|
(0,defineProperty/* default */.Z)(this, "_language", {});
|
|
236
|
+
|
|
286
237
|
this._viewer = scenceView._viewer;
|
|
287
238
|
this._options = viewModel;
|
|
288
239
|
this._viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
289
240
|
this._language = scenceView._language;
|
|
290
|
-
this._drawManager = scenceView._drawManager;
|
|
291
|
-
|
|
241
|
+
this._drawManager = scenceView._drawManager; //Create flattenning controller
|
|
242
|
+
|
|
292
243
|
var that = this;
|
|
244
|
+
|
|
293
245
|
if (scenceView.g_flattenedPolygonTexture) {
|
|
294
246
|
this._flatteningPolygonTex = scenceView.g_flattenedPolygonTexture;
|
|
295
247
|
} else {
|
|
296
248
|
let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
|
|
297
249
|
this._flatteningPolygonTex = kq3dFlattenning.createFlattenedPolygonTexture();
|
|
298
250
|
var models = this._viewer.scene.primitives._primitives;
|
|
251
|
+
|
|
299
252
|
for (let i = 0; i < models.length; i++) {
|
|
300
|
-
if (models[i] instanceof Cesium.Cesium3DTileset && models[i].
|
|
253
|
+
if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._originUrl) {
|
|
254
|
+
//edited by ly models[i]._url) {
|
|
301
255
|
that._flatteningPolygonTex.attachTileset(models[i]);
|
|
302
256
|
}
|
|
303
257
|
}
|
|
304
|
-
}
|
|
305
|
-
// this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
258
|
+
} // this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
306
259
|
// if (shape) {
|
|
307
260
|
// that._options.positions = shape._controlPoints;
|
|
308
261
|
// that.createFlat();
|
|
309
262
|
// that._drawManager.clear();
|
|
310
263
|
// }
|
|
311
264
|
// });
|
|
265
|
+
|
|
266
|
+
|
|
312
267
|
this._measureHandler = new Cesium.Kq3dMeasureHandler(this._viewer);
|
|
268
|
+
|
|
313
269
|
this._measureHandler.measureEvent.addEventListener(function (result) {
|
|
314
270
|
that._measureResult = result;
|
|
315
271
|
result.measureResult.label.show = false;
|
|
316
272
|
});
|
|
273
|
+
|
|
317
274
|
this._measureHandler.activeEvent.addEventListener(function (ret) {
|
|
318
275
|
if (ret == false) {
|
|
319
276
|
if (that._measureResult) {
|
|
320
277
|
that._options.positions = that._measureResult.positions;
|
|
321
278
|
that.createFlat();
|
|
279
|
+
|
|
322
280
|
that._measureResult.measureResult.destroy();
|
|
323
281
|
}
|
|
324
282
|
}
|
|
325
283
|
});
|
|
326
|
-
}
|
|
327
|
-
|
|
284
|
+
} // 创建平整
|
|
285
|
+
|
|
286
|
+
|
|
328
287
|
createFlat() {
|
|
329
288
|
// 创建压平面
|
|
330
289
|
let curAssitPolygon = this._viewer.entities.add({
|
|
@@ -334,51 +293,62 @@ class ModelFlatViewModel {
|
|
|
334
293
|
},
|
|
335
294
|
show: this._options.flatteningShow ? true : false
|
|
336
295
|
});
|
|
296
|
+
|
|
337
297
|
this._assistPolygons.push(curAssitPolygon);
|
|
298
|
+
|
|
338
299
|
let myPolygon = window.Cesium.PolygonGeometry.fromPositions({
|
|
339
300
|
positions: this._options.positions,
|
|
340
301
|
height: this._options.flatHeight
|
|
341
302
|
});
|
|
342
303
|
this._flatteningPolygonTex && this._flatteningPolygonTex.addFlattenedPolygon(myPolygon);
|
|
343
|
-
}
|
|
344
|
-
|
|
304
|
+
} // 获取平整数量
|
|
305
|
+
|
|
306
|
+
|
|
345
307
|
getFlatCount() {
|
|
346
308
|
return this._flatteningPolygonTex.getFlattenedPolygons().length;
|
|
347
|
-
}
|
|
348
|
-
|
|
309
|
+
} // 开始分析
|
|
310
|
+
|
|
311
|
+
|
|
349
312
|
start() {
|
|
350
313
|
// 判断是否添加了模型
|
|
351
314
|
var flag = false;
|
|
352
315
|
var models = this._viewer.scene.primitives._primitives;
|
|
316
|
+
|
|
353
317
|
for (let i = 0; i < models.length; i++) {
|
|
354
318
|
if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
|
|
355
319
|
models[i].flattenDiscard = false;
|
|
356
320
|
flag = true;
|
|
357
321
|
}
|
|
358
322
|
}
|
|
323
|
+
|
|
359
324
|
if (flag) {
|
|
360
325
|
this.remove(!this._options.showFlattenedPolygons);
|
|
361
|
-
|
|
362
|
-
// this._drawManager.startDraw("polygon", { clampToGround: true });
|
|
326
|
+
|
|
327
|
+
this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.HorizontalArea); // this._drawManager.startDraw("polygon", { clampToGround: true });
|
|
328
|
+
|
|
363
329
|
} else {
|
|
364
330
|
(0,message/* default */.Z)({
|
|
365
331
|
message: this._language["addModelTips"],
|
|
366
332
|
type: "warning"
|
|
367
333
|
});
|
|
368
334
|
}
|
|
369
|
-
}
|
|
370
|
-
|
|
335
|
+
} // 切换高度重新计算
|
|
336
|
+
|
|
337
|
+
|
|
371
338
|
setHeight(val) {
|
|
372
339
|
this._options.flatHeight = Number(val);
|
|
340
|
+
|
|
373
341
|
if (this.currentFlatPolygonIndex == -1) {
|
|
374
342
|
this._flatteningPolygonTex.setFlattenedPolygonHeight(-1, Number(val));
|
|
375
343
|
} else {
|
|
376
344
|
this._flatteningPolygonTex.setFlattenedPolygonHeight(this.currentFlatPolygonIndex, Number(val));
|
|
377
345
|
}
|
|
378
|
-
}
|
|
379
|
-
|
|
346
|
+
} // 切换辅助面显示
|
|
347
|
+
|
|
348
|
+
|
|
380
349
|
setFlatteningShow(val) {
|
|
381
350
|
this._options.flatteningShow = val;
|
|
351
|
+
|
|
382
352
|
if (val) {
|
|
383
353
|
this._assistPolygons.forEach(item => {
|
|
384
354
|
item.show = true;
|
|
@@ -388,34 +358,43 @@ class ModelFlatViewModel {
|
|
|
388
358
|
item.show = false;
|
|
389
359
|
});
|
|
390
360
|
}
|
|
391
|
-
}
|
|
392
|
-
|
|
361
|
+
} // 设置平整实例
|
|
362
|
+
|
|
363
|
+
|
|
393
364
|
setCurrentFlatPolygonIndex(val) {
|
|
394
365
|
this.currentFlatPolygonIndex = val;
|
|
395
|
-
}
|
|
396
|
-
|
|
366
|
+
} // 清除绘制
|
|
367
|
+
|
|
368
|
+
|
|
397
369
|
remove(bool) {
|
|
398
370
|
this._drawManager.stopDraw();
|
|
371
|
+
|
|
399
372
|
if (bool) {
|
|
400
373
|
this._flatteningPolygonTex && this._flatteningPolygonTex.removeAllFlattenedPolygon();
|
|
374
|
+
|
|
401
375
|
for (var i = 0; i < this._assistPolygons.length; i++) {
|
|
402
376
|
this._viewer.entities.remove(this._assistPolygons[i]);
|
|
403
377
|
}
|
|
378
|
+
|
|
404
379
|
this._assistPolygons = [];
|
|
405
380
|
}
|
|
406
|
-
}
|
|
407
|
-
|
|
381
|
+
} // 清除
|
|
382
|
+
|
|
383
|
+
|
|
408
384
|
clear() {
|
|
409
385
|
this.remove(true);
|
|
410
386
|
this._measureResult = null;
|
|
387
|
+
|
|
411
388
|
this._measureHandler.clear();
|
|
412
|
-
}
|
|
413
|
-
|
|
389
|
+
} //销毁
|
|
390
|
+
|
|
391
|
+
|
|
414
392
|
destroy() {
|
|
415
393
|
this.clear();
|
|
416
394
|
this._measureHandler && this._measureHandler.destroy();
|
|
417
395
|
this._measureHandler = null;
|
|
418
396
|
}
|
|
397
|
+
|
|
419
398
|
}
|
|
420
399
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
421
400
|
var client_icons_vue_ = __webpack_require__(348);
|
|
@@ -423,7 +402,7 @@ var client_icons_vue_ = __webpack_require__(348);
|
|
|
423
402
|
var util_ = __webpack_require__(3458);
|
|
424
403
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
425
404
|
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
426
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/modelFlat/ModelFlat.vue?vue&type=script&setup=true&lang=js
|
|
405
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/webgl/modelFlat/ModelFlat.vue?vue&type=script&setup=true&lang=js
|
|
427
406
|
|
|
428
407
|
const _hoisted_1 = {
|
|
429
408
|
class: "kq3d-model-flat-box",
|
|
@@ -443,9 +422,7 @@ const _hoisted_4 = {
|
|
|
443
422
|
|
|
444
423
|
|
|
445
424
|
|
|
446
|
-
|
|
447
|
-
|
|
448
|
-
//语言
|
|
425
|
+
//语言
|
|
449
426
|
|
|
450
427
|
const __default__ = {
|
|
451
428
|
name: "Kq3dModelFlat"
|
|
@@ -461,6 +438,7 @@ const __default__ = {
|
|
|
461
438
|
type: Boolean,
|
|
462
439
|
default: true
|
|
463
440
|
},
|
|
441
|
+
|
|
464
442
|
/**
|
|
465
443
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
466
444
|
*/
|
|
@@ -490,6 +468,7 @@ const __default__ = {
|
|
|
490
468
|
default: true
|
|
491
469
|
}
|
|
492
470
|
},
|
|
471
|
+
|
|
493
472
|
setup(__props, {
|
|
494
473
|
expose: __expose
|
|
495
474
|
}) {
|
|
@@ -498,9 +477,7 @@ const __default__ = {
|
|
|
498
477
|
proxy
|
|
499
478
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
500
479
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
|
|
501
|
-
let viewModel = null;
|
|
502
|
-
|
|
503
|
-
// 获取组件传参
|
|
480
|
+
let viewModel = null; // 获取组件传参
|
|
504
481
|
|
|
505
482
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
506
483
|
flatHeight: props.settingParams && props.settingParams.excavationDepth || 10,
|
|
@@ -512,16 +489,14 @@ const __default__ = {
|
|
|
512
489
|
flatteningShow: props.settingParams && props.settingParams.maxExcavationDepth || true,
|
|
513
490
|
// 压平面是否显示
|
|
514
491
|
showFlattenedPolygons: props.settingParams && props.settingParams.showFlattenedPolygons || false // 是否显示多个压平面分析结果
|
|
515
|
-
});
|
|
516
492
|
|
|
517
|
-
// 组件容器Ref
|
|
518
|
-
|
|
493
|
+
}); // 组件容器Ref
|
|
494
|
+
|
|
495
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
519
496
|
|
|
520
|
-
// 生成组件默认header
|
|
521
497
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
522
|
-
let headerTempRef = (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)(); // 国际化
|
|
523
499
|
|
|
524
|
-
// 国际化
|
|
525
500
|
let {
|
|
526
501
|
locale,
|
|
527
502
|
messages
|
|
@@ -542,66 +517,79 @@ const __default__ = {
|
|
|
542
517
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
543
518
|
watchCreateHeaderTemp();
|
|
544
519
|
});
|
|
545
|
-
});
|
|
520
|
+
}); //父组件ScenceView初始化完成后执行
|
|
546
521
|
|
|
547
|
-
//父组件ScenceView初始化完成后执行
|
|
548
522
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
549
523
|
if (scenceView) {
|
|
550
524
|
viewModel = new ModelFlatViewModel(scenceView, formItem);
|
|
551
525
|
}
|
|
552
526
|
});
|
|
553
527
|
});
|
|
554
|
-
|
|
555
528
|
/**
|
|
556
529
|
* @description 监听header生成
|
|
557
530
|
*/
|
|
531
|
+
|
|
558
532
|
const watchCreateHeaderTemp = () => {
|
|
559
533
|
if (props.showHeaderTemp) {
|
|
560
534
|
// 生成headerTemp
|
|
561
535
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
562
536
|
}
|
|
563
|
-
};
|
|
564
|
-
|
|
537
|
+
}; // 调整平整深度
|
|
538
|
+
|
|
539
|
+
|
|
565
540
|
function changeHeight() {
|
|
566
541
|
viewModel && viewModel.setHeight(formItem.flatHeight);
|
|
567
|
-
}
|
|
568
|
-
|
|
542
|
+
} // 调整压平面是否显示
|
|
543
|
+
|
|
544
|
+
|
|
569
545
|
function onChangeFlatteningShow() {
|
|
570
546
|
viewModel && viewModel.setFlatteningShow(formItem.flatteningShow);
|
|
571
|
-
}
|
|
572
|
-
|
|
547
|
+
} // 获取平整分析个数
|
|
548
|
+
|
|
549
|
+
|
|
573
550
|
function getFlatCount() {
|
|
574
551
|
return viewModel && viewModel.getFlatCount();
|
|
575
|
-
}
|
|
576
|
-
|
|
552
|
+
} // 设置操作平整实例
|
|
553
|
+
|
|
554
|
+
|
|
577
555
|
function setCurrentFlatPolygonIndex(val) {
|
|
578
556
|
viewModel && viewModel.setCurrentFlatPolygonIndex(val);
|
|
579
|
-
}
|
|
580
|
-
|
|
557
|
+
} // 开始分析
|
|
558
|
+
|
|
559
|
+
|
|
581
560
|
function startOperation() {
|
|
582
561
|
viewModel && viewModel.start();
|
|
583
|
-
}
|
|
584
|
-
|
|
562
|
+
} // 清除
|
|
563
|
+
|
|
564
|
+
|
|
585
565
|
function clear() {
|
|
586
566
|
viewModel && viewModel.clear();
|
|
587
|
-
}
|
|
567
|
+
} // 销毁
|
|
568
|
+
|
|
588
569
|
|
|
589
|
-
// 销毁
|
|
590
570
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
591
571
|
viewModel && viewModel.destroy();
|
|
592
572
|
});
|
|
573
|
+
|
|
593
574
|
__expose({
|
|
594
575
|
getFlatCount,
|
|
595
576
|
setCurrentFlatPolygonIndex,
|
|
596
577
|
clear
|
|
597
578
|
});
|
|
579
|
+
|
|
598
580
|
return (_ctx, _cache) => {
|
|
599
581
|
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
582
|
+
|
|
600
583
|
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
584
|
+
|
|
601
585
|
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
|
|
586
|
+
|
|
602
587
|
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
588
|
+
|
|
603
589
|
const _component_kq_switch = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-switch");
|
|
590
|
+
|
|
604
591
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
592
|
+
|
|
605
593
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
606
594
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-model-flat", {
|
|
607
595
|
'kq-box-shadow': __props.showShadow
|
|
@@ -612,14 +600,20 @@ const __default__ = {
|
|
|
612
600
|
key: 0,
|
|
613
601
|
ref_key: "headerTempRef",
|
|
614
602
|
ref: headerTempRef
|
|
615
|
-
}, null, 512
|
|
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, {
|
|
616
606
|
gutter: 10
|
|
617
607
|
}, {
|
|
618
608
|
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, {
|
|
619
609
|
span: 7
|
|
620
610
|
}, {
|
|
621
|
-
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
|
|
622
|
-
|
|
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
|
+
/* TEXT */
|
|
613
|
+
)]),
|
|
614
|
+
_: 1
|
|
615
|
+
/* STABLE */
|
|
616
|
+
|
|
623
617
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
624
618
|
span: 11
|
|
625
619
|
}, {
|
|
@@ -631,8 +625,12 @@ const __default__ = {
|
|
|
631
625
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxFlatDepth,
|
|
632
626
|
onChange: _cache[1] || (_cache[1] = $event => changeHeight()),
|
|
633
627
|
onClick: _cache[2] || (_cache[2] = $event => changeHeight())
|
|
634
|
-
}, null, 8
|
|
635
|
-
|
|
628
|
+
}, null, 8
|
|
629
|
+
/* PROPS */
|
|
630
|
+
, ["modelValue", "min", "max"])]),
|
|
631
|
+
_: 1
|
|
632
|
+
/* STABLE */
|
|
633
|
+
|
|
636
634
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
637
635
|
span: 6,
|
|
638
636
|
style: {
|
|
@@ -647,18 +645,28 @@ const __default__ = {
|
|
|
647
645
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxFlatDepth,
|
|
648
646
|
"controls-position": "right",
|
|
649
647
|
onInput: _cache[4] || (_cache[4] = $event => changeHeight())
|
|
650
|
-
}, null, 8
|
|
651
|
-
|
|
648
|
+
}, null, 8
|
|
649
|
+
/* PROPS */
|
|
650
|
+
, ["modelValue", "min", "max"])]),
|
|
651
|
+
_: 1
|
|
652
|
+
/* STABLE */
|
|
653
|
+
|
|
652
654
|
})]),
|
|
653
|
-
_: 1
|
|
655
|
+
_: 1
|
|
656
|
+
/* STABLE */
|
|
657
|
+
|
|
654
658
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
655
659
|
gutter: 10
|
|
656
660
|
}, {
|
|
657
661
|
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, {
|
|
658
662
|
span: 7
|
|
659
663
|
}, {
|
|
660
|
-
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
|
|
661
|
-
|
|
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
|
+
/* TEXT */
|
|
666
|
+
)]),
|
|
667
|
+
_: 1
|
|
668
|
+
/* STABLE */
|
|
669
|
+
|
|
662
670
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
663
671
|
span: 11
|
|
664
672
|
}, {
|
|
@@ -666,31 +674,58 @@ const __default__ = {
|
|
|
666
674
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).flatteningShow,
|
|
667
675
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).flatteningShow = $event),
|
|
668
676
|
onChange: onChangeFlatteningShow
|
|
669
|
-
}, null, 8
|
|
670
|
-
|
|
677
|
+
}, null, 8
|
|
678
|
+
/* PROPS */
|
|
679
|
+
, ["modelValue"])]),
|
|
680
|
+
_: 1
|
|
681
|
+
/* STABLE */
|
|
682
|
+
|
|
671
683
|
})]),
|
|
672
|
-
_: 1
|
|
684
|
+
_: 1
|
|
685
|
+
/* STABLE */
|
|
686
|
+
|
|
673
687
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
674
688
|
class: "kq3d-model-flat-tip"
|
|
675
689
|
}, {
|
|
676
|
-
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
|
|
677
|
-
|
|
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
|
+
/* TEXT */
|
|
692
|
+
)]),
|
|
693
|
+
_: 1
|
|
694
|
+
/* STABLE */
|
|
695
|
+
|
|
678
696
|
}), (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, {
|
|
679
697
|
onClick: _cache[6] || (_cache[6] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startOperation(), ["stop"])),
|
|
680
698
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startOperation,
|
|
681
699
|
type: "primary"
|
|
682
700
|
}, {
|
|
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).startOperation), 1
|
|
684
|
-
|
|
685
|
-
|
|
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
|
+
/* TEXT */
|
|
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, {
|
|
686
710
|
onClick: _cache[7] || (_cache[7] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
|
|
687
711
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
|
|
688
712
|
}, {
|
|
689
|
-
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
|
|
690
|
-
|
|
691
|
-
|
|
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
|
+
/* TEXT */
|
|
715
|
+
)]),
|
|
716
|
+
_: 1
|
|
717
|
+
/* STABLE */
|
|
718
|
+
|
|
719
|
+
}, 8
|
|
720
|
+
/* PROPS */
|
|
721
|
+
, ["title"])])], 512
|
|
722
|
+
/* NEED_PATCH */
|
|
723
|
+
)], 2
|
|
724
|
+
/* CLASS */
|
|
725
|
+
);
|
|
692
726
|
};
|
|
693
727
|
}
|
|
728
|
+
|
|
694
729
|
}));
|
|
695
730
|
;// CONCATENATED MODULE: ./src/webgl/modelFlat/ModelFlat.vue?vue&type=script&setup=true&lang=js
|
|
696
731
|
|
|
@@ -712,11 +747,13 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
|
712
747
|
|
|
713
748
|
|
|
714
749
|
|
|
750
|
+
|
|
715
751
|
ModelFlat.install = (Vue, opts) => {
|
|
716
752
|
init_js_default()(Vue, opts);
|
|
717
753
|
Vue.component(ModelFlat.name, ModelFlat);
|
|
718
754
|
};
|
|
719
755
|
|
|
756
|
+
|
|
720
757
|
}();
|
|
721
758
|
/******/ return __webpack_exports__;
|
|
722
759
|
/******/ })()
|