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