@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/gpuspatialquery/index.js
CHANGED
|
@@ -7,101 +7,148 @@
|
|
|
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
|
+
/***/ 9371:
|
|
37
|
+
/***/ (function(module) {
|
|
32
38
|
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
39
|
+
module.exports = require("@element-plus/icons-vue");
|
|
40
|
+
|
|
41
|
+
/***/ }),
|
|
42
|
+
|
|
43
|
+
/***/ 2652:
|
|
44
|
+
/***/ (function(module) {
|
|
37
45
|
|
|
38
|
-
|
|
46
|
+
module.exports = require("core-js/modules/es.array.push.js");
|
|
39
47
|
|
|
40
48
|
/***/ }),
|
|
41
49
|
|
|
42
|
-
/***/
|
|
50
|
+
/***/ 6363:
|
|
43
51
|
/***/ (function(module) {
|
|
44
52
|
|
|
45
|
-
module.exports = require("
|
|
53
|
+
module.exports = require("element-plus/dist/index.full.js");
|
|
46
54
|
|
|
47
55
|
/***/ }),
|
|
48
56
|
|
|
49
|
-
/***/
|
|
57
|
+
/***/ 3579:
|
|
50
58
|
/***/ (function(module) {
|
|
51
59
|
|
|
52
60
|
module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
|
|
53
61
|
|
|
54
62
|
/***/ }),
|
|
55
63
|
|
|
56
|
-
/***/
|
|
64
|
+
/***/ 5235:
|
|
65
|
+
/***/ (function(module) {
|
|
66
|
+
|
|
67
|
+
module.exports = require("xe-utils");
|
|
68
|
+
|
|
69
|
+
/***/ }),
|
|
70
|
+
|
|
71
|
+
/***/ 64:
|
|
57
72
|
/***/ (function(module) {
|
|
58
73
|
|
|
59
|
-
module.exports =
|
|
74
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__64__;
|
|
60
75
|
|
|
61
76
|
/***/ }),
|
|
62
77
|
|
|
63
|
-
/***/
|
|
78
|
+
/***/ 2975:
|
|
64
79
|
/***/ (function(module) {
|
|
65
80
|
|
|
66
|
-
module.exports =
|
|
81
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__2975__;
|
|
67
82
|
|
|
68
83
|
/***/ }),
|
|
69
84
|
|
|
70
|
-
/***/
|
|
85
|
+
/***/ 455:
|
|
71
86
|
/***/ (function(module) {
|
|
72
87
|
|
|
73
|
-
module.exports =
|
|
88
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__455__;
|
|
74
89
|
|
|
75
90
|
/***/ }),
|
|
76
91
|
|
|
77
|
-
/***/
|
|
92
|
+
/***/ 154:
|
|
78
93
|
/***/ (function(module) {
|
|
79
94
|
|
|
80
|
-
module.exports =
|
|
95
|
+
module.exports = __WEBPACK_EXTERNAL_MODULE__154__;
|
|
81
96
|
|
|
82
97
|
/***/ }),
|
|
83
98
|
|
|
84
|
-
/***/
|
|
99
|
+
/***/ 6913:
|
|
85
100
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
86
101
|
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
function
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
102
|
+
|
|
103
|
+
// EXPORTS
|
|
104
|
+
__webpack_require__.d(__webpack_exports__, {
|
|
105
|
+
A: function() { return /* binding */ _defineProperty; }
|
|
106
|
+
});
|
|
107
|
+
|
|
108
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
|
|
109
|
+
function _typeof(o) {
|
|
110
|
+
"@babel/helpers - typeof";
|
|
111
|
+
|
|
112
|
+
return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
|
|
113
|
+
return typeof o;
|
|
114
|
+
} : function (o) {
|
|
115
|
+
return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
|
|
116
|
+
}, _typeof(o);
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
|
|
120
|
+
|
|
121
|
+
function toPrimitive(t, r) {
|
|
122
|
+
if ("object" != _typeof(t) || !t) return t;
|
|
123
|
+
var e = t[Symbol.toPrimitive];
|
|
124
|
+
if (void 0 !== e) {
|
|
125
|
+
var i = e.call(t, r || "default");
|
|
126
|
+
if ("object" != _typeof(i)) return i;
|
|
127
|
+
throw new TypeError("@@toPrimitive must return a primitive value.");
|
|
100
128
|
}
|
|
129
|
+
return ("string" === r ? String : Number)(t);
|
|
130
|
+
}
|
|
131
|
+
|
|
132
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
|
|
101
133
|
|
|
102
|
-
|
|
134
|
+
|
|
135
|
+
function toPropertyKey(t) {
|
|
136
|
+
var i = toPrimitive(t, "string");
|
|
137
|
+
return "symbol" == _typeof(i) ? i : i + "";
|
|
103
138
|
}
|
|
104
139
|
|
|
140
|
+
;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
141
|
+
|
|
142
|
+
function _defineProperty(e, r, t) {
|
|
143
|
+
return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
|
|
144
|
+
value: t,
|
|
145
|
+
enumerable: !0,
|
|
146
|
+
configurable: !0,
|
|
147
|
+
writable: !0
|
|
148
|
+
}) : e[r] = t, e;
|
|
149
|
+
}
|
|
150
|
+
|
|
151
|
+
|
|
105
152
|
/***/ })
|
|
106
153
|
|
|
107
154
|
/******/ });
|
|
@@ -173,57 +220,56 @@ function _defineProperty(obj, key, value) {
|
|
|
173
220
|
/******/
|
|
174
221
|
/************************************************************************/
|
|
175
222
|
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
223
|
// ESM COMPAT FLAG
|
|
179
224
|
__webpack_require__.r(__webpack_exports__);
|
|
180
225
|
|
|
181
226
|
// EXPORTS
|
|
182
227
|
__webpack_require__.d(__webpack_exports__, {
|
|
183
|
-
|
|
228
|
+
GPUSpatialQueryViewModel: function() { return /* reexport */ GPUSpatialQueryViewModel; },
|
|
184
229
|
"default": function() { return /* reexport */ GPUSpatialQuery; }
|
|
185
230
|
});
|
|
186
231
|
|
|
187
232
|
// EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
|
|
188
|
-
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
|
|
233
|
+
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(154);
|
|
189
234
|
// EXTERNAL MODULE: external "@element-plus/icons-vue"
|
|
190
|
-
var icons_vue_ = __webpack_require__(
|
|
235
|
+
var icons_vue_ = __webpack_require__(9371);
|
|
191
236
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
192
|
-
var gis_utils_ = __webpack_require__(
|
|
193
|
-
|
|
194
|
-
var
|
|
195
|
-
var external_xe_utils_default = /*#__PURE__*/__webpack_require__.n(
|
|
196
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
197
|
-
var defineProperty = __webpack_require__(
|
|
198
|
-
// EXTERNAL MODULE:
|
|
199
|
-
var
|
|
237
|
+
var gis_utils_ = __webpack_require__(64);
|
|
238
|
+
// EXTERNAL MODULE: external "xe-utils"
|
|
239
|
+
var external_xe_utils_ = __webpack_require__(5235);
|
|
240
|
+
var external_xe_utils_default = /*#__PURE__*/__webpack_require__.n(external_xe_utils_);
|
|
241
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js + 3 modules
|
|
242
|
+
var defineProperty = __webpack_require__(6913);
|
|
243
|
+
// EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
|
|
244
|
+
var es_array_push_js_ = __webpack_require__(2652);
|
|
245
|
+
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
246
|
+
var message = __webpack_require__(3275);
|
|
200
247
|
;// CONCATENATED MODULE: ./src/webgl/gpuspatialquery/GPUSpatialQueryViewModel.js
|
|
201
248
|
|
|
249
|
+
|
|
250
|
+
/*
|
|
251
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
252
|
+
* All rights reserved.
|
|
253
|
+
*/
|
|
202
254
|
//GPU空间查询逻辑类
|
|
203
255
|
|
|
204
256
|
class GPUSpatialQueryViewModel {
|
|
205
|
-
//GPU查询三维对象
|
|
206
|
-
//绘制管理对象
|
|
207
|
-
//绘制的图形
|
|
208
|
-
//绘制图形的坐标
|
|
209
|
-
//传入参数
|
|
210
|
-
//绘制后的查询事件
|
|
211
257
|
//绘制完成监听事件
|
|
212
|
-
constructor(scenceView, options) {
|
|
213
|
-
(0,defineProperty/* default */.Z)(this, "_gpuSpatialQuery", null);
|
|
214
|
-
|
|
215
|
-
(0,defineProperty/* default */.Z)(this, "_drawManager", null);
|
|
216
|
-
|
|
217
|
-
(0,defineProperty/* default */.Z)(this, "_geometry", null);
|
|
218
|
-
|
|
219
|
-
(0,defineProperty/* default */.Z)(this, "_center", null);
|
|
220
|
-
|
|
221
|
-
(0,defineProperty/* default */.Z)(this, "_options", null);
|
|
222
|
-
|
|
223
|
-
(0,defineProperty/* default */.Z)(this, "finishedQuery", null);
|
|
224
|
-
|
|
225
|
-
(0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
|
|
226
258
|
|
|
259
|
+
constructor(scenceView, options) {
|
|
260
|
+
(0,defineProperty/* default */.A)(this, "_gpuSpatialQuery", null);
|
|
261
|
+
//GPU查询三维对象
|
|
262
|
+
(0,defineProperty/* default */.A)(this, "_drawManager", null);
|
|
263
|
+
//绘制管理对象
|
|
264
|
+
(0,defineProperty/* default */.A)(this, "_geometry", null);
|
|
265
|
+
//绘制的图形
|
|
266
|
+
(0,defineProperty/* default */.A)(this, "_center", null);
|
|
267
|
+
//绘制图形的坐标
|
|
268
|
+
(0,defineProperty/* default */.A)(this, "_options", null);
|
|
269
|
+
//传入参数
|
|
270
|
+
(0,defineProperty/* default */.A)(this, "finishedQuery", null);
|
|
271
|
+
//绘制后的查询事件
|
|
272
|
+
(0,defineProperty/* default */.A)(this, "_removeEventListener", null);
|
|
227
273
|
options.viewer = scenceView._viewer;
|
|
228
274
|
options.viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
229
275
|
options.viewer.scene.logarithmicDepthBuffer = true;
|
|
@@ -238,8 +284,8 @@ class GPUSpatialQueryViewModel {
|
|
|
238
284
|
that._removeEventListener = that._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
239
285
|
if (shape) {
|
|
240
286
|
that._drawManager && that._drawManager.clear();
|
|
241
|
-
that._center = shape.position;
|
|
242
|
-
|
|
287
|
+
that._center = shape.position;
|
|
288
|
+
//that.startQuery();
|
|
243
289
|
setTimeout(() => {
|
|
244
290
|
//绘制跟高亮显示有冲突,所以延时执行查询
|
|
245
291
|
that.startQuery();
|
|
@@ -249,33 +295,27 @@ class GPUSpatialQueryViewModel {
|
|
|
249
295
|
}, 10);
|
|
250
296
|
}
|
|
251
297
|
});
|
|
252
|
-
|
|
253
298
|
that._gpuSpatialQuery.finishSQ.addEventListener(function () {
|
|
254
299
|
// 查询结束后的回调事件,高亮结果
|
|
255
300
|
for (let l = 0; l < that._gpuSpatialQuery._layers.length; l++) {
|
|
256
301
|
//if (that._gpuSpatialQuery._layers[l].sqResult.length != 0) { 该代码导致无法清除高亮效果
|
|
257
302
|
const tileset = that._gpuSpatialQuery._layers[l].layer;
|
|
258
303
|
const queryIds = that._gpuSpatialQuery._layers[l].sqResult;
|
|
259
|
-
|
|
260
304
|
for (let n = 0; n < tileset._selectedTiles.length; n++) {
|
|
261
305
|
const tile = tileset._selectedTiles[n];
|
|
262
306
|
const content = tile.content;
|
|
263
|
-
|
|
264
307
|
if (content) {
|
|
265
308
|
for (let i = 0; i < content.featuresLength; i++) {
|
|
266
309
|
const feature = content.getFeature(i);
|
|
267
310
|
let bFind = false;
|
|
268
|
-
|
|
269
311
|
if (feature.pickId) {
|
|
270
312
|
const id = feature.pickId.key;
|
|
271
|
-
|
|
272
313
|
for (let j = 0; j < queryIds.length; j++) {
|
|
273
314
|
if (queryIds[j] == id) {
|
|
274
315
|
bFind = true;
|
|
275
316
|
}
|
|
276
317
|
}
|
|
277
318
|
}
|
|
278
|
-
|
|
279
319
|
if (bFind) {
|
|
280
320
|
feature.color = Cesium.Color.AQUA;
|
|
281
321
|
} else {
|
|
@@ -284,82 +324,73 @@ class GPUSpatialQueryViewModel {
|
|
|
284
324
|
}
|
|
285
325
|
}
|
|
286
326
|
}
|
|
287
|
-
|
|
288
|
-
|
|
327
|
+
tileset.makeStyleDirty();
|
|
328
|
+
//}
|
|
289
329
|
}
|
|
290
330
|
});
|
|
291
|
-
}
|
|
292
|
-
|
|
331
|
+
}
|
|
293
332
|
|
|
333
|
+
//开始绘制
|
|
294
334
|
start() {
|
|
295
335
|
// 判断是否添加了模型
|
|
296
336
|
var flag = false;
|
|
297
337
|
var models = this._options.viewer.scene.primitives._primitives;
|
|
298
|
-
|
|
299
338
|
for (let i = 0; i < models.length; i++) {
|
|
300
339
|
if (models[i]._url) {
|
|
301
340
|
flag = true;
|
|
302
341
|
}
|
|
303
342
|
}
|
|
304
|
-
|
|
305
343
|
if (flag) {
|
|
306
344
|
this.clear();
|
|
307
345
|
this.findLayers();
|
|
308
|
-
|
|
309
346
|
this._drawManager.startDraw("marker", {
|
|
310
347
|
image: null
|
|
311
348
|
});
|
|
312
349
|
} else {
|
|
313
|
-
(0,message/* default */.
|
|
350
|
+
(0,message/* default */.A)({
|
|
314
351
|
message: "请添加模型后分析!",
|
|
315
352
|
type: "warning"
|
|
316
353
|
});
|
|
317
354
|
}
|
|
318
|
-
}
|
|
319
|
-
|
|
355
|
+
}
|
|
320
356
|
|
|
357
|
+
// 开始查询
|
|
321
358
|
startQuery() {
|
|
322
359
|
this.createGeometry();
|
|
323
|
-
|
|
324
360
|
this._gpuSpatialQuery.setGeom(this._geometry);
|
|
325
|
-
|
|
326
361
|
this._gpuSpatialQuery.setSpaceTopology(this._options.positionMode);
|
|
327
|
-
|
|
328
362
|
this._gpuSpatialQuery.setLayers(this._options.layers);
|
|
329
|
-
|
|
330
363
|
this._gpuSpatialQuery.start();
|
|
331
|
-
}
|
|
332
|
-
|
|
364
|
+
}
|
|
333
365
|
|
|
366
|
+
//清除全部结果
|
|
334
367
|
clear() {
|
|
335
368
|
this._gpuSpatialQuery && this._gpuSpatialQuery.clear();
|
|
336
|
-
|
|
337
369
|
this._drawManager.stopDraw();
|
|
338
|
-
}
|
|
339
|
-
|
|
370
|
+
}
|
|
340
371
|
|
|
372
|
+
//销毁
|
|
341
373
|
destroy() {
|
|
342
|
-
this.clear();
|
|
343
|
-
|
|
344
|
-
this._gpuSpatialQuery = null;
|
|
345
|
-
|
|
374
|
+
this.clear();
|
|
375
|
+
// this._gpuSpatialQuery && this._gpuSpatialQuery.destroy();
|
|
376
|
+
this._gpuSpatialQuery = null;
|
|
377
|
+
//移除监听事件
|
|
346
378
|
this._removeEventListener && this._removeEventListener();
|
|
347
379
|
this._removeEventListener = null;
|
|
348
|
-
}
|
|
349
|
-
|
|
380
|
+
}
|
|
350
381
|
|
|
382
|
+
// 查找所有3dtiles模型对象
|
|
351
383
|
findLayers() {
|
|
352
384
|
this._options.layers = [];
|
|
353
385
|
const primitives = this._options.viewer.scene.primitives._primitives;
|
|
354
|
-
|
|
355
386
|
for (let m = 0; m < primitives.length; m++) {
|
|
356
387
|
if (primitives[m] instanceof Cesium.Cesium3DTileset) {
|
|
357
388
|
this._options.layers.push(new Cesium.Kq3dLayerQuery(primitives[m]));
|
|
358
389
|
}
|
|
359
390
|
}
|
|
360
|
-
}
|
|
361
|
-
|
|
391
|
+
}
|
|
362
392
|
|
|
393
|
+
//创建查询体
|
|
363
394
|
createGeometry() {
|
|
364
395
|
switch (this._options.volumeType) {
|
|
365
396
|
case 0:
|
|
@@ -371,7 +402,6 @@ class GPUSpatialQueryViewModel {
|
|
|
371
402
|
};
|
|
372
403
|
this._geometry = new Cesium.Kq3dGeoBox(options0);
|
|
373
404
|
break;
|
|
374
|
-
|
|
375
405
|
case 1:
|
|
376
406
|
var options1 = {
|
|
377
407
|
position: this._center,
|
|
@@ -379,7 +409,6 @@ class GPUSpatialQueryViewModel {
|
|
|
379
409
|
};
|
|
380
410
|
this._geometry = new Cesium.Kq3dGeoSphere(options1);
|
|
381
411
|
break;
|
|
382
|
-
|
|
383
412
|
case 2:
|
|
384
413
|
var options2 = {
|
|
385
414
|
position: this._center,
|
|
@@ -389,7 +418,6 @@ class GPUSpatialQueryViewModel {
|
|
|
389
418
|
};
|
|
390
419
|
this._geometry = new Cesium.Kq3dGeoCylinder(options2);
|
|
391
420
|
break;
|
|
392
|
-
|
|
393
421
|
case 3:
|
|
394
422
|
var options3 = {
|
|
395
423
|
position: this._center,
|
|
@@ -399,7 +427,6 @@ class GPUSpatialQueryViewModel {
|
|
|
399
427
|
};
|
|
400
428
|
this._geometry = new Cesium.Kq3dGeoEllipsoid(options3);
|
|
401
429
|
break;
|
|
402
|
-
|
|
403
430
|
case 4:
|
|
404
431
|
var options4 = {
|
|
405
432
|
position: this._center,
|
|
@@ -408,11 +435,9 @@ class GPUSpatialQueryViewModel {
|
|
|
408
435
|
};
|
|
409
436
|
this._geometry = new Cesium.Kq3dGeoCone(options4);
|
|
410
437
|
break;
|
|
411
|
-
|
|
412
438
|
default:
|
|
413
439
|
break;
|
|
414
440
|
}
|
|
415
|
-
|
|
416
441
|
if (this._geometry) {
|
|
417
442
|
this._geometry.scaleX = this._options.scale;
|
|
418
443
|
this._geometry.scaleY = this._options.scale;
|
|
@@ -421,84 +446,72 @@ class GPUSpatialQueryViewModel {
|
|
|
421
446
|
this._geometry.rotationY = this._options.yAngle;
|
|
422
447
|
this._geometry.rotationZ = this._options.zAngle;
|
|
423
448
|
}
|
|
424
|
-
}
|
|
425
|
-
|
|
449
|
+
}
|
|
426
450
|
|
|
451
|
+
//查询体类型
|
|
427
452
|
setType(type) {
|
|
428
453
|
this._options.volumeType = type;
|
|
429
454
|
this.createGeometry();
|
|
430
|
-
|
|
431
455
|
if (this._gpuSpatialQuery) {
|
|
432
456
|
this._gpuSpatialQuery.setGeom(this._geometry);
|
|
433
|
-
|
|
434
457
|
this._gpuSpatialQuery.start();
|
|
435
|
-
}
|
|
436
|
-
|
|
437
|
-
}
|
|
438
|
-
|
|
458
|
+
}
|
|
459
|
+
//this.startQuery();
|
|
460
|
+
}
|
|
439
461
|
|
|
462
|
+
//查询体模式 相交 相离 包含
|
|
440
463
|
setMode(mode) {
|
|
441
464
|
this._options.positionMode = mode;
|
|
442
|
-
|
|
443
465
|
if (this._gpuSpatialQuery) {
|
|
444
466
|
this._gpuSpatialQuery.setSpaceTopology(mode);
|
|
445
|
-
|
|
446
467
|
this._gpuSpatialQuery.start();
|
|
447
|
-
}
|
|
448
|
-
|
|
449
|
-
}
|
|
450
|
-
|
|
468
|
+
}
|
|
469
|
+
//this.startQuery();
|
|
470
|
+
}
|
|
451
471
|
|
|
472
|
+
//查询体缩放
|
|
452
473
|
setScale(scale) {
|
|
453
474
|
this._options.scale = scale;
|
|
454
|
-
|
|
455
475
|
if (this._geometry) {
|
|
456
476
|
this._geometry.scaleX = scale;
|
|
457
477
|
this._geometry.scaleY = scale;
|
|
458
478
|
this._geometry.scaleZ = scale;
|
|
459
479
|
this._gpuSpatialQuery && this._gpuSpatialQuery.start();
|
|
460
|
-
}
|
|
461
|
-
|
|
462
|
-
}
|
|
463
|
-
|
|
464
|
-
|
|
480
|
+
}
|
|
481
|
+
//this.startQuery();
|
|
482
|
+
}
|
|
483
|
+
//查询体绕X轴旋转
|
|
465
484
|
setXangle(xAngle) {
|
|
466
485
|
this._options.xAngle = xAngle;
|
|
467
|
-
|
|
468
486
|
if (this._geometry) {
|
|
469
487
|
this._geometry.rotationX = xAngle;
|
|
470
488
|
this._gpuSpatialQuery && this._gpuSpatialQuery.start();
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
}
|
|
474
|
-
|
|
475
|
-
|
|
489
|
+
}
|
|
490
|
+
//this.startQuery();
|
|
491
|
+
}
|
|
492
|
+
//查询体绕Y轴旋转
|
|
476
493
|
setYangle(yAngle) {
|
|
477
494
|
this._options.yAngle = yAngle;
|
|
478
|
-
|
|
479
495
|
if (this._geometry) {
|
|
480
496
|
this._geometry.rotationY = yAngle;
|
|
481
497
|
this._gpuSpatialQuery && this._gpuSpatialQuery.start();
|
|
482
|
-
}
|
|
483
|
-
|
|
484
|
-
}
|
|
485
|
-
|
|
486
|
-
|
|
498
|
+
}
|
|
499
|
+
//this.startQuery();
|
|
500
|
+
}
|
|
501
|
+
//查询体绕Z轴旋转
|
|
487
502
|
setZangle(zAngle) {
|
|
488
503
|
this._options.zAngle = zAngle;
|
|
489
|
-
|
|
490
504
|
if (this._geometry) {
|
|
491
505
|
this._geometry.rotationZ = zAngle;
|
|
492
506
|
this._gpuSpatialQuery && this._gpuSpatialQuery.start();
|
|
493
|
-
}
|
|
494
|
-
|
|
507
|
+
}
|
|
508
|
+
//this.startQuery();
|
|
495
509
|
}
|
|
496
|
-
|
|
497
510
|
}
|
|
498
511
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
499
|
-
var util_ = __webpack_require__(
|
|
512
|
+
var util_ = __webpack_require__(2975);
|
|
500
513
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
501
|
-
var vue_i18n_cjs_js_ = __webpack_require__(
|
|
514
|
+
var vue_i18n_cjs_js_ = __webpack_require__(3579);
|
|
502
515
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/gpuspatialquery/GPUSpatialQuery.vue?vue&type=script&setup=true&lang=js
|
|
503
516
|
|
|
504
517
|
const _hoisted_1 = {
|
|
@@ -517,29 +530,25 @@ const _hoisted_2 = {
|
|
|
517
530
|
const __default__ = {
|
|
518
531
|
name: "Kq3dGPUSpatialQuery"
|
|
519
532
|
};
|
|
520
|
-
/* harmony default export */ var GPUSpatialQueryvue_type_script_setup_true_lang_js = (
|
|
533
|
+
/* harmony default export */ var GPUSpatialQueryvue_type_script_setup_true_lang_js = (/*@__PURE__*/Object.assign(__default__, {
|
|
521
534
|
props: {
|
|
522
535
|
//图形
|
|
523
536
|
volumeType: {
|
|
524
537
|
type: Number,
|
|
525
538
|
default: 0,
|
|
526
|
-
|
|
527
539
|
validator(value) {
|
|
528
540
|
// 输入值必须被包含
|
|
529
541
|
return external_xe_utils_default().includeArrays([0, 1, 2, 3, 4], value);
|
|
530
542
|
}
|
|
531
|
-
|
|
532
543
|
},
|
|
533
544
|
// 空间关系
|
|
534
545
|
positionMode: {
|
|
535
546
|
type: Number,
|
|
536
547
|
default: 0,
|
|
537
|
-
|
|
538
548
|
validator(value) {
|
|
539
549
|
// 输入值必须被包含
|
|
540
550
|
return external_xe_utils_default().includeArrays([0, 1, 2], value);
|
|
541
551
|
}
|
|
542
|
-
|
|
543
552
|
},
|
|
544
553
|
// 设置参数
|
|
545
554
|
settingParams: {
|
|
@@ -550,7 +559,6 @@ const __default__ = {
|
|
|
550
559
|
type: Boolean,
|
|
551
560
|
default: true
|
|
552
561
|
},
|
|
553
|
-
|
|
554
562
|
/**
|
|
555
563
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
556
564
|
*/
|
|
@@ -580,14 +588,14 @@ const __default__ = {
|
|
|
580
588
|
default: true
|
|
581
589
|
}
|
|
582
590
|
},
|
|
583
|
-
|
|
584
591
|
setup(__props, {
|
|
585
|
-
expose
|
|
592
|
+
expose: __expose
|
|
586
593
|
}) {
|
|
587
|
-
const props = __props;
|
|
588
594
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
589
|
-
let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
595
|
+
let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
590
596
|
|
|
597
|
+
// 获取组件传参
|
|
598
|
+
const props = __props;
|
|
591
599
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
592
600
|
volumeType: props.volumeType || 0,
|
|
593
601
|
// 查询体类型
|
|
@@ -616,15 +624,17 @@ const __default__ = {
|
|
|
616
624
|
minZRotate: props.settingParams && props.settingParams.minZRotate || 0,
|
|
617
625
|
// 绕Z轴旋转最小值
|
|
618
626
|
maxZRotate: props.settingParams && props.settingParams.maxZRotate || 90 // 绕Z轴旋转最大值
|
|
619
|
-
|
|
620
627
|
});
|
|
621
|
-
let viewModel = null;
|
|
628
|
+
let viewModel = null;
|
|
622
629
|
|
|
623
|
-
|
|
630
|
+
// 组件容器Ref
|
|
631
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
624
632
|
|
|
633
|
+
// 生成组件默认header
|
|
625
634
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
626
|
-
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
635
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
627
636
|
|
|
637
|
+
// 国际化
|
|
628
638
|
let {
|
|
629
639
|
locale,
|
|
630
640
|
messages
|
|
@@ -656,91 +666,71 @@ const __default__ = {
|
|
|
656
666
|
}
|
|
657
667
|
});
|
|
658
668
|
});
|
|
669
|
+
|
|
659
670
|
/**
|
|
660
671
|
* @description 监听header生成
|
|
661
672
|
*/
|
|
662
|
-
|
|
663
673
|
const watchCreateHeaderTemp = () => {
|
|
664
674
|
if (props.showHeaderTemp) {
|
|
665
675
|
// 生成headerTemp
|
|
666
676
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
667
677
|
}
|
|
668
|
-
};
|
|
669
|
-
|
|
678
|
+
};
|
|
670
679
|
|
|
680
|
+
// 参数切换
|
|
671
681
|
function paramsChanged(key) {
|
|
672
682
|
switch (key) {
|
|
673
683
|
case "type":
|
|
674
684
|
viewModel.setType(formItem.volumeType);
|
|
675
685
|
break;
|
|
676
|
-
|
|
677
686
|
case "mode":
|
|
678
687
|
viewModel.setMode(formItem.positionMode);
|
|
679
688
|
break;
|
|
680
|
-
|
|
681
689
|
case "scale":
|
|
682
690
|
viewModel.setScale(formItem.scale);
|
|
683
691
|
break;
|
|
684
|
-
|
|
685
692
|
case "xRotate":
|
|
686
693
|
viewModel.setXangle(formItem.xRotate);
|
|
687
694
|
break;
|
|
688
|
-
|
|
689
695
|
case "yRotate":
|
|
690
696
|
viewModel.setYangle(formItem.yRotate);
|
|
691
697
|
break;
|
|
692
|
-
|
|
693
698
|
case "zRotate":
|
|
694
699
|
viewModel.setZangle(formItem.zRotate);
|
|
695
700
|
break;
|
|
696
|
-
|
|
697
701
|
default:
|
|
698
702
|
break;
|
|
699
703
|
}
|
|
700
|
-
}
|
|
701
|
-
|
|
702
|
-
|
|
704
|
+
}
|
|
705
|
+
// 查询
|
|
703
706
|
function query() {
|
|
704
707
|
viewModel && viewModel.start();
|
|
705
|
-
}
|
|
706
|
-
|
|
707
|
-
|
|
708
|
+
}
|
|
709
|
+
// 重置
|
|
708
710
|
function reset() {
|
|
709
711
|
viewModel && viewModel.clear();
|
|
710
|
-
}
|
|
711
|
-
|
|
712
|
-
|
|
712
|
+
}
|
|
713
|
+
// 销毁
|
|
713
714
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
714
715
|
viewModel && viewModel.destroy();
|
|
715
716
|
});
|
|
716
|
-
|
|
717
|
+
__expose({
|
|
717
718
|
paramsChanged,
|
|
718
719
|
query,
|
|
719
720
|
reset
|
|
720
721
|
});
|
|
721
722
|
return (_ctx, _cache) => {
|
|
722
723
|
const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");
|
|
723
|
-
|
|
724
724
|
const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-select");
|
|
725
|
-
|
|
726
725
|
const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
|
|
727
|
-
|
|
728
726
|
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
729
|
-
|
|
730
727
|
const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
|
|
731
|
-
|
|
732
728
|
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
733
|
-
|
|
734
729
|
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
735
|
-
|
|
736
730
|
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
|
|
737
|
-
|
|
738
731
|
const _component_kq_collapse_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse-item");
|
|
739
|
-
|
|
740
732
|
const _component_kq_collapse = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse");
|
|
741
|
-
|
|
742
733
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
743
|
-
|
|
744
734
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
745
735
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-gpu-spatial-query", {
|
|
746
736
|
'kq-box-shadow': __props.showShadow
|
|
@@ -751,9 +741,7 @@ const __default__ = {
|
|
|
751
741
|
key: 0,
|
|
752
742
|
ref_key: "headerTempRef",
|
|
753
743
|
ref: headerTempRef
|
|
754
|
-
}, null, 512
|
|
755
|
-
/* NEED_PATCH */
|
|
756
|
-
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form, {
|
|
744
|
+
}, 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", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form, {
|
|
757
745
|
"label-width": "100px",
|
|
758
746
|
"label-position": "left"
|
|
759
747
|
}, {
|
|
@@ -769,44 +757,24 @@ const __default__ = {
|
|
|
769
757
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
770
758
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).cube,
|
|
771
759
|
value: 0
|
|
772
|
-
}, null, 8
|
|
773
|
-
/* PROPS */
|
|
774
|
-
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
760
|
+
}, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
775
761
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).sphere,
|
|
776
762
|
value: 1
|
|
777
|
-
}, null, 8
|
|
778
|
-
/* PROPS */
|
|
779
|
-
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
763
|
+
}, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
780
764
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).cylinder,
|
|
781
765
|
value: 2
|
|
782
|
-
}, null, 8
|
|
783
|
-
/* PROPS */
|
|
784
|
-
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
766
|
+
}, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
785
767
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).ellipsoid,
|
|
786
768
|
value: 3
|
|
787
|
-
}, null, 8
|
|
788
|
-
/* PROPS */
|
|
789
|
-
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
769
|
+
}, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
790
770
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).cone,
|
|
791
771
|
value: 4
|
|
792
|
-
}, null, 8
|
|
793
|
-
/*
|
|
794
|
-
|
|
795
|
-
|
|
796
|
-
|
|
797
|
-
|
|
798
|
-
}, 8
|
|
799
|
-
/* PROPS */
|
|
800
|
-
, ["modelValue"])]),
|
|
801
|
-
_: 1
|
|
802
|
-
/* STABLE */
|
|
803
|
-
|
|
804
|
-
}, 8
|
|
805
|
-
/* PROPS */
|
|
806
|
-
, ["label"])]),
|
|
807
|
-
_: 1
|
|
808
|
-
/* STABLE */
|
|
809
|
-
|
|
772
|
+
}, null, 8 /* PROPS */, ["label"])]),
|
|
773
|
+
_: 1 /* STABLE */
|
|
774
|
+
}, 8 /* PROPS */, ["modelValue"])]),
|
|
775
|
+
_: 1 /* STABLE */
|
|
776
|
+
}, 8 /* PROPS */, ["label"])]),
|
|
777
|
+
_: 1 /* STABLE */
|
|
810
778
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
811
779
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
|
|
812
780
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).locaLMode
|
|
@@ -819,47 +787,25 @@ const __default__ = {
|
|
|
819
787
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
820
788
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).intersect,
|
|
821
789
|
value: 0
|
|
822
|
-
}, null, 8
|
|
823
|
-
/* PROPS */
|
|
824
|
-
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
790
|
+
}, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
825
791
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).disjoint,
|
|
826
792
|
value: 1
|
|
827
|
-
}, null, 8
|
|
828
|
-
/* PROPS */
|
|
829
|
-
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
793
|
+
}, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
830
794
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).contain,
|
|
831
795
|
value: 2
|
|
832
|
-
}, null, 8
|
|
833
|
-
/*
|
|
834
|
-
|
|
835
|
-
|
|
836
|
-
|
|
837
|
-
|
|
838
|
-
}, 8
|
|
839
|
-
/* PROPS */
|
|
840
|
-
, ["modelValue"])]),
|
|
841
|
-
_: 1
|
|
842
|
-
/* STABLE */
|
|
843
|
-
|
|
844
|
-
}, 8
|
|
845
|
-
/* PROPS */
|
|
846
|
-
, ["label"])]),
|
|
847
|
-
_: 1
|
|
848
|
-
/* STABLE */
|
|
849
|
-
|
|
796
|
+
}, null, 8 /* PROPS */, ["label"])]),
|
|
797
|
+
_: 1 /* STABLE */
|
|
798
|
+
}, 8 /* PROPS */, ["modelValue"])]),
|
|
799
|
+
_: 1 /* STABLE */
|
|
800
|
+
}, 8 /* PROPS */, ["label"])]),
|
|
801
|
+
_: 1 /* STABLE */
|
|
850
802
|
})]),
|
|
851
|
-
_: 1
|
|
852
|
-
/* STABLE */
|
|
853
|
-
|
|
803
|
+
_: 1 /* STABLE */
|
|
854
804
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
855
805
|
class: "kq3d-gpu-spatial-query-tip"
|
|
856
806
|
}, {
|
|
857
|
-
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).queryTips), 1
|
|
858
|
-
/*
|
|
859
|
-
)]),
|
|
860
|
-
_: 1
|
|
861
|
-
/* STABLE */
|
|
862
|
-
|
|
807
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).queryTips), 1 /* TEXT */)]),
|
|
808
|
+
_: 1 /* STABLE */
|
|
863
809
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse, {
|
|
864
810
|
"model-value": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(collapseValue),
|
|
865
811
|
class: "kq3d-gpu-spatial-query-set-title"
|
|
@@ -891,12 +837,8 @@ const __default__ = {
|
|
|
891
837
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minScale,
|
|
892
838
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxScale,
|
|
893
839
|
onInput: _cache[5] || (_cache[5] = $event => paramsChanged('scale'))
|
|
894
|
-
}, null, 8
|
|
895
|
-
/*
|
|
896
|
-
, ["modelValue", "step", "min", "max"])]),
|
|
897
|
-
_: 1
|
|
898
|
-
/* STABLE */
|
|
899
|
-
|
|
840
|
+
}, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
|
|
841
|
+
_: 1 /* STABLE */
|
|
900
842
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
901
843
|
span: 8
|
|
902
844
|
}, {
|
|
@@ -908,26 +850,14 @@ const __default__ = {
|
|
|
908
850
|
step: 0.1,
|
|
909
851
|
"controls-position": "right",
|
|
910
852
|
onInput: _cache[7] || (_cache[7] = $event => paramsChanged('scale'))
|
|
911
|
-
}, null, 8
|
|
912
|
-
/*
|
|
913
|
-
, ["modelValue", "min", "max", "step"])]),
|
|
914
|
-
_: 1
|
|
915
|
-
/* STABLE */
|
|
916
|
-
|
|
853
|
+
}, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
|
|
854
|
+
_: 1 /* STABLE */
|
|
917
855
|
})]),
|
|
918
|
-
_: 1
|
|
919
|
-
/* STABLE */
|
|
920
|
-
|
|
856
|
+
_: 1 /* STABLE */
|
|
921
857
|
})]),
|
|
922
|
-
_: 1
|
|
923
|
-
|
|
924
|
-
|
|
925
|
-
}, 8
|
|
926
|
-
/* PROPS */
|
|
927
|
-
, ["label"])]),
|
|
928
|
-
_: 1
|
|
929
|
-
/* STABLE */
|
|
930
|
-
|
|
858
|
+
_: 1 /* STABLE */
|
|
859
|
+
}, 8 /* PROPS */, ["label"])]),
|
|
860
|
+
_: 1 /* STABLE */
|
|
931
861
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
932
862
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
|
|
933
863
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).xRotate
|
|
@@ -947,12 +877,8 @@ const __default__ = {
|
|
|
947
877
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minXRotate,
|
|
948
878
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxXRotate,
|
|
949
879
|
onInput: _cache[9] || (_cache[9] = $event => paramsChanged('xRotate'))
|
|
950
|
-
}, null, 8
|
|
951
|
-
/*
|
|
952
|
-
, ["modelValue", "min", "max"])]),
|
|
953
|
-
_: 1
|
|
954
|
-
/* STABLE */
|
|
955
|
-
|
|
880
|
+
}, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
|
|
881
|
+
_: 1 /* STABLE */
|
|
956
882
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
957
883
|
span: 8
|
|
958
884
|
}, {
|
|
@@ -964,26 +890,14 @@ const __default__ = {
|
|
|
964
890
|
step: 1,
|
|
965
891
|
"controls-position": "right",
|
|
966
892
|
onInput: _cache[11] || (_cache[11] = $event => paramsChanged('xRotate'))
|
|
967
|
-
}, null, 8
|
|
968
|
-
/*
|
|
969
|
-
, ["modelValue", "min", "max"])]),
|
|
970
|
-
_: 1
|
|
971
|
-
/* STABLE */
|
|
972
|
-
|
|
893
|
+
}, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
|
|
894
|
+
_: 1 /* STABLE */
|
|
973
895
|
})]),
|
|
974
|
-
_: 1
|
|
975
|
-
/* STABLE */
|
|
976
|
-
|
|
896
|
+
_: 1 /* STABLE */
|
|
977
897
|
})]),
|
|
978
|
-
_: 1
|
|
979
|
-
|
|
980
|
-
|
|
981
|
-
}, 8
|
|
982
|
-
/* PROPS */
|
|
983
|
-
, ["label"])]),
|
|
984
|
-
_: 1
|
|
985
|
-
/* STABLE */
|
|
986
|
-
|
|
898
|
+
_: 1 /* STABLE */
|
|
899
|
+
}, 8 /* PROPS */, ["label"])]),
|
|
900
|
+
_: 1 /* STABLE */
|
|
987
901
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
988
902
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
|
|
989
903
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).yRotate
|
|
@@ -1003,12 +917,8 @@ const __default__ = {
|
|
|
1003
917
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minXRotate,
|
|
1004
918
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxXRotate,
|
|
1005
919
|
onInput: _cache[13] || (_cache[13] = $event => paramsChanged('yRotate'))
|
|
1006
|
-
}, null, 8
|
|
1007
|
-
/*
|
|
1008
|
-
, ["modelValue", "min", "max"])]),
|
|
1009
|
-
_: 1
|
|
1010
|
-
/* STABLE */
|
|
1011
|
-
|
|
920
|
+
}, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
|
|
921
|
+
_: 1 /* STABLE */
|
|
1012
922
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
1013
923
|
span: 8
|
|
1014
924
|
}, {
|
|
@@ -1020,26 +930,14 @@ const __default__ = {
|
|
|
1020
930
|
step: 1,
|
|
1021
931
|
"controls-position": "right",
|
|
1022
932
|
onInput: _cache[15] || (_cache[15] = $event => paramsChanged('yRotate'))
|
|
1023
|
-
}, null, 8
|
|
1024
|
-
/*
|
|
1025
|
-
, ["modelValue", "min", "max"])]),
|
|
1026
|
-
_: 1
|
|
1027
|
-
/* STABLE */
|
|
1028
|
-
|
|
933
|
+
}, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
|
|
934
|
+
_: 1 /* STABLE */
|
|
1029
935
|
})]),
|
|
1030
|
-
_: 1
|
|
1031
|
-
/* STABLE */
|
|
1032
|
-
|
|
936
|
+
_: 1 /* STABLE */
|
|
1033
937
|
})]),
|
|
1034
|
-
_: 1
|
|
1035
|
-
|
|
1036
|
-
|
|
1037
|
-
}, 8
|
|
1038
|
-
/* PROPS */
|
|
1039
|
-
, ["label"])]),
|
|
1040
|
-
_: 1
|
|
1041
|
-
/* STABLE */
|
|
1042
|
-
|
|
938
|
+
_: 1 /* STABLE */
|
|
939
|
+
}, 8 /* PROPS */, ["label"])]),
|
|
940
|
+
_: 1 /* STABLE */
|
|
1043
941
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
1044
942
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
|
|
1045
943
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).zRotate
|
|
@@ -1059,12 +957,8 @@ const __default__ = {
|
|
|
1059
957
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minZRotate,
|
|
1060
958
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxZRotate,
|
|
1061
959
|
onInput: _cache[17] || (_cache[17] = $event => paramsChanged('zRotate'))
|
|
1062
|
-
}, null, 8
|
|
1063
|
-
/*
|
|
1064
|
-
, ["modelValue", "min", "max"])]),
|
|
1065
|
-
_: 1
|
|
1066
|
-
/* STABLE */
|
|
1067
|
-
|
|
960
|
+
}, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
|
|
961
|
+
_: 1 /* STABLE */
|
|
1068
962
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
1069
963
|
span: 8
|
|
1070
964
|
}, {
|
|
@@ -1076,73 +970,36 @@ const __default__ = {
|
|
|
1076
970
|
step: 1,
|
|
1077
971
|
"controls-position": "right",
|
|
1078
972
|
onInput: _cache[19] || (_cache[19] = $event => paramsChanged('zRotate'))
|
|
1079
|
-
}, null, 8
|
|
1080
|
-
/*
|
|
1081
|
-
, ["modelValue", "min", "max"])]),
|
|
1082
|
-
_: 1
|
|
1083
|
-
/* STABLE */
|
|
1084
|
-
|
|
973
|
+
}, null, 8 /* PROPS */, ["modelValue", "min", "max"])]),
|
|
974
|
+
_: 1 /* STABLE */
|
|
1085
975
|
})]),
|
|
1086
|
-
_: 1
|
|
1087
|
-
/* STABLE */
|
|
1088
|
-
|
|
976
|
+
_: 1 /* STABLE */
|
|
1089
977
|
})]),
|
|
1090
|
-
_: 1
|
|
1091
|
-
|
|
1092
|
-
|
|
1093
|
-
}, 8
|
|
1094
|
-
/* PROPS */
|
|
1095
|
-
, ["label"])]),
|
|
1096
|
-
_: 1
|
|
1097
|
-
/* STABLE */
|
|
1098
|
-
|
|
978
|
+
_: 1 /* STABLE */
|
|
979
|
+
}, 8 /* PROPS */, ["label"])]),
|
|
980
|
+
_: 1 /* STABLE */
|
|
1099
981
|
})]),
|
|
1100
|
-
_: 1
|
|
1101
|
-
/* STABLE */
|
|
1102
|
-
|
|
982
|
+
_: 1 /* STABLE */
|
|
1103
983
|
})]),
|
|
1104
|
-
_: 1
|
|
1105
|
-
|
|
1106
|
-
|
|
1107
|
-
|
|
1108
|
-
/* PROPS */
|
|
1109
|
-
, ["title"])]),
|
|
1110
|
-
_: 1
|
|
1111
|
-
/* STABLE */
|
|
1112
|
-
|
|
1113
|
-
}, 8
|
|
1114
|
-
/* PROPS */
|
|
1115
|
-
, ["model-value"]), (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, {
|
|
984
|
+
_: 1 /* STABLE */
|
|
985
|
+
}, 8 /* PROPS */, ["title"])]),
|
|
986
|
+
_: 1 /* STABLE */
|
|
987
|
+
}, 8 /* PROPS */, ["model-value"]), (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, {
|
|
1116
988
|
onClick: _cache[20] || (_cache[20] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => query(), ["stop"])),
|
|
1117
989
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).gpuQuery,
|
|
1118
990
|
type: "primary"
|
|
1119
991
|
}, {
|
|
1120
|
-
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).gpuQuery), 1
|
|
1121
|
-
/*
|
|
1122
|
-
|
|
1123
|
-
_: 1
|
|
1124
|
-
/* STABLE */
|
|
1125
|
-
|
|
1126
|
-
}, 8
|
|
1127
|
-
/* PROPS */
|
|
1128
|
-
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
992
|
+
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).gpuQuery), 1 /* TEXT */)]),
|
|
993
|
+
_: 1 /* STABLE */
|
|
994
|
+
}, 8 /* PROPS */, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1129
995
|
onClick: _cache[21] || (_cache[21] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => reset(), ["stop"])),
|
|
1130
996
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
|
|
1131
997
|
}, {
|
|
1132
|
-
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
|
|
1133
|
-
/*
|
|
1134
|
-
|
|
1135
|
-
_: 1
|
|
1136
|
-
/* STABLE */
|
|
1137
|
-
|
|
1138
|
-
}, 8
|
|
1139
|
-
/* PROPS */
|
|
1140
|
-
, ["title"])])])], 2
|
|
1141
|
-
/* CLASS */
|
|
1142
|
-
);
|
|
998
|
+
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 */)]),
|
|
999
|
+
_: 1 /* STABLE */
|
|
1000
|
+
}, 8 /* PROPS */, ["title"])])])], 2 /* CLASS */);
|
|
1143
1001
|
};
|
|
1144
1002
|
}
|
|
1145
|
-
|
|
1146
1003
|
}));
|
|
1147
1004
|
;// CONCATENATED MODULE: ./src/webgl/gpuspatialquery/GPUSpatialQuery.vue?vue&type=script&setup=true&lang=js
|
|
1148
1005
|
|
|
@@ -1154,10 +1011,13 @@ const __exports__ = GPUSpatialQueryvue_type_script_setup_true_lang_js;
|
|
|
1154
1011
|
|
|
1155
1012
|
/* harmony default export */ var GPUSpatialQuery = (__exports__);
|
|
1156
1013
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
|
|
1157
|
-
var init_js_ = __webpack_require__(
|
|
1014
|
+
var init_js_ = __webpack_require__(455);
|
|
1158
1015
|
var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
1159
1016
|
;// CONCATENATED MODULE: ./src/webgl/gpuspatialquery/index.js
|
|
1160
|
-
|
|
1017
|
+
/*
|
|
1018
|
+
* Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
|
|
1019
|
+
* All rights reserved.
|
|
1020
|
+
*/
|
|
1161
1021
|
|
|
1162
1022
|
|
|
1163
1023
|
|
|
@@ -1166,8 +1026,6 @@ GPUSpatialQuery.install = (Vue, opts) => {
|
|
|
1166
1026
|
Vue.component(GPUSpatialQuery.name, GPUSpatialQuery);
|
|
1167
1027
|
};
|
|
1168
1028
|
|
|
1169
|
-
|
|
1170
|
-
}();
|
|
1171
1029
|
/******/ return __webpack_exports__;
|
|
1172
1030
|
/******/ })()
|
|
1173
1031
|
;
|