@kq_npm/client3d_webgl_vue 2.4.6-beta → 2.4.8-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/excavatefillanalysis/index.js +14 -10
- package/floodanalysis/index.js +62 -40
- package/gpuspatialquery/index.js +46 -55
- package/index.js +332 -308
- package/package.json +1 -1
- package/profileanalysis/index.js +49 -54
- package/shadowanalysis/index.js +77 -75
- package/skylineanalysis/index.js +35 -26
- package/terrainoperation/index.js +16 -10
- package/viewshedanalysis/index.js +33 -40
|
@@ -306,6 +306,7 @@ const __default__ = {
|
|
|
306
306
|
settingParams: {
|
|
307
307
|
type: Object
|
|
308
308
|
},
|
|
309
|
+
// 地形开挖和地形修改显示设置。0:同时显示;1:显示地形开挖;2:显示地形修改
|
|
309
310
|
operationMode: {
|
|
310
311
|
type: Number,
|
|
311
312
|
default: 0
|
|
@@ -324,7 +325,13 @@ const __default__ = {
|
|
|
324
325
|
|
|
325
326
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.reactive)({
|
|
326
327
|
terrainStyle: props.settingParams && props.settingParams.terrainStyle || 1,
|
|
327
|
-
|
|
328
|
+
// 地形操作类型。0:地形开挖;1:地形修改
|
|
329
|
+
excavationDepth: props.settingParams && props.settingParams.excavationDepth || 500,
|
|
330
|
+
// 地形开挖深度
|
|
331
|
+
minExcavationDepth: props.settingParams && props.settingParams.minExcavationDepth || 0,
|
|
332
|
+
// 地形开挖深度范围最小值
|
|
333
|
+
maxExcavationDepth: props.settingParams && props.settingParams.maxExcavationDepth || 5000 // 地形开挖深度范围最大值
|
|
334
|
+
|
|
328
335
|
});
|
|
329
336
|
let viewModel = null;
|
|
330
337
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.onMounted)(() => {
|
|
@@ -337,11 +344,10 @@ const __default__ = {
|
|
|
337
344
|
}
|
|
338
345
|
|
|
339
346
|
language.value = scenceView._language;
|
|
340
|
-
|
|
347
|
+
viewModel = new TerrainOperationViewModel(scenceView, {
|
|
341
348
|
terrainStyle: formItem.terrainStyle,
|
|
342
349
|
excavationDepth: formItem.excavationDepth
|
|
343
|
-
};
|
|
344
|
-
viewModel = new TerrainOperationViewModel(scenceView, options);
|
|
350
|
+
});
|
|
345
351
|
}
|
|
346
352
|
});
|
|
347
353
|
}); // 改变样式
|
|
@@ -445,13 +451,13 @@ const __default__ = {
|
|
|
445
451
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).excavationDepth,
|
|
446
452
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).excavationDepth = $event),
|
|
447
453
|
step: 100,
|
|
448
|
-
min:
|
|
449
|
-
max:
|
|
454
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).minExcavationDepth,
|
|
455
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).maxExcavationDepth,
|
|
450
456
|
onChange: _cache[3] || (_cache[3] = $event => changeHeight()),
|
|
451
457
|
onClick: _cache[4] || (_cache[4] = $event => changeHeight())
|
|
452
458
|
}, null, 8
|
|
453
459
|
/* PROPS */
|
|
454
|
-
, ["modelValue"])]),
|
|
460
|
+
, ["modelValue", "min", "max"])]),
|
|
455
461
|
_: 1
|
|
456
462
|
/* STABLE */
|
|
457
463
|
|
|
@@ -466,14 +472,14 @@ const __default__ = {
|
|
|
466
472
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_input_number, {
|
|
467
473
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).excavationDepth,
|
|
468
474
|
"onUpdate:modelValue": _cache[5] || (_cache[5] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).excavationDepth = $event),
|
|
469
|
-
min:
|
|
475
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).minExcavationDepth,
|
|
470
476
|
step: 100,
|
|
471
|
-
max:
|
|
477
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).maxExcavationDepth,
|
|
472
478
|
"controls-position": "right",
|
|
473
479
|
onInput: _cache[6] || (_cache[6] = $event => changeHeight())
|
|
474
480
|
}, null, 8
|
|
475
481
|
/* PROPS */
|
|
476
|
-
, ["modelValue"])]),
|
|
482
|
+
, ["modelValue", "min", "max"])]),
|
|
477
483
|
_: 1
|
|
478
484
|
/* STABLE */
|
|
479
485
|
|
|
@@ -187,30 +187,6 @@ const __default__ = {
|
|
|
187
187
|
};
|
|
188
188
|
/* harmony default export */ var ViewshedAnalysisvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
|
|
189
189
|
props: {
|
|
190
|
-
minOffsetHeight: {
|
|
191
|
-
type: Number,
|
|
192
|
-
default: 0
|
|
193
|
-
},
|
|
194
|
-
maxOffsetHeight: {
|
|
195
|
-
type: Number,
|
|
196
|
-
default: 100
|
|
197
|
-
},
|
|
198
|
-
minFovV: {
|
|
199
|
-
type: Number,
|
|
200
|
-
default: 0
|
|
201
|
-
},
|
|
202
|
-
maxFovV: {
|
|
203
|
-
type: Number,
|
|
204
|
-
default: 90
|
|
205
|
-
},
|
|
206
|
-
minFovH: {
|
|
207
|
-
type: Number,
|
|
208
|
-
default: 0
|
|
209
|
-
},
|
|
210
|
-
maxFovH: {
|
|
211
|
-
type: Number,
|
|
212
|
-
default: 180
|
|
213
|
-
},
|
|
214
190
|
// 设置参数
|
|
215
191
|
settingParams: {
|
|
216
192
|
type: Object
|
|
@@ -230,10 +206,27 @@ const __default__ = {
|
|
|
230
206
|
|
|
231
207
|
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.reactive)({
|
|
232
208
|
offsetHeight: props.settingParams && props.settingParams.offsetHeight || 1.8,
|
|
209
|
+
// 视点高
|
|
210
|
+
minOffsetHeight: props.settingParams && props.settingParams.minOffsetHeight || 0,
|
|
211
|
+
// 视点高范围最小值
|
|
212
|
+
maxOffsetHeight: props.settingParams && props.settingParams.maxOffsetHeight || 100,
|
|
213
|
+
// 视点高范围最大值
|
|
233
214
|
fovV: props.settingParams && props.settingParams.fovV || 60,
|
|
215
|
+
// 垂直张角
|
|
216
|
+
minFovV: props.settingParams && props.settingParams.minFovV || 0,
|
|
217
|
+
// 垂直张角范围最小值
|
|
218
|
+
maxFovV: props.settingParams && props.settingParams.maxFovV || 90,
|
|
219
|
+
// 垂直张角范围最大值
|
|
234
220
|
fovH: props.settingParams && props.settingParams.fovH || 120,
|
|
221
|
+
// 水平张角范围
|
|
222
|
+
minFovH: props.settingParams && props.settingParams.minFovH || 0,
|
|
223
|
+
// 水平张角范围最小值
|
|
224
|
+
maxFovH: props.settingParams && props.settingParams.maxFovH || 180,
|
|
225
|
+
// 水平张角范围最大值
|
|
235
226
|
visibleColor: props.settingParams && props.settingParams.visibleColor || "#409EFF",
|
|
227
|
+
// 可见颜色
|
|
236
228
|
invisibleColor: props.settingParams && props.settingParams.invisibleColor || "#F56C6C",
|
|
229
|
+
// 不可见颜色
|
|
237
230
|
lineColor: props.settingParams && props.settingParams.lineColor || "#E6A23C"
|
|
238
231
|
});
|
|
239
232
|
let viewModel = null;
|
|
@@ -243,14 +236,14 @@ const __default__ = {
|
|
|
243
236
|
gis_utils_namespaceObject.utils.getWebMap(null, scenceView => {
|
|
244
237
|
if (scenceView) {
|
|
245
238
|
language.value = scenceView._language;
|
|
246
|
-
|
|
239
|
+
viewModel = new ViewshedAnalysisViewModel(scenceView, {
|
|
247
240
|
offsetHeight: formItem.offsetHeight,
|
|
248
241
|
fovV: formItem.fovV,
|
|
249
242
|
fovH: formItem.fovH,
|
|
250
243
|
visibleColor: formItem.visibleColor,
|
|
251
|
-
invisibleColor: formItem.invisibleColor
|
|
252
|
-
|
|
253
|
-
|
|
244
|
+
invisibleColor: formItem.invisibleColor,
|
|
245
|
+
lineColor: "#E6A23C"
|
|
246
|
+
});
|
|
254
247
|
}
|
|
255
248
|
});
|
|
256
249
|
});
|
|
@@ -362,8 +355,8 @@ const __default__ = {
|
|
|
362
355
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).offsetHeight,
|
|
363
356
|
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).offsetHeight = $event),
|
|
364
357
|
step: 1,
|
|
365
|
-
min:
|
|
366
|
-
max:
|
|
358
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).minOffsetHeight,
|
|
359
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).maxOffsetHeight,
|
|
367
360
|
onInput: _cache[1] || (_cache[1] = $event => paramsChanged('height'))
|
|
368
361
|
}, null, 8
|
|
369
362
|
/* PROPS */
|
|
@@ -377,8 +370,8 @@ const __default__ = {
|
|
|
377
370
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_input_number, {
|
|
378
371
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).offsetHeight,
|
|
379
372
|
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).offsetHeight = $event),
|
|
380
|
-
min:
|
|
381
|
-
max:
|
|
373
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).minOffsetHeight,
|
|
374
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).maxOffsetHeight,
|
|
382
375
|
step: 1,
|
|
383
376
|
"controls-position": "right",
|
|
384
377
|
onInput: _cache[3] || (_cache[3] = $event => paramsChanged('height'))
|
|
@@ -418,8 +411,8 @@ const __default__ = {
|
|
|
418
411
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).fovV,
|
|
419
412
|
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).fovV = $event),
|
|
420
413
|
step: 1,
|
|
421
|
-
min:
|
|
422
|
-
max:
|
|
414
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).minFovV,
|
|
415
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).maxFovV,
|
|
423
416
|
onInput: _cache[5] || (_cache[5] = $event => paramsChanged('fovV'))
|
|
424
417
|
}, null, 8
|
|
425
418
|
/* PROPS */
|
|
@@ -433,8 +426,8 @@ const __default__ = {
|
|
|
433
426
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_input_number, {
|
|
434
427
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).fovV,
|
|
435
428
|
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).fovV = $event),
|
|
436
|
-
min:
|
|
437
|
-
max:
|
|
429
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).minFovV,
|
|
430
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).maxFovV,
|
|
438
431
|
step: 1,
|
|
439
432
|
"controls-position": "right",
|
|
440
433
|
onInput: _cache[7] || (_cache[7] = $event => paramsChanged('fovV'))
|
|
@@ -474,8 +467,8 @@ const __default__ = {
|
|
|
474
467
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).fovH,
|
|
475
468
|
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).fovH = $event),
|
|
476
469
|
step: 1,
|
|
477
|
-
min:
|
|
478
|
-
max:
|
|
470
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).minFovH,
|
|
471
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).maxFovH,
|
|
479
472
|
onInput: _cache[9] || (_cache[9] = $event => paramsChanged('fovH'))
|
|
480
473
|
}, null, 8
|
|
481
474
|
/* PROPS */
|
|
@@ -489,8 +482,8 @@ const __default__ = {
|
|
|
489
482
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.createVNode)(_component_kq_input_number, {
|
|
490
483
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).fovH,
|
|
491
484
|
"onUpdate:modelValue": _cache[10] || (_cache[10] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).fovH = $event),
|
|
492
|
-
min:
|
|
493
|
-
max:
|
|
485
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).minFovH,
|
|
486
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_namespaceObject.unref)(formItem).maxFovH,
|
|
494
487
|
step: 1,
|
|
495
488
|
"controls-position": "right",
|
|
496
489
|
onInput: _cache[11] || (_cache[11] = $event => paramsChanged('fovH'))
|