@kq_npm/client3d_webgl_vue 4.5.3-beta → 4.5.4-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 +159 -227
- package/baseterraingallery/index.js +122 -145
- package/boxclip/index.js +288 -470
- package/clientPrint/index.js +333 -897
- package/clientPrint/style/clientPrint.css +1 -1
- package/comparemap/index.js +224 -246
- package/compass/index.js +96 -84
- package/excavatefillanalysis/index.js +181 -252
- package/fixedzoomin/index.js +91 -76
- package/fixedzoomout/index.js +91 -76
- package/flight/index.js +297 -401
- package/flight/style/flight.css +1 -1
- package/floodanalysis/index.js +243 -382
- package/geologicalbodyanalysis/index.js +203 -287
- package/gpuspatialquery/index.js +240 -390
- package/hawkeye/index.js +139 -103
- package/headertemp/index.js +23 -33
- package/heatmap3d/index.js +426 -733
- package/heatmap3d/style/heatmap3d.css +1 -1
- package/index.js +7913 -16839
- package/isolineanalysis/index.js +554 -1231
- package/light/index.js +351 -488
- package/limitheightanalysis/index.js +249 -312
- package/measure/index.js +339 -493
- package/modelFlat/index.js +202 -223
- package/modelexcavate/index.js +194 -251
- package/modelfilter/index.js +216 -299
- package/modelprofileanalysis/index.js +354 -465
- package/modelselect/index.js +180 -173
- package/package.json +1 -1
- package/particleeffect/index.js +257 -430
- package/planeclip/index.js +237 -328
- package/resetview/index.js +89 -69
- package/roller/index.js +305 -363
- package/scaneffect/index.js +273 -571
- package/sceneadvancedtoimage/index.js +1055 -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 +9018 -17813
- package/sceneview/style/sceneview.css +1 -1
- package/screenshot/index.js +273 -312
- package/shadowanalysis/index.js +256 -436
- package/sightlineanalysis/index.js +229 -312
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +200 -339
- package/slopeanalysis/index.js +270 -433
- package/slopeaspectanalysis/index.js +303 -523
- package/statusbar/index.js +113 -84
- package/style.css +1 -1
- package/terrainoperation/index.js +218 -269
- package/terrainprofileanalysis/index.js +162 -171
- 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
|
+
|
|
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
|
|
100
148
|
|
|
101
|
-
|
|
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;
|
|
102
156
|
}
|
|
103
157
|
|
|
158
|
+
|
|
104
159
|
/***/ })
|
|
105
160
|
|
|
106
161
|
/******/ });
|
|
@@ -172,66 +227,68 @@ 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
264
|
// 模型属性匹配字段
|
|
206
|
-
constructor(scenceView, pickCallFunc) {
|
|
207
|
-
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
208
|
-
|
|
209
|
-
(0,defineProperty/* default */.Z)(this, "_handler", null);
|
|
210
|
-
|
|
211
|
-
(0,defineProperty/* default */.Z)(this, "_isPick", false);
|
|
212
|
-
|
|
213
|
-
(0,defineProperty/* default */.Z)(this, "_highlight", null);
|
|
214
|
-
|
|
215
|
-
(0,defineProperty/* default */.Z)(this, "_highlightColor", "#FF0000");
|
|
216
|
-
|
|
217
|
-
(0,defineProperty/* default */.Z)(this, "_modeFiledArray", null);
|
|
218
|
-
|
|
219
|
-
(0,defineProperty/* default */.Z)(this, "_modeFiled", "id");
|
|
220
265
|
|
|
266
|
+
constructor(scenceView, pickCallFunc) {
|
|
267
|
+
(0,defineProperty/* default */.A)(this, "_viewer", null);
|
|
268
|
+
//三维viewer对象
|
|
269
|
+
(0,defineProperty/* default */.A)(this, "_handler", null);
|
|
270
|
+
//屏幕空间事件处理程序三维对象
|
|
271
|
+
(0,defineProperty/* default */.A)(this, "_isPick", false);
|
|
272
|
+
//拾取状态
|
|
273
|
+
(0,defineProperty/* default */.A)(this, "_highlight", null);
|
|
274
|
+
//高亮三维对象
|
|
275
|
+
(0,defineProperty/* default */.A)(this, "_highlightColor", "#FF0000");
|
|
276
|
+
//高亮颜色
|
|
277
|
+
(0,defineProperty/* default */.A)(this, "_modeFiledArray", null);
|
|
278
|
+
// 模型属性唯一值字段集合
|
|
279
|
+
(0,defineProperty/* default */.A)(this, "_modeFiled", "id");
|
|
221
280
|
this._viewer = scenceView._viewer;
|
|
222
281
|
this._drawManager = scenceView._drawManager;
|
|
223
282
|
this._handler = new Cesium.ScreenSpaceEventHandler(this._viewer.scene.canvas);
|
|
224
283
|
let that = this;
|
|
225
|
-
|
|
226
284
|
this._handler.setInputAction(function (movement) {
|
|
227
285
|
if (that._isPick) {
|
|
228
|
-
let pickedObject = that._viewer.scene.pick(movement.position);
|
|
229
|
-
|
|
230
|
-
|
|
286
|
+
let pickedObject = that._viewer.scene.pick(movement.position);
|
|
287
|
+
// console.log(pickedObject);
|
|
231
288
|
if (pickedObject) {
|
|
232
289
|
if (pickedObject instanceof Cesium.Cesium3DTileFeature) {
|
|
233
|
-
let properties = pickedObject.getPropertyNames() || [];
|
|
234
|
-
|
|
290
|
+
let properties = pickedObject.getPropertyNames() || [];
|
|
291
|
+
// console.log(properties);
|
|
235
292
|
if (that._modeFiledArray && that._modeFiledArray.length && that._modeFiledArray.length > 0) {
|
|
236
293
|
for (let val in that._modeFiledArray) {
|
|
237
294
|
if (properties.indexOf(val) > -1) {
|
|
@@ -240,10 +297,9 @@ class ModelSelectViewModel {
|
|
|
240
297
|
}
|
|
241
298
|
}
|
|
242
299
|
}
|
|
243
|
-
|
|
244
300
|
if (properties.indexOf(that._modeFiled) > -1) {
|
|
245
|
-
let id = pickedObject.getProperty(that._modeFiled);
|
|
246
|
-
|
|
301
|
+
let id = pickedObject.getProperty(that._modeFiled);
|
|
302
|
+
// that.clear();
|
|
247
303
|
that._highlight = new Cesium.Kq3dHighlight({
|
|
248
304
|
viewer: that._viewer,
|
|
249
305
|
tileset: pickedObject.tileset,
|
|
@@ -266,57 +322,53 @@ class ModelSelectViewModel {
|
|
|
266
322
|
}
|
|
267
323
|
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
268
324
|
}
|
|
269
|
-
|
|
270
325
|
setCursor(style) {
|
|
271
326
|
this._viewer.canvas.style.cursor = style;
|
|
272
|
-
}
|
|
273
|
-
|
|
327
|
+
}
|
|
274
328
|
|
|
329
|
+
//拾取
|
|
275
330
|
pick() {
|
|
276
331
|
// 判断是否添加了模型
|
|
277
332
|
var flag = false;
|
|
278
333
|
var models = this._viewer.scene.primitives._primitives;
|
|
279
|
-
|
|
280
334
|
for (let i = 0; i < models.length; i++) {
|
|
281
335
|
if (models[i]._url) {
|
|
282
336
|
flag = true;
|
|
283
337
|
}
|
|
284
338
|
}
|
|
285
|
-
|
|
286
339
|
if (flag) {
|
|
287
340
|
this.setCursor("crosshair");
|
|
288
341
|
this._isPick = true;
|
|
289
342
|
} else {
|
|
290
|
-
(0,message/* default */.
|
|
343
|
+
(0,message/* default */.A)({
|
|
291
344
|
message: "请添加模型后拾取!",
|
|
292
345
|
type: "warning"
|
|
293
346
|
});
|
|
294
347
|
}
|
|
295
|
-
}
|
|
296
|
-
|
|
297
|
-
|
|
348
|
+
}
|
|
349
|
+
//清除
|
|
298
350
|
clear() {
|
|
299
351
|
this._highlight && this._highlight.remove();
|
|
300
352
|
this._highlight = null;
|
|
301
353
|
this.setCursor("default");
|
|
302
354
|
this._isPick = false;
|
|
303
|
-
}
|
|
304
|
-
|
|
355
|
+
}
|
|
305
356
|
|
|
357
|
+
//销毁
|
|
306
358
|
destroy() {
|
|
307
359
|
this.clear();
|
|
308
360
|
this._handler && this._handler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
309
361
|
}
|
|
310
|
-
|
|
311
362
|
}
|
|
312
363
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
313
|
-
var client_icons_vue_ = __webpack_require__(
|
|
364
|
+
var client_icons_vue_ = __webpack_require__(5698);
|
|
314
365
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
315
|
-
var util_ = __webpack_require__(
|
|
366
|
+
var util_ = __webpack_require__(2975);
|
|
316
367
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
317
|
-
var vue_i18n_cjs_js_ = __webpack_require__(
|
|
368
|
+
var vue_i18n_cjs_js_ = __webpack_require__(3579);
|
|
318
369
|
;// 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
370
|
|
|
371
|
+
|
|
320
372
|
const _hoisted_1 = {
|
|
321
373
|
class: "title"
|
|
322
374
|
};
|
|
@@ -328,12 +380,14 @@ const _hoisted_2 = {
|
|
|
328
380
|
|
|
329
381
|
|
|
330
382
|
|
|
331
|
-
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
// tree数据源
|
|
332
386
|
|
|
333
387
|
const __default__ = {
|
|
334
388
|
name: "Kq3dModelSelect"
|
|
335
389
|
};
|
|
336
|
-
/* harmony default export */ var ModelSelectvue_type_script_setup_true_lang_js = (
|
|
390
|
+
/* harmony default export */ var ModelSelectvue_type_script_setup_true_lang_js = (/*@__PURE__*/Object.assign(__default__, {
|
|
337
391
|
props: {
|
|
338
392
|
// 外部字段别名映射
|
|
339
393
|
aliasNameReflection: {
|
|
@@ -356,7 +410,6 @@ const __default__ = {
|
|
|
356
410
|
type: Boolean,
|
|
357
411
|
default: true
|
|
358
412
|
},
|
|
359
|
-
|
|
360
413
|
/**
|
|
361
414
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
362
415
|
*/
|
|
@@ -386,34 +439,36 @@ const __default__ = {
|
|
|
386
439
|
default: true
|
|
387
440
|
}
|
|
388
441
|
},
|
|
389
|
-
|
|
390
442
|
setup(__props, {
|
|
391
443
|
expose: __expose
|
|
392
444
|
}) {
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
|
|
396
|
-
|
|
397
|
-
|
|
445
|
+
let layerNameTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
446
|
+
// 属性值
|
|
447
|
+
let tableData = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
448
|
+
//语言
|
|
398
449
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
399
450
|
let viewModel = null;
|
|
400
|
-
let ref_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
401
|
-
// 表格头样式
|
|
451
|
+
let ref_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
402
452
|
|
|
453
|
+
// 获取组件传参
|
|
454
|
+
const props = __props;
|
|
455
|
+
// 表格头样式
|
|
403
456
|
let headClass = args => {
|
|
404
457
|
return {
|
|
405
458
|
"background-color": "var(--kq-fill-color-light)",
|
|
406
459
|
color: "var(--kq-color-info)",
|
|
407
460
|
"font-size": "14px"
|
|
408
461
|
};
|
|
409
|
-
};
|
|
410
|
-
|
|
462
|
+
};
|
|
411
463
|
|
|
412
|
-
|
|
464
|
+
// 组件容器Ref
|
|
465
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
413
466
|
|
|
467
|
+
// 生成组件默认header
|
|
414
468
|
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)();
|
|
469
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
416
470
|
|
|
471
|
+
// 国际化
|
|
417
472
|
let {
|
|
418
473
|
locale,
|
|
419
474
|
messages
|
|
@@ -431,8 +486,9 @@ const __default__ = {
|
|
|
431
486
|
watchCreateHeaderTemp();
|
|
432
487
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
433
488
|
watchCreateHeaderTemp();
|
|
434
|
-
});
|
|
489
|
+
});
|
|
435
490
|
|
|
491
|
+
//父组件ScenceView初始化完成后执行
|
|
436
492
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
437
493
|
if (scenceView) {
|
|
438
494
|
viewModel = new ModelSelectViewModel(scenceView, pickCallFunc);
|
|
@@ -441,32 +497,27 @@ const __default__ = {
|
|
|
441
497
|
}
|
|
442
498
|
});
|
|
443
499
|
});
|
|
500
|
+
|
|
444
501
|
/**
|
|
445
502
|
* @description 监听header生成
|
|
446
503
|
*/
|
|
447
|
-
|
|
448
504
|
const watchCreateHeaderTemp = () => {
|
|
449
505
|
if (props.showHeaderTemp) {
|
|
450
506
|
// 生成headerTemp
|
|
451
507
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
452
508
|
}
|
|
453
509
|
};
|
|
454
|
-
|
|
455
510
|
function pick() {
|
|
456
511
|
viewModel && viewModel.pick();
|
|
457
512
|
}
|
|
458
|
-
|
|
459
513
|
function pickCallFunc(layerName, properties) {
|
|
460
514
|
layerNameTitle.value = layerName;
|
|
461
515
|
let propertiesData = [];
|
|
462
|
-
|
|
463
516
|
if (props.aliasNameReflection) {
|
|
464
517
|
let arrKeys = [];
|
|
465
|
-
|
|
466
518
|
for (let key in properties) {
|
|
467
519
|
arrKeys.push(key);
|
|
468
520
|
}
|
|
469
|
-
|
|
470
521
|
props.aliasNameReflection(arrKeys, item => {
|
|
471
522
|
// console.log(item);
|
|
472
523
|
for (let key in properties) {
|
|
@@ -484,36 +535,28 @@ const __default__ = {
|
|
|
484
535
|
});
|
|
485
536
|
}
|
|
486
537
|
}
|
|
487
|
-
|
|
488
538
|
tableData.value = propertiesData;
|
|
489
539
|
}
|
|
490
|
-
|
|
491
540
|
function clear() {
|
|
492
541
|
layerNameTitle.value = "";
|
|
493
542
|
tableData.value = [];
|
|
494
543
|
viewModel && viewModel.clear();
|
|
495
|
-
}
|
|
496
|
-
|
|
544
|
+
}
|
|
497
545
|
|
|
546
|
+
// 销毁
|
|
498
547
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
499
548
|
viewModel && viewModel.destroy();
|
|
500
549
|
});
|
|
501
|
-
|
|
502
550
|
__expose({
|
|
503
551
|
pick,
|
|
504
552
|
clear,
|
|
505
553
|
pickCallFunc
|
|
506
554
|
});
|
|
507
|
-
|
|
508
555
|
return (_ctx, _cache) => {
|
|
509
556
|
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
510
|
-
|
|
511
557
|
const _component_kq_table_column = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-table-column");
|
|
512
|
-
|
|
513
558
|
const _component_kq_table = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-table");
|
|
514
|
-
|
|
515
559
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
516
|
-
|
|
517
560
|
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
561
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-model-select", {
|
|
519
562
|
'kq-box-shadow': __props.showShadow
|
|
@@ -524,21 +567,13 @@ const __default__ = {
|
|
|
524
567
|
key: 0,
|
|
525
568
|
ref_key: "headerTempRef",
|
|
526
569
|
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", {
|
|
570
|
+
}, 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
571
|
class: "kq3d-model-select-box",
|
|
531
572
|
ref_key: "ref_box",
|
|
532
573
|
ref: ref_box
|
|
533
574
|
}, [(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
|
-
|
|
575
|
+
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 */)])]),
|
|
576
|
+
_: 1 /* STABLE */
|
|
542
577
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
543
578
|
class: "modelTable",
|
|
544
579
|
style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)(__props.showHeaderTemp ? 'height: calc(100% - 70px)' : 'height: calc(100% - 35px)')
|
|
@@ -560,59 +595,30 @@ const __default__ = {
|
|
|
560
595
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).fieldName,
|
|
561
596
|
prop: "field",
|
|
562
597
|
align: "center"
|
|
563
|
-
}, null, 8
|
|
564
|
-
/* PROPS */
|
|
565
|
-
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
|
|
598
|
+
}, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
|
|
566
599
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).fieldValue,
|
|
567
600
|
prop: "value",
|
|
568
601
|
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, {
|
|
602
|
+
}, null, 8 /* PROPS */, ["label"])]),
|
|
603
|
+
_: 1 /* STABLE */
|
|
604
|
+
}, 8 /* PROPS */, ["data", "header-cell-style"])]),
|
|
605
|
+
_: 1 /* STABLE */
|
|
606
|
+
}, 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
607
|
onClick: _cache[0] || (_cache[0] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => pick(), ["stop"])),
|
|
585
608
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).pick,
|
|
586
609
|
type: "primary"
|
|
587
610
|
}, {
|
|
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, {
|
|
611
|
+
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 */)]),
|
|
612
|
+
_: 1 /* STABLE */
|
|
613
|
+
}, 8 /* PROPS */, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
597
614
|
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clear(), ["stop"])),
|
|
598
615
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
|
|
599
616
|
}, {
|
|
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
|
-
);
|
|
617
|
+
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 */)]),
|
|
618
|
+
_: 1 /* STABLE */
|
|
619
|
+
}, 8 /* PROPS */, ["title"])])], 512 /* NEED_PATCH */)], 2 /* CLASS */);
|
|
613
620
|
};
|
|
614
621
|
}
|
|
615
|
-
|
|
616
622
|
}));
|
|
617
623
|
;// CONCATENATED MODULE: ./src/webgl/modelselect/ModelSelect.vue?vue&type=script&setup=true&lang=js
|
|
618
624
|
|
|
@@ -624,10 +630,13 @@ const __exports__ = ModelSelectvue_type_script_setup_true_lang_js;
|
|
|
624
630
|
|
|
625
631
|
/* harmony default export */ var ModelSelect = (__exports__);
|
|
626
632
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
627
|
-
var init_js_ = __webpack_require__(
|
|
633
|
+
var init_js_ = __webpack_require__(455);
|
|
628
634
|
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
629
635
|
;// CONCATENATED MODULE: ./src/webgl/modelselect/index.js
|
|
630
|
-
|
|
636
|
+
/*
|
|
637
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
638
|
+
* All rights reserved.
|
|
639
|
+
*/
|
|
631
640
|
|
|
632
641
|
|
|
633
642
|
|
|
@@ -636,8 +645,6 @@ ModelSelect.install = (Vue, opts) => {
|
|
|
636
645
|
Vue.component(ModelSelect.name, ModelSelect);
|
|
637
646
|
};
|
|
638
647
|
|
|
639
|
-
|
|
640
|
-
}();
|
|
641
648
|
/******/ return __webpack_exports__;
|
|
642
649
|
/******/ })()
|
|
643
650
|
;
|
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.4-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"}}
|