@kq_npm/client3d_webgl_vue 4.5.3-beta → 4.5.5-beta
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/adddata/index.js +337 -524
- package/adddata/style/adddata.css +1 -1
- package/aspectanalysis/index.js +163 -229
- package/baseterraingallery/index.js +122 -145
- package/boxclip/index.js +291 -472
- package/clientPrint/index.js +368 -906
- package/clientPrint/style/clientPrint.css +1 -1
- package/comparemap/index.js +224 -246
- package/compass/index.js +96 -84
- package/excavatefillanalysis/index.js +185 -255
- package/fixedzoomin/index.js +91 -76
- package/fixedzoomout/index.js +91 -76
- package/flight/index.js +298 -402
- package/flight/style/flight.css +1 -1
- package/floodanalysis/index.js +248 -385
- package/geologicalbodyanalysis/index.js +206 -288
- package/gpuspatialquery/index.js +243 -392
- package/hawkeye/index.js +139 -103
- package/headertemp/index.js +23 -33
- package/heatmap3d/index.js +427 -734
- package/heatmap3d/style/heatmap3d.css +1 -1
- package/index.js +8170 -17000
- package/isolineanalysis/index.js +557 -1233
- package/light/index.js +351 -488
- package/limitheightanalysis/index.js +249 -312
- package/measure/index.js +341 -495
- package/modelFlat/index.js +261 -259
- package/modelexcavate/index.js +214 -266
- package/modelfilter/index.js +216 -299
- package/modelprofileanalysis/index.js +354 -465
- package/modelselect/index.js +183 -175
- package/package.json +1 -1
- package/particleeffect/index.js +257 -430
- package/planeclip/index.js +240 -330
- package/resetview/index.js +89 -69
- package/roller/index.js +305 -363
- package/scaneffect/index.js +274 -572
- package/sceneadvancedtoimage/index.js +1057 -0
- package/sceneadvancedtoimage/style/index.js +3 -0
- package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -0
- package/sceneapp/index.js +818 -2179
- package/sceneset/index.js +391 -885
- package/scenetohdimage/index.js +212 -346
- package/scenetohdimage/style/scenetohdimage.css +1 -1
- package/sceneview/index.js +9208 -17907
- package/sceneview/style/sceneview.css +1 -1
- package/screenshot/index.js +273 -312
- package/shadowanalysis/index.js +259 -437
- package/sightlineanalysis/index.js +229 -312
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +204 -341
- package/slopeanalysis/index.js +274 -435
- package/slopeaspectanalysis/index.js +307 -524
- package/statusbar/index.js +113 -84
- package/style.css +1 -1
- package/terrainoperation/index.js +222 -271
- package/terrainprofileanalysis/index.js +166 -173
- package/underground/index.js +96 -82
- package/videofusion/index.js +305 -519
- package/videoproject/index.js +311 -521
- package/viewshedanalysis/index.js +176 -275
- package/weathereffect/index.js +197 -343
- package/wireframesketch/index.js +133 -141
package/modelselect/index.js
CHANGED
|
@@ -7,100 +7,155 @@
|
|
|
7
7
|
var a = typeof exports === 'object' ? 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")) : 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"]);
|
|
8
8
|
for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
|
|
9
9
|
}
|
|
10
|
-
})(this, function(
|
|
10
|
+
})(this, function(__WEBPACK_EXTERNAL_MODULE__154__, __WEBPACK_EXTERNAL_MODULE__64__, __WEBPACK_EXTERNAL_MODULE__455__, __WEBPACK_EXTERNAL_MODULE__2975__) {
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
13
13
|
/******/ var __webpack_modules__ = ({
|
|
14
14
|
|
|
15
|
-
/***/
|
|
15
|
+
/***/ 3275:
|
|
16
16
|
/***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
|
|
17
17
|
|
|
18
|
-
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
18
|
+
/* harmony import */ var element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6363);
|
|
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
|
-
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
20
|
+
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(455);
|
|
21
21
|
/* harmony import */ var _init__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_init__WEBPACK_IMPORTED_MODULE_1__);
|
|
22
|
-
|
|
22
|
+
/*
|
|
23
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
24
|
+
* All rights reserved.
|
|
25
|
+
*/
|
|
23
26
|
|
|
24
27
|
|
|
25
28
|
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
26
29
|
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
27
30
|
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
28
31
|
};
|
|
29
|
-
|
|
30
|
-
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
32
|
+
/* harmony default export */ __webpack_exports__.A = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
31
33
|
|
|
32
34
|
/***/ }),
|
|
33
35
|
|
|
34
|
-
/***/
|
|
36
|
+
/***/ 5698:
|
|
35
37
|
/***/ (function(module) {
|
|
36
38
|
|
|
37
39
|
module.exports = require("@kq_npm/client_icons_vue");
|
|
38
40
|
|
|
39
41
|
/***/ }),
|
|
40
42
|
|
|
41
|
-
/***/
|
|
43
|
+
/***/ 2652:
|
|
44
|
+
/***/ (function(module) {
|
|
45
|
+
|
|
46
|
+
module.exports = require("core-js/modules/es.array.push.js");
|
|
47
|
+
|
|
48
|
+
/***/ }),
|
|
49
|
+
|
|
50
|
+
/***/ 3658:
|
|
51
|
+
/***/ (function(module) {
|
|
52
|
+
|
|
53
|
+
module.exports = require("core-js/modules/esnext.iterator.constructor.js");
|
|
54
|
+
|
|
55
|
+
/***/ }),
|
|
56
|
+
|
|
57
|
+
/***/ 4669:
|
|
58
|
+
/***/ (function(module) {
|
|
59
|
+
|
|
60
|
+
module.exports = require("core-js/modules/esnext.iterator.for-each.js");
|
|
61
|
+
|
|
62
|
+
/***/ }),
|
|
63
|
+
|
|
64
|
+
/***/ 6363:
|
|
42
65
|
/***/ (function(module) {
|
|
43
66
|
|
|
44
67
|
module.exports = require("element-plus/dist/index.full.js");
|
|
45
68
|
|
|
46
69
|
/***/ }),
|
|
47
70
|
|
|
48
|
-
/***/
|
|
71
|
+
/***/ 3579:
|
|
49
72
|
/***/ (function(module) {
|
|
50
73
|
|
|
51
74
|
module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
|
|
52
75
|
|
|
53
76
|
/***/ }),
|
|
54
77
|
|
|
55
|
-
/***/
|
|
78
|
+
/***/ 64:
|
|
56
79
|
/***/ (function(module) {
|
|
57
80
|
|
|
58
|
-
module.exports =
|
|
81
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__64__;
|
|
59
82
|
|
|
60
83
|
/***/ }),
|
|
61
84
|
|
|
62
|
-
/***/
|
|
85
|
+
/***/ 2975:
|
|
63
86
|
/***/ (function(module) {
|
|
64
87
|
|
|
65
|
-
module.exports =
|
|
88
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__2975__;
|
|
66
89
|
|
|
67
90
|
/***/ }),
|
|
68
91
|
|
|
69
|
-
/***/
|
|
92
|
+
/***/ 455:
|
|
70
93
|
/***/ (function(module) {
|
|
71
94
|
|
|
72
|
-
module.exports =
|
|
95
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__455__;
|
|
73
96
|
|
|
74
97
|
/***/ }),
|
|
75
98
|
|
|
76
|
-
/***/
|
|
99
|
+
/***/ 154:
|
|
77
100
|
/***/ (function(module) {
|
|
78
101
|
|
|
79
|
-
module.exports =
|
|
102
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__154__;
|
|
80
103
|
|
|
81
104
|
/***/ }),
|
|
82
105
|
|
|
83
|
-
/***/
|
|
106
|
+
/***/ 6913:
|
|
84
107
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
85
108
|
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
function
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
109
|
+
|
|
110
|
+
// EXPORTS
|
|
111
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
112
|
+
A: function() { return /* binding */ _defineProperty; }
|
|
113
|
+
});
|
|
114
|
+
|
|
115
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
116
|
+
function _typeof(o) {
|
|
117
|
+
"@babel/helpers - typeof";
|
|
118
|
+
|
|
119
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
120
|
+
return typeof o;
|
|
121
|
+
} : function (o) {
|
|
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.");
|
|
99
135
|
}
|
|
136
|
+
return ("string" === r ? String : Number)(t);
|
|
137
|
+
}
|
|
138
|
+
|
|
139
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
140
|
+
|
|
100
141
|
|
|
101
|
-
|
|
142
|
+
function toPropertyKey(t) {
|
|
143
|
+
var i = toPrimitive(t, "string");
|
|
144
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
102
145
|
}
|
|
103
146
|
|
|
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
|
+
|
|
104
159
|
/***/ })
|
|
105
160
|
|
|
106
161
|
/******/ });
|
|
@@ -172,66 +227,69 @@ function _defineProperty(obj, key, value) {
|
|
|
172
227
|
/******/
|
|
173
228
|
/************************************************************************/
|
|
174
229
|
var __webpack_exports__ = {};
|
|
175
|
-
// This entry need to be wrapped in an IIFE because it need to be isolated against other modules in the chunk.
|
|
176
|
-
!function() {
|
|
177
230
|
// ESM COMPAT FLAG
|
|
178
231
|
__webpack_require__.r(__webpack_exports__);
|
|
179
232
|
|
|
180
233
|
// EXPORTS
|
|
181
234
|
__webpack_require__.d(__webpack_exports__, {
|
|
182
|
-
|
|
235
|
+
ModelSelectViewModel: function() { return /* reexport */ ModelSelectViewModel; },
|
|
183
236
|
"default": function() { return /* reexport */ ModelSelect; }
|
|
184
237
|
});
|
|
185
238
|
|
|
239
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
|
|
240
|
+
var es_array_push_js_ = __webpack_require__(2652);
|
|
186
241
|
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
187
|
-
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
|
|
242
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(154);
|
|
188
243
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
189
|
-
var gis_utils_ = __webpack_require__(
|
|
190
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
191
|
-
var defineProperty = __webpack_require__(
|
|
244
|
+
var gis_utils_ = __webpack_require__(64);
|
|
245
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js + 3 modules
|
|
246
|
+
var defineProperty = __webpack_require__(6913);
|
|
247
|
+
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
|
|
248
|
+
var esnext_iterator_constructor_js_ = __webpack_require__(3658);
|
|
249
|
+
// EXTERNAL MODULE: external "core-js/modules/esnext.iterator.for-each.js"
|
|
250
|
+
var esnext_iterator_for_each_js_ = __webpack_require__(4669);
|
|
192
251
|
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
193
|
-
var message = __webpack_require__(
|
|
252
|
+
var message = __webpack_require__(3275);
|
|
194
253
|
;// CONCATENATED MODULE: ./src/webgl/modelselect/ModelSelectViewModel.js
|
|
195
254
|
|
|
255
|
+
|
|
256
|
+
|
|
257
|
+
/*
|
|
258
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
259
|
+
* All rights reserved.
|
|
260
|
+
*/
|
|
196
261
|
//模型拾取逻辑类
|
|
197
262
|
|
|
198
263
|
class ModelSelectViewModel {
|
|
199
|
-
//三维viewer对象
|
|
200
|
-
//屏幕空间事件处理程序三维对象
|
|
201
|
-
//拾取状态
|
|
202
|
-
//高亮三维对象
|
|
203
|
-
//高亮颜色
|
|
204
|
-
// 模型属性唯一值字段集合
|
|
205
|
-
// 模型属性匹配字段
|
|
206
264
|
constructor(scenceView, pickCallFunc) {
|
|
207
|
-
(0,defineProperty/* default */.
|
|
208
|
-
|
|
209
|
-
(0,defineProperty/* default */.
|
|
210
|
-
|
|
211
|
-
(0,defineProperty/* default */.
|
|
212
|
-
|
|
213
|
-
(0,defineProperty/* default */.
|
|
214
|
-
|
|
215
|
-
(0,defineProperty/* default */.
|
|
216
|
-
|
|
217
|
-
(0,defineProperty/* default */.
|
|
218
|
-
|
|
219
|
-
(0,defineProperty/* default */.
|
|
220
|
-
|
|
265
|
+
(0,defineProperty/* default */.A)(this, "_viewer", null);
|
|
266
|
+
//三维viewer对象
|
|
267
|
+
(0,defineProperty/* default */.A)(this, "_handler", null);
|
|
268
|
+
//屏幕空间事件处理程序三维对象
|
|
269
|
+
(0,defineProperty/* default */.A)(this, "_isPick", false);
|
|
270
|
+
//拾取状态
|
|
271
|
+
(0,defineProperty/* default */.A)(this, "_highlight", null);
|
|
272
|
+
//高亮三维对象
|
|
273
|
+
(0,defineProperty/* default */.A)(this, "_highlightColor", "#FF0000");
|
|
274
|
+
//高亮颜色
|
|
275
|
+
(0,defineProperty/* default */.A)(this, "_modeFiledArray", null);
|
|
276
|
+
// 模型属性唯一值字段集合
|
|
277
|
+
(0,defineProperty/* default */.A)(this, "_modeFiled", "id");
|
|
278
|
+
// 模型属性匹配字段
|
|
279
|
+
(0,defineProperty/* default */.A)(this, "_language", {});
|
|
280
|
+
this._language = scenceView._language;
|
|
221
281
|
this._viewer = scenceView._viewer;
|
|
222
282
|
this._drawManager = scenceView._drawManager;
|
|
223
283
|
this._handler = new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas);
|
|
224
284
|
let that = this;
|
|
225
|
-
|
|
226
285
|
this._handler.setInputAction(function (movement) {
|
|
227
286
|
if (that._isPick) {
|
|
228
|
-
let pickedObject = that._viewer.scene.pick(movement.position);
|
|
229
|
-
|
|
230
|
-
|
|
287
|
+
let pickedObject = that._viewer.scene.pick(movement.position);
|
|
288
|
+
// console.log(pickedObject);
|
|
231
289
|
if (pickedObject) {
|
|
232
290
|
if (pickedObject instanceof Cesium.Cesium3DTileFeature) {
|
|
233
|
-
let properties = pickedObject.getPropertyNames() || [];
|
|
234
|
-
|
|
291
|
+
let properties = pickedObject.getPropertyNames() || [];
|
|
292
|
+
// console.log(properties);
|
|
235
293
|
if (that._modeFiledArray && that._modeFiledArray.length && that._modeFiledArray.length > 0) {
|
|
236
294
|
for (let val in that._modeFiledArray) {
|
|
237
295
|
if (properties.indexOf(val) > -1) {
|
|
@@ -240,10 +298,9 @@ class ModelSelectViewModel {
|
|
|
240
298
|
}
|
|
241
299
|
}
|
|
242
300
|
}
|
|
243
|
-
|
|
244
301
|
if (properties.indexOf(that._modeFiled) > -1) {
|
|
245
|
-
let id = pickedObject.getProperty(that._modeFiled);
|
|
246
|
-
|
|
302
|
+
let id = pickedObject.getProperty(that._modeFiled);
|
|
303
|
+
// that.clear();
|
|
247
304
|
that._highlight = new Cesium.Kq3dHighlight({
|
|
248
305
|
viewer: that._viewer,
|
|
249
306
|
tileset: pickedObject.tileset,
|
|
@@ -266,57 +323,53 @@ class ModelSelectViewModel {
|
|
|
266
323
|
}
|
|
267
324
|
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
268
325
|
}
|
|
269
|
-
|
|
270
326
|
setCursor(style) {
|
|
271
327
|
this._viewer.canvas.style.cursor = style;
|
|
272
|
-
}
|
|
273
|
-
|
|
328
|
+
}
|
|
274
329
|
|
|
330
|
+
//拾取
|
|
275
331
|
pick() {
|
|
276
332
|
// 判断是否添加了模型
|
|
277
333
|
var flag = false;
|
|
278
334
|
var models = this._viewer.scene.primitives._primitives;
|
|
279
|
-
|
|
280
335
|
for (let i = 0; i < models.length; i++) {
|
|
281
336
|
if (models[i]._url) {
|
|
282
337
|
flag = true;
|
|
283
338
|
}
|
|
284
339
|
}
|
|
285
|
-
|
|
286
340
|
if (flag) {
|
|
287
341
|
this.setCursor("crosshair");
|
|
288
342
|
this._isPick = true;
|
|
289
343
|
} else {
|
|
290
|
-
(0,message/* default */.
|
|
291
|
-
message: "
|
|
344
|
+
(0,message/* default */.A)({
|
|
345
|
+
message: this._language["addModelAnalysisTips"],
|
|
292
346
|
type: "warning"
|
|
293
347
|
});
|
|
294
348
|
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
|
|
349
|
+
}
|
|
350
|
+
//清除
|
|
298
351
|
clear() {
|
|
299
352
|
this._highlight && this._highlight.remove();
|
|
300
353
|
this._highlight = null;
|
|
301
354
|
this.setCursor("default");
|
|
302
355
|
this._isPick = false;
|
|
303
|
-
}
|
|
304
|
-
|
|
356
|
+
}
|
|
305
357
|
|
|
358
|
+
//销毁
|
|
306
359
|
destroy() {
|
|
307
360
|
this.clear();
|
|
308
361
|
this._handler && this._handler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
309
362
|
}
|
|
310
|
-
|
|
311
363
|
}
|
|
312
364
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
313
|
-
var client_icons_vue_ = __webpack_require__(
|
|
365
|
+
var client_icons_vue_ = __webpack_require__(5698);
|
|
314
366
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
315
|
-
var util_ = __webpack_require__(
|
|
367
|
+
var util_ = __webpack_require__(2975);
|
|
316
368
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
317
|
-
var vue_i18n_cjs_js_ = __webpack_require__(
|
|
369
|
+
var vue_i18n_cjs_js_ = __webpack_require__(3579);
|
|
318
370
|
;// 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
|
|
319
371
|
|
|
372
|
+
|
|
320
373
|
const _hoisted_1 = {
|
|
321
374
|
class: "title"
|
|
322
375
|
};
|
|
@@ -328,12 +381,14 @@ const _hoisted_2 = {
|
|
|
328
381
|
|
|
329
382
|
|
|
330
383
|
|
|
331
|
-
|
|
384
|
+
|
|
385
|
+
|
|
386
|
+
// tree数据源
|
|
332
387
|
|
|
333
388
|
const __default__ = {
|
|
334
389
|
name: "Kq3dModelSelect"
|
|
335
390
|
};
|
|
336
|
-
/* harmony default export */ var ModelSelectvue_type_script_setup_true_lang_js = (
|
|
391
|
+
/* harmony default export */ var ModelSelectvue_type_script_setup_true_lang_js = (/*@__PURE__*/Object.assign(__default__, {
|
|
337
392
|
props: {
|
|
338
393
|
// 外部字段别名映射
|
|
339
394
|
aliasNameReflection: {
|
|
@@ -356,7 +411,6 @@ const __default__ = {
|
|
|
356
411
|
type: Boolean,
|
|
357
412
|
default: true
|
|
358
413
|
},
|
|
359
|
-
|
|
360
414
|
/**
|
|
361
415
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
362
416
|
*/
|
|
@@ -386,34 +440,36 @@ const __default__ = {
|
|
|
386
440
|
default: true
|
|
387
441
|
}
|
|
388
442
|
},
|
|
389
|
-
|
|
390
443
|
setup(__props, {
|
|
391
444
|
expose: __expose
|
|
392
445
|
}) {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
446
|
+
let layerNameTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
447
|
+
// 属性值
|
|
448
|
+
let tableData = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
449
|
+
//语言
|
|
398
450
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
399
451
|
let viewModel = null;
|
|
400
|
-
let ref_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
401
|
-
// 表格头样式
|
|
452
|
+
let ref_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
402
453
|
|
|
454
|
+
// 获取组件传参
|
|
455
|
+
const props = __props;
|
|
456
|
+
// 表格头样式
|
|
403
457
|
let headClass = args => {
|
|
404
458
|
return {
|
|
405
459
|
"background-color": "var(--kq-fill-color-light)",
|
|
406
460
|
color: "var(--kq-color-info)",
|
|
407
461
|
"font-size": "14px"
|
|
408
462
|
};
|
|
409
|
-
};
|
|
410
|
-
|
|
463
|
+
};
|
|
411
464
|
|
|
412
|
-
|
|
465
|
+
// 组件容器Ref
|
|
466
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
413
467
|
|
|
468
|
+
// 生成组件默认header
|
|
414
469
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
415
|
-
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
470
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
416
471
|
|
|
472
|
+
// 国际化
|
|
417
473
|
let {
|
|
418
474
|
locale,
|
|
419
475
|
messages
|
|
@@ -431,8 +487,9 @@ const __default__ = {
|
|
|
431
487
|
watchCreateHeaderTemp();
|
|
432
488
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
433
489
|
watchCreateHeaderTemp();
|
|
434
|
-
});
|
|
490
|
+
});
|
|
435
491
|
|
|
492
|
+
//父组件ScenceView初始化完成后执行
|
|
436
493
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
437
494
|
if (scenceView) {
|
|
438
495
|
viewModel = new ModelSelectViewModel(scenceView, pickCallFunc);
|
|
@@ -441,32 +498,27 @@ const __default__ = {
|
|
|
441
498
|
}
|
|
442
499
|
});
|
|
443
500
|
});
|
|
501
|
+
|
|
444
502
|
/**
|
|
445
503
|
* @description 监听header生成
|
|
446
504
|
*/
|
|
447
|
-
|
|
448
505
|
const watchCreateHeaderTemp = () => {
|
|
449
506
|
if (props.showHeaderTemp) {
|
|
450
507
|
// 生成headerTemp
|
|
451
508
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
452
509
|
}
|
|
453
510
|
};
|
|
454
|
-
|
|
455
511
|
function pick() {
|
|
456
512
|
viewModel && viewModel.pick();
|
|
457
513
|
}
|
|
458
|
-
|
|
459
514
|
function pickCallFunc(layerName, properties) {
|
|
460
515
|
layerNameTitle.value = layerName;
|
|
461
516
|
let propertiesData = [];
|
|
462
|
-
|
|
463
517
|
if (props.aliasNameReflection) {
|
|
464
518
|
let arrKeys = [];
|
|
465
|
-
|
|
466
519
|
for (let key in properties) {
|
|
467
520
|
arrKeys.push(key);
|
|
468
521
|
}
|
|
469
|
-
|
|
470
522
|
props.aliasNameReflection(arrKeys, item => {
|
|
471
523
|
// console.log(item);
|
|
472
524
|
for (let key in properties) {
|
|
@@ -484,36 +536,28 @@ const __default__ = {
|
|
|
484
536
|
});
|
|
485
537
|
}
|
|
486
538
|
}
|
|
487
|
-
|
|
488
539
|
tableData.value = propertiesData;
|
|
489
540
|
}
|
|
490
|
-
|
|
491
541
|
function clear() {
|
|
492
542
|
layerNameTitle.value = "";
|
|
493
543
|
tableData.value = [];
|
|
494
544
|
viewModel && viewModel.clear();
|
|
495
|
-
}
|
|
496
|
-
|
|
545
|
+
}
|
|
497
546
|
|
|
547
|
+
// 销毁
|
|
498
548
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
499
549
|
viewModel && viewModel.destroy();
|
|
500
550
|
});
|
|
501
|
-
|
|
502
551
|
__expose({
|
|
503
552
|
pick,
|
|
504
553
|
clear,
|
|
505
554
|
pickCallFunc
|
|
506
555
|
});
|
|
507
|
-
|
|
508
556
|
return (_ctx, _cache) => {
|
|
509
557
|
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
510
|
-
|
|
511
558
|
const _component_kq_table_column = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-table-column");
|
|
512
|
-
|
|
513
559
|
const _component_kq_table = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-table");
|
|
514
|
-
|
|
515
560
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
516
|
-
|
|
517
561
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
518
562
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-model-select", {
|
|
519
563
|
'kq-box-shadow': __props.showShadow
|
|
@@ -524,21 +568,13 @@ const __default__ = {
|
|
|
524
568
|
key: 0,
|
|
525
569
|
ref_key: "headerTempRef",
|
|
526
570
|
ref: headerTempRef
|
|
527
|
-
}, null, 512
|
|
528
|
-
/* NEED_PATCH */
|
|
529
|
-
)) : (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", {
|
|
571
|
+
}, 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", {
|
|
530
572
|
class: "kq3d-model-select-box",
|
|
531
573
|
ref_key: "ref_box",
|
|
532
574
|
ref: ref_box
|
|
533
575
|
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
534
|
-
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
|
|
535
|
-
/*
|
|
536
|
-
), (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
|
|
537
|
-
/* TEXT */
|
|
538
|
-
)])]),
|
|
539
|
-
_: 1
|
|
540
|
-
/* STABLE */
|
|
541
|
-
|
|
576
|
+
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 /* TEXT */), (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 /* TEXT */)])]),
|
|
577
|
+
_: 1 /* STABLE */
|
|
542
578
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
543
579
|
class: "modelTable",
|
|
544
580
|
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)(__props.showHeaderTemp ? 'height: calc(100% - 70px)' : 'height: calc(100% - 35px)')
|
|
@@ -560,59 +596,30 @@ const __default__ = {
|
|
|
560
596
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).fieldName,
|
|
561
597
|
prop: "field",
|
|
562
598
|
align: "center"
|
|
563
|
-
}, null, 8
|
|
564
|
-
/* PROPS */
|
|
565
|
-
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
|
|
599
|
+
}, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
|
|
566
600
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).fieldValue,
|
|
567
601
|
prop: "value",
|
|
568
602
|
align: "center"
|
|
569
|
-
}, null, 8
|
|
570
|
-
/*
|
|
571
|
-
|
|
572
|
-
|
|
573
|
-
|
|
574
|
-
|
|
575
|
-
}, 8
|
|
576
|
-
/* PROPS */
|
|
577
|
-
, ["data", "header-cell-style"])]),
|
|
578
|
-
_: 1
|
|
579
|
-
/* STABLE */
|
|
580
|
-
|
|
581
|
-
}, 8
|
|
582
|
-
/* PROPS */
|
|
583
|
-
, ["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, {
|
|
603
|
+
}, null, 8 /* PROPS */, ["label"])]),
|
|
604
|
+
_: 1 /* STABLE */
|
|
605
|
+
}, 8 /* PROPS */, ["data", "header-cell-style"])]),
|
|
606
|
+
_: 1 /* STABLE */
|
|
607
|
+
}, 8 /* PROPS */, ["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, {
|
|
584
608
|
onClick: _cache[0] || (_cache[0] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => pick(), ["stop"])),
|
|
585
609
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).pick,
|
|
586
610
|
type: "primary"
|
|
587
611
|
}, {
|
|
588
|
-
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
|
|
589
|
-
/*
|
|
590
|
-
|
|
591
|
-
_: 1
|
|
592
|
-
/* STABLE */
|
|
593
|
-
|
|
594
|
-
}, 8
|
|
595
|
-
/* PROPS */
|
|
596
|
-
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
612
|
+
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 /* TEXT */)]),
|
|
613
|
+
_: 1 /* STABLE */
|
|
614
|
+
}, 8 /* PROPS */, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
597
615
|
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
|
|
598
616
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
|
|
599
617
|
}, {
|
|
600
|
-
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
|
|
601
|
-
/*
|
|
602
|
-
|
|
603
|
-
_: 1
|
|
604
|
-
/* STABLE */
|
|
605
|
-
|
|
606
|
-
}, 8
|
|
607
|
-
/* PROPS */
|
|
608
|
-
, ["title"])])], 512
|
|
609
|
-
/* NEED_PATCH */
|
|
610
|
-
)], 2
|
|
611
|
-
/* CLASS */
|
|
612
|
-
);
|
|
618
|
+
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 */)]),
|
|
619
|
+
_: 1 /* STABLE */
|
|
620
|
+
}, 8 /* PROPS */, ["title"])])], 512 /* NEED_PATCH */)], 2 /* CLASS */);
|
|
613
621
|
};
|
|
614
622
|
}
|
|
615
|
-
|
|
616
623
|
}));
|
|
617
624
|
;// CONCATENATED MODULE: ./src/webgl/modelselect/ModelSelect.vue?vue&type=script&setup=true&lang=js
|
|
618
625
|
|
|
@@ -624,10 +631,13 @@ const __exports__ = ModelSelectvue_type_script_setup_true_lang_js;
|
|
|
624
631
|
|
|
625
632
|
/* harmony default export */ var ModelSelect = (__exports__);
|
|
626
633
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
627
|
-
var init_js_ = __webpack_require__(
|
|
634
|
+
var init_js_ = __webpack_require__(455);
|
|
628
635
|
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
629
636
|
;// CONCATENATED MODULE: ./src/webgl/modelselect/index.js
|
|
630
|
-
|
|
637
|
+
/*
|
|
638
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
639
|
+
* All rights reserved.
|
|
640
|
+
*/
|
|
631
641
|
|
|
632
642
|
|
|
633
643
|
|
|
@@ -636,8 +646,6 @@ ModelSelect.install = (Vue, opts) => {
|
|
|
636
646
|
Vue.component(ModelSelect.name, ModelSelect);
|
|
637
647
|
};
|
|
638
648
|
|
|
639
|
-
|
|
640
|
-
}();
|
|
641
649
|
/******/ return __webpack_exports__;
|
|
642
650
|
/******/ })()
|
|
643
651
|
;
|
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.5-beta","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","dependencies":{"colorcolor":"1.1.1","echarts":"5.5.1","echarts-stat":"1.2.0","js-cookie":"3.0.1","omit.js":"2.0.2","save":"2.5.0","tinycolor2":"1.4.2","vue-i18n":"9.2.0-beta.36","xlsx":"0.18.5","css-vars-ponyfill":"2.4.8","html2canvas":"1.4.1","xe-utils":"3.5.4"}}
|