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