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