@kq_npm/client3d_webgl_vue 4.5.28-beta → 4.5.30
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 +518 -262
- package/adddata/style/adddata.css +1 -1
- package/aspectanalysis/index.js +201 -123
- package/baseterraingallery/index.js +123 -94
- package/baseterraingallery/style/baseterraingallery.css +1 -1
- package/boxclip/index.js +442 -249
- package/clientPrint/index.js +27093 -14116
- package/clientPrint/style/clientPrint.css +1 -1
- package/comparemap/index.js +243 -213
- package/compass/index.js +68 -74
- package/excavatefillanalysis/index.js +225 -143
- package/fixedzoomin/index.js +82 -72
- package/fixedzoomout/index.js +80 -71
- package/flight/index.js +371 -257
- package/flight/style/flight.css +1 -1
- package/floodanalysis/index.js +347 -199
- package/geologicalbodyanalysis/index.js +260 -166
- package/gpuspatialquery/index.js +359 -198
- package/hawkeye/index.js +100 -131
- package/headertemp/index.js +25 -14
- package/heatmap3d/index.js +678 -366
- package/heatmap3d/style/heatmap3d.css +1 -1
- package/index.js +20321 -7165
- package/isolineanalysis/index.js +1202 -504
- package/light/index.js +494 -349
- package/limitheightanalysis/index.js +223 -159
- package/measure/index.js +353 -198
- package/modelFlat/index.js +204 -167
- package/modelexcavate/index.js +191 -130
- package/modelfilter/index.js +271 -179
- package/modelprofileanalysis/index.js +316 -206
- package/modelselect/index.js +147 -142
- package/package.json +1 -1
- package/particleeffect/index.js +403 -225
- package/planeclip/index.js +300 -198
- package/resetview/index.js +52 -66
- package/roller/index.js +372 -304
- package/scaneffect/index.js +537 -230
- package/sceneadvancedtoimage/index.js +358 -205
- package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -1
- package/sceneapp/index.js +27093 -14116
- package/sceneset/index.js +864 -350
- package/scenetohdimage/index.js +297 -159
- package/scenetohdimage/style/scenetohdimage.css +1 -1
- package/sceneview/index.js +27093 -14116
- package/sceneview/style/sceneview.css +1 -1
- package/screenshot/index.js +301 -257
- package/shadowanalysis/index.js +405 -217
- package/sightlineanalysis/index.js +271 -183
- package/sightlineanalysis/style/divpoint.css +1 -1
- package/skylineanalysis/index.js +308 -160
- package/slopeanalysis/index.js +397 -227
- package/slopeaspectanalysis/index.js +485 -259
- package/statusbar/index.js +65 -88
- package/style.css +1 -1
- package/terrainoperation/index.js +237 -176
- package/terrainprofileanalysis/index.js +138 -120
- package/typhoontrac/index.js +970 -234
- package/typhoontrac/style/typhoontrac.css +1 -1
- package/underground/index.js +61 -70
- package/videofusion/index.js +488 -265
- package/videoproject/index.js +490 -271
- package/viewshedanalysis/index.js +255 -151
- package/weathereffect/index.js +317 -166
- package/windyslicing/index.js +1947 -0
- package/windyslicing/style/index.js +3 -0
- package/windyslicing/style/windyslicing.css +1 -0
- package/wireframesketch/index.js +142 -110
package/gpuspatialquery/index.js
CHANGED
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
if(typeof exports === 'object' && typeof module === 'object')
|
|
3
3
|
module.exports = 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"));
|
|
4
4
|
else if(typeof define === 'function' && define.amd)
|
|
5
|
-
define(["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js", "@kq_npm/client_common_vue/_utils/util"], factory);
|
|
6
|
-
else
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
5
|
+
define("@kq_npm/client3d_webgl_vue", ["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js", "@kq_npm/client_common_vue/_utils/util"], factory);
|
|
6
|
+
else if(typeof exports === 'object')
|
|
7
|
+
exports["@kq_npm/client3d_webgl_vue"] = 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"));
|
|
8
|
+
else
|
|
9
|
+
root["@kq_npm/client3d_webgl_vue"] = 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"]);
|
|
10
10
|
})(this, function(__WEBPACK_EXTERNAL_MODULE__1895__, __WEBPACK_EXTERNAL_MODULE__7135__, __WEBPACK_EXTERNAL_MODULE__7997__, __WEBPACK_EXTERNAL_MODULE__3458__) {
|
|
11
11
|
return /******/ (function() { // webpackBootstrap
|
|
12
12
|
/******/ "use strict";
|
|
@@ -25,10 +25,12 @@ return /******/ (function() { // webpackBootstrap
|
|
|
25
25
|
*/
|
|
26
26
|
|
|
27
27
|
|
|
28
|
+
|
|
28
29
|
element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
|
|
29
30
|
_init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
|
|
30
31
|
Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
31
32
|
};
|
|
33
|
+
|
|
32
34
|
/* harmony default export */ __webpack_exports__["Z"] = (element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
|
|
33
35
|
|
|
34
36
|
/***/ }),
|
|
@@ -40,13 +42,6 @@ module.exports = require("@element-plus/icons-vue");
|
|
|
40
42
|
|
|
41
43
|
/***/ }),
|
|
42
44
|
|
|
43
|
-
/***/ 2118:
|
|
44
|
-
/***/ (function(module) {
|
|
45
|
-
|
|
46
|
-
module.exports = require("core-js/modules/es.array.push.js");
|
|
47
|
-
|
|
48
|
-
/***/ }),
|
|
49
|
-
|
|
50
45
|
/***/ 9389:
|
|
51
46
|
/***/ (function(module) {
|
|
52
47
|
|
|
@@ -96,59 +91,27 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
|
|
|
96
91
|
|
|
97
92
|
/***/ }),
|
|
98
93
|
|
|
99
|
-
/***/
|
|
94
|
+
/***/ 8270:
|
|
100
95
|
/***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
|
|
101
96
|
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
106
|
-
|
|
107
|
-
|
|
108
|
-
|
|
109
|
-
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
113
|
-
|
|
114
|
-
|
|
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.");
|
|
97
|
+
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
98
|
+
/* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
|
|
99
|
+
/* harmony export */ });
|
|
100
|
+
function _defineProperty(obj, key, value) {
|
|
101
|
+
if (key in obj) {
|
|
102
|
+
Object.defineProperty(obj, key, {
|
|
103
|
+
value: value,
|
|
104
|
+
enumerable: true,
|
|
105
|
+
configurable: true,
|
|
106
|
+
writable: true
|
|
107
|
+
});
|
|
108
|
+
} else {
|
|
109
|
+
obj[key] = value;
|
|
128
110
|
}
|
|
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
|
-
}
|
|
139
111
|
|
|
140
|
-
|
|
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;
|
|
112
|
+
return obj;
|
|
149
113
|
}
|
|
150
114
|
|
|
151
|
-
|
|
152
115
|
/***/ })
|
|
153
116
|
|
|
154
117
|
/******/ });
|
|
@@ -240,10 +203,8 @@ var gis_utils_ = __webpack_require__(7135);
|
|
|
240
203
|
// EXTERNAL MODULE: external "xe-utils"
|
|
241
204
|
var external_xe_utils_ = __webpack_require__(6869);
|
|
242
205
|
var external_xe_utils_default = /*#__PURE__*/__webpack_require__.n(external_xe_utils_);
|
|
243
|
-
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
244
|
-
var defineProperty = __webpack_require__(
|
|
245
|
-
// EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
|
|
246
|
-
var es_array_push_js_ = __webpack_require__(2118);
|
|
206
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
207
|
+
var defineProperty = __webpack_require__(8270);
|
|
247
208
|
// EXTERNAL MODULE: ./src/common/_ui/message/index.js
|
|
248
209
|
var message = __webpack_require__(1349);
|
|
249
210
|
;// CONCATENATED MODULE: ./src/webgl/gpuspatialquery/GPUSpatialQueryViewModel.js
|
|
@@ -256,22 +217,30 @@ var message = __webpack_require__(1349);
|
|
|
256
217
|
//GPU空间查询逻辑类
|
|
257
218
|
|
|
258
219
|
class GPUSpatialQueryViewModel {
|
|
220
|
+
//GPU查询三维对象
|
|
221
|
+
//绘制管理对象
|
|
222
|
+
//绘制的图形
|
|
223
|
+
//绘制图形的坐标
|
|
224
|
+
//传入参数
|
|
225
|
+
//绘制后的查询事件
|
|
226
|
+
//绘制完成监听事件
|
|
259
227
|
constructor(scenceView, options) {
|
|
260
228
|
(0,defineProperty/* default */.Z)(this, "_gpuSpatialQuery", null);
|
|
261
|
-
|
|
229
|
+
|
|
262
230
|
(0,defineProperty/* default */.Z)(this, "_drawManager", null);
|
|
263
|
-
|
|
231
|
+
|
|
264
232
|
(0,defineProperty/* default */.Z)(this, "_geometry", null);
|
|
265
|
-
|
|
233
|
+
|
|
266
234
|
(0,defineProperty/* default */.Z)(this, "_center", null);
|
|
267
|
-
|
|
235
|
+
|
|
268
236
|
(0,defineProperty/* default */.Z)(this, "_options", null);
|
|
269
|
-
|
|
237
|
+
|
|
270
238
|
(0,defineProperty/* default */.Z)(this, "finishedQuery", null);
|
|
271
|
-
|
|
239
|
+
|
|
272
240
|
(0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
|
|
273
|
-
|
|
241
|
+
|
|
274
242
|
(0,defineProperty/* default */.Z)(this, "_language", {});
|
|
243
|
+
|
|
275
244
|
this._language = scenceView._language;
|
|
276
245
|
options.viewer = scenceView._viewer;
|
|
277
246
|
options.viewer.scene.globe.depthTestAgainstTerrain = true;
|
|
@@ -287,8 +256,8 @@ class GPUSpatialQueryViewModel {
|
|
|
287
256
|
that._removeEventListener = that._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
288
257
|
if (shape) {
|
|
289
258
|
that._drawManager && that._drawManager.clear();
|
|
290
|
-
that._center = shape.position;
|
|
291
|
-
|
|
259
|
+
that._center = shape.position; //that.startQuery();
|
|
260
|
+
|
|
292
261
|
setTimeout(() => {
|
|
293
262
|
//绘制跟高亮显示有冲突,所以延时执行查询
|
|
294
263
|
that.startQuery();
|
|
@@ -298,27 +267,33 @@ class GPUSpatialQueryViewModel {
|
|
|
298
267
|
}, 10);
|
|
299
268
|
}
|
|
300
269
|
});
|
|
270
|
+
|
|
301
271
|
that._gpuSpatialQuery.finishSQ.addEventListener(function () {
|
|
302
272
|
// 查询结束后的回调事件,高亮结果
|
|
303
273
|
for (let l = 0; l < that._gpuSpatialQuery._layers.length; l++) {
|
|
304
274
|
//if (that._gpuSpatialQuery._layers[l].sqResult.length != 0) { 该代码导致无法清除高亮效果
|
|
305
275
|
const tileset = that._gpuSpatialQuery._layers[l].layer;
|
|
306
276
|
const queryIds = that._gpuSpatialQuery._layers[l].sqResult;
|
|
277
|
+
|
|
307
278
|
for (let n = 0; n < tileset._selectedTiles.length; n++) {
|
|
308
279
|
const tile = tileset._selectedTiles[n];
|
|
309
280
|
const content = tile.content;
|
|
281
|
+
|
|
310
282
|
if (content) {
|
|
311
283
|
for (let i = 0; i < content.featuresLength; i++) {
|
|
312
284
|
const feature = content.getFeature(i);
|
|
313
285
|
let bFind = false;
|
|
286
|
+
|
|
314
287
|
if (feature.pickId) {
|
|
315
288
|
const id = feature.pickId.key;
|
|
289
|
+
|
|
316
290
|
for (let j = 0; j < queryIds.length; j++) {
|
|
317
291
|
if (queryIds[j] == id) {
|
|
318
292
|
bFind = true;
|
|
319
293
|
}
|
|
320
294
|
}
|
|
321
295
|
}
|
|
296
|
+
|
|
322
297
|
if (bFind) {
|
|
323
298
|
feature.color = Cesium.Color.AQUA;
|
|
324
299
|
} else {
|
|
@@ -327,25 +302,28 @@ class GPUSpatialQueryViewModel {
|
|
|
327
302
|
}
|
|
328
303
|
}
|
|
329
304
|
}
|
|
330
|
-
|
|
331
|
-
//}
|
|
305
|
+
|
|
306
|
+
tileset.makeStyleDirty(); //}
|
|
332
307
|
}
|
|
333
308
|
});
|
|
334
|
-
}
|
|
309
|
+
} //开始绘制
|
|
310
|
+
|
|
335
311
|
|
|
336
|
-
//开始绘制
|
|
337
312
|
start() {
|
|
338
313
|
// 判断是否添加了模型
|
|
339
314
|
var flag = false;
|
|
340
315
|
var models = this._options.viewer.scene.primitives._primitives;
|
|
316
|
+
|
|
341
317
|
for (let i = 0; i < models.length; i++) {
|
|
342
318
|
if (models[i]._url) {
|
|
343
319
|
flag = true;
|
|
344
320
|
}
|
|
345
321
|
}
|
|
322
|
+
|
|
346
323
|
if (flag) {
|
|
347
324
|
this.clear();
|
|
348
325
|
this.findLayers();
|
|
326
|
+
|
|
349
327
|
this._drawManager.startDraw("marker", {
|
|
350
328
|
image: null
|
|
351
329
|
});
|
|
@@ -355,45 +333,51 @@ class GPUSpatialQueryViewModel {
|
|
|
355
333
|
type: "warning"
|
|
356
334
|
});
|
|
357
335
|
}
|
|
358
|
-
}
|
|
336
|
+
} // 开始查询
|
|
337
|
+
|
|
359
338
|
|
|
360
|
-
// 开始查询
|
|
361
339
|
startQuery() {
|
|
362
340
|
this.createGeometry();
|
|
341
|
+
|
|
363
342
|
this._gpuSpatialQuery.setGeom(this._geometry);
|
|
343
|
+
|
|
364
344
|
this._gpuSpatialQuery.setSpaceTopology(this._options.positionMode);
|
|
345
|
+
|
|
365
346
|
this._gpuSpatialQuery.setLayers(this._options.layers);
|
|
347
|
+
|
|
366
348
|
this._gpuSpatialQuery.start();
|
|
367
|
-
}
|
|
349
|
+
} //清除全部结果
|
|
350
|
+
|
|
368
351
|
|
|
369
|
-
//清除全部结果
|
|
370
352
|
clear() {
|
|
371
353
|
this._gpuSpatialQuery && this._gpuSpatialQuery.clear();
|
|
354
|
+
|
|
372
355
|
this._drawManager.stopDraw();
|
|
373
|
-
}
|
|
356
|
+
} //销毁
|
|
357
|
+
|
|
374
358
|
|
|
375
|
-
//销毁
|
|
376
359
|
destroy() {
|
|
377
|
-
this.clear();
|
|
378
|
-
|
|
379
|
-
this._gpuSpatialQuery = null;
|
|
380
|
-
|
|
360
|
+
this.clear(); // this._gpuSpatialQuery && this._gpuSpatialQuery.destroy();
|
|
361
|
+
|
|
362
|
+
this._gpuSpatialQuery = null; //移除监听事件
|
|
363
|
+
|
|
381
364
|
this._removeEventListener && this._removeEventListener();
|
|
382
365
|
this._removeEventListener = null;
|
|
383
|
-
}
|
|
366
|
+
} // 查找所有3dtiles模型对象
|
|
367
|
+
|
|
384
368
|
|
|
385
|
-
// 查找所有3dtiles模型对象
|
|
386
369
|
findLayers() {
|
|
387
370
|
this._options.layers = [];
|
|
388
371
|
const primitives = this._options.viewer.scene.primitives._primitives;
|
|
372
|
+
|
|
389
373
|
for (let m = 0; m < primitives.length; m++) {
|
|
390
374
|
if (primitives[m] instanceof Cesium.Cesium3DTileset) {
|
|
391
375
|
this._options.layers.push(new Cesium.Kq3dLayerQuery(primitives[m]));
|
|
392
376
|
}
|
|
393
377
|
}
|
|
394
|
-
}
|
|
378
|
+
} //创建查询体
|
|
379
|
+
|
|
395
380
|
|
|
396
|
-
//创建查询体
|
|
397
381
|
createGeometry() {
|
|
398
382
|
switch (this._options.volumeType) {
|
|
399
383
|
case 0:
|
|
@@ -405,6 +389,7 @@ class GPUSpatialQueryViewModel {
|
|
|
405
389
|
};
|
|
406
390
|
this._geometry = new Cesium.Kq3dGeoBox(options0);
|
|
407
391
|
break;
|
|
392
|
+
|
|
408
393
|
case 1:
|
|
409
394
|
var options1 = {
|
|
410
395
|
position: this._center,
|
|
@@ -412,6 +397,7 @@ class GPUSpatialQueryViewModel {
|
|
|
412
397
|
};
|
|
413
398
|
this._geometry = new Cesium.Kq3dGeoSphere(options1);
|
|
414
399
|
break;
|
|
400
|
+
|
|
415
401
|
case 2:
|
|
416
402
|
var options2 = {
|
|
417
403
|
position: this._center,
|
|
@@ -421,6 +407,7 @@ class GPUSpatialQueryViewModel {
|
|
|
421
407
|
};
|
|
422
408
|
this._geometry = new Cesium.Kq3dGeoCylinder(options2);
|
|
423
409
|
break;
|
|
410
|
+
|
|
424
411
|
case 3:
|
|
425
412
|
var options3 = {
|
|
426
413
|
position: this._center,
|
|
@@ -430,6 +417,7 @@ class GPUSpatialQueryViewModel {
|
|
|
430
417
|
};
|
|
431
418
|
this._geometry = new Cesium.Kq3dGeoEllipsoid(options3);
|
|
432
419
|
break;
|
|
420
|
+
|
|
433
421
|
case 4:
|
|
434
422
|
var options4 = {
|
|
435
423
|
position: this._center,
|
|
@@ -438,9 +426,11 @@ class GPUSpatialQueryViewModel {
|
|
|
438
426
|
};
|
|
439
427
|
this._geometry = new Cesium.Kq3dGeoCone(options4);
|
|
440
428
|
break;
|
|
429
|
+
|
|
441
430
|
default:
|
|
442
431
|
break;
|
|
443
432
|
}
|
|
433
|
+
|
|
444
434
|
if (this._geometry) {
|
|
445
435
|
this._geometry.scaleX = this._options.scale;
|
|
446
436
|
this._geometry.scaleY = this._options.scale;
|
|
@@ -449,73 +439,85 @@ class GPUSpatialQueryViewModel {
|
|
|
449
439
|
this._geometry.rotationY = this._options.yAngle;
|
|
450
440
|
this._geometry.rotationZ = this._options.zAngle;
|
|
451
441
|
}
|
|
452
|
-
}
|
|
442
|
+
} //查询体类型
|
|
443
|
+
|
|
453
444
|
|
|
454
|
-
//查询体类型
|
|
455
445
|
setType(type) {
|
|
456
446
|
this._options.volumeType = type;
|
|
457
447
|
this.createGeometry();
|
|
448
|
+
|
|
458
449
|
if (this._gpuSpatialQuery) {
|
|
459
450
|
this._gpuSpatialQuery.setGeom(this._geometry);
|
|
451
|
+
|
|
460
452
|
this._gpuSpatialQuery.start();
|
|
461
|
-
}
|
|
462
|
-
|
|
463
|
-
}
|
|
453
|
+
} //this.startQuery();
|
|
454
|
+
|
|
455
|
+
} //查询体模式 相交 相离 包含
|
|
456
|
+
|
|
464
457
|
|
|
465
|
-
//查询体模式 相交 相离 包含
|
|
466
458
|
setMode(mode) {
|
|
467
459
|
this._options.positionMode = mode;
|
|
460
|
+
|
|
468
461
|
if (this._gpuSpatialQuery) {
|
|
469
462
|
this._gpuSpatialQuery.setSpaceTopology(mode);
|
|
463
|
+
|
|
470
464
|
this._gpuSpatialQuery.start();
|
|
471
|
-
}
|
|
472
|
-
|
|
473
|
-
}
|
|
465
|
+
} //this.startQuery();
|
|
466
|
+
|
|
467
|
+
} //查询体缩放
|
|
468
|
+
|
|
474
469
|
|
|
475
|
-
//查询体缩放
|
|
476
470
|
setScale(scale) {
|
|
477
471
|
this._options.scale = scale;
|
|
472
|
+
|
|
478
473
|
if (this._geometry) {
|
|
479
474
|
this._geometry.scaleX = scale;
|
|
480
475
|
this._geometry.scaleY = scale;
|
|
481
476
|
this._geometry.scaleZ = scale;
|
|
482
477
|
this._gpuSpatialQuery && this._gpuSpatialQuery.start();
|
|
483
|
-
}
|
|
484
|
-
|
|
485
|
-
}
|
|
486
|
-
|
|
478
|
+
} //this.startQuery();
|
|
479
|
+
|
|
480
|
+
} //查询体绕X轴旋转
|
|
481
|
+
|
|
482
|
+
|
|
487
483
|
setXangle(xAngle) {
|
|
488
484
|
this._options.xAngle = xAngle;
|
|
485
|
+
|
|
489
486
|
if (this._geometry) {
|
|
490
487
|
this._geometry.rotationX = xAngle;
|
|
491
488
|
this._gpuSpatialQuery && this._gpuSpatialQuery.start();
|
|
492
|
-
}
|
|
493
|
-
|
|
494
|
-
}
|
|
495
|
-
|
|
489
|
+
} //this.startQuery();
|
|
490
|
+
|
|
491
|
+
} //查询体绕Y轴旋转
|
|
492
|
+
|
|
493
|
+
|
|
496
494
|
setYangle(yAngle) {
|
|
497
495
|
this._options.yAngle = yAngle;
|
|
496
|
+
|
|
498
497
|
if (this._geometry) {
|
|
499
498
|
this._geometry.rotationY = yAngle;
|
|
500
499
|
this._gpuSpatialQuery && this._gpuSpatialQuery.start();
|
|
501
|
-
}
|
|
502
|
-
|
|
503
|
-
}
|
|
504
|
-
|
|
500
|
+
} //this.startQuery();
|
|
501
|
+
|
|
502
|
+
} //查询体绕Z轴旋转
|
|
503
|
+
|
|
504
|
+
|
|
505
505
|
setZangle(zAngle) {
|
|
506
506
|
this._options.zAngle = zAngle;
|
|
507
|
+
|
|
507
508
|
if (this._geometry) {
|
|
508
509
|
this._geometry.rotationZ = zAngle;
|
|
509
510
|
this._gpuSpatialQuery && this._gpuSpatialQuery.start();
|
|
510
|
-
}
|
|
511
|
-
|
|
511
|
+
} //this.startQuery();
|
|
512
|
+
|
|
512
513
|
}
|
|
514
|
+
|
|
513
515
|
}
|
|
514
516
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
515
517
|
var util_ = __webpack_require__(3458);
|
|
516
518
|
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
517
519
|
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
518
|
-
;// 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
|
|
520
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/webgl/gpuspatialquery/GPUSpatialQuery.vue?vue&type=script&setup=true&lang=js
|
|
519
521
|
|
|
520
522
|
const _hoisted_1 = {
|
|
521
523
|
class: "kq3d-gpu-spatial-query-box"
|
|
@@ -539,19 +541,23 @@ const __default__ = {
|
|
|
539
541
|
volumeType: {
|
|
540
542
|
type: Number,
|
|
541
543
|
default: 0,
|
|
544
|
+
|
|
542
545
|
validator(value) {
|
|
543
546
|
// 输入值必须被包含
|
|
544
547
|
return external_xe_utils_default().includeArrays([0, 1, 2, 3, 4], value);
|
|
545
548
|
}
|
|
549
|
+
|
|
546
550
|
},
|
|
547
551
|
// 空间关系
|
|
548
552
|
positionMode: {
|
|
549
553
|
type: Number,
|
|
550
554
|
default: 0,
|
|
555
|
+
|
|
551
556
|
validator(value) {
|
|
552
557
|
// 输入值必须被包含
|
|
553
558
|
return external_xe_utils_default().includeArrays([0, 1, 2], value);
|
|
554
559
|
}
|
|
560
|
+
|
|
555
561
|
},
|
|
556
562
|
// 设置参数
|
|
557
563
|
settingParams: {
|
|
@@ -562,6 +568,7 @@ const __default__ = {
|
|
|
562
568
|
type: Boolean,
|
|
563
569
|
default: true
|
|
564
570
|
},
|
|
571
|
+
|
|
565
572
|
/**
|
|
566
573
|
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
567
574
|
*/
|
|
@@ -591,6 +598,7 @@ const __default__ = {
|
|
|
591
598
|
default: true
|
|
592
599
|
}
|
|
593
600
|
},
|
|
601
|
+
|
|
594
602
|
setup(__props, {
|
|
595
603
|
expose: __expose
|
|
596
604
|
}) {
|
|
@@ -598,9 +606,7 @@ const __default__ = {
|
|
|
598
606
|
const {
|
|
599
607
|
proxy
|
|
600
608
|
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
601
|
-
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
|
|
602
|
-
|
|
603
|
-
// 获取组件传参
|
|
609
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]); // 获取组件传参
|
|
604
610
|
|
|
605
611
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
606
612
|
collapseValue: props.settingParams && props.settingParams.collapseValue || ((props.settingParams && props.settingParams.collapseValue) == '' ? "" : "setting"),
|
|
@@ -632,17 +638,15 @@ const __default__ = {
|
|
|
632
638
|
minZRotate: props.settingParams && props.settingParams.minZRotate || 0,
|
|
633
639
|
// 绕Z轴旋转最小值
|
|
634
640
|
maxZRotate: props.settingParams && props.settingParams.maxZRotate || 90 // 绕Z轴旋转最大值
|
|
641
|
+
|
|
635
642
|
});
|
|
636
|
-
let viewModel = null;
|
|
643
|
+
let viewModel = null; // 组件容器Ref
|
|
637
644
|
|
|
638
|
-
//
|
|
639
|
-
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
645
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
640
646
|
|
|
641
|
-
// 生成组件默认header
|
|
642
647
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
643
|
-
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
648
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
|
|
644
649
|
|
|
645
|
-
// 国际化
|
|
646
650
|
let {
|
|
647
651
|
locale,
|
|
648
652
|
messages
|
|
@@ -677,71 +681,93 @@ const __default__ = {
|
|
|
677
681
|
}
|
|
678
682
|
});
|
|
679
683
|
});
|
|
680
|
-
|
|
681
684
|
/**
|
|
682
685
|
* @description 监听header生成
|
|
683
686
|
*/
|
|
687
|
+
|
|
684
688
|
const watchCreateHeaderTemp = () => {
|
|
685
689
|
if (props.showHeaderTemp) {
|
|
686
690
|
// 生成headerTemp
|
|
687
691
|
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
688
692
|
}
|
|
689
|
-
};
|
|
693
|
+
}; // 参数切换
|
|
694
|
+
|
|
690
695
|
|
|
691
|
-
// 参数切换
|
|
692
696
|
function paramsChanged(key) {
|
|
693
697
|
switch (key) {
|
|
694
698
|
case "type":
|
|
695
699
|
viewModel.setType(formItem.volumeType);
|
|
696
700
|
break;
|
|
701
|
+
|
|
697
702
|
case "mode":
|
|
698
703
|
viewModel.setMode(formItem.positionMode);
|
|
699
704
|
break;
|
|
705
|
+
|
|
700
706
|
case "scale":
|
|
701
707
|
viewModel.setScale(formItem.scale);
|
|
702
708
|
break;
|
|
709
|
+
|
|
703
710
|
case "xRotate":
|
|
704
711
|
viewModel.setXangle(formItem.xRotate);
|
|
705
712
|
break;
|
|
713
|
+
|
|
706
714
|
case "yRotate":
|
|
707
715
|
viewModel.setYangle(formItem.yRotate);
|
|
708
716
|
break;
|
|
717
|
+
|
|
709
718
|
case "zRotate":
|
|
710
719
|
viewModel.setZangle(formItem.zRotate);
|
|
711
720
|
break;
|
|
721
|
+
|
|
712
722
|
default:
|
|
713
723
|
break;
|
|
714
724
|
}
|
|
715
|
-
}
|
|
716
|
-
|
|
725
|
+
} // 查询
|
|
726
|
+
|
|
727
|
+
|
|
717
728
|
function query() {
|
|
718
729
|
viewModel && viewModel.start();
|
|
719
|
-
}
|
|
720
|
-
|
|
730
|
+
} // 重置
|
|
731
|
+
|
|
732
|
+
|
|
721
733
|
function reset() {
|
|
722
734
|
viewModel && viewModel.clear();
|
|
723
|
-
}
|
|
724
|
-
|
|
735
|
+
} // 销毁
|
|
736
|
+
|
|
737
|
+
|
|
725
738
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
726
739
|
viewModel && viewModel.destroy();
|
|
727
740
|
});
|
|
741
|
+
|
|
728
742
|
__expose({
|
|
729
743
|
paramsChanged,
|
|
730
744
|
query,
|
|
731
745
|
reset
|
|
732
746
|
});
|
|
747
|
+
|
|
733
748
|
return (_ctx, _cache) => {
|
|
734
749
|
const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");
|
|
750
|
+
|
|
735
751
|
const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-select");
|
|
752
|
+
|
|
736
753
|
const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
|
|
754
|
+
|
|
737
755
|
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
756
|
+
|
|
738
757
|
const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
|
|
758
|
+
|
|
739
759
|
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
760
|
+
|
|
740
761
|
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
762
|
+
|
|
741
763
|
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
|
|
764
|
+
|
|
742
765
|
const _component_kq_collapse_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse-item");
|
|
766
|
+
|
|
743
767
|
const _component_kq_collapse = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse");
|
|
768
|
+
|
|
744
769
|
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
770
|
+
|
|
745
771
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
746
772
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-gpu-spatial-query", {
|
|
747
773
|
'kq-box-shadow': __props.showShadow
|
|
@@ -752,7 +778,9 @@ const __default__ = {
|
|
|
752
778
|
key: 0,
|
|
753
779
|
ref_key: "headerTempRef",
|
|
754
780
|
ref: headerTempRef
|
|
755
|
-
}, null, 512
|
|
781
|
+
}, null, 512
|
|
782
|
+
/* NEED_PATCH */
|
|
783
|
+
)) : (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, {
|
|
756
784
|
"label-width": "100px",
|
|
757
785
|
"label-position": "left"
|
|
758
786
|
}, {
|
|
@@ -768,24 +796,44 @@ const __default__ = {
|
|
|
768
796
|
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, {
|
|
769
797
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).cube,
|
|
770
798
|
value: 0
|
|
771
|
-
}, null, 8
|
|
799
|
+
}, null, 8
|
|
800
|
+
/* PROPS */
|
|
801
|
+
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
772
802
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).sphere,
|
|
773
803
|
value: 1
|
|
774
|
-
}, null, 8
|
|
804
|
+
}, null, 8
|
|
805
|
+
/* PROPS */
|
|
806
|
+
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
775
807
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).cylinder,
|
|
776
808
|
value: 2
|
|
777
|
-
}, null, 8
|
|
809
|
+
}, null, 8
|
|
810
|
+
/* PROPS */
|
|
811
|
+
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
778
812
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).ellipsoid,
|
|
779
813
|
value: 3
|
|
780
|
-
}, null, 8
|
|
814
|
+
}, null, 8
|
|
815
|
+
/* PROPS */
|
|
816
|
+
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
781
817
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).cone,
|
|
782
818
|
value: 4
|
|
783
|
-
}, null, 8
|
|
784
|
-
|
|
785
|
-
|
|
786
|
-
|
|
787
|
-
|
|
788
|
-
|
|
819
|
+
}, null, 8
|
|
820
|
+
/* PROPS */
|
|
821
|
+
, ["label"])]),
|
|
822
|
+
_: 1
|
|
823
|
+
/* STABLE */
|
|
824
|
+
|
|
825
|
+
}, 8
|
|
826
|
+
/* PROPS */
|
|
827
|
+
, ["modelValue"])]),
|
|
828
|
+
_: 1
|
|
829
|
+
/* STABLE */
|
|
830
|
+
|
|
831
|
+
}, 8
|
|
832
|
+
/* PROPS */
|
|
833
|
+
, ["label"])]),
|
|
834
|
+
_: 1
|
|
835
|
+
/* STABLE */
|
|
836
|
+
|
|
789
837
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
790
838
|
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, {
|
|
791
839
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).locaLMode
|
|
@@ -798,25 +846,47 @@ const __default__ = {
|
|
|
798
846
|
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, {
|
|
799
847
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).intersect,
|
|
800
848
|
value: 0
|
|
801
|
-
}, null, 8
|
|
849
|
+
}, null, 8
|
|
850
|
+
/* PROPS */
|
|
851
|
+
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
802
852
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).disjoint,
|
|
803
853
|
value: 1
|
|
804
|
-
}, null, 8
|
|
854
|
+
}, null, 8
|
|
855
|
+
/* PROPS */
|
|
856
|
+
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
805
857
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).contain,
|
|
806
858
|
value: 2
|
|
807
|
-
}, null, 8
|
|
808
|
-
|
|
809
|
-
|
|
810
|
-
|
|
811
|
-
|
|
812
|
-
|
|
859
|
+
}, null, 8
|
|
860
|
+
/* PROPS */
|
|
861
|
+
, ["label"])]),
|
|
862
|
+
_: 1
|
|
863
|
+
/* STABLE */
|
|
864
|
+
|
|
865
|
+
}, 8
|
|
866
|
+
/* PROPS */
|
|
867
|
+
, ["modelValue"])]),
|
|
868
|
+
_: 1
|
|
869
|
+
/* STABLE */
|
|
870
|
+
|
|
871
|
+
}, 8
|
|
872
|
+
/* PROPS */
|
|
873
|
+
, ["label"])]),
|
|
874
|
+
_: 1
|
|
875
|
+
/* STABLE */
|
|
876
|
+
|
|
813
877
|
})]),
|
|
814
|
-
_: 1
|
|
878
|
+
_: 1
|
|
879
|
+
/* STABLE */
|
|
880
|
+
|
|
815
881
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
816
882
|
class: "kq3d-gpu-spatial-query-tip"
|
|
817
883
|
}, {
|
|
818
|
-
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
|
|
819
|
-
|
|
884
|
+
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
|
|
885
|
+
/* TEXT */
|
|
886
|
+
)]),
|
|
887
|
+
_: 1
|
|
888
|
+
/* STABLE */
|
|
889
|
+
|
|
820
890
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse, {
|
|
821
891
|
"model-value": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).collapseValue,
|
|
822
892
|
class: "kq3d-gpu-spatial-query-set-title"
|
|
@@ -848,8 +918,12 @@ const __default__ = {
|
|
|
848
918
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minScale,
|
|
849
919
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxScale,
|
|
850
920
|
onChange: _cache[5] || (_cache[5] = $event => paramsChanged('scale'))
|
|
851
|
-
}, null, 8
|
|
852
|
-
|
|
921
|
+
}, null, 8
|
|
922
|
+
/* PROPS */
|
|
923
|
+
, ["modelValue", "step", "min", "max"])]),
|
|
924
|
+
_: 1
|
|
925
|
+
/* STABLE */
|
|
926
|
+
|
|
853
927
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
854
928
|
span: 8
|
|
855
929
|
}, {
|
|
@@ -861,14 +935,26 @@ const __default__ = {
|
|
|
861
935
|
step: 0.1,
|
|
862
936
|
"controls-position": "right",
|
|
863
937
|
onChange: _cache[7] || (_cache[7] = $event => paramsChanged('scale'))
|
|
864
|
-
}, null, 8
|
|
865
|
-
|
|
938
|
+
}, null, 8
|
|
939
|
+
/* PROPS */
|
|
940
|
+
, ["modelValue", "min", "max", "step"])]),
|
|
941
|
+
_: 1
|
|
942
|
+
/* STABLE */
|
|
943
|
+
|
|
866
944
|
})]),
|
|
867
|
-
_: 1
|
|
945
|
+
_: 1
|
|
946
|
+
/* STABLE */
|
|
947
|
+
|
|
868
948
|
})]),
|
|
869
|
-
_: 1
|
|
870
|
-
|
|
871
|
-
|
|
949
|
+
_: 1
|
|
950
|
+
/* STABLE */
|
|
951
|
+
|
|
952
|
+
}, 8
|
|
953
|
+
/* PROPS */
|
|
954
|
+
, ["label"])]),
|
|
955
|
+
_: 1
|
|
956
|
+
/* STABLE */
|
|
957
|
+
|
|
872
958
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
873
959
|
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, {
|
|
874
960
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).xRotate
|
|
@@ -888,8 +974,12 @@ const __default__ = {
|
|
|
888
974
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minXRotate,
|
|
889
975
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxXRotate,
|
|
890
976
|
onChange: _cache[9] || (_cache[9] = $event => paramsChanged('xRotate'))
|
|
891
|
-
}, null, 8
|
|
892
|
-
|
|
977
|
+
}, null, 8
|
|
978
|
+
/* PROPS */
|
|
979
|
+
, ["modelValue", "min", "max"])]),
|
|
980
|
+
_: 1
|
|
981
|
+
/* STABLE */
|
|
982
|
+
|
|
893
983
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
894
984
|
span: 8
|
|
895
985
|
}, {
|
|
@@ -901,14 +991,26 @@ const __default__ = {
|
|
|
901
991
|
step: 1,
|
|
902
992
|
"controls-position": "right",
|
|
903
993
|
onChange: _cache[11] || (_cache[11] = $event => paramsChanged('xRotate'))
|
|
904
|
-
}, null, 8
|
|
905
|
-
|
|
994
|
+
}, null, 8
|
|
995
|
+
/* PROPS */
|
|
996
|
+
, ["modelValue", "min", "max"])]),
|
|
997
|
+
_: 1
|
|
998
|
+
/* STABLE */
|
|
999
|
+
|
|
906
1000
|
})]),
|
|
907
|
-
_: 1
|
|
1001
|
+
_: 1
|
|
1002
|
+
/* STABLE */
|
|
1003
|
+
|
|
908
1004
|
})]),
|
|
909
|
-
_: 1
|
|
910
|
-
|
|
911
|
-
|
|
1005
|
+
_: 1
|
|
1006
|
+
/* STABLE */
|
|
1007
|
+
|
|
1008
|
+
}, 8
|
|
1009
|
+
/* PROPS */
|
|
1010
|
+
, ["label"])]),
|
|
1011
|
+
_: 1
|
|
1012
|
+
/* STABLE */
|
|
1013
|
+
|
|
912
1014
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
913
1015
|
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, {
|
|
914
1016
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).yRotate
|
|
@@ -928,8 +1030,12 @@ const __default__ = {
|
|
|
928
1030
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minXRotate,
|
|
929
1031
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxXRotate,
|
|
930
1032
|
onChange: _cache[13] || (_cache[13] = $event => paramsChanged('yRotate'))
|
|
931
|
-
}, null, 8
|
|
932
|
-
|
|
1033
|
+
}, null, 8
|
|
1034
|
+
/* PROPS */
|
|
1035
|
+
, ["modelValue", "min", "max"])]),
|
|
1036
|
+
_: 1
|
|
1037
|
+
/* STABLE */
|
|
1038
|
+
|
|
933
1039
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
934
1040
|
span: 8
|
|
935
1041
|
}, {
|
|
@@ -941,14 +1047,26 @@ const __default__ = {
|
|
|
941
1047
|
step: 1,
|
|
942
1048
|
"controls-position": "right",
|
|
943
1049
|
onChange: _cache[15] || (_cache[15] = $event => paramsChanged('yRotate'))
|
|
944
|
-
}, null, 8
|
|
945
|
-
|
|
1050
|
+
}, null, 8
|
|
1051
|
+
/* PROPS */
|
|
1052
|
+
, ["modelValue", "min", "max"])]),
|
|
1053
|
+
_: 1
|
|
1054
|
+
/* STABLE */
|
|
1055
|
+
|
|
946
1056
|
})]),
|
|
947
|
-
_: 1
|
|
1057
|
+
_: 1
|
|
1058
|
+
/* STABLE */
|
|
1059
|
+
|
|
948
1060
|
})]),
|
|
949
|
-
_: 1
|
|
950
|
-
|
|
951
|
-
|
|
1061
|
+
_: 1
|
|
1062
|
+
/* STABLE */
|
|
1063
|
+
|
|
1064
|
+
}, 8
|
|
1065
|
+
/* PROPS */
|
|
1066
|
+
, ["label"])]),
|
|
1067
|
+
_: 1
|
|
1068
|
+
/* STABLE */
|
|
1069
|
+
|
|
952
1070
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
953
1071
|
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, {
|
|
954
1072
|
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).zRotate
|
|
@@ -968,8 +1086,12 @@ const __default__ = {
|
|
|
968
1086
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minZRotate,
|
|
969
1087
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxZRotate,
|
|
970
1088
|
onChange: _cache[17] || (_cache[17] = $event => paramsChanged('zRotate'))
|
|
971
|
-
}, null, 8
|
|
972
|
-
|
|
1089
|
+
}, null, 8
|
|
1090
|
+
/* PROPS */
|
|
1091
|
+
, ["modelValue", "min", "max"])]),
|
|
1092
|
+
_: 1
|
|
1093
|
+
/* STABLE */
|
|
1094
|
+
|
|
973
1095
|
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
974
1096
|
span: 8
|
|
975
1097
|
}, {
|
|
@@ -981,36 +1103,73 @@ const __default__ = {
|
|
|
981
1103
|
step: 1,
|
|
982
1104
|
"controls-position": "right",
|
|
983
1105
|
onChange: _cache[19] || (_cache[19] = $event => paramsChanged('zRotate'))
|
|
984
|
-
}, null, 8
|
|
985
|
-
|
|
1106
|
+
}, null, 8
|
|
1107
|
+
/* PROPS */
|
|
1108
|
+
, ["modelValue", "min", "max"])]),
|
|
1109
|
+
_: 1
|
|
1110
|
+
/* STABLE */
|
|
1111
|
+
|
|
986
1112
|
})]),
|
|
987
|
-
_: 1
|
|
1113
|
+
_: 1
|
|
1114
|
+
/* STABLE */
|
|
1115
|
+
|
|
988
1116
|
})]),
|
|
989
|
-
_: 1
|
|
990
|
-
|
|
991
|
-
|
|
1117
|
+
_: 1
|
|
1118
|
+
/* STABLE */
|
|
1119
|
+
|
|
1120
|
+
}, 8
|
|
1121
|
+
/* PROPS */
|
|
1122
|
+
, ["label"])]),
|
|
1123
|
+
_: 1
|
|
1124
|
+
/* STABLE */
|
|
1125
|
+
|
|
992
1126
|
})]),
|
|
993
|
-
_: 1
|
|
1127
|
+
_: 1
|
|
1128
|
+
/* STABLE */
|
|
1129
|
+
|
|
994
1130
|
})]),
|
|
995
|
-
_: 1
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
1131
|
+
_: 1
|
|
1132
|
+
/* STABLE */
|
|
1133
|
+
|
|
1134
|
+
}, 8
|
|
1135
|
+
/* PROPS */
|
|
1136
|
+
, ["title"])]),
|
|
1137
|
+
_: 1
|
|
1138
|
+
/* STABLE */
|
|
1139
|
+
|
|
1140
|
+
}, 8
|
|
1141
|
+
/* PROPS */
|
|
1142
|
+
, ["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, {
|
|
999
1143
|
onClick: _cache[20] || (_cache[20] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => query(), ["stop"])),
|
|
1000
1144
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).gpuQuery,
|
|
1001
1145
|
type: "primary"
|
|
1002
1146
|
}, {
|
|
1003
|
-
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
|
|
1004
|
-
|
|
1005
|
-
|
|
1147
|
+
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
|
|
1148
|
+
/* TEXT */
|
|
1149
|
+
)]),
|
|
1150
|
+
_: 1
|
|
1151
|
+
/* STABLE */
|
|
1152
|
+
|
|
1153
|
+
}, 8
|
|
1154
|
+
/* PROPS */
|
|
1155
|
+
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
1006
1156
|
onClick: _cache[21] || (_cache[21] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => reset(), ["stop"])),
|
|
1007
1157
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clear
|
|
1008
1158
|
}, {
|
|
1009
|
-
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
|
|
1010
|
-
|
|
1011
|
-
|
|
1159
|
+
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
|
|
1160
|
+
/* TEXT */
|
|
1161
|
+
)]),
|
|
1162
|
+
_: 1
|
|
1163
|
+
/* STABLE */
|
|
1164
|
+
|
|
1165
|
+
}, 8
|
|
1166
|
+
/* PROPS */
|
|
1167
|
+
, ["title"])])])], 2
|
|
1168
|
+
/* CLASS */
|
|
1169
|
+
);
|
|
1012
1170
|
};
|
|
1013
1171
|
}
|
|
1172
|
+
|
|
1014
1173
|
}));
|
|
1015
1174
|
;// CONCATENATED MODULE: ./src/webgl/gpuspatialquery/GPUSpatialQuery.vue?vue&type=script&setup=true&lang=js
|
|
1016
1175
|
|
|
@@ -1032,11 +1191,13 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
|
|
|
1032
1191
|
|
|
1033
1192
|
|
|
1034
1193
|
|
|
1194
|
+
|
|
1035
1195
|
GPUSpatialQuery.install = (Vue, opts) => {
|
|
1036
1196
|
init_js_default()(Vue, opts);
|
|
1037
1197
|
Vue.component(GPUSpatialQuery.name, GPUSpatialQuery);
|
|
1038
1198
|
};
|
|
1039
1199
|
|
|
1200
|
+
|
|
1040
1201
|
}();
|
|
1041
1202
|
/******/ return __webpack_exports__;
|
|
1042
1203
|
/******/ })()
|