@kq_npm/client3d_webgl_vue 4.5.28-beta → 4.5.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adddata/index.js +518 -262
- package/adddata/style/adddata.css +1 -1
- package/aspectanalysis/index.js +201 -123
- package/baseterraingallery/index.js +123 -94
- package/baseterraingallery/style/baseterraingallery.css +1 -1
- package/boxclip/index.js +442 -249
- package/clientPrint/index.js +27093 -14116
- package/clientPrint/style/clientPrint.css +1 -1
- package/comparemap/index.js +243 -213
- package/compass/index.js +68 -74
- package/excavatefillanalysis/index.js +225 -143
- package/fixedzoomin/index.js +82 -72
- package/fixedzoomout/index.js +80 -71
- package/flight/index.js +371 -257
- package/flight/style/flight.css +1 -1
- package/floodanalysis/index.js +347 -199
- package/geologicalbodyanalysis/index.js +260 -166
- package/gpuspatialquery/index.js +359 -198
- package/hawkeye/index.js +100 -131
- package/headertemp/index.js +25 -14
- package/heatmap3d/index.js +678 -366
- package/heatmap3d/style/heatmap3d.css +1 -1
- package/index.js +20321 -7165
- package/isolineanalysis/index.js +1202 -504
- package/light/index.js +494 -349
- package/limitheightanalysis/index.js +223 -159
- package/measure/index.js +353 -198
- package/modelFlat/index.js +204 -167
- package/modelexcavate/index.js +191 -130
- package/modelfilter/index.js +271 -179
- package/modelprofileanalysis/index.js +316 -206
- package/modelselect/index.js +147 -142
- package/package.json +1 -1
- package/particleeffect/index.js +403 -225
- package/planeclip/index.js +300 -198
- package/resetview/index.js +52 -66
- package/roller/index.js +372 -304
- package/scaneffect/index.js +537 -230
- package/sceneadvancedtoimage/index.js +358 -205
- package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -1
- package/sceneapp/index.js +27093 -14116
- package/sceneset/index.js +864 -350
- package/scenetohdimage/index.js +297 -159
- package/scenetohdimage/style/scenetohdimage.css +1 -1
- package/sceneview/index.js +27093 -14116
- package/sceneview/style/sceneview.css +1 -1
- package/screenshot/index.js +301 -257
- package/shadowanalysis/index.js +405 -217
- package/sightlineanalysis/index.js +271 -183
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +308 -160
- package/slopeanalysis/index.js +397 -227
- package/slopeaspectanalysis/index.js +485 -259
- package/statusbar/index.js +65 -88
- package/style.css +1 -1
- package/terrainoperation/index.js +237 -176
- package/terrainprofileanalysis/index.js +138 -120
- package/typhoontrac/index.js +970 -234
- package/typhoontrac/style/typhoontrac.css +1 -1
- package/underground/index.js +61 -70
- package/videofusion/index.js +488 -265
- package/videoproject/index.js +490 -271
- package/viewshedanalysis/index.js +255 -151
- package/weathereffect/index.js +317 -166
- package/windyslicing/index.js +1947 -0
- package/windyslicing/style/index.js +3 -0
- package/windyslicing/style/windyslicing.css +1 -0
- package/wireframesketch/index.js +142 -110
package/modelselect/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
|
-
|
|
142
|
-
function toPropertyKey(t) {
|
|
143
|
-
var i = toPrimitive(t, "string");
|
|
144
|
-
return "symbol" == _typeof(i) ? i : i + "";
|
|
145
|
-
}
|
|
146
|
-
|
|
147
|
-
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
148
104
|
|
|
149
|
-
|
|
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;
|
|
105
|
+
return obj;
|
|
156
106
|
}
|
|
157
107
|
|
|
158
|
-
|
|
159
108
|
/***/ })
|
|
160
109
|
|
|
161
110
|
/******/ });
|
|
@@ -238,24 +187,17 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
238
187
|
"default": function() { return /* reexport */ ModelSelect; }
|
|
239
188
|
});
|
|
240
189
|
|
|
241
|
-
// EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
|
|
242
|
-
var es_array_push_js_ = __webpack_require__(2118);
|
|
243
190
|
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
244
191
|
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
|
|
245
192
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
246
193
|
var gis_utils_ = __webpack_require__(7135);
|
|
247
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
248
|
-
var defineProperty = __webpack_require__(
|
|
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/modelselect/ModelSelectViewModel.js
|
|
256
199
|
|
|
257
200
|
|
|
258
|
-
|
|
259
201
|
/*
|
|
260
202
|
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
261
203
|
* All rights reserved.
|
|
@@ -263,37 +205,48 @@ var message = __webpack_require__(1349);
|
|
|
263
205
|
//模型拾取逻辑类
|
|
264
206
|
|
|
265
207
|
class ModelSelectViewModel {
|
|
208
|
+
//三维viewer对象
|
|
209
|
+
//屏幕空间事件处理程序三维对象
|
|
210
|
+
//拾取状态
|
|
211
|
+
//高亮三维对象
|
|
212
|
+
//高亮颜色
|
|
213
|
+
// 模型属性唯一值字段集合
|
|
214
|
+
// 模型属性匹配字段
|
|
266
215
|
constructor(scenceView, pickCallFunc) {
|
|
267
216
|
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
268
|
-
|
|
217
|
+
|
|
269
218
|
(0,defineProperty/* default */.Z)(this, "_handler", null);
|
|
270
|
-
|
|
219
|
+
|
|
271
220
|
(0,defineProperty/* default */.Z)(this, "_isPick", false);
|
|
272
|
-
|
|
221
|
+
|
|
273
222
|
(0,defineProperty/* default */.Z)(this, "_highlight", null);
|
|
274
|
-
|
|
223
|
+
|
|
275
224
|
(0,defineProperty/* default */.Z)(this, "_highlightColor", "#FF0000");
|
|
276
|
-
|
|
225
|
+
|
|
277
226
|
(0,defineProperty/* default */.Z)(this, "_modeFiledArray", null);
|
|
278
|
-
|
|
227
|
+
|
|
279
228
|
(0,defineProperty/* default */.Z)(this, "_modeFiled", "id");
|
|
280
|
-
|
|
229
|
+
|
|
281
230
|
(0,defineProperty/* default */.Z)(this, "_language", {});
|
|
231
|
+
|
|
282
232
|
this._language = scenceView._language;
|
|
283
233
|
this._viewer = scenceView._viewer;
|
|
284
234
|
this._drawManager = scenceView._drawManager;
|
|
285
235
|
this._handler = new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas);
|
|
286
236
|
let that = this;
|
|
237
|
+
|
|
287
238
|
this._handler.setInputAction(function (movement) {
|
|
288
239
|
if (that._isPick) {
|
|
289
|
-
let pickedObject = that._viewer.scene.pick(movement.position);
|
|
290
|
-
|
|
240
|
+
let pickedObject = that._viewer.scene.pick(movement.position); // console.log(pickedObject);
|
|
241
|
+
|
|
242
|
+
|
|
291
243
|
if (pickedObject) {
|
|
292
244
|
if (pickedObject instanceof Cesium.Cesium3DTileFeature) {
|
|
293
|
-
if (pickedObject.getPropertyNames !== undefined) {}
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
// console.log(properties);
|
|
245
|
+
if (pickedObject.getPropertyNames !== undefined) {} // 兼容Cesium186和1102
|
|
246
|
+
|
|
247
|
+
|
|
248
|
+
let properties = pickedObject.getPropertyNames !== undefined ? pickedObject.getPropertyNames() : (pickedObject.getPropertyIds !== undefined ? pickedObject.getPropertyIds() : null) || []; // console.log(properties);
|
|
249
|
+
|
|
297
250
|
if (that._modeFiledArray && that._modeFiledArray.length && that._modeFiledArray.length > 0) {
|
|
298
251
|
that._modeFiledArray.forEach(val => {
|
|
299
252
|
if (properties.indexOf(val) > -1) {
|
|
@@ -302,9 +255,10 @@ class ModelSelectViewModel {
|
|
|
302
255
|
}
|
|
303
256
|
});
|
|
304
257
|
}
|
|
258
|
+
|
|
305
259
|
if (properties.indexOf(that._modeFiled) > -1) {
|
|
306
|
-
let id = pickedObject.getProperty(that._modeFiled);
|
|
307
|
-
|
|
260
|
+
let id = pickedObject.getProperty(that._modeFiled); // that.clear();
|
|
261
|
+
|
|
308
262
|
that._highlight = new Cesium.Kq3dHighlight({
|
|
309
263
|
viewer: that._viewer,
|
|
310
264
|
tileset: pickedObject.tileset,
|
|
@@ -333,20 +287,23 @@ class ModelSelectViewModel {
|
|
|
333
287
|
}
|
|
334
288
|
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
335
289
|
}
|
|
290
|
+
|
|
336
291
|
setCursor(style) {
|
|
337
292
|
this._viewer.canvas.style.cursor = style;
|
|
338
|
-
}
|
|
293
|
+
} //拾取
|
|
294
|
+
|
|
339
295
|
|
|
340
|
-
//拾取
|
|
341
296
|
pick() {
|
|
342
297
|
// 判断是否添加了模型
|
|
343
298
|
var flag = false;
|
|
344
299
|
var models = this._viewer.scene.primitives._primitives;
|
|
300
|
+
|
|
345
301
|
for (let i = 0; i < models.length; i++) {
|
|
346
302
|
if (models[i]._url && models[i] instanceof Cesium.Cesium3DTileset) {
|
|
347
303
|
flag = true;
|
|
348
304
|
}
|
|
349
305
|
}
|
|
306
|
+
|
|
350
307
|
if (flag) {
|
|
351
308
|
this.setCursor("crosshair");
|
|
352
309
|
this._isPick = true;
|
|
@@ -356,20 +313,22 @@ class ModelSelectViewModel {
|
|
|
356
313
|
type: "warning"
|
|
357
314
|
});
|
|
358
315
|
}
|
|
359
|
-
}
|
|
360
|
-
|
|
316
|
+
} //清除
|
|
317
|
+
|
|
318
|
+
|
|
361
319
|
clear() {
|
|
362
320
|
this._highlight && this._highlight.remove();
|
|
363
321
|
this._highlight = null;
|
|
364
322
|
this.setCursor("default");
|
|
365
323
|
this._isPick = false;
|
|
366
|
-
}
|
|
324
|
+
} //销毁
|
|
325
|
+
|
|
367
326
|
|
|
368
|
-
//销毁
|
|
369
327
|
destroy() {
|
|
370
328
|
this.clear();
|
|
371
329
|
this._handler && this._handler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
372
330
|
}
|
|
331
|
+
|
|
373
332
|
}
|
|
374
333
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
375
334
|
var client_icons_vue_ = __webpack_require__(348);
|
|
@@ -377,8 +336,7 @@ var client_icons_vue_ = __webpack_require__(348);
|
|
|
377
336
|
var util_ = __webpack_require__(3458);
|
|
378
337
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
379
338
|
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
380
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/modelselect/ModelSelect.vue?vue&type=script&setup=true&lang=js
|
|
381
|
-
|
|
339
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/webgl/modelselect/ModelSelect.vue?vue&type=script&setup=true&lang=js
|
|
382
340
|
|
|
383
341
|
const _hoisted_1 = {
|
|
384
342
|
class: "title"
|
|
@@ -391,9 +349,7 @@ const _hoisted_2 = {
|
|
|
391
349
|
|
|
392
350
|
|
|
393
351
|
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
// tree数据源
|
|
352
|
+
// tree数据源
|
|
397
353
|
|
|
398
354
|
const __default__ = {
|
|
399
355
|
name: "Kq3dModelSelect"
|
|
@@ -421,6 +377,7 @@ const __default__ = {
|
|
|
421
377
|
type: Boolean,
|
|
422
378
|
default: true
|
|
423
379
|
},
|
|
380
|
+
|
|
424
381
|
/**
|
|
425
382
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
426
383
|
*/
|
|
@@ -450,40 +407,37 @@ const __default__ = {
|
|
|
450
407
|
default: true
|
|
451
408
|
}
|
|
452
409
|
},
|
|
410
|
+
|
|
453
411
|
setup(__props, {
|
|
454
412
|
expose: __expose
|
|
455
413
|
}) {
|
|
456
414
|
const props = __props;
|
|
457
|
-
let layerNameTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
458
|
-
|
|
459
|
-
let tableData = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
460
|
-
|
|
415
|
+
let layerNameTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(""); // 属性值
|
|
416
|
+
|
|
417
|
+
let tableData = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]); //语言
|
|
418
|
+
|
|
461
419
|
const {
|
|
462
420
|
proxy
|
|
463
421
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
464
422
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
|
|
465
423
|
let viewModel = null;
|
|
466
|
-
let ref_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
467
|
-
|
|
468
|
-
// 获取组件传参
|
|
469
|
-
|
|
424
|
+
let ref_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 获取组件传参
|
|
470
425
|
// 表格头样式
|
|
426
|
+
|
|
471
427
|
let headClass = args => {
|
|
472
428
|
return {
|
|
473
429
|
"background-color": "var(--kq-fill-color-light)",
|
|
474
430
|
color: "var(--kq-color-info)",
|
|
475
431
|
"font-size": "14px"
|
|
476
432
|
};
|
|
477
|
-
};
|
|
433
|
+
}; // 组件容器Ref
|
|
434
|
+
|
|
478
435
|
|
|
479
|
-
//
|
|
480
|
-
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
436
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
481
437
|
|
|
482
|
-
// 生成组件默认header
|
|
483
438
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
484
|
-
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
439
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
|
|
485
440
|
|
|
486
|
-
// 国际化
|
|
487
441
|
let {
|
|
488
442
|
locale,
|
|
489
443
|
messages
|
|
@@ -504,9 +458,8 @@ const __default__ = {
|
|
|
504
458
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
|
|
505
459
|
watchCreateHeaderTemp();
|
|
506
460
|
});
|
|
507
|
-
});
|
|
461
|
+
}); //父组件ScenceView初始化完成后执行
|
|
508
462
|
|
|
509
|
-
//父组件ScenceView初始化完成后执行
|
|
510
463
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
511
464
|
if (scenceView) {
|
|
512
465
|
viewModel = new ModelSelectViewModel(scenceView, pickCallFunc);
|
|
@@ -515,27 +468,32 @@ const __default__ = {
|
|
|
515
468
|
}
|
|
516
469
|
});
|
|
517
470
|
});
|
|
518
|
-
|
|
519
471
|
/**
|
|
520
472
|
* @description 监听header生成
|
|
521
473
|
*/
|
|
474
|
+
|
|
522
475
|
const watchCreateHeaderTemp = () => {
|
|
523
476
|
if (props.showHeaderTemp) {
|
|
524
477
|
// 生成headerTemp
|
|
525
478
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
526
479
|
}
|
|
527
480
|
};
|
|
481
|
+
|
|
528
482
|
function pick() {
|
|
529
483
|
viewModel && viewModel.pick();
|
|
530
484
|
}
|
|
485
|
+
|
|
531
486
|
function pickCallFunc(layerName, properties) {
|
|
532
487
|
layerNameTitle.value = layerName;
|
|
533
488
|
let propertiesData = [];
|
|
489
|
+
|
|
534
490
|
if (props.aliasNameReflection) {
|
|
535
491
|
let arrKeys = [];
|
|
492
|
+
|
|
536
493
|
for (let key in properties) {
|
|
537
494
|
arrKeys.push(key);
|
|
538
495
|
}
|
|
496
|
+
|
|
539
497
|
props.aliasNameReflection(arrKeys, item => {
|
|
540
498
|
// console.log(item);
|
|
541
499
|
for (let key in properties) {
|
|
@@ -553,28 +511,36 @@ const __default__ = {
|
|
|
553
511
|
});
|
|
554
512
|
}
|
|
555
513
|
}
|
|
514
|
+
|
|
556
515
|
tableData.value = propertiesData;
|
|
557
516
|
}
|
|
517
|
+
|
|
558
518
|
function clear() {
|
|
559
519
|
layerNameTitle.value = "";
|
|
560
520
|
tableData.value = [];
|
|
561
521
|
viewModel && viewModel.clear();
|
|
562
|
-
}
|
|
522
|
+
} // 销毁
|
|
523
|
+
|
|
563
524
|
|
|
564
|
-
// 销毁
|
|
565
525
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
566
526
|
viewModel && viewModel.destroy();
|
|
567
527
|
});
|
|
528
|
+
|
|
568
529
|
__expose({
|
|
569
530
|
pick,
|
|
570
531
|
clear,
|
|
571
532
|
pickCallFunc
|
|
572
533
|
});
|
|
534
|
+
|
|
573
535
|
return (_ctx, _cache) => {
|
|
574
536
|
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
537
|
+
|
|
575
538
|
const _component_kq_table_column = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-table-column");
|
|
539
|
+
|
|
576
540
|
const _component_kq_table = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-table");
|
|
541
|
+
|
|
577
542
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
543
|
+
|
|
578
544
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
579
545
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-model-select", {
|
|
580
546
|
'kq-box-shadow': __props.showShadow
|
|
@@ -585,13 +551,21 @@ const __default__ = {
|
|
|
585
551
|
key: 0,
|
|
586
552
|
ref_key: "headerTempRef",
|
|
587
553
|
ref: headerTempRef
|
|
588
|
-
}, null, 512
|
|
554
|
+
}, null, 512
|
|
555
|
+
/* NEED_PATCH */
|
|
556
|
+
)) : (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", {
|
|
589
557
|
class: "kq3d-model-select-box",
|
|
590
558
|
ref_key: "ref_box",
|
|
591
559
|
ref: ref_box
|
|
592
560
|
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
593
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).modelLayerName) + " : ", 1
|
|
594
|
-
|
|
561
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).modelLayerName) + " : ", 1
|
|
562
|
+
/* TEXT */
|
|
563
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(layerNameTitle)), 1
|
|
564
|
+
/* TEXT */
|
|
565
|
+
)])]),
|
|
566
|
+
_: 1
|
|
567
|
+
/* STABLE */
|
|
568
|
+
|
|
595
569
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
596
570
|
class: "modelTable",
|
|
597
571
|
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)(__props.showHeaderTemp ? 'height: calc(100% - 70px)' : 'height: calc(100% - 35px)')
|
|
@@ -613,30 +587,59 @@ const __default__ = {
|
|
|
613
587
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).fieldName,
|
|
614
588
|
prop: "field",
|
|
615
589
|
align: "center"
|
|
616
|
-
}, null, 8
|
|
590
|
+
}, null, 8
|
|
591
|
+
/* PROPS */
|
|
592
|
+
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
|
|
617
593
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).fieldValue,
|
|
618
594
|
prop: "value",
|
|
619
595
|
align: "center"
|
|
620
|
-
}, null, 8
|
|
621
|
-
|
|
622
|
-
|
|
623
|
-
|
|
624
|
-
|
|
596
|
+
}, null, 8
|
|
597
|
+
/* PROPS */
|
|
598
|
+
, ["label"])]),
|
|
599
|
+
_: 1
|
|
600
|
+
/* STABLE */
|
|
601
|
+
|
|
602
|
+
}, 8
|
|
603
|
+
/* PROPS */
|
|
604
|
+
, ["data", "header-cell-style"])]),
|
|
605
|
+
_: 1
|
|
606
|
+
/* STABLE */
|
|
607
|
+
|
|
608
|
+
}, 8
|
|
609
|
+
/* PROPS */
|
|
610
|
+
, ["style"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
625
611
|
onClick: _cache[0] || (_cache[0] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => pick(), ["stop"])),
|
|
626
612
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).pick,
|
|
627
613
|
type: "primary"
|
|
628
614
|
}, {
|
|
629
|
-
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).pick), 1
|
|
630
|
-
|
|
631
|
-
|
|
615
|
+
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).pick), 1
|
|
616
|
+
/* TEXT */
|
|
617
|
+
)]),
|
|
618
|
+
_: 1
|
|
619
|
+
/* STABLE */
|
|
620
|
+
|
|
621
|
+
}, 8
|
|
622
|
+
/* PROPS */
|
|
623
|
+
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
632
624
|
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
|
|
633
625
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
|
|
634
626
|
}, {
|
|
635
|
-
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
|
|
636
|
-
|
|
637
|
-
|
|
627
|
+
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
|
|
628
|
+
/* TEXT */
|
|
629
|
+
)]),
|
|
630
|
+
_: 1
|
|
631
|
+
/* STABLE */
|
|
632
|
+
|
|
633
|
+
}, 8
|
|
634
|
+
/* PROPS */
|
|
635
|
+
, ["title"])])], 512
|
|
636
|
+
/* NEED_PATCH */
|
|
637
|
+
)], 2
|
|
638
|
+
/* CLASS */
|
|
639
|
+
);
|
|
638
640
|
};
|
|
639
641
|
}
|
|
642
|
+
|
|
640
643
|
}));
|
|
641
644
|
;// CONCATENATED MODULE: ./src/webgl/modelselect/ModelSelect.vue?vue&type=script&setup=true&lang=js
|
|
642
645
|
|
|
@@ -658,11 +661,13 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
|
658
661
|
|
|
659
662
|
|
|
660
663
|
|
|
664
|
+
|
|
661
665
|
ModelSelect.install = (Vue, opts) => {
|
|
662
666
|
init_js_default()(Vue, opts);
|
|
663
667
|
Vue.component(ModelSelect.name, ModelSelect);
|
|
664
668
|
};
|
|
665
669
|
|
|
670
|
+
|
|
666
671
|
}();
|
|
667
672
|
/******/ return __webpack_exports__;
|
|
668
673
|
/******/ })()
|
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"4.5.
|
|
1
|
+
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"4.5.30","homepage":"","keywords":["KQGIS","webGL","Vue"],"sdkNames":["@kq_npm/client_icons_vue"],"restrictedVersion":true,"validateSDK":true,"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","jsdelivr":"index.js","dependencies":{"save":"2.5.0","html2canvas":"1.4.1","papaparse":"5.4.1"}}
|