@kq_npm/client3d_webgl_vue 4.3.4 → 4.3.5
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/index.js +1846 -429
- package/measure/index.js +122 -11
- package/package.json +1 -1
- package/sceneview/index.js +1567 -116
- package/slopeanalysis/index.js +16 -11
- package/slopeaspectanalysis/index.js +1512 -0
- package/slopeaspectanalysis/style/index.js +3 -0
- package/slopeaspectanalysis/style/slopeaspectanalysis.css +1 -0
- package/style.css +1 -1
package/index.js
CHANGED
|
@@ -975,6 +975,8 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
975
975
|
"Kq3dSkylineAnalysisViewModel": function() { return /* reexport */ SkylineAnalysisViewModel; },
|
|
976
976
|
"Kq3dSlopeAnalysis": function() { return /* reexport */ SlopeAnalysis; },
|
|
977
977
|
"Kq3dSlopeAnalysisViewModel": function() { return /* reexport */ SlopeAnalysisViewModel; },
|
|
978
|
+
"Kq3dSlopeAspectAnalysis": function() { return /* reexport */ SlopeAspectAnalysis; },
|
|
979
|
+
"Kq3dSlopeAspectAnalysisViewModel": function() { return /* reexport */ SlopeAspectAnalysisViewModel; },
|
|
978
980
|
"Kq3dStatusBar": function() { return /* reexport */ StatusBar; },
|
|
979
981
|
"Kq3dStatusBarViewModel": function() { return /* reexport */ StatusBarViewModel; },
|
|
980
982
|
"Kq3dTerrainOperation": function() { return /* reexport */ TerrainOperation; },
|
|
@@ -8081,6 +8083,22 @@ const _hoisted_32 = {
|
|
|
8081
8083
|
const _hoisted_33 = {
|
|
8082
8084
|
class: "res"
|
|
8083
8085
|
};
|
|
8086
|
+
const _hoisted_34 = {
|
|
8087
|
+
class: "tit"
|
|
8088
|
+
};
|
|
8089
|
+
const _hoisted_35 = {
|
|
8090
|
+
class: "res"
|
|
8091
|
+
};
|
|
8092
|
+
const _hoisted_36 = {
|
|
8093
|
+
key: 3,
|
|
8094
|
+
class: "result"
|
|
8095
|
+
};
|
|
8096
|
+
const _hoisted_37 = {
|
|
8097
|
+
class: "tit"
|
|
8098
|
+
};
|
|
8099
|
+
const _hoisted_38 = {
|
|
8100
|
+
class: "res"
|
|
8101
|
+
};
|
|
8084
8102
|
|
|
8085
8103
|
|
|
8086
8104
|
|
|
@@ -8144,6 +8162,7 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
8144
8162
|
|
|
8145
8163
|
let isActive = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
8146
8164
|
let isResult = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
8165
|
+
let isTips = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
|
|
8147
8166
|
let distanceValue = null; // 默认显示距离的单位
|
|
8148
8167
|
|
|
8149
8168
|
let distanceUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.distanceUnit || ""); // 海里单位选择
|
|
@@ -8151,7 +8170,7 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
8151
8170
|
let nauticalMileUnit = props.settingParams && props.settingParams.nauticalMileUnit || "nmi"; // 面积单位
|
|
8152
8171
|
|
|
8153
8172
|
let areaUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.areaUnit || "");
|
|
8154
|
-
let result = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(
|
|
8173
|
+
let result = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0);
|
|
8155
8174
|
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
8156
8175
|
let mode = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("space");
|
|
8157
8176
|
let modeList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
|
|
@@ -8257,7 +8276,10 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
8257
8276
|
}
|
|
8258
8277
|
} else if (measureType.value === "azimuth" && res) {
|
|
8259
8278
|
if (res.positions && res.positions.length > 0) {
|
|
8260
|
-
result.value =
|
|
8279
|
+
result.value = {
|
|
8280
|
+
azimuth: res.azimuth.toFixed(4),
|
|
8281
|
+
distance: res.distance.toFixed(2)
|
|
8282
|
+
};
|
|
8261
8283
|
} else result.value = 0;
|
|
8262
8284
|
} else if (measureType.value === "slope" && res) {
|
|
8263
8285
|
if (res.positions && res.positions.length > 0) {
|
|
@@ -8282,8 +8304,6 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
8282
8304
|
};
|
|
8283
8305
|
}
|
|
8284
8306
|
|
|
8285
|
-
viewModel.stopMeasure();
|
|
8286
|
-
|
|
8287
8307
|
if (res.measureResult && res.measureResult.labels && res.measureResult.labels.length > 0) {
|
|
8288
8308
|
res.measureResult.labels._labels.forEach(label => {
|
|
8289
8309
|
label.text = label.text.replace('X', language.value.longitude).replace('Y', language.value.latitude).replace('Z', language.value.elevation).replace(/\n/g, '°\n');
|
|
@@ -8298,12 +8318,52 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
8298
8318
|
});
|
|
8299
8319
|
viewModel.activeEvent.addEventListener(function (active) {
|
|
8300
8320
|
if (!active) {
|
|
8301
|
-
isActive.value = null;
|
|
8321
|
+
// isActive.value = null;
|
|
8322
|
+
isTips.value = false;
|
|
8323
|
+
if (result.value === 0) return;
|
|
8302
8324
|
if (measureType.value === "height" && result.value.angle === 0) return;
|
|
8303
8325
|
if (measureType.value === "azimuth" && result.value === 0) return;
|
|
8304
8326
|
isResult.value = true;
|
|
8305
8327
|
}
|
|
8306
8328
|
});
|
|
8329
|
+
let handler = new Cesium.ScreenSpaceEventHandler(scenceView._viewer.scene.canvas);
|
|
8330
|
+
handler.setInputAction(function () {
|
|
8331
|
+
if (!viewModel._measureHandler.active) return;
|
|
8332
|
+
let isDrawing = viewModel._measureHandler.isDrawing;
|
|
8333
|
+
|
|
8334
|
+
if (!isDrawing) {
|
|
8335
|
+
let measureResults = viewModel._measureHandler.measureResults;
|
|
8336
|
+
|
|
8337
|
+
if (measureResults && measureResults.length > 0) {
|
|
8338
|
+
measureResults[0].destroy();
|
|
8339
|
+
}
|
|
8340
|
+
|
|
8341
|
+
if (measureType.value === "coordinate") {
|
|
8342
|
+
isTips.value = false;
|
|
8343
|
+
isResult.value = true;
|
|
8344
|
+
} else {
|
|
8345
|
+
isTips.value = true;
|
|
8346
|
+
isResult.value = false;
|
|
8347
|
+
}
|
|
8348
|
+
}
|
|
8349
|
+
|
|
8350
|
+
if (isDrawing) {
|
|
8351
|
+
if (measureType.value !== 'distance' && measureType.value !== 'area') {
|
|
8352
|
+
continueMeasure();
|
|
8353
|
+
}
|
|
8354
|
+
}
|
|
8355
|
+
}, Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
8356
|
+
handler.setInputAction(function () {
|
|
8357
|
+
let isDrawing = viewModel._measureHandler.isDrawing;
|
|
8358
|
+
|
|
8359
|
+
if (!isDrawing) {
|
|
8360
|
+
isActive.value = null;
|
|
8361
|
+
viewModel.stopMeasure();
|
|
8362
|
+
} else {
|
|
8363
|
+
continueMeasure();
|
|
8364
|
+
}
|
|
8365
|
+
}, Cesium.ScreenSpaceEventType.RIGHT_CLICK);
|
|
8366
|
+
window.measureClickHandler = handler;
|
|
8307
8367
|
}
|
|
8308
8368
|
});
|
|
8309
8369
|
}); // 经纬度转度分秒
|
|
@@ -8430,6 +8490,11 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
8430
8490
|
|
|
8431
8491
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
8432
8492
|
clearMeasure();
|
|
8493
|
+
|
|
8494
|
+
if (window.measureClickHandler) {
|
|
8495
|
+
window.measureClickHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK);
|
|
8496
|
+
window.measureClickHandler.removeInputAction(Cesium.ScreenSpaceEventType.RIGHT_CLICK);
|
|
8497
|
+
}
|
|
8433
8498
|
}); //开始测量
|
|
8434
8499
|
|
|
8435
8500
|
function startMeasure(type) {
|
|
@@ -8454,6 +8519,8 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
8454
8519
|
}
|
|
8455
8520
|
|
|
8456
8521
|
viewModel.clear();
|
|
8522
|
+
result.value = 0;
|
|
8523
|
+
isTips.value = true;
|
|
8457
8524
|
isResult.value = false;
|
|
8458
8525
|
measureType.value = type;
|
|
8459
8526
|
isActive.value = type;
|
|
@@ -8492,6 +8559,44 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
8492
8559
|
break;
|
|
8493
8560
|
}
|
|
8494
8561
|
}
|
|
8562
|
+
|
|
8563
|
+
function continueMeasure() {
|
|
8564
|
+
setTimeout(() => {
|
|
8565
|
+
switch (measureType.value) {
|
|
8566
|
+
case "distance":
|
|
8567
|
+
viewModel.distanceMeasure(mode.value);
|
|
8568
|
+
break;
|
|
8569
|
+
|
|
8570
|
+
case "area":
|
|
8571
|
+
viewModel.areaMeasure(mode.value);
|
|
8572
|
+
break;
|
|
8573
|
+
|
|
8574
|
+
case "height":
|
|
8575
|
+
viewModel.heightMeasure();
|
|
8576
|
+
break;
|
|
8577
|
+
|
|
8578
|
+
case "coordinate":
|
|
8579
|
+
viewModel.coordinateMeasure();
|
|
8580
|
+
break;
|
|
8581
|
+
|
|
8582
|
+
case "azimuth":
|
|
8583
|
+
viewModel.azimuthMeasure();
|
|
8584
|
+
break;
|
|
8585
|
+
|
|
8586
|
+
case "slope":
|
|
8587
|
+
if (mode.value === "ground") {
|
|
8588
|
+
viewModel.terrainSlopeMeasure();
|
|
8589
|
+
} else if (mode.value === "model") {
|
|
8590
|
+
viewModel.sceneSlopeMeasure();
|
|
8591
|
+
}
|
|
8592
|
+
|
|
8593
|
+
break;
|
|
8594
|
+
|
|
8595
|
+
default:
|
|
8596
|
+
break;
|
|
8597
|
+
}
|
|
8598
|
+
}, 300);
|
|
8599
|
+
}
|
|
8495
8600
|
/**
|
|
8496
8601
|
* 清除测量
|
|
8497
8602
|
*/
|
|
@@ -8501,6 +8606,7 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
8501
8606
|
viewModel && viewModel.clear();
|
|
8502
8607
|
measureType.value = null;
|
|
8503
8608
|
isActive.value = null;
|
|
8609
|
+
isTips.value = false;
|
|
8504
8610
|
isResult.value = false;
|
|
8505
8611
|
}
|
|
8506
8612
|
|
|
@@ -8538,8 +8644,7 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
8538
8644
|
/* TEXT */
|
|
8539
8645
|
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_select, {
|
|
8540
8646
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode),
|
|
8541
|
-
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(mode) ? mode.value = $event : mode = $event)
|
|
8542
|
-
disabled: !!(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive)
|
|
8647
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(mode) ? mode.value = $event : mode = $event)
|
|
8543
8648
|
}, {
|
|
8544
8649
|
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(modeList), item => {
|
|
8545
8650
|
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_option, {
|
|
@@ -8557,7 +8662,7 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
8557
8662
|
|
|
8558
8663
|
}, 8
|
|
8559
8664
|
/* PROPS */
|
|
8560
|
-
, ["modelValue"
|
|
8665
|
+
, ["modelValue"])])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", Measurevue_type_script_setup_true_lang_js_hoisted_5, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
8561
8666
|
onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('distance'), ["stop"])),
|
|
8562
8667
|
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'distance' ? 'is-active' : null),
|
|
8563
8668
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).distance
|
|
@@ -8685,7 +8790,7 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
8685
8790
|
|
|
8686
8791
|
}, 8
|
|
8687
8792
|
/* PROPS */
|
|
8688
|
-
, ["onClick", "title"])]),
|
|
8793
|
+
, ["onClick", "title"])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isTips) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", Measurevue_type_script_setup_true_lang_js_hoisted_6, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_divider), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'height' || (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'azimuth' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("p", Measurevue_type_script_setup_true_lang_js_hoisted_7, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).measureTips1), 1
|
|
8689
8794
|
/* TEXT */
|
|
8690
8795
|
)) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("p", Measurevue_type_script_setup_true_lang_js_hoisted_8, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).measureTips), 1
|
|
8691
8796
|
/* TEXT */
|
|
@@ -8765,9 +8870,17 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
8765
8870
|
/* TEXT */
|
|
8766
8871
|
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_30, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).height) + " m", 1
|
|
8767
8872
|
/* TEXT */
|
|
8768
|
-
)])) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_31, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_32, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language)
|
|
8873
|
+
)])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'azimuth' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_31, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_32, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).azimuth), 1
|
|
8769
8874
|
/* TEXT */
|
|
8770
|
-
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_33, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result)), 1
|
|
8875
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_33, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).azimuth) + " °", 1
|
|
8876
|
+
/* TEXT */
|
|
8877
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_34, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).distance), 1
|
|
8878
|
+
/* TEXT */
|
|
8879
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_35, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result).distance) + " m", 1
|
|
8880
|
+
/* TEXT */
|
|
8881
|
+
)])) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_36, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_37, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language)[(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType)]), 1
|
|
8882
|
+
/* TEXT */
|
|
8883
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", _hoisted_38, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(result)), 1
|
|
8771
8884
|
/* TEXT */
|
|
8772
8885
|
)]))])])])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)])], 2
|
|
8773
8886
|
/* CLASS */
|
|
@@ -22302,18 +22415,23 @@ class SlopeAnalysisViewModel {
|
|
|
22302
22415
|
// this._globaOptions.viewer.scene.globe.enableLighting = true;
|
|
22303
22416
|
|
|
22304
22417
|
this._globaOptions._drawManager = scenceView._drawManager;
|
|
22305
|
-
var that = this;
|
|
22306
|
-
that.
|
|
22307
|
-
|
|
22308
|
-
|
|
22309
|
-
|
|
22310
|
-
|
|
22311
|
-
|
|
22312
|
-
|
|
22313
|
-
|
|
22314
|
-
|
|
22418
|
+
var that = this; // that._slopeAnalysis = new Cesium.Kq3dSlope({
|
|
22419
|
+
// viewer: that._globaOptions.viewer,
|
|
22420
|
+
// positions: [
|
|
22421
|
+
// new Cesium.Cartesian3(528486.4951355414, 5591866.071664512, 3011848.5874731047),
|
|
22422
|
+
// new Cesium.Cartesian3(511851.92328430264, 5590161.386242805, 3017839.604729828),
|
|
22423
|
+
// new Cesium.Cartesian3(512863.7934440037, 5579087.150988879, 3037957.9974059854),
|
|
22424
|
+
// new Cesium.Cartesian3(526764.7827270611, 5574253.865524863, 3044401.4321003747),
|
|
22425
|
+
// new Cesium.Cartesian3(544782.217496756, 5578126.194618411, 3034189.5478781504),
|
|
22426
|
+
// new Cesium.Cartesian3(546626.3798432688, 5588179.698741777, 3015426.663665117)
|
|
22427
|
+
// ],
|
|
22428
|
+
// isFilter: false,
|
|
22429
|
+
// colorTableDegree: that._globaOptions.viewModel.colorTableDegree,
|
|
22430
|
+
// colorTable: that._globaOptions.viewModel.colorTable
|
|
22431
|
+
// });
|
|
22432
|
+
// that._slopeAnalysis.destroy();
|
|
22433
|
+
// that._slopeAnalysis = null;
|
|
22315
22434
|
|
|
22316
|
-
that._slopeAnalysis = null;
|
|
22317
22435
|
this._globaOptions._drawFinishedEventListener = this._globaOptions._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
22318
22436
|
if (shape) {
|
|
22319
22437
|
that._globaOptions.viewModel.positions = shape._controlPoints; // 实例化分析对象
|
|
@@ -23285,392 +23403,1687 @@ const SlopeAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
23285
23403
|
|
|
23286
23404
|
}, 8
|
|
23287
23405
|
/* PROPS */
|
|
23288
|
-
, ["title"])]),
|
|
23289
|
-
_: 1
|
|
23290
|
-
/* STABLE */
|
|
23291
|
-
|
|
23292
|
-
}, 8
|
|
23293
|
-
/* PROPS */
|
|
23294
|
-
, ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", SlopeAnalysisvue_type_script_setup_true_lang_js_hoisted_10, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
23295
|
-
onClick: _cache[23] || (_cache[23] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startAnalysis(), ["stop"])),
|
|
23296
|
-
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startAnalysis,
|
|
23297
|
-
type: "primary"
|
|
23298
|
-
}, {
|
|
23299
|
-
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).startAnalysis), 1
|
|
23300
|
-
/* TEXT */
|
|
23301
|
-
)]),
|
|
23302
|
-
_: 1
|
|
23303
|
-
/* STABLE */
|
|
23304
|
-
|
|
23305
|
-
}, 8
|
|
23306
|
-
/* PROPS */
|
|
23307
|
-
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
23308
|
-
onClick: _cache[24] || (_cache[24] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clearResult(), ["stop"])),
|
|
23309
|
-
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult
|
|
23310
|
-
}, {
|
|
23311
|
-
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).clearResult), 1
|
|
23312
|
-
/* TEXT */
|
|
23313
|
-
)]),
|
|
23314
|
-
_: 1
|
|
23315
|
-
/* STABLE */
|
|
23316
|
-
|
|
23317
|
-
}, 8
|
|
23318
|
-
/* PROPS */
|
|
23319
|
-
, ["title"])])])], 2
|
|
23320
|
-
/* CLASS */
|
|
23321
|
-
);
|
|
23322
|
-
};
|
|
23323
|
-
}
|
|
23324
|
-
|
|
23325
|
-
}));
|
|
23326
|
-
;// CONCATENATED MODULE: ./src/webgl/slopeanalysis/SlopeAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
23327
|
-
|
|
23328
|
-
;// CONCATENATED MODULE: ./src/webgl/slopeanalysis/SlopeAnalysis.vue
|
|
23329
|
-
|
|
23330
|
-
|
|
23331
|
-
|
|
23332
|
-
const SlopeAnalysis_exports_ = SlopeAnalysisvue_type_script_setup_true_lang_js;
|
|
23333
|
-
|
|
23334
|
-
/* harmony default export */ var SlopeAnalysis = (SlopeAnalysis_exports_);
|
|
23335
|
-
;// CONCATENATED MODULE: ./src/webgl/slopeanalysis/index.js
|
|
23336
|
-
|
|
23337
|
-
|
|
23338
|
-
|
|
23339
|
-
|
|
23340
|
-
SlopeAnalysis.install = (Vue, opts) => {
|
|
23341
|
-
init_js_default()(Vue, opts);
|
|
23342
|
-
Vue.component(SlopeAnalysis.name, SlopeAnalysis);
|
|
23343
|
-
};
|
|
23344
|
-
|
|
23345
|
-
|
|
23346
|
-
;// CONCATENATED MODULE: ./src/webgl/aspectanalysis/AspectAnalysisViewModel.js
|
|
23347
|
-
|
|
23348
|
-
|
|
23349
|
-
/**
|
|
23350
|
-
* 坡向逻辑类
|
|
23351
|
-
**/
|
|
23352
|
-
|
|
23353
|
-
class AspectAnalysisViewModel {
|
|
23354
|
-
// 坡向三维对象
|
|
23355
|
-
constructor(scenceView, aspect) {
|
|
23356
|
-
_defineProperty(this, "_aspectAnalysis", null);
|
|
23357
|
-
|
|
23358
|
-
_defineProperty(this, "_globaOptions", {
|
|
23359
|
-
//全局参数
|
|
23360
|
-
viewer: null,
|
|
23361
|
-
_drawManager: null
|
|
23362
|
-
});
|
|
23363
|
-
|
|
23364
|
-
this._globaOptions.viewer = scenceView._viewer;
|
|
23365
|
-
let options = {
|
|
23366
|
-
interval: aspect.interval || 500,
|
|
23367
|
-
// 采样间隔
|
|
23368
|
-
width: aspect.arrowWidth || 20,
|
|
23369
|
-
// 箭头宽度
|
|
23370
|
-
color: Cesium.Color.fromCssColorString(aspect.color || "#FFFF00"),
|
|
23371
|
-
// 箭头颜色
|
|
23372
|
-
viewer: scenceView._viewer
|
|
23373
|
-
};
|
|
23374
|
-
this._globaOptions.viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
|
|
23375
|
-
// this._globaOptions.viewer.scene.globe.enableLighting = true;
|
|
23376
|
-
|
|
23377
|
-
this._globaOptions._drawManager = scenceView._drawManager;
|
|
23378
|
-
var that = this;
|
|
23379
|
-
this._aspectAnalysis = new Cesium.Kq3dAspect(options);
|
|
23380
|
-
this._globaOptions._drawFinishedEventListener = this._globaOptions._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
23381
|
-
if (shape) {
|
|
23382
|
-
that._aspectAnalysis.positions = shape._controlPoints;
|
|
23383
|
-
|
|
23384
|
-
that._globaOptions._drawManager.clear();
|
|
23385
|
-
}
|
|
23386
|
-
});
|
|
23387
|
-
} // 开始分析
|
|
23388
|
-
|
|
23389
|
-
|
|
23390
|
-
start() {
|
|
23391
|
-
// 判断是否添加了地形
|
|
23392
|
-
if (this._globaOptions.viewer.terrainProvider.availability) {
|
|
23393
|
-
if (this._globaOptions.viewer.terrainProvider instanceof Cesium.CesiumTerrainProvider) {
|
|
23394
|
-
if (this._globaOptions._drawManager) {
|
|
23395
|
-
this.clear();
|
|
23396
|
-
|
|
23397
|
-
this._globaOptions._drawManager.startDraw("polygon", {
|
|
23398
|
-
clampToGround: true
|
|
23399
|
-
});
|
|
23400
|
-
}
|
|
23401
|
-
} else {
|
|
23402
|
-
message({
|
|
23403
|
-
message: "只支持STK类型的地形分析!",
|
|
23404
|
-
type: "warning"
|
|
23405
|
-
});
|
|
23406
|
-
}
|
|
23407
|
-
} else {
|
|
23408
|
-
message({
|
|
23409
|
-
message: "请加载地形后分析!",
|
|
23410
|
-
type: "warning"
|
|
23411
|
-
});
|
|
23412
|
-
}
|
|
23413
|
-
} // 设置采样间隔
|
|
23414
|
-
|
|
23415
|
-
|
|
23416
|
-
setInterval(newValue) {
|
|
23417
|
-
if (this._aspectAnalysis) this._aspectAnalysis._interval = newValue;
|
|
23418
|
-
} // 设置箭头宽度
|
|
23419
|
-
|
|
23420
|
-
|
|
23421
|
-
setArrowWidth(newValue) {
|
|
23422
|
-
if (this._aspectAnalysis) this._aspectAnalysis._width = newValue;
|
|
23423
|
-
} // 设置箭头颜色
|
|
23424
|
-
|
|
23425
|
-
|
|
23426
|
-
setArrowColor(newValue) {
|
|
23427
|
-
if (this._aspectAnalysis) this._aspectAnalysis._color = Cesium.Color.fromCssColorString(newValue);
|
|
23428
|
-
} // 清除全部结果
|
|
23429
|
-
|
|
23430
|
-
|
|
23431
|
-
clear() {
|
|
23432
|
-
this._globaOptions._drawManager && this._globaOptions._drawManager.stopDraw();
|
|
23433
|
-
this._aspectAnalysis && this._aspectAnalysis.clear();
|
|
23434
|
-
} // 销毁
|
|
23435
|
-
|
|
23436
|
-
|
|
23437
|
-
destroy() {
|
|
23438
|
-
// 移除监听事件
|
|
23439
|
-
this._globaOptions._drawFinishedEventListener && this._globaOptions._drawFinishedEventListener();
|
|
23440
|
-
this._globaOptions._drawFinishedEventListener = null;
|
|
23441
|
-
this._aspectAnalysis && this._aspectAnalysis.clear();
|
|
23442
|
-
this._aspectAnalysis = null;
|
|
23443
|
-
}
|
|
23444
|
-
|
|
23445
|
-
}
|
|
23446
|
-
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/aspectanalysis/AspectAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
23447
|
-
|
|
23448
|
-
const AspectAnalysisvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
23449
|
-
class: "kq3d-aspect-analysis-box"
|
|
23450
|
-
};
|
|
23451
|
-
const AspectAnalysisvue_type_script_setup_true_lang_js_hoisted_2 = {
|
|
23452
|
-
class: "kq3d-aspect-analysis-footer"
|
|
23453
|
-
};
|
|
23454
|
-
|
|
23455
|
-
|
|
23456
|
-
|
|
23457
|
-
|
|
23458
|
-
|
|
23459
|
-
|
|
23460
|
-
const AspectAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
23461
|
-
name: "Kq3dAspectAnalysis"
|
|
23462
|
-
};
|
|
23463
|
-
/* harmony default export */ var AspectAnalysisvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(AspectAnalysisvue_type_script_setup_true_lang_js_default_, {
|
|
23464
|
-
props: {
|
|
23465
|
-
// 设置参数
|
|
23466
|
-
settingParams: {
|
|
23467
|
-
type: Object
|
|
23468
|
-
},
|
|
23469
|
-
// 是否显示阴影效果
|
|
23470
|
-
showShadow: {
|
|
23471
|
-
type: Boolean,
|
|
23472
|
-
default: true
|
|
23473
|
-
},
|
|
23474
|
-
|
|
23475
|
-
/**
|
|
23476
|
-
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
23477
|
-
*/
|
|
23478
|
-
position: [String, Object],
|
|
23479
|
-
// 是否生成HeaderTemp
|
|
23480
|
-
showHeaderTemp: {
|
|
23481
|
-
type: Boolean,
|
|
23482
|
-
default: false
|
|
23483
|
-
},
|
|
23484
|
-
// 是否折叠HeaderTemp,showHeaderTemp为true时生效
|
|
23485
|
-
isCollapseHeaderTemp: {
|
|
23486
|
-
type: Boolean,
|
|
23487
|
-
default: false
|
|
23488
|
-
},
|
|
23489
|
-
// HeaderTemp标题
|
|
23490
|
-
headerTempTitle: {
|
|
23491
|
-
type: String
|
|
23492
|
-
},
|
|
23493
|
-
// HeaderTemp图标
|
|
23494
|
-
headerTempIcon: {
|
|
23495
|
-
type: [Object, String],
|
|
23496
|
-
default: client_icons_vue_namespaceObject.IconAspectAnalysis
|
|
23497
|
-
},
|
|
23498
|
-
// HeaderTemp Title&Icon的位置
|
|
23499
|
-
isRight: {
|
|
23500
|
-
type: Boolean,
|
|
23501
|
-
default: true
|
|
23502
|
-
}
|
|
23503
|
-
},
|
|
23504
|
-
|
|
23505
|
-
setup(__props, {
|
|
23506
|
-
expose
|
|
23507
|
-
}) {
|
|
23508
|
-
const props = __props;
|
|
23509
|
-
const {
|
|
23510
|
-
proxy
|
|
23511
|
-
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
23512
|
-
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
23513
|
-
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({}); // 获取组件传参
|
|
23514
|
-
// 分析类
|
|
23515
|
-
|
|
23516
|
-
let viewModel = null; // 默认参数
|
|
23517
|
-
|
|
23518
|
-
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
23519
|
-
interval: props.settingParams && props.settingParams.interval || 500,
|
|
23520
|
-
// 采样间隔
|
|
23521
|
-
minInterval: props.settingParams && props.settingParams.minInterval || 100,
|
|
23522
|
-
// 采样间隔最小值
|
|
23523
|
-
maxInterval: props.settingParams && props.settingParams.maxInterval || 1000,
|
|
23524
|
-
// 采样间隔最大值
|
|
23525
|
-
arrowWidth: props.settingParams && props.settingParams.arrowWidth || 20,
|
|
23526
|
-
// 箭头宽度
|
|
23527
|
-
minArrowWidth: props.settingParams && props.settingParams.minArrowWidth || 1,
|
|
23528
|
-
// 箭头宽度最小值
|
|
23529
|
-
maxArrowWidth: props.settingParams && props.settingParams.maxArrowWidth || 30,
|
|
23530
|
-
// 箭头宽度最大值
|
|
23531
|
-
arrowColor: props.settingParams && props.settingParams.arrowColor || "#FFFF00" // 箭头颜色
|
|
23532
|
-
|
|
23533
|
-
}); // 组件容器Ref
|
|
23534
|
-
|
|
23535
|
-
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
23536
|
-
|
|
23537
|
-
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
23538
|
-
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
|
|
23539
|
-
|
|
23540
|
-
let {
|
|
23541
|
-
locale,
|
|
23542
|
-
messages
|
|
23543
|
-
} = (0,vue_i18n_cjs_js_namespaceObject.useI18n)();
|
|
23544
|
-
let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
23545
|
-
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
23546
|
-
language.value = messages.value[newVal]["webgl"];
|
|
23547
|
-
headerTempTitle.value = language.value.aspectAnalysis;
|
|
23548
|
-
});
|
|
23549
|
-
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
23550
|
-
(0,util_.updatePosition)(boxRef.value, props);
|
|
23551
|
-
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
23552
|
-
(0,util_.updatePosition)(boxRef.value, props);
|
|
23553
|
-
});
|
|
23554
|
-
watchCreateHeaderTemp();
|
|
23555
|
-
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
23556
|
-
watchCreateHeaderTemp();
|
|
23557
|
-
});
|
|
23558
|
-
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
23559
|
-
|
|
23560
|
-
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
23561
|
-
if (scenceView) {
|
|
23562
|
-
viewModel = new AspectAnalysisViewModel(scenceView, {
|
|
23563
|
-
interval: formItem.interval,
|
|
23564
|
-
// 采样间隔
|
|
23565
|
-
arrowWidth: formItem.arrowWidth,
|
|
23566
|
-
// 箭头宽度
|
|
23567
|
-
arrowColor: formItem.arrowColor // 箭头颜色
|
|
23568
|
-
|
|
23569
|
-
});
|
|
23570
|
-
}
|
|
23571
|
-
});
|
|
23572
|
-
});
|
|
23573
|
-
/**
|
|
23574
|
-
* @description 监听header生成
|
|
23575
|
-
*/
|
|
23576
|
-
|
|
23577
|
-
const watchCreateHeaderTemp = () => {
|
|
23578
|
-
if (props.showHeaderTemp) {
|
|
23579
|
-
// 生成headerTemp
|
|
23580
|
-
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
23581
|
-
}
|
|
23582
|
-
}; // 参数改变
|
|
23583
|
-
|
|
23584
|
-
|
|
23585
|
-
function paramsChanged(key) {
|
|
23586
|
-
switch (key) {
|
|
23587
|
-
case "interval":
|
|
23588
|
-
// 采样间隔
|
|
23589
|
-
viewModel.setInterval(formItem.interval);
|
|
23590
|
-
break;
|
|
23591
|
-
|
|
23592
|
-
case "arrowWidth":
|
|
23593
|
-
// 箭头间隔
|
|
23594
|
-
viewModel.setArrowWidth(formItem.arrowWidth);
|
|
23595
|
-
break;
|
|
23596
|
-
|
|
23597
|
-
case "arrowColor":
|
|
23598
|
-
// 箭头颜色
|
|
23599
|
-
viewModel.setArrowColor(formItem.arrowColor);
|
|
23600
|
-
break;
|
|
23601
|
-
|
|
23602
|
-
default:
|
|
23603
|
-
break;
|
|
23604
|
-
}
|
|
23605
|
-
} // 开始分析
|
|
23606
|
-
|
|
23607
|
-
|
|
23608
|
-
function startAnalysis() {
|
|
23609
|
-
viewModel && viewModel.start();
|
|
23610
|
-
} //清除结果
|
|
23611
|
-
|
|
23612
|
-
|
|
23613
|
-
function clearResult() {
|
|
23614
|
-
viewModel && viewModel.clear();
|
|
23615
|
-
} // 销毁
|
|
23616
|
-
|
|
23617
|
-
|
|
23618
|
-
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
23619
|
-
viewModel && viewModel.destroy();
|
|
23620
|
-
});
|
|
23621
|
-
expose({
|
|
23622
|
-
paramsChanged,
|
|
23623
|
-
startAnalysis,
|
|
23624
|
-
clearResult
|
|
23625
|
-
});
|
|
23626
|
-
return (_ctx, _cache) => {
|
|
23627
|
-
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
23628
|
-
|
|
23629
|
-
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
23630
|
-
|
|
23631
|
-
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
23632
|
-
|
|
23633
|
-
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
|
|
23634
|
-
|
|
23635
|
-
const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
|
|
23636
|
-
|
|
23637
|
-
const _component_kq_color_picker = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-color-picker");
|
|
23638
|
-
|
|
23639
|
-
const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
|
|
23640
|
-
|
|
23641
|
-
const _component_kq_collapse_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse-item");
|
|
23642
|
-
|
|
23643
|
-
const _component_kq_collapse = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse");
|
|
23644
|
-
|
|
23645
|
-
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
23646
|
-
|
|
23647
|
-
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
23648
|
-
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-aspect-analysis", {
|
|
23649
|
-
'kq-box-shadow': __props.showShadow
|
|
23650
|
-
}]),
|
|
23651
|
-
ref_key: "boxRef",
|
|
23652
|
-
ref: boxRef
|
|
23653
|
-
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
23654
|
-
key: 0,
|
|
23655
|
-
ref_key: "headerTempRef",
|
|
23656
|
-
ref: headerTempRef
|
|
23657
|
-
}, null, 512
|
|
23658
|
-
/* NEED_PATCH */
|
|
23659
|
-
)) : (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", AspectAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
23660
|
-
class: "kq3d-aspect-analysis-tip"
|
|
23661
|
-
}, {
|
|
23662
|
-
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).skylineTips), 1
|
|
23663
|
-
/* TEXT */
|
|
23664
|
-
)]),
|
|
23665
|
-
_: 1
|
|
23666
|
-
/* STABLE */
|
|
23667
|
-
|
|
23668
|
-
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse, {
|
|
23669
|
-
"model-value": _ctx.collapseValue
|
|
23670
|
-
}, {
|
|
23671
|
-
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_collapse_item, {
|
|
23672
|
-
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).analysisSettings,
|
|
23673
|
-
name: "setting"
|
|
23406
|
+
, ["title"])]),
|
|
23407
|
+
_: 1
|
|
23408
|
+
/* STABLE */
|
|
23409
|
+
|
|
23410
|
+
}, 8
|
|
23411
|
+
/* PROPS */
|
|
23412
|
+
, ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", SlopeAnalysisvue_type_script_setup_true_lang_js_hoisted_10, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
23413
|
+
onClick: _cache[23] || (_cache[23] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startAnalysis(), ["stop"])),
|
|
23414
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startAnalysis,
|
|
23415
|
+
type: "primary"
|
|
23416
|
+
}, {
|
|
23417
|
+
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).startAnalysis), 1
|
|
23418
|
+
/* TEXT */
|
|
23419
|
+
)]),
|
|
23420
|
+
_: 1
|
|
23421
|
+
/* STABLE */
|
|
23422
|
+
|
|
23423
|
+
}, 8
|
|
23424
|
+
/* PROPS */
|
|
23425
|
+
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
23426
|
+
onClick: _cache[24] || (_cache[24] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clearResult(), ["stop"])),
|
|
23427
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult
|
|
23428
|
+
}, {
|
|
23429
|
+
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).clearResult), 1
|
|
23430
|
+
/* TEXT */
|
|
23431
|
+
)]),
|
|
23432
|
+
_: 1
|
|
23433
|
+
/* STABLE */
|
|
23434
|
+
|
|
23435
|
+
}, 8
|
|
23436
|
+
/* PROPS */
|
|
23437
|
+
, ["title"])])])], 2
|
|
23438
|
+
/* CLASS */
|
|
23439
|
+
);
|
|
23440
|
+
};
|
|
23441
|
+
}
|
|
23442
|
+
|
|
23443
|
+
}));
|
|
23444
|
+
;// CONCATENATED MODULE: ./src/webgl/slopeanalysis/SlopeAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
23445
|
+
|
|
23446
|
+
;// CONCATENATED MODULE: ./src/webgl/slopeanalysis/SlopeAnalysis.vue
|
|
23447
|
+
|
|
23448
|
+
|
|
23449
|
+
|
|
23450
|
+
const SlopeAnalysis_exports_ = SlopeAnalysisvue_type_script_setup_true_lang_js;
|
|
23451
|
+
|
|
23452
|
+
/* harmony default export */ var SlopeAnalysis = (SlopeAnalysis_exports_);
|
|
23453
|
+
;// CONCATENATED MODULE: ./src/webgl/slopeanalysis/index.js
|
|
23454
|
+
|
|
23455
|
+
|
|
23456
|
+
|
|
23457
|
+
|
|
23458
|
+
SlopeAnalysis.install = (Vue, opts) => {
|
|
23459
|
+
init_js_default()(Vue, opts);
|
|
23460
|
+
Vue.component(SlopeAnalysis.name, SlopeAnalysis);
|
|
23461
|
+
};
|
|
23462
|
+
|
|
23463
|
+
|
|
23464
|
+
;// CONCATENATED MODULE: ./src/webgl/aspectanalysis/AspectAnalysisViewModel.js
|
|
23465
|
+
|
|
23466
|
+
|
|
23467
|
+
/**
|
|
23468
|
+
* 坡向逻辑类
|
|
23469
|
+
**/
|
|
23470
|
+
|
|
23471
|
+
class AspectAnalysisViewModel {
|
|
23472
|
+
// 坡向三维对象
|
|
23473
|
+
constructor(scenceView, aspect) {
|
|
23474
|
+
_defineProperty(this, "_aspectAnalysis", null);
|
|
23475
|
+
|
|
23476
|
+
_defineProperty(this, "_globaOptions", {
|
|
23477
|
+
//全局参数
|
|
23478
|
+
viewer: null,
|
|
23479
|
+
_drawManager: null
|
|
23480
|
+
});
|
|
23481
|
+
|
|
23482
|
+
this._globaOptions.viewer = scenceView._viewer;
|
|
23483
|
+
let options = {
|
|
23484
|
+
interval: aspect.interval || 500,
|
|
23485
|
+
// 采样间隔
|
|
23486
|
+
width: aspect.arrowWidth || 20,
|
|
23487
|
+
// 箭头宽度
|
|
23488
|
+
color: Cesium.Color.fromCssColorString(aspect.color || "#FFFF00"),
|
|
23489
|
+
// 箭头颜色
|
|
23490
|
+
viewer: scenceView._viewer
|
|
23491
|
+
};
|
|
23492
|
+
this._globaOptions.viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
|
|
23493
|
+
// this._globaOptions.viewer.scene.globe.enableLighting = true;
|
|
23494
|
+
|
|
23495
|
+
this._globaOptions._drawManager = scenceView._drawManager;
|
|
23496
|
+
var that = this;
|
|
23497
|
+
this._aspectAnalysis = new Cesium.Kq3dAspect(options);
|
|
23498
|
+
this._globaOptions._drawFinishedEventListener = this._globaOptions._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
23499
|
+
if (shape) {
|
|
23500
|
+
that._aspectAnalysis.positions = shape._controlPoints;
|
|
23501
|
+
|
|
23502
|
+
that._globaOptions._drawManager.clear();
|
|
23503
|
+
}
|
|
23504
|
+
});
|
|
23505
|
+
} // 开始分析
|
|
23506
|
+
|
|
23507
|
+
|
|
23508
|
+
start() {
|
|
23509
|
+
// 判断是否添加了地形
|
|
23510
|
+
if (this._globaOptions.viewer.terrainProvider.availability) {
|
|
23511
|
+
if (this._globaOptions.viewer.terrainProvider instanceof Cesium.CesiumTerrainProvider) {
|
|
23512
|
+
if (this._globaOptions._drawManager) {
|
|
23513
|
+
this.clear();
|
|
23514
|
+
|
|
23515
|
+
this._globaOptions._drawManager.startDraw("polygon", {
|
|
23516
|
+
clampToGround: true
|
|
23517
|
+
});
|
|
23518
|
+
}
|
|
23519
|
+
} else {
|
|
23520
|
+
message({
|
|
23521
|
+
message: "只支持STK类型的地形分析!",
|
|
23522
|
+
type: "warning"
|
|
23523
|
+
});
|
|
23524
|
+
}
|
|
23525
|
+
} else {
|
|
23526
|
+
message({
|
|
23527
|
+
message: "请加载地形后分析!",
|
|
23528
|
+
type: "warning"
|
|
23529
|
+
});
|
|
23530
|
+
}
|
|
23531
|
+
} // 设置采样间隔
|
|
23532
|
+
|
|
23533
|
+
|
|
23534
|
+
setInterval(newValue) {
|
|
23535
|
+
if (this._aspectAnalysis) this._aspectAnalysis._interval = newValue;
|
|
23536
|
+
} // 设置箭头宽度
|
|
23537
|
+
|
|
23538
|
+
|
|
23539
|
+
setArrowWidth(newValue) {
|
|
23540
|
+
if (this._aspectAnalysis) this._aspectAnalysis._width = newValue;
|
|
23541
|
+
} // 设置箭头颜色
|
|
23542
|
+
|
|
23543
|
+
|
|
23544
|
+
setArrowColor(newValue) {
|
|
23545
|
+
if (this._aspectAnalysis) this._aspectAnalysis._color = Cesium.Color.fromCssColorString(newValue);
|
|
23546
|
+
} // 清除全部结果
|
|
23547
|
+
|
|
23548
|
+
|
|
23549
|
+
clear() {
|
|
23550
|
+
this._globaOptions._drawManager && this._globaOptions._drawManager.stopDraw();
|
|
23551
|
+
this._aspectAnalysis && this._aspectAnalysis.clear();
|
|
23552
|
+
} // 销毁
|
|
23553
|
+
|
|
23554
|
+
|
|
23555
|
+
destroy() {
|
|
23556
|
+
// 移除监听事件
|
|
23557
|
+
this._globaOptions._drawFinishedEventListener && this._globaOptions._drawFinishedEventListener();
|
|
23558
|
+
this._globaOptions._drawFinishedEventListener = null;
|
|
23559
|
+
this._aspectAnalysis && this._aspectAnalysis.clear();
|
|
23560
|
+
this._aspectAnalysis = null;
|
|
23561
|
+
}
|
|
23562
|
+
|
|
23563
|
+
}
|
|
23564
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/aspectanalysis/AspectAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
23565
|
+
|
|
23566
|
+
const AspectAnalysisvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
23567
|
+
class: "kq3d-aspect-analysis-box"
|
|
23568
|
+
};
|
|
23569
|
+
const AspectAnalysisvue_type_script_setup_true_lang_js_hoisted_2 = {
|
|
23570
|
+
class: "kq3d-aspect-analysis-footer"
|
|
23571
|
+
};
|
|
23572
|
+
|
|
23573
|
+
|
|
23574
|
+
|
|
23575
|
+
|
|
23576
|
+
|
|
23577
|
+
|
|
23578
|
+
const AspectAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
23579
|
+
name: "Kq3dAspectAnalysis"
|
|
23580
|
+
};
|
|
23581
|
+
/* harmony default export */ var AspectAnalysisvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(AspectAnalysisvue_type_script_setup_true_lang_js_default_, {
|
|
23582
|
+
props: {
|
|
23583
|
+
// 设置参数
|
|
23584
|
+
settingParams: {
|
|
23585
|
+
type: Object
|
|
23586
|
+
},
|
|
23587
|
+
// 是否显示阴影效果
|
|
23588
|
+
showShadow: {
|
|
23589
|
+
type: Boolean,
|
|
23590
|
+
default: true
|
|
23591
|
+
},
|
|
23592
|
+
|
|
23593
|
+
/**
|
|
23594
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
23595
|
+
*/
|
|
23596
|
+
position: [String, Object],
|
|
23597
|
+
// 是否生成HeaderTemp
|
|
23598
|
+
showHeaderTemp: {
|
|
23599
|
+
type: Boolean,
|
|
23600
|
+
default: false
|
|
23601
|
+
},
|
|
23602
|
+
// 是否折叠HeaderTemp,showHeaderTemp为true时生效
|
|
23603
|
+
isCollapseHeaderTemp: {
|
|
23604
|
+
type: Boolean,
|
|
23605
|
+
default: false
|
|
23606
|
+
},
|
|
23607
|
+
// HeaderTemp标题
|
|
23608
|
+
headerTempTitle: {
|
|
23609
|
+
type: String
|
|
23610
|
+
},
|
|
23611
|
+
// HeaderTemp图标
|
|
23612
|
+
headerTempIcon: {
|
|
23613
|
+
type: [Object, String],
|
|
23614
|
+
default: client_icons_vue_namespaceObject.IconAspectAnalysis
|
|
23615
|
+
},
|
|
23616
|
+
// HeaderTemp Title&Icon的位置
|
|
23617
|
+
isRight: {
|
|
23618
|
+
type: Boolean,
|
|
23619
|
+
default: true
|
|
23620
|
+
}
|
|
23621
|
+
},
|
|
23622
|
+
|
|
23623
|
+
setup(__props, {
|
|
23624
|
+
expose
|
|
23625
|
+
}) {
|
|
23626
|
+
const props = __props;
|
|
23627
|
+
const {
|
|
23628
|
+
proxy
|
|
23629
|
+
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
23630
|
+
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
23631
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({}); // 获取组件传参
|
|
23632
|
+
// 分析类
|
|
23633
|
+
|
|
23634
|
+
let viewModel = null; // 默认参数
|
|
23635
|
+
|
|
23636
|
+
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
23637
|
+
interval: props.settingParams && props.settingParams.interval || 500,
|
|
23638
|
+
// 采样间隔
|
|
23639
|
+
minInterval: props.settingParams && props.settingParams.minInterval || 100,
|
|
23640
|
+
// 采样间隔最小值
|
|
23641
|
+
maxInterval: props.settingParams && props.settingParams.maxInterval || 1000,
|
|
23642
|
+
// 采样间隔最大值
|
|
23643
|
+
arrowWidth: props.settingParams && props.settingParams.arrowWidth || 20,
|
|
23644
|
+
// 箭头宽度
|
|
23645
|
+
minArrowWidth: props.settingParams && props.settingParams.minArrowWidth || 1,
|
|
23646
|
+
// 箭头宽度最小值
|
|
23647
|
+
maxArrowWidth: props.settingParams && props.settingParams.maxArrowWidth || 30,
|
|
23648
|
+
// 箭头宽度最大值
|
|
23649
|
+
arrowColor: props.settingParams && props.settingParams.arrowColor || "#FFFF00" // 箭头颜色
|
|
23650
|
+
|
|
23651
|
+
}); // 组件容器Ref
|
|
23652
|
+
|
|
23653
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
23654
|
+
|
|
23655
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
23656
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
|
|
23657
|
+
|
|
23658
|
+
let {
|
|
23659
|
+
locale,
|
|
23660
|
+
messages
|
|
23661
|
+
} = (0,vue_i18n_cjs_js_namespaceObject.useI18n)();
|
|
23662
|
+
let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
23663
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
23664
|
+
language.value = messages.value[newVal]["webgl"];
|
|
23665
|
+
headerTempTitle.value = language.value.aspectAnalysis;
|
|
23666
|
+
});
|
|
23667
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
23668
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
23669
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
23670
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
23671
|
+
});
|
|
23672
|
+
watchCreateHeaderTemp();
|
|
23673
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
23674
|
+
watchCreateHeaderTemp();
|
|
23675
|
+
});
|
|
23676
|
+
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
23677
|
+
|
|
23678
|
+
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
23679
|
+
if (scenceView) {
|
|
23680
|
+
viewModel = new AspectAnalysisViewModel(scenceView, {
|
|
23681
|
+
interval: formItem.interval,
|
|
23682
|
+
// 采样间隔
|
|
23683
|
+
arrowWidth: formItem.arrowWidth,
|
|
23684
|
+
// 箭头宽度
|
|
23685
|
+
arrowColor: formItem.arrowColor // 箭头颜色
|
|
23686
|
+
|
|
23687
|
+
});
|
|
23688
|
+
}
|
|
23689
|
+
});
|
|
23690
|
+
});
|
|
23691
|
+
/**
|
|
23692
|
+
* @description 监听header生成
|
|
23693
|
+
*/
|
|
23694
|
+
|
|
23695
|
+
const watchCreateHeaderTemp = () => {
|
|
23696
|
+
if (props.showHeaderTemp) {
|
|
23697
|
+
// 生成headerTemp
|
|
23698
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
23699
|
+
}
|
|
23700
|
+
}; // 参数改变
|
|
23701
|
+
|
|
23702
|
+
|
|
23703
|
+
function paramsChanged(key) {
|
|
23704
|
+
switch (key) {
|
|
23705
|
+
case "interval":
|
|
23706
|
+
// 采样间隔
|
|
23707
|
+
viewModel.setInterval(formItem.interval);
|
|
23708
|
+
break;
|
|
23709
|
+
|
|
23710
|
+
case "arrowWidth":
|
|
23711
|
+
// 箭头间隔
|
|
23712
|
+
viewModel.setArrowWidth(formItem.arrowWidth);
|
|
23713
|
+
break;
|
|
23714
|
+
|
|
23715
|
+
case "arrowColor":
|
|
23716
|
+
// 箭头颜色
|
|
23717
|
+
viewModel.setArrowColor(formItem.arrowColor);
|
|
23718
|
+
break;
|
|
23719
|
+
|
|
23720
|
+
default:
|
|
23721
|
+
break;
|
|
23722
|
+
}
|
|
23723
|
+
} // 开始分析
|
|
23724
|
+
|
|
23725
|
+
|
|
23726
|
+
function startAnalysis() {
|
|
23727
|
+
viewModel && viewModel.start();
|
|
23728
|
+
} //清除结果
|
|
23729
|
+
|
|
23730
|
+
|
|
23731
|
+
function clearResult() {
|
|
23732
|
+
viewModel && viewModel.clear();
|
|
23733
|
+
} // 销毁
|
|
23734
|
+
|
|
23735
|
+
|
|
23736
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
23737
|
+
viewModel && viewModel.destroy();
|
|
23738
|
+
});
|
|
23739
|
+
expose({
|
|
23740
|
+
paramsChanged,
|
|
23741
|
+
startAnalysis,
|
|
23742
|
+
clearResult
|
|
23743
|
+
});
|
|
23744
|
+
return (_ctx, _cache) => {
|
|
23745
|
+
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
23746
|
+
|
|
23747
|
+
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
23748
|
+
|
|
23749
|
+
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
23750
|
+
|
|
23751
|
+
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
|
|
23752
|
+
|
|
23753
|
+
const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
|
|
23754
|
+
|
|
23755
|
+
const _component_kq_color_picker = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-color-picker");
|
|
23756
|
+
|
|
23757
|
+
const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
|
|
23758
|
+
|
|
23759
|
+
const _component_kq_collapse_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse-item");
|
|
23760
|
+
|
|
23761
|
+
const _component_kq_collapse = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse");
|
|
23762
|
+
|
|
23763
|
+
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
23764
|
+
|
|
23765
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
23766
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-aspect-analysis", {
|
|
23767
|
+
'kq-box-shadow': __props.showShadow
|
|
23768
|
+
}]),
|
|
23769
|
+
ref_key: "boxRef",
|
|
23770
|
+
ref: boxRef
|
|
23771
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
23772
|
+
key: 0,
|
|
23773
|
+
ref_key: "headerTempRef",
|
|
23774
|
+
ref: headerTempRef
|
|
23775
|
+
}, null, 512
|
|
23776
|
+
/* NEED_PATCH */
|
|
23777
|
+
)) : (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", AspectAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
23778
|
+
class: "kq3d-aspect-analysis-tip"
|
|
23779
|
+
}, {
|
|
23780
|
+
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).skylineTips), 1
|
|
23781
|
+
/* TEXT */
|
|
23782
|
+
)]),
|
|
23783
|
+
_: 1
|
|
23784
|
+
/* STABLE */
|
|
23785
|
+
|
|
23786
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse, {
|
|
23787
|
+
"model-value": _ctx.collapseValue
|
|
23788
|
+
}, {
|
|
23789
|
+
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_collapse_item, {
|
|
23790
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).analysisSettings,
|
|
23791
|
+
name: "setting"
|
|
23792
|
+
}, {
|
|
23793
|
+
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, {
|
|
23794
|
+
"label-width": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? '90px' : '120px',
|
|
23795
|
+
"label-position": "left"
|
|
23796
|
+
}, {
|
|
23797
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", null, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
23798
|
+
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, {
|
|
23799
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).samplingInterval
|
|
23800
|
+
}, {
|
|
23801
|
+
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_row, {
|
|
23802
|
+
style: {
|
|
23803
|
+
"display": "flex"
|
|
23804
|
+
}
|
|
23805
|
+
}, {
|
|
23806
|
+
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_col, {
|
|
23807
|
+
span: 16
|
|
23808
|
+
}, {
|
|
23809
|
+
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_slider, {
|
|
23810
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).interval,
|
|
23811
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).interval = $event),
|
|
23812
|
+
step: 1,
|
|
23813
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minInterval,
|
|
23814
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxInterval,
|
|
23815
|
+
onInput: _cache[1] || (_cache[1] = $event => paramsChanged('interval'))
|
|
23816
|
+
}, null, 8
|
|
23817
|
+
/* PROPS */
|
|
23818
|
+
, ["modelValue", "min", "max"])]),
|
|
23819
|
+
_: 1
|
|
23820
|
+
/* STABLE */
|
|
23821
|
+
|
|
23822
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
23823
|
+
span: 8
|
|
23824
|
+
}, {
|
|
23825
|
+
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_input_number, {
|
|
23826
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).interval,
|
|
23827
|
+
"onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).interval = $event),
|
|
23828
|
+
step: 1,
|
|
23829
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minInterval,
|
|
23830
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxInterval,
|
|
23831
|
+
"controls-position": "right",
|
|
23832
|
+
onInput: _cache[3] || (_cache[3] = $event => paramsChanged('interval'))
|
|
23833
|
+
}, null, 8
|
|
23834
|
+
/* PROPS */
|
|
23835
|
+
, ["modelValue", "min", "max"])]),
|
|
23836
|
+
_: 1
|
|
23837
|
+
/* STABLE */
|
|
23838
|
+
|
|
23839
|
+
})]),
|
|
23840
|
+
_: 1
|
|
23841
|
+
/* STABLE */
|
|
23842
|
+
|
|
23843
|
+
})]),
|
|
23844
|
+
_: 1
|
|
23845
|
+
/* STABLE */
|
|
23846
|
+
|
|
23847
|
+
}, 8
|
|
23848
|
+
/* PROPS */
|
|
23849
|
+
, ["label"])]),
|
|
23850
|
+
_: 1
|
|
23851
|
+
/* STABLE */
|
|
23852
|
+
|
|
23853
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
23854
|
+
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, {
|
|
23855
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).arrowWidth
|
|
23856
|
+
}, {
|
|
23857
|
+
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_row, {
|
|
23858
|
+
style: {
|
|
23859
|
+
"display": "flex"
|
|
23860
|
+
}
|
|
23861
|
+
}, {
|
|
23862
|
+
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_col, {
|
|
23863
|
+
span: 16
|
|
23864
|
+
}, {
|
|
23865
|
+
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_slider, {
|
|
23866
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowWidth,
|
|
23867
|
+
"onUpdate:modelValue": _cache[4] || (_cache[4] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowWidth = $event),
|
|
23868
|
+
step: 1,
|
|
23869
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minArrowWidth,
|
|
23870
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxArrowWidth,
|
|
23871
|
+
onInput: _cache[5] || (_cache[5] = $event => paramsChanged('arrowWidth'))
|
|
23872
|
+
}, null, 8
|
|
23873
|
+
/* PROPS */
|
|
23874
|
+
, ["modelValue", "min", "max"])]),
|
|
23875
|
+
_: 1
|
|
23876
|
+
/* STABLE */
|
|
23877
|
+
|
|
23878
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
23879
|
+
span: 8
|
|
23880
|
+
}, {
|
|
23881
|
+
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_input_number, {
|
|
23882
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowWidth,
|
|
23883
|
+
"onUpdate:modelValue": _cache[6] || (_cache[6] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowWidth = $event),
|
|
23884
|
+
step: 1,
|
|
23885
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minArrowWidth,
|
|
23886
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxArrowWidth,
|
|
23887
|
+
"controls-position": "right",
|
|
23888
|
+
onInput: _cache[7] || (_cache[7] = $event => paramsChanged('arrowWidth'))
|
|
23889
|
+
}, null, 8
|
|
23890
|
+
/* PROPS */
|
|
23891
|
+
, ["modelValue", "min", "max"])]),
|
|
23892
|
+
_: 1
|
|
23893
|
+
/* STABLE */
|
|
23894
|
+
|
|
23895
|
+
})]),
|
|
23896
|
+
_: 1
|
|
23897
|
+
/* STABLE */
|
|
23898
|
+
|
|
23899
|
+
})]),
|
|
23900
|
+
_: 1
|
|
23901
|
+
/* STABLE */
|
|
23902
|
+
|
|
23903
|
+
}, 8
|
|
23904
|
+
/* PROPS */
|
|
23905
|
+
, ["label"])]),
|
|
23906
|
+
_: 1
|
|
23907
|
+
/* STABLE */
|
|
23908
|
+
|
|
23909
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
23910
|
+
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, {
|
|
23911
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).arrowColor
|
|
23912
|
+
}, {
|
|
23913
|
+
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_color_picker, {
|
|
23914
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowColor,
|
|
23915
|
+
"onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowColor = $event),
|
|
23916
|
+
onChange: _cache[9] || (_cache[9] = $event => paramsChanged('arrowColor'))
|
|
23917
|
+
}, null, 8
|
|
23918
|
+
/* PROPS */
|
|
23919
|
+
, ["modelValue"])]),
|
|
23920
|
+
_: 1
|
|
23921
|
+
/* STABLE */
|
|
23922
|
+
|
|
23923
|
+
}, 8
|
|
23924
|
+
/* PROPS */
|
|
23925
|
+
, ["label"])]),
|
|
23926
|
+
_: 1
|
|
23927
|
+
/* STABLE */
|
|
23928
|
+
|
|
23929
|
+
})])]),
|
|
23930
|
+
_: 1
|
|
23931
|
+
/* STABLE */
|
|
23932
|
+
|
|
23933
|
+
}, 8
|
|
23934
|
+
/* PROPS */
|
|
23935
|
+
, ["label-width"])]),
|
|
23936
|
+
_: 1
|
|
23937
|
+
/* STABLE */
|
|
23938
|
+
|
|
23939
|
+
}, 8
|
|
23940
|
+
/* PROPS */
|
|
23941
|
+
, ["title"])]),
|
|
23942
|
+
_: 1
|
|
23943
|
+
/* STABLE */
|
|
23944
|
+
|
|
23945
|
+
}, 8
|
|
23946
|
+
/* PROPS */
|
|
23947
|
+
, ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", AspectAnalysisvue_type_script_setup_true_lang_js_hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
23948
|
+
onClick: _cache[10] || (_cache[10] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startAnalysis(), ["stop"])),
|
|
23949
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startAnalysis,
|
|
23950
|
+
type: "primary"
|
|
23951
|
+
}, {
|
|
23952
|
+
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).startAnalysis), 1
|
|
23953
|
+
/* TEXT */
|
|
23954
|
+
)]),
|
|
23955
|
+
_: 1
|
|
23956
|
+
/* STABLE */
|
|
23957
|
+
|
|
23958
|
+
}, 8
|
|
23959
|
+
/* PROPS */
|
|
23960
|
+
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
23961
|
+
onClick: _cache[11] || (_cache[11] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clearResult(), ["stop"])),
|
|
23962
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult
|
|
23963
|
+
}, {
|
|
23964
|
+
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).clearResult), 1
|
|
23965
|
+
/* TEXT */
|
|
23966
|
+
)]),
|
|
23967
|
+
_: 1
|
|
23968
|
+
/* STABLE */
|
|
23969
|
+
|
|
23970
|
+
}, 8
|
|
23971
|
+
/* PROPS */
|
|
23972
|
+
, ["title"])])])], 2
|
|
23973
|
+
/* CLASS */
|
|
23974
|
+
);
|
|
23975
|
+
};
|
|
23976
|
+
}
|
|
23977
|
+
|
|
23978
|
+
}));
|
|
23979
|
+
;// CONCATENATED MODULE: ./src/webgl/aspectanalysis/AspectAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
23980
|
+
|
|
23981
|
+
;// CONCATENATED MODULE: ./src/webgl/aspectanalysis/AspectAnalysis.vue
|
|
23982
|
+
|
|
23983
|
+
|
|
23984
|
+
|
|
23985
|
+
const AspectAnalysis_exports_ = AspectAnalysisvue_type_script_setup_true_lang_js;
|
|
23986
|
+
|
|
23987
|
+
/* harmony default export */ var AspectAnalysis = (AspectAnalysis_exports_);
|
|
23988
|
+
;// CONCATENATED MODULE: ./src/webgl/aspectanalysis/index.js
|
|
23989
|
+
|
|
23990
|
+
|
|
23991
|
+
|
|
23992
|
+
|
|
23993
|
+
AspectAnalysis.install = (Vue, opts) => {
|
|
23994
|
+
init_js_default()(Vue, opts);
|
|
23995
|
+
Vue.component(AspectAnalysis.name, AspectAnalysis);
|
|
23996
|
+
};
|
|
23997
|
+
|
|
23998
|
+
|
|
23999
|
+
;// CONCATENATED MODULE: ./src/webgl/slopeaspectanalysis/SlopeAspectAnalysisViewModel.js
|
|
24000
|
+
|
|
24001
|
+
// 分析逻辑类
|
|
24002
|
+
|
|
24003
|
+
|
|
24004
|
+
class SlopeAspectAnalysisViewModel {
|
|
24005
|
+
// 坡度坡向三维对象
|
|
24006
|
+
// 坡向三维对象
|
|
24007
|
+
//全局参数
|
|
24008
|
+
constructor(scenceView, viewModel) {
|
|
24009
|
+
_defineProperty(this, "_slopeAnalysis", null);
|
|
24010
|
+
|
|
24011
|
+
_defineProperty(this, "_aspectAnalysis", null);
|
|
24012
|
+
|
|
24013
|
+
_defineProperty(this, "_globaOptions", {
|
|
24014
|
+
viewer: null,
|
|
24015
|
+
_drawManager: null
|
|
24016
|
+
});
|
|
24017
|
+
|
|
24018
|
+
_defineProperty(this, "_colorImages", [//渐变图片集合
|
|
24019
|
+
{
|
|
24020
|
+
value: "0",
|
|
24021
|
+
src: const_image_.RED_TO_PURPLE_URL
|
|
24022
|
+
}, {
|
|
24023
|
+
value: "1",
|
|
24024
|
+
src: const_image_.PURPLE_TO_YELLOW_URL
|
|
24025
|
+
}, {
|
|
24026
|
+
value: "2",
|
|
24027
|
+
src: const_image_.GREEN_TO_BLUE_URL
|
|
24028
|
+
}]);
|
|
24029
|
+
|
|
24030
|
+
this._globaOptions.viewer = scenceView._viewer;
|
|
24031
|
+
this._globaOptions.viewModel = {
|
|
24032
|
+
fillStyle: viewModel.fillStyle,
|
|
24033
|
+
viewer: this._globaOptions.viewer,
|
|
24034
|
+
isFilter: false,
|
|
24035
|
+
// 自定义颜色
|
|
24036
|
+
colorTableDegree: viewModel.colorTableDegree,
|
|
24037
|
+
colorTable: viewModel.colorTable,
|
|
24038
|
+
// 渐变纹理
|
|
24039
|
+
imageSrc: this.getColorLine(viewModel.colorImage),
|
|
24040
|
+
// 坡度过滤
|
|
24041
|
+
minSlope: viewModel.minSlope,
|
|
24042
|
+
maxSlope: viewModel.maxSlope,
|
|
24043
|
+
slopeColorText: viewModel.slopeColorText,
|
|
24044
|
+
slopeColorAlpha: viewModel.slopeColorAlpha,
|
|
24045
|
+
colorImage: this.getImagePath(viewModel.colorImage)
|
|
24046
|
+
};
|
|
24047
|
+
this._globaOptions.viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
|
|
24048
|
+
// this._globaOptions.viewer.scene.globe.enableLighting = true;
|
|
24049
|
+
|
|
24050
|
+
this._globaOptions._drawManager = scenceView._drawManager;
|
|
24051
|
+
var that = this; // 坡度对象
|
|
24052
|
+
|
|
24053
|
+
this._aspectAnalysis = new window.Cesium.Kq3dAspect({
|
|
24054
|
+
interval: viewModel.interval || 500,
|
|
24055
|
+
// 采样间隔
|
|
24056
|
+
width: viewModel.arrowWidth || 20,
|
|
24057
|
+
// 箭头宽度
|
|
24058
|
+
color: window.Cesium.Color.fromCssColorString(viewModel.color || "#FFFF00"),
|
|
24059
|
+
// 箭头颜色
|
|
24060
|
+
viewer: scenceView._viewer
|
|
24061
|
+
});
|
|
24062
|
+
this._globaOptions._drawFinishedEventListener = this._globaOptions._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
24063
|
+
if (shape) {
|
|
24064
|
+
that._globaOptions.viewModel.positions = shape._controlPoints;
|
|
24065
|
+
if (that._aspectAnalysis) that._aspectAnalysis.positions = shape._controlPoints; // 实例化分析对象
|
|
24066
|
+
|
|
24067
|
+
if (!that._slopeAnalysis) {
|
|
24068
|
+
switch (that._globaOptions.viewModel.fillStyle) {
|
|
24069
|
+
case "tableColor":
|
|
24070
|
+
that._slopeAnalysis = new Cesium.Kq3dSlope({
|
|
24071
|
+
viewer: that._globaOptions.viewer,
|
|
24072
|
+
positions: that._globaOptions.viewModel.positions,
|
|
24073
|
+
isFilter: false,
|
|
24074
|
+
colorTableDegree: that._globaOptions.viewModel.colorTableDegree,
|
|
24075
|
+
colorTable: that._globaOptions.viewModel.colorTable
|
|
24076
|
+
});
|
|
24077
|
+
break;
|
|
24078
|
+
|
|
24079
|
+
case "colorImage":
|
|
24080
|
+
that._slopeAnalysis = new Cesium.Kq3dSlope({
|
|
24081
|
+
viewer: that._globaOptions.viewer,
|
|
24082
|
+
positions: that._globaOptions.viewModel.positions,
|
|
24083
|
+
isFilter: false,
|
|
24084
|
+
colorImage: that._globaOptions.viewModel.imageSrc
|
|
24085
|
+
});
|
|
24086
|
+
break;
|
|
24087
|
+
|
|
24088
|
+
case "slopeFilter":
|
|
24089
|
+
that._slopeAnalysis = new Cesium.Kq3dSlope({
|
|
24090
|
+
viewer: that._globaOptions.viewer,
|
|
24091
|
+
positions: that._globaOptions.viewModel.positions,
|
|
24092
|
+
isFilter: true,
|
|
24093
|
+
minSlope: that._globaOptions.viewModel.minSlope,
|
|
24094
|
+
maxSlope: that._globaOptions.viewModel.maxSlope,
|
|
24095
|
+
color: Cesium.Color.fromCssColorString(that._globaOptions.viewModel.slopeColorText).withAlpha(Number(that._globaOptions.viewModel.slopeColorAlpha))
|
|
24096
|
+
});
|
|
24097
|
+
break;
|
|
24098
|
+
}
|
|
24099
|
+
} else {
|
|
24100
|
+
that._slopeAnalysis.positions = that._globaOptions.viewModel.positions;
|
|
24101
|
+
}
|
|
24102
|
+
|
|
24103
|
+
that._globaOptions._drawManager.clear();
|
|
24104
|
+
}
|
|
24105
|
+
});
|
|
24106
|
+
} //获取图片路径
|
|
24107
|
+
|
|
24108
|
+
|
|
24109
|
+
getImagePath(value) {
|
|
24110
|
+
var imagePath = "";
|
|
24111
|
+
|
|
24112
|
+
var image = this._colorImages.find(item => item.value === value);
|
|
24113
|
+
|
|
24114
|
+
if (image) {
|
|
24115
|
+
imagePath = image.src;
|
|
24116
|
+
}
|
|
24117
|
+
|
|
24118
|
+
return imagePath;
|
|
24119
|
+
} // 开始分析
|
|
24120
|
+
|
|
24121
|
+
|
|
24122
|
+
start() {
|
|
24123
|
+
// 判断是否添加了地形
|
|
24124
|
+
if (this._globaOptions.viewModel.viewer.terrainProvider.availability) {
|
|
24125
|
+
if (this._globaOptions.viewModel.viewer.terrainProvider instanceof Cesium.CesiumTerrainProvider) {
|
|
24126
|
+
if (this._globaOptions.viewModel.fillStyle === "slopeFilter") {
|
|
24127
|
+
// 坡度过滤不需要进行绘制
|
|
24128
|
+
this._slopeAnalysis = new Cesium.Kq3dSlope({
|
|
24129
|
+
viewer: this._globaOptions.viewer,
|
|
24130
|
+
positions: [],
|
|
24131
|
+
isFilter: true,
|
|
24132
|
+
minSlope: this._globaOptions.viewModel.minSlope,
|
|
24133
|
+
maxSlope: this._globaOptions.viewModel.maxSlope,
|
|
24134
|
+
color: Cesium.Color.fromCssColorString(this._globaOptions.viewModel.slopeColorText).withAlpha(Number(this._globaOptions.viewModel.slopeColorAlpha))
|
|
24135
|
+
});
|
|
24136
|
+
} else {
|
|
24137
|
+
// this.clear();
|
|
24138
|
+
if (this._globaOptions._drawManager) {
|
|
24139
|
+
this._globaOptions._drawManager.startDraw("polygon", {
|
|
24140
|
+
clampToGround: true
|
|
24141
|
+
});
|
|
24142
|
+
}
|
|
24143
|
+
}
|
|
24144
|
+
} else {
|
|
24145
|
+
message({
|
|
24146
|
+
message: "只支持STK类型的地形分析!",
|
|
24147
|
+
type: "warning"
|
|
24148
|
+
});
|
|
24149
|
+
}
|
|
24150
|
+
} else {
|
|
24151
|
+
message({
|
|
24152
|
+
message: "请加载地形后分析!",
|
|
24153
|
+
type: "warning"
|
|
24154
|
+
});
|
|
24155
|
+
}
|
|
24156
|
+
} //修改填充样式
|
|
24157
|
+
|
|
24158
|
+
|
|
24159
|
+
changeFilltyle(key) {
|
|
24160
|
+
this._globaOptions.viewModel.fillStyle = key;
|
|
24161
|
+
if (!this._slopeAnalysis) return;
|
|
24162
|
+
|
|
24163
|
+
switch (key) {
|
|
24164
|
+
case "tableColor":
|
|
24165
|
+
if (this._slopeAnalysis.isFilter) this._slopeAnalysis.isFilter = false;
|
|
24166
|
+
this._slopeAnalysis.colorImage = null;
|
|
24167
|
+
this._slopeAnalysis.color = null;
|
|
24168
|
+
this._slopeAnalysis.colorTableDegree = this._globaOptions.viewModel.colorTableDegree;
|
|
24169
|
+
this._slopeAnalysis.colorTable = this._globaOptions.viewModel.colorTable;
|
|
24170
|
+
break;
|
|
24171
|
+
|
|
24172
|
+
case "colorImage":
|
|
24173
|
+
if (this._slopeAnalysis.isFilter) this._slopeAnalysis.isFilter = false;
|
|
24174
|
+
this._slopeAnalysis.colorTableDegree = [];
|
|
24175
|
+
this._slopeAnalysis.colorTable = [];
|
|
24176
|
+
this._slopeAnalysis.color = null;
|
|
24177
|
+
this._slopeAnalysis.colorImage = this._globaOptions.viewModel.imageSrc;
|
|
24178
|
+
break;
|
|
24179
|
+
|
|
24180
|
+
case "slopeFilter":
|
|
24181
|
+
this._slopeAnalysis.colorImage = null;
|
|
24182
|
+
this._slopeAnalysis.isFilter = true;
|
|
24183
|
+
this._slopeAnalysis.minSlope = this._globaOptions.viewModel.minSlope, this._slopeAnalysis.maxSlope = this._globaOptions.viewModel.maxSlope, this._slopeAnalysis.color = Cesium.Color.fromCssColorString(this._globaOptions.viewModel.slopeColorText).withAlpha(Number(this._globaOptions.viewModel.slopeColorAlpha));
|
|
24184
|
+
break;
|
|
24185
|
+
}
|
|
24186
|
+
} // 设置填充纹理值
|
|
24187
|
+
|
|
24188
|
+
|
|
24189
|
+
setColorTableDegree(newValue) {
|
|
24190
|
+
this._globaOptions.viewModel.colorTableDegree = newValue;
|
|
24191
|
+
if (this._slopeAnalysis) this._slopeAnalysis.colorTableDegree = this._globaOptions.viewModel.colorTableDegree;
|
|
24192
|
+
} // 设置填充纹理颜色
|
|
24193
|
+
|
|
24194
|
+
|
|
24195
|
+
setColorTable(newValue) {
|
|
24196
|
+
this._globaOptions.viewModel.colorTable = newValue;
|
|
24197
|
+
if (this._slopeAnalysis) this._slopeAnalysis.colorTable = this._globaOptions.viewModel.colorTable;
|
|
24198
|
+
} // 设置填充纹理
|
|
24199
|
+
|
|
24200
|
+
|
|
24201
|
+
setColorImage(newValue) {
|
|
24202
|
+
this._globaOptions.viewModel.imageSrc = newValue;
|
|
24203
|
+
if (this._slopeAnalysis) this._slopeAnalysis.colorImage = this._globaOptions.viewModel.imageSrc;
|
|
24204
|
+
} // 设置渐变纹理
|
|
24205
|
+
|
|
24206
|
+
|
|
24207
|
+
getColorLine(key) {
|
|
24208
|
+
var path = "";
|
|
24209
|
+
|
|
24210
|
+
switch (key) {
|
|
24211
|
+
case 0:
|
|
24212
|
+
path = const_image_.RED_TO_PURPLE_URL;
|
|
24213
|
+
break;
|
|
24214
|
+
|
|
24215
|
+
case 1:
|
|
24216
|
+
path = const_image_.PURPLE_TO_YELLOW_URL;
|
|
24217
|
+
break;
|
|
24218
|
+
|
|
24219
|
+
case 2:
|
|
24220
|
+
path = const_image_.GREEN_TO_BLUE_URL;
|
|
24221
|
+
break;
|
|
24222
|
+
|
|
24223
|
+
default:
|
|
24224
|
+
path = const_image_.RED_TO_PURPLE_URL;
|
|
24225
|
+
break;
|
|
24226
|
+
}
|
|
24227
|
+
|
|
24228
|
+
return path;
|
|
24229
|
+
} // 设置坡度过滤样式
|
|
24230
|
+
|
|
24231
|
+
|
|
24232
|
+
setSlopeFilterColor(slopeColorText, slopeColorAlpha) {
|
|
24233
|
+
this._globaOptions.viewModel.slopeColorText = slopeColorText;
|
|
24234
|
+
this._globaOptions.viewModel.slopeColorAlpha = Number(slopeColorAlpha);
|
|
24235
|
+
if (this._slopeAnalysis) this._slopeAnalysis.color = Cesium.Color.fromCssColorString(slopeColorText).withAlpha(Number(slopeColorAlpha));
|
|
24236
|
+
} // 设置最小坡度值
|
|
24237
|
+
|
|
24238
|
+
|
|
24239
|
+
setSlopeFilterMin(newValue) {
|
|
24240
|
+
this._globaOptions.viewModel.minSlope = Number(newValue);
|
|
24241
|
+
if (this._slopeAnalysis) this._slopeAnalysis.minSlope = this._globaOptions.viewModel.minSlope;
|
|
24242
|
+
} // 设置最大坡度值
|
|
24243
|
+
|
|
24244
|
+
|
|
24245
|
+
setSlopeFilterMax(newValue) {
|
|
24246
|
+
this._globaOptions.viewModel.maxSlope = Number(newValue);
|
|
24247
|
+
if (this._slopeAnalysis) this._slopeAnalysis.maxSlope = this._globaOptions.viewModel.maxSlope;
|
|
24248
|
+
} // 设置采样间隔
|
|
24249
|
+
|
|
24250
|
+
|
|
24251
|
+
setInterval(newValue) {
|
|
24252
|
+
if (this._aspectAnalysis) this._aspectAnalysis._interval = newValue;
|
|
24253
|
+
} // 设置箭头宽度
|
|
24254
|
+
|
|
24255
|
+
|
|
24256
|
+
setArrowWidth(newValue) {
|
|
24257
|
+
if (this._aspectAnalysis) this._aspectAnalysis._width = newValue;
|
|
24258
|
+
} // 设置箭头颜色
|
|
24259
|
+
|
|
24260
|
+
|
|
24261
|
+
setArrowColor(newValue) {
|
|
24262
|
+
if (this._aspectAnalysis) this._aspectAnalysis._color = Cesium.Color.fromCssColorString(newValue);
|
|
24263
|
+
} // 清除全部结果
|
|
24264
|
+
|
|
24265
|
+
|
|
24266
|
+
clear() {
|
|
24267
|
+
this._globaOptions._drawManager && this._globaOptions._drawManager.stopDraw();
|
|
24268
|
+
this._slopeAnalysis && this._slopeAnalysis.destroy();
|
|
24269
|
+
this._slopeAnalysis = null;
|
|
24270
|
+
this._aspectAnalysis && this._aspectAnalysis.clear();
|
|
24271
|
+
} // 销毁
|
|
24272
|
+
|
|
24273
|
+
|
|
24274
|
+
destroy() {
|
|
24275
|
+
// 移除监听事件
|
|
24276
|
+
this._globaOptions._drawFinishedEventListener && this._globaOptions._drawFinishedEventListener();
|
|
24277
|
+
this._globaOptions._drawFinishedEventListener = null;
|
|
24278
|
+
this._slopeAnalysis && this._slopeAnalysis.destroy();
|
|
24279
|
+
this._slopeAnalysis = null;
|
|
24280
|
+
this._aspectAnalysis && this._aspectAnalysis.clear();
|
|
24281
|
+
this._aspectAnalysis = null;
|
|
24282
|
+
}
|
|
24283
|
+
|
|
24284
|
+
}
|
|
24285
|
+
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/slopeaspectanalysis/SlopeAspectAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
24286
|
+
|
|
24287
|
+
const SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_1 = {
|
|
24288
|
+
class: "kq3d-slope-aspect-analysis-box"
|
|
24289
|
+
};
|
|
24290
|
+
const SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_2 = {
|
|
24291
|
+
key: 0
|
|
24292
|
+
};
|
|
24293
|
+
const SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_3 = {
|
|
24294
|
+
class: "kq3d-slope-aspect-analysis-span"
|
|
24295
|
+
};
|
|
24296
|
+
const SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_4 = {
|
|
24297
|
+
key: 1
|
|
24298
|
+
};
|
|
24299
|
+
|
|
24300
|
+
const SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_5 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", null, "0°", -1
|
|
24301
|
+
/* HOISTED */
|
|
24302
|
+
);
|
|
24303
|
+
|
|
24304
|
+
const SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_6 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
|
|
24305
|
+
class: "kq3d-slope-aspect-analysis-line"
|
|
24306
|
+
}, null, -1
|
|
24307
|
+
/* HOISTED */
|
|
24308
|
+
);
|
|
24309
|
+
|
|
24310
|
+
const SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_7 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", null, "90°", -1
|
|
24311
|
+
/* HOISTED */
|
|
24312
|
+
);
|
|
24313
|
+
|
|
24314
|
+
const SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_8 = ["src"];
|
|
24315
|
+
const SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_9 = {
|
|
24316
|
+
key: 2
|
|
24317
|
+
};
|
|
24318
|
+
const SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_10 = {
|
|
24319
|
+
class: "kq3d-slope-aspect-analysis-footer"
|
|
24320
|
+
};
|
|
24321
|
+
|
|
24322
|
+
|
|
24323
|
+
|
|
24324
|
+
|
|
24325
|
+
|
|
24326
|
+
|
|
24327
|
+
|
|
24328
|
+
const SlopeAspectAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
24329
|
+
name: "Kq3dSlopeAspectAnalysis"
|
|
24330
|
+
};
|
|
24331
|
+
/* harmony default export */ var SlopeAspectAnalysisvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(SlopeAspectAnalysisvue_type_script_setup_true_lang_js_default_, {
|
|
24332
|
+
props: {
|
|
24333
|
+
// 设置参数
|
|
24334
|
+
settingParams: {
|
|
24335
|
+
type: Object
|
|
24336
|
+
},
|
|
24337
|
+
// 是否显示阴影效果
|
|
24338
|
+
showShadow: {
|
|
24339
|
+
type: Boolean,
|
|
24340
|
+
default: true
|
|
24341
|
+
},
|
|
24342
|
+
|
|
24343
|
+
/**
|
|
24344
|
+
* 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
|
|
24345
|
+
*/
|
|
24346
|
+
position: [String, Object],
|
|
24347
|
+
// 是否生成HeaderTemp
|
|
24348
|
+
showHeaderTemp: {
|
|
24349
|
+
type: Boolean,
|
|
24350
|
+
default: false
|
|
24351
|
+
},
|
|
24352
|
+
// 是否折叠HeaderTemp,showHeaderTemp为true时生效
|
|
24353
|
+
isCollapseHeaderTemp: {
|
|
24354
|
+
type: Boolean,
|
|
24355
|
+
default: false
|
|
24356
|
+
},
|
|
24357
|
+
// HeaderTemp标题
|
|
24358
|
+
headerTempTitle: {
|
|
24359
|
+
type: String
|
|
24360
|
+
},
|
|
24361
|
+
// HeaderTemp图标
|
|
24362
|
+
headerTempIcon: {
|
|
24363
|
+
type: [Object, String],
|
|
24364
|
+
default: client_icons_vue_namespaceObject.IconSlopeAnalysis
|
|
24365
|
+
},
|
|
24366
|
+
// HeaderTemp Title&Icon的位置
|
|
24367
|
+
isRight: {
|
|
24368
|
+
type: Boolean,
|
|
24369
|
+
default: true
|
|
24370
|
+
}
|
|
24371
|
+
},
|
|
24372
|
+
|
|
24373
|
+
setup(__props, {
|
|
24374
|
+
expose
|
|
24375
|
+
}) {
|
|
24376
|
+
const props = __props;
|
|
24377
|
+
const {
|
|
24378
|
+
proxy
|
|
24379
|
+
} = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
|
|
24380
|
+
let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
|
|
24381
|
+
let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
|
|
24382
|
+
let dataList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)([{
|
|
24383
|
+
colorTableDegree: 0,
|
|
24384
|
+
colorTable: null
|
|
24385
|
+
}, {
|
|
24386
|
+
colorTableDegree: 10,
|
|
24387
|
+
colorTable: "#00FF00"
|
|
24388
|
+
}, {
|
|
24389
|
+
colorTableDegree: 20,
|
|
24390
|
+
colorTable: "#0000FF"
|
|
24391
|
+
}, {
|
|
24392
|
+
colorTableDegree: 30,
|
|
24393
|
+
colorTable: "#FFFF00"
|
|
24394
|
+
}, {
|
|
24395
|
+
colorTableDegree: 40,
|
|
24396
|
+
colorTable: "#FF7F00"
|
|
24397
|
+
}, {
|
|
24398
|
+
colorTableDegree: 90,
|
|
24399
|
+
colorTable: "#FF0000"
|
|
24400
|
+
}]);
|
|
24401
|
+
const colorImages = [{
|
|
24402
|
+
value: 0,
|
|
24403
|
+
src: const_image_.RED_TO_PURPLE_URL
|
|
24404
|
+
}, {
|
|
24405
|
+
value: 1,
|
|
24406
|
+
src: const_image_.PURPLE_TO_YELLOW_URL
|
|
24407
|
+
}, {
|
|
24408
|
+
value: 2,
|
|
24409
|
+
src: const_image_.GREEN_TO_BLUE_URL
|
|
24410
|
+
}]; //计算属性
|
|
24411
|
+
// 获取组件传参
|
|
24412
|
+
// 分析类
|
|
24413
|
+
|
|
24414
|
+
let viewModel = null; // 默认参数
|
|
24415
|
+
|
|
24416
|
+
let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
|
|
24417
|
+
collapseValue: props.settingParams && props.settingParams.collapseValue || "",
|
|
24418
|
+
// 折叠组件是否折叠,slope:展开坡度设置,aspect:展开破坡向设置
|
|
24419
|
+
fillStyle: props.settingParams && props.settingParams.fillStyle || "tableColor",
|
|
24420
|
+
colorTableDegree: props.settingParams && props.settingParams.colorTableDegree || [10, 20, 30, 40, 90],
|
|
24421
|
+
colorTable: props.settingParams && props.settingParams.colorTable || ["#00FF00", "#0000FF", "#FFFF00", "#FF7F00", "#FF0000"],
|
|
24422
|
+
colorImage: props.settingParams && props.settingParams.colorImage || 0,
|
|
24423
|
+
minSlope: props.settingParams && props.settingParams.minSlope || 10,
|
|
24424
|
+
maxSlope: props.settingParams && props.settingParams.maxSlope || 60,
|
|
24425
|
+
slopeColorAlpha: props.settingParams && props.settingParams.slopeColorAlpha || 0.3,
|
|
24426
|
+
slopeColorText: props.settingParams && props.settingParams.slopeColorText || "#FF0000",
|
|
24427
|
+
// 坡向参数
|
|
24428
|
+
interval: props.settingParams && props.settingParams.interval || 500,
|
|
24429
|
+
// 采样间隔
|
|
24430
|
+
minInterval: props.settingParams && props.settingParams.minInterval || 100,
|
|
24431
|
+
// 采样间隔最小值
|
|
24432
|
+
maxInterval: props.settingParams && props.settingParams.maxInterval || 1000,
|
|
24433
|
+
// 采样间隔最大值
|
|
24434
|
+
arrowWidth: props.settingParams && props.settingParams.arrowWidth || 20,
|
|
24435
|
+
// 箭头宽度
|
|
24436
|
+
minArrowWidth: props.settingParams && props.settingParams.minArrowWidth || 1,
|
|
24437
|
+
// 箭头宽度最小值
|
|
24438
|
+
maxArrowWidth: props.settingParams && props.settingParams.maxArrowWidth || 30,
|
|
24439
|
+
// 箭头宽度最大值
|
|
24440
|
+
arrowColor: props.settingParams && props.settingParams.arrowColor || "#FFFF00" // 箭头颜色
|
|
24441
|
+
|
|
24442
|
+
}); // 组件容器Ref
|
|
24443
|
+
|
|
24444
|
+
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
24445
|
+
|
|
24446
|
+
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
24447
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
|
|
24448
|
+
|
|
24449
|
+
let {
|
|
24450
|
+
locale,
|
|
24451
|
+
messages
|
|
24452
|
+
} = (0,vue_i18n_cjs_js_namespaceObject.useI18n)();
|
|
24453
|
+
let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
24454
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
24455
|
+
language.value = messages.value[newVal]["webgl"];
|
|
24456
|
+
headerTempTitle.value = language.value.slopeAspectAnalysisTitle;
|
|
24457
|
+
});
|
|
24458
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
24459
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
24460
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
24461
|
+
(0,util_.updatePosition)(boxRef.value, props);
|
|
24462
|
+
});
|
|
24463
|
+
watchCreateHeaderTemp();
|
|
24464
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
|
|
24465
|
+
watchCreateHeaderTemp();
|
|
24466
|
+
});
|
|
24467
|
+
currentLang.value = proxy.$i18n.locale; // 获取当前语言
|
|
24468
|
+
|
|
24469
|
+
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
24470
|
+
if (scenceView) {
|
|
24471
|
+
refactorArr();
|
|
24472
|
+
viewModel = new SlopeAspectAnalysisViewModel(scenceView, formItem); // var imageUrl = getImagePath(formItem.colorImage);
|
|
24473
|
+
// viewModel.setColorImage(imageUrl);
|
|
24474
|
+
}
|
|
24475
|
+
});
|
|
24476
|
+
});
|
|
24477
|
+
/**
|
|
24478
|
+
* @description 监听header生成
|
|
24479
|
+
*/
|
|
24480
|
+
|
|
24481
|
+
const watchCreateHeaderTemp = () => {
|
|
24482
|
+
if (props.showHeaderTemp) {
|
|
24483
|
+
// 生成headerTemp
|
|
24484
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
24485
|
+
}
|
|
24486
|
+
}; // 刷新自定义样式数组
|
|
24487
|
+
|
|
24488
|
+
|
|
24489
|
+
function refactorArr(type) {
|
|
24490
|
+
if (!dataList || !dataList.length) return;
|
|
24491
|
+
|
|
24492
|
+
if (type == "degree") {
|
|
24493
|
+
formItem.colorTableDegree = dataList.map(item => {
|
|
24494
|
+
return item.colorTableDegree;
|
|
24495
|
+
});
|
|
24496
|
+
formItem.colorTableDegree.shift();
|
|
24497
|
+
} else if (type == "color") {
|
|
24498
|
+
formItem.colorTable = dataList.map(item => {
|
|
24499
|
+
return item.colorTable;
|
|
24500
|
+
});
|
|
24501
|
+
formItem.colorTable.shift();
|
|
24502
|
+
}
|
|
24503
|
+
} //获取图片路径
|
|
24504
|
+
|
|
24505
|
+
|
|
24506
|
+
function getImagePath(value) {
|
|
24507
|
+
var imagePath = "";
|
|
24508
|
+
var image = colorImages.find(item => item.value === value);
|
|
24509
|
+
|
|
24510
|
+
if (image) {
|
|
24511
|
+
imagePath = image.src;
|
|
24512
|
+
}
|
|
24513
|
+
|
|
24514
|
+
return imagePath;
|
|
24515
|
+
} // 参数改变
|
|
24516
|
+
|
|
24517
|
+
|
|
24518
|
+
function paramsChanged(key) {
|
|
24519
|
+
switch (key) {
|
|
24520
|
+
case "fillStyle":
|
|
24521
|
+
// 填充样式
|
|
24522
|
+
viewModel.changeFilltyle(formItem.fillStyle);
|
|
24523
|
+
break;
|
|
24524
|
+
|
|
24525
|
+
case "colorTableDegree":
|
|
24526
|
+
// 自定义填充样式区间
|
|
24527
|
+
refactorArr("degree");
|
|
24528
|
+
viewModel.setColorTableDegree(formItem.colorTableDegree);
|
|
24529
|
+
break;
|
|
24530
|
+
|
|
24531
|
+
case "colorTable":
|
|
24532
|
+
// 自定义填充样式颜色
|
|
24533
|
+
refactorArr("color");
|
|
24534
|
+
viewModel.setColorTable(formItem.colorTable);
|
|
24535
|
+
break;
|
|
24536
|
+
|
|
24537
|
+
case "colorImage":
|
|
24538
|
+
// 填充样式
|
|
24539
|
+
var imageUrl = getImagePath(formItem.colorImage);
|
|
24540
|
+
viewModel.setColorImage(imageUrl);
|
|
24541
|
+
break;
|
|
24542
|
+
|
|
24543
|
+
case "minSlope":
|
|
24544
|
+
// 填充样式
|
|
24545
|
+
viewModel.setSlopeFilterMin(formItem.minSlope);
|
|
24546
|
+
break;
|
|
24547
|
+
|
|
24548
|
+
case "maxSlope":
|
|
24549
|
+
// 填充样式
|
|
24550
|
+
viewModel.setSlopeFilterMax(formItem.maxSlope);
|
|
24551
|
+
break;
|
|
24552
|
+
|
|
24553
|
+
case "slopeColorAlpha":
|
|
24554
|
+
// 填充样式
|
|
24555
|
+
viewModel.setSlopeFilterColor(formItem.slopeColorText, formItem.slopeColorAlpha);
|
|
24556
|
+
break;
|
|
24557
|
+
|
|
24558
|
+
case "slopeColorText":
|
|
24559
|
+
// 填充样式
|
|
24560
|
+
viewModel.setSlopeFilterColor(formItem.slopeColorText, formItem.slopeColorAlpha);
|
|
24561
|
+
break;
|
|
24562
|
+
|
|
24563
|
+
case "interval":
|
|
24564
|
+
// 采样间隔
|
|
24565
|
+
viewModel.setInterval(formItem.interval);
|
|
24566
|
+
break;
|
|
24567
|
+
|
|
24568
|
+
case "arrowWidth":
|
|
24569
|
+
// 箭头间隔
|
|
24570
|
+
viewModel.setArrowWidth(formItem.arrowWidth);
|
|
24571
|
+
break;
|
|
24572
|
+
|
|
24573
|
+
case "arrowColor":
|
|
24574
|
+
// 箭头颜色
|
|
24575
|
+
viewModel.setArrowColor(formItem.arrowColor);
|
|
24576
|
+
break;
|
|
24577
|
+
|
|
24578
|
+
default:
|
|
24579
|
+
break;
|
|
24580
|
+
}
|
|
24581
|
+
} // 开始分析
|
|
24582
|
+
|
|
24583
|
+
|
|
24584
|
+
function startAnalysis() {
|
|
24585
|
+
clearResult();
|
|
24586
|
+
viewModel && viewModel.start();
|
|
24587
|
+
} //清除结果
|
|
24588
|
+
|
|
24589
|
+
|
|
24590
|
+
function clearResult() {
|
|
24591
|
+
viewModel && viewModel.clear();
|
|
24592
|
+
} // 销毁
|
|
24593
|
+
|
|
24594
|
+
|
|
24595
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
|
|
24596
|
+
viewModel && viewModel.destroy();
|
|
24597
|
+
});
|
|
24598
|
+
expose({
|
|
24599
|
+
refactorArr,
|
|
24600
|
+
getImagePath,
|
|
24601
|
+
paramsChanged,
|
|
24602
|
+
startAnalysis,
|
|
24603
|
+
clearResult
|
|
24604
|
+
});
|
|
24605
|
+
return (_ctx, _cache) => {
|
|
24606
|
+
const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
|
|
24607
|
+
|
|
24608
|
+
const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");
|
|
24609
|
+
|
|
24610
|
+
const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-select");
|
|
24611
|
+
|
|
24612
|
+
const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
|
|
24613
|
+
|
|
24614
|
+
const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
|
|
24615
|
+
|
|
24616
|
+
const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
|
|
24617
|
+
|
|
24618
|
+
const _component_kq_color_picker = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-color-picker");
|
|
24619
|
+
|
|
24620
|
+
const _component_kq_radio = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-radio");
|
|
24621
|
+
|
|
24622
|
+
const _component_kq_radio_group = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-radio-group");
|
|
24623
|
+
|
|
24624
|
+
const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
|
|
24625
|
+
|
|
24626
|
+
const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
|
|
24627
|
+
|
|
24628
|
+
const _component_kq_collapse_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse-item");
|
|
24629
|
+
|
|
24630
|
+
const _component_kq_collapse = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse");
|
|
24631
|
+
|
|
24632
|
+
const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
|
|
24633
|
+
|
|
24634
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
|
|
24635
|
+
class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-slope-aspect-analysis", {
|
|
24636
|
+
'kq-box-shadow': __props.showShadow
|
|
24637
|
+
}]),
|
|
24638
|
+
ref_key: "boxRef",
|
|
24639
|
+
ref: boxRef
|
|
24640
|
+
}, [__props.showHeaderTemp ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveDynamicComponent)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headerTemp)), {
|
|
24641
|
+
key: 0,
|
|
24642
|
+
ref_key: "headerTempRef",
|
|
24643
|
+
ref: headerTempRef
|
|
24644
|
+
}, null, 512
|
|
24645
|
+
/* NEED_PATCH */
|
|
24646
|
+
)) : (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", SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).fillStyle !== 'slopeFilter' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_row, {
|
|
24647
|
+
key: 0,
|
|
24648
|
+
class: "kq3d-slope-aspect-analysis-tip"
|
|
24649
|
+
}, {
|
|
24650
|
+
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).skylineTips), 1
|
|
24651
|
+
/* TEXT */
|
|
24652
|
+
)]),
|
|
24653
|
+
_: 1
|
|
24654
|
+
/* STABLE */
|
|
24655
|
+
|
|
24656
|
+
})) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse, {
|
|
24657
|
+
"model-value": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).collapseValue
|
|
24658
|
+
}, {
|
|
24659
|
+
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_collapse_item, {
|
|
24660
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).slopeAnalysisSettings,
|
|
24661
|
+
name: "slope"
|
|
24662
|
+
}, {
|
|
24663
|
+
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, {
|
|
24664
|
+
"label-width": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? '90px' : '120px',
|
|
24665
|
+
"label-position": "left"
|
|
24666
|
+
}, {
|
|
24667
|
+
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_row, {
|
|
24668
|
+
style: {
|
|
24669
|
+
"display": "block"
|
|
24670
|
+
}
|
|
24671
|
+
}, {
|
|
24672
|
+
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, {
|
|
24673
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).fillStyle
|
|
24674
|
+
}, {
|
|
24675
|
+
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_select, {
|
|
24676
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).fillStyle,
|
|
24677
|
+
"onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).fillStyle = $event),
|
|
24678
|
+
onChange: _cache[1] || (_cache[1] = $event => paramsChanged('fillStyle'))
|
|
24679
|
+
}, {
|
|
24680
|
+
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, {
|
|
24681
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).customColorScheme,
|
|
24682
|
+
value: "tableColor"
|
|
24683
|
+
}, null, 8
|
|
24684
|
+
/* PROPS */
|
|
24685
|
+
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
24686
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).gradientTexture,
|
|
24687
|
+
value: "colorImage"
|
|
24688
|
+
}, null, 8
|
|
24689
|
+
/* PROPS */
|
|
24690
|
+
, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
|
|
24691
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).slopeFilter,
|
|
24692
|
+
value: "slopeFilter"
|
|
24693
|
+
}, null, 8
|
|
24694
|
+
/* PROPS */
|
|
24695
|
+
, ["label"])]),
|
|
24696
|
+
_: 1
|
|
24697
|
+
/* STABLE */
|
|
24698
|
+
|
|
24699
|
+
}, 8
|
|
24700
|
+
/* PROPS */
|
|
24701
|
+
, ["modelValue"])]),
|
|
24702
|
+
_: 1
|
|
24703
|
+
/* STABLE */
|
|
24704
|
+
|
|
24705
|
+
}, 8
|
|
24706
|
+
/* PROPS */
|
|
24707
|
+
, ["label"])]),
|
|
24708
|
+
_: 1
|
|
24709
|
+
/* STABLE */
|
|
24710
|
+
|
|
24711
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).fillStyle === 'tableColor' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
24712
|
+
style: {
|
|
24713
|
+
"display": "flex"
|
|
24714
|
+
}
|
|
24715
|
+
}, {
|
|
24716
|
+
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_col, {
|
|
24717
|
+
span: 18
|
|
24718
|
+
}, {
|
|
24719
|
+
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).setSlopeRange), 1
|
|
24720
|
+
/* TEXT */
|
|
24721
|
+
)]),
|
|
24722
|
+
_: 1
|
|
24723
|
+
/* STABLE */
|
|
24724
|
+
|
|
24725
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
24726
|
+
span: 6
|
|
24727
|
+
}, {
|
|
24728
|
+
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).setColor), 1
|
|
24729
|
+
/* TEXT */
|
|
24730
|
+
)]),
|
|
24731
|
+
_: 1
|
|
24732
|
+
/* STABLE */
|
|
24733
|
+
|
|
24734
|
+
})]),
|
|
24735
|
+
_: 1
|
|
24736
|
+
/* STABLE */
|
|
24737
|
+
|
|
24738
|
+
}), ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataList), (item, index) => {
|
|
24739
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_row, {
|
|
24740
|
+
key: index,
|
|
24741
|
+
style: {
|
|
24742
|
+
"display": "flex",
|
|
24743
|
+
"padding-bottom": "8px"
|
|
24744
|
+
}
|
|
24745
|
+
}, {
|
|
24746
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [index > 0 ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, {
|
|
24747
|
+
key: 0
|
|
24748
|
+
}, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
24749
|
+
span: 18
|
|
24750
|
+
}, {
|
|
24751
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [index === 1 ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_input_number, {
|
|
24752
|
+
key: 0,
|
|
24753
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataList)[index - 1].colorTableDegree,
|
|
24754
|
+
"onUpdate:modelValue": $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataList)[index - 1].colorTableDegree = $event,
|
|
24755
|
+
disabled: true,
|
|
24756
|
+
onInput: _cache[2] || (_cache[2] = $event => paramsChanged('colorTableDegree')),
|
|
24757
|
+
"controls-position": "right"
|
|
24758
|
+
}, null, 8
|
|
24759
|
+
/* PROPS */
|
|
24760
|
+
, ["modelValue", "onUpdate:modelValue"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), index > 1 && index < (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataList).length ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_input_number, {
|
|
24761
|
+
key: 1,
|
|
24762
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataList)[index - 1].colorTableDegree,
|
|
24763
|
+
"onUpdate:modelValue": $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataList)[index - 1].colorTableDegree = $event,
|
|
24764
|
+
disabled: true,
|
|
24765
|
+
step: 1,
|
|
24766
|
+
onInput: _cache[3] || (_cache[3] = $event => paramsChanged('colorTableDegree')),
|
|
24767
|
+
"controls-position": "right"
|
|
24768
|
+
}, null, 8
|
|
24769
|
+
/* PROPS */
|
|
24770
|
+
, ["modelValue", "onUpdate:modelValue"])) : (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)("span", SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_3, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).to), 1
|
|
24771
|
+
/* TEXT */
|
|
24772
|
+
), index > 0 && index < (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataList).length - 1 ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_input_number, {
|
|
24773
|
+
key: 2,
|
|
24774
|
+
modelValue: item.colorTableDegree,
|
|
24775
|
+
"onUpdate:modelValue": $event => item.colorTableDegree = $event,
|
|
24776
|
+
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataList)[index - 1].colorTableDegree,
|
|
24777
|
+
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataList)[index + 1].colorTableDegree,
|
|
24778
|
+
step: 1,
|
|
24779
|
+
onInput: _cache[4] || (_cache[4] = $event => paramsChanged('colorTableDegree')),
|
|
24780
|
+
"controls-position": "right"
|
|
24781
|
+
}, null, 8
|
|
24782
|
+
/* PROPS */
|
|
24783
|
+
, ["modelValue", "onUpdate:modelValue", "min", "max"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), index === (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataList).length - 1 ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_input_number, {
|
|
24784
|
+
key: 3,
|
|
24785
|
+
modelValue: item.colorTableDegree,
|
|
24786
|
+
"onUpdate:modelValue": $event => item.colorTableDegree = $event,
|
|
24787
|
+
step: 1,
|
|
24788
|
+
disabled: true,
|
|
24789
|
+
onInput: _cache[5] || (_cache[5] = $event => paramsChanged('colorTableDegree')),
|
|
24790
|
+
"controls-position": "right"
|
|
24791
|
+
}, null, 8
|
|
24792
|
+
/* PROPS */
|
|
24793
|
+
, ["modelValue", "onUpdate:modelValue"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)]),
|
|
24794
|
+
_: 2
|
|
24795
|
+
/* DYNAMIC */
|
|
24796
|
+
|
|
24797
|
+
}, 1024
|
|
24798
|
+
/* DYNAMIC_SLOTS */
|
|
24799
|
+
), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
24800
|
+
span: 6
|
|
24801
|
+
}, {
|
|
24802
|
+
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_color_picker, {
|
|
24803
|
+
modelValue: item.colorTable,
|
|
24804
|
+
"onUpdate:modelValue": $event => item.colorTable = $event,
|
|
24805
|
+
onChange: _cache[6] || (_cache[6] = $event => paramsChanged('colorTable'))
|
|
24806
|
+
}, null, 8
|
|
24807
|
+
/* PROPS */
|
|
24808
|
+
, ["modelValue", "onUpdate:modelValue"])]),
|
|
24809
|
+
_: 2
|
|
24810
|
+
/* DYNAMIC */
|
|
24811
|
+
|
|
24812
|
+
}, 1024
|
|
24813
|
+
/* DYNAMIC_SLOTS */
|
|
24814
|
+
)], 64
|
|
24815
|
+
/* STABLE_FRAGMENT */
|
|
24816
|
+
)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)]),
|
|
24817
|
+
_: 2
|
|
24818
|
+
/* DYNAMIC */
|
|
24819
|
+
|
|
24820
|
+
}, 1024
|
|
24821
|
+
/* DYNAMIC_SLOTS */
|
|
24822
|
+
);
|
|
24823
|
+
}), 128
|
|
24824
|
+
/* KEYED_FRAGMENT */
|
|
24825
|
+
))])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).fillStyle === 'colorImage' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_4, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
24826
|
+
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, {
|
|
24827
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).gradientColor
|
|
24828
|
+
}, {
|
|
24829
|
+
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_row, {
|
|
24830
|
+
style: {
|
|
24831
|
+
"display": "flex"
|
|
24832
|
+
}
|
|
24833
|
+
}, {
|
|
24834
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_5, SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_6, SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_7]),
|
|
24835
|
+
_: 1
|
|
24836
|
+
/* STABLE */
|
|
24837
|
+
|
|
24838
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_radio_group, {
|
|
24839
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorImage,
|
|
24840
|
+
"onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorImage = $event),
|
|
24841
|
+
onChange: _cache[8] || (_cache[8] = $event => paramsChanged('colorImage'))
|
|
24842
|
+
}, {
|
|
24843
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)(colorImages, (item, index) => {
|
|
24844
|
+
return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_radio, {
|
|
24845
|
+
key: index,
|
|
24846
|
+
label: index
|
|
24847
|
+
}, {
|
|
24848
|
+
default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("img", {
|
|
24849
|
+
class: "kq3d-slope-aspect-analysis-legend",
|
|
24850
|
+
src: item.src,
|
|
24851
|
+
alt: ""
|
|
24852
|
+
}, null, 8
|
|
24853
|
+
/* PROPS */
|
|
24854
|
+
, SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_8)]),
|
|
24855
|
+
_: 2
|
|
24856
|
+
/* DYNAMIC */
|
|
24857
|
+
|
|
24858
|
+
}, 1032
|
|
24859
|
+
/* PROPS, DYNAMIC_SLOTS */
|
|
24860
|
+
, ["label"]);
|
|
24861
|
+
}), 64
|
|
24862
|
+
/* STABLE_FRAGMENT */
|
|
24863
|
+
))]),
|
|
24864
|
+
_: 1
|
|
24865
|
+
/* STABLE */
|
|
24866
|
+
|
|
24867
|
+
}, 8
|
|
24868
|
+
/* PROPS */
|
|
24869
|
+
, ["modelValue"])]),
|
|
24870
|
+
_: 1
|
|
24871
|
+
/* STABLE */
|
|
24872
|
+
|
|
24873
|
+
}, 8
|
|
24874
|
+
/* PROPS */
|
|
24875
|
+
, ["label"])]),
|
|
24876
|
+
_: 1
|
|
24877
|
+
/* STABLE */
|
|
24878
|
+
|
|
24879
|
+
})])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).fillStyle === 'slopeFilter' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_9, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
24880
|
+
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, {
|
|
24881
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).minSlope
|
|
24882
|
+
}, {
|
|
24883
|
+
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_row, {
|
|
24884
|
+
style: {
|
|
24885
|
+
"display": "flex"
|
|
24886
|
+
}
|
|
24887
|
+
}, {
|
|
24888
|
+
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_col, {
|
|
24889
|
+
span: 16
|
|
24890
|
+
}, {
|
|
24891
|
+
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_slider, {
|
|
24892
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minSlope,
|
|
24893
|
+
"onUpdate:modelValue": _cache[9] || (_cache[9] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minSlope = $event),
|
|
24894
|
+
step: 1,
|
|
24895
|
+
min: 0,
|
|
24896
|
+
max: 90,
|
|
24897
|
+
onInput: _cache[10] || (_cache[10] = $event => paramsChanged('minSlope'))
|
|
24898
|
+
}, null, 8
|
|
24899
|
+
/* PROPS */
|
|
24900
|
+
, ["modelValue"])]),
|
|
24901
|
+
_: 1
|
|
24902
|
+
/* STABLE */
|
|
24903
|
+
|
|
24904
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
24905
|
+
span: 8
|
|
24906
|
+
}, {
|
|
24907
|
+
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_input_number, {
|
|
24908
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minSlope,
|
|
24909
|
+
"onUpdate:modelValue": _cache[11] || (_cache[11] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minSlope = $event),
|
|
24910
|
+
step: 1,
|
|
24911
|
+
min: 0,
|
|
24912
|
+
max: 90,
|
|
24913
|
+
"controls-position": "right",
|
|
24914
|
+
onInput: _cache[12] || (_cache[12] = $event => paramsChanged('minSlope'))
|
|
24915
|
+
}, null, 8
|
|
24916
|
+
/* PROPS */
|
|
24917
|
+
, ["modelValue"])]),
|
|
24918
|
+
_: 1
|
|
24919
|
+
/* STABLE */
|
|
24920
|
+
|
|
24921
|
+
})]),
|
|
24922
|
+
_: 1
|
|
24923
|
+
/* STABLE */
|
|
24924
|
+
|
|
24925
|
+
})]),
|
|
24926
|
+
_: 1
|
|
24927
|
+
/* STABLE */
|
|
24928
|
+
|
|
24929
|
+
}, 8
|
|
24930
|
+
/* PROPS */
|
|
24931
|
+
, ["label"])]),
|
|
24932
|
+
_: 1
|
|
24933
|
+
/* STABLE */
|
|
24934
|
+
|
|
24935
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
24936
|
+
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, {
|
|
24937
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).maxSlope
|
|
24938
|
+
}, {
|
|
24939
|
+
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_row, {
|
|
24940
|
+
style: {
|
|
24941
|
+
"display": "flex"
|
|
24942
|
+
}
|
|
24943
|
+
}, {
|
|
24944
|
+
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_col, {
|
|
24945
|
+
span: 16
|
|
24946
|
+
}, {
|
|
24947
|
+
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_slider, {
|
|
24948
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxSlope,
|
|
24949
|
+
"onUpdate:modelValue": _cache[13] || (_cache[13] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxSlope = $event),
|
|
24950
|
+
step: 1,
|
|
24951
|
+
min: 0,
|
|
24952
|
+
max: 90,
|
|
24953
|
+
onInput: _cache[14] || (_cache[14] = $event => paramsChanged('maxSlope'))
|
|
24954
|
+
}, null, 8
|
|
24955
|
+
/* PROPS */
|
|
24956
|
+
, ["modelValue"])]),
|
|
24957
|
+
_: 1
|
|
24958
|
+
/* STABLE */
|
|
24959
|
+
|
|
24960
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
24961
|
+
span: 8
|
|
24962
|
+
}, {
|
|
24963
|
+
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_input_number, {
|
|
24964
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxSlope,
|
|
24965
|
+
"onUpdate:modelValue": _cache[15] || (_cache[15] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxSlope = $event),
|
|
24966
|
+
step: 1,
|
|
24967
|
+
min: 0,
|
|
24968
|
+
max: 90,
|
|
24969
|
+
"controls-position": "right",
|
|
24970
|
+
onInput: _cache[16] || (_cache[16] = $event => paramsChanged('maxSlope'))
|
|
24971
|
+
}, null, 8
|
|
24972
|
+
/* PROPS */
|
|
24973
|
+
, ["modelValue"])]),
|
|
24974
|
+
_: 1
|
|
24975
|
+
/* STABLE */
|
|
24976
|
+
|
|
24977
|
+
})]),
|
|
24978
|
+
_: 1
|
|
24979
|
+
/* STABLE */
|
|
24980
|
+
|
|
24981
|
+
})]),
|
|
24982
|
+
_: 1
|
|
24983
|
+
/* STABLE */
|
|
24984
|
+
|
|
24985
|
+
}, 8
|
|
24986
|
+
/* PROPS */
|
|
24987
|
+
, ["label"])]),
|
|
24988
|
+
_: 1
|
|
24989
|
+
/* STABLE */
|
|
24990
|
+
|
|
24991
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
|
|
24992
|
+
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, {
|
|
24993
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).transparents
|
|
24994
|
+
}, {
|
|
24995
|
+
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_row, {
|
|
24996
|
+
style: {
|
|
24997
|
+
"display": "flex"
|
|
24998
|
+
}
|
|
24999
|
+
}, {
|
|
25000
|
+
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_col, {
|
|
25001
|
+
span: 16
|
|
25002
|
+
}, {
|
|
25003
|
+
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_slider, {
|
|
25004
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).slopeColorAlpha,
|
|
25005
|
+
"onUpdate:modelValue": _cache[17] || (_cache[17] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).slopeColorAlpha = $event),
|
|
25006
|
+
min: 0,
|
|
25007
|
+
max: 1,
|
|
25008
|
+
step: 0.01,
|
|
25009
|
+
onInput: _cache[18] || (_cache[18] = $event => paramsChanged('slopeColorAlpha'))
|
|
25010
|
+
}, null, 8
|
|
25011
|
+
/* PROPS */
|
|
25012
|
+
, ["modelValue", "step"])]),
|
|
25013
|
+
_: 1
|
|
25014
|
+
/* STABLE */
|
|
25015
|
+
|
|
25016
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
|
|
25017
|
+
span: 8
|
|
25018
|
+
}, {
|
|
25019
|
+
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_input_number, {
|
|
25020
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).slopeColorAlpha,
|
|
25021
|
+
"onUpdate:modelValue": _cache[19] || (_cache[19] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).slopeColorAlpha = $event),
|
|
25022
|
+
min: 0,
|
|
25023
|
+
max: 1,
|
|
25024
|
+
step: 0.01,
|
|
25025
|
+
"controls-position": "right",
|
|
25026
|
+
onInput: _cache[20] || (_cache[20] = $event => paramsChanged('slopeColorAlpha'))
|
|
25027
|
+
}, null, 8
|
|
25028
|
+
/* PROPS */
|
|
25029
|
+
, ["modelValue", "step"])]),
|
|
25030
|
+
_: 1
|
|
25031
|
+
/* STABLE */
|
|
25032
|
+
|
|
25033
|
+
})]),
|
|
25034
|
+
_: 1
|
|
25035
|
+
/* STABLE */
|
|
25036
|
+
|
|
25037
|
+
})]),
|
|
25038
|
+
_: 1
|
|
25039
|
+
/* STABLE */
|
|
25040
|
+
|
|
25041
|
+
}, 8
|
|
25042
|
+
/* PROPS */
|
|
25043
|
+
, ["label"])]),
|
|
25044
|
+
_: 1
|
|
25045
|
+
/* STABLE */
|
|
25046
|
+
|
|
25047
|
+
}), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
|
|
25048
|
+
style: {
|
|
25049
|
+
"padding-bottom": "8px"
|
|
25050
|
+
}
|
|
25051
|
+
}, {
|
|
25052
|
+
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, {
|
|
25053
|
+
label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).color
|
|
25054
|
+
}, {
|
|
25055
|
+
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_color_picker, {
|
|
25056
|
+
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).slopeColorText,
|
|
25057
|
+
"onUpdate:modelValue": _cache[21] || (_cache[21] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).slopeColorText = $event),
|
|
25058
|
+
onChange: _cache[22] || (_cache[22] = $event => paramsChanged('slopeColorText'))
|
|
25059
|
+
}, null, 8
|
|
25060
|
+
/* PROPS */
|
|
25061
|
+
, ["modelValue"])]),
|
|
25062
|
+
_: 1
|
|
25063
|
+
/* STABLE */
|
|
25064
|
+
|
|
25065
|
+
}, 8
|
|
25066
|
+
/* PROPS */
|
|
25067
|
+
, ["label"])]),
|
|
25068
|
+
_: 1
|
|
25069
|
+
/* STABLE */
|
|
25070
|
+
|
|
25071
|
+
})])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)]),
|
|
25072
|
+
_: 1
|
|
25073
|
+
/* STABLE */
|
|
25074
|
+
|
|
25075
|
+
}, 8
|
|
25076
|
+
/* PROPS */
|
|
25077
|
+
, ["label-width"])]),
|
|
25078
|
+
_: 1
|
|
25079
|
+
/* STABLE */
|
|
25080
|
+
|
|
25081
|
+
}, 8
|
|
25082
|
+
/* PROPS */
|
|
25083
|
+
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse_item, {
|
|
25084
|
+
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).aspectAnalysisSettings,
|
|
25085
|
+
name: "aspect",
|
|
25086
|
+
class: "kq3d-slope-aspect-analysis-collapse-item"
|
|
23674
25087
|
}, {
|
|
23675
25088
|
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, {
|
|
23676
25089
|
"label-width": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? '90px' : '120px',
|
|
@@ -23690,11 +25103,11 @@ const AspectAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
23690
25103
|
}, {
|
|
23691
25104
|
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_slider, {
|
|
23692
25105
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).interval,
|
|
23693
|
-
"onUpdate:modelValue": _cache[
|
|
25106
|
+
"onUpdate:modelValue": _cache[23] || (_cache[23] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).interval = $event),
|
|
23694
25107
|
step: 1,
|
|
23695
25108
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minInterval,
|
|
23696
25109
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxInterval,
|
|
23697
|
-
onInput: _cache[
|
|
25110
|
+
onInput: _cache[24] || (_cache[24] = $event => paramsChanged('interval'))
|
|
23698
25111
|
}, null, 8
|
|
23699
25112
|
/* PROPS */
|
|
23700
25113
|
, ["modelValue", "min", "max"])]),
|
|
@@ -23706,12 +25119,12 @@ const AspectAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
23706
25119
|
}, {
|
|
23707
25120
|
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_input_number, {
|
|
23708
25121
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).interval,
|
|
23709
|
-
"onUpdate:modelValue": _cache[
|
|
25122
|
+
"onUpdate:modelValue": _cache[25] || (_cache[25] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).interval = $event),
|
|
23710
25123
|
step: 1,
|
|
23711
25124
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minInterval,
|
|
23712
25125
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxInterval,
|
|
23713
25126
|
"controls-position": "right",
|
|
23714
|
-
onInput: _cache[
|
|
25127
|
+
onInput: _cache[26] || (_cache[26] = $event => paramsChanged('interval'))
|
|
23715
25128
|
}, null, 8
|
|
23716
25129
|
/* PROPS */
|
|
23717
25130
|
, ["modelValue", "min", "max"])]),
|
|
@@ -23746,11 +25159,11 @@ const AspectAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
23746
25159
|
}, {
|
|
23747
25160
|
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_slider, {
|
|
23748
25161
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowWidth,
|
|
23749
|
-
"onUpdate:modelValue": _cache[
|
|
25162
|
+
"onUpdate:modelValue": _cache[27] || (_cache[27] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowWidth = $event),
|
|
23750
25163
|
step: 1,
|
|
23751
25164
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minArrowWidth,
|
|
23752
25165
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxArrowWidth,
|
|
23753
|
-
onInput: _cache[
|
|
25166
|
+
onInput: _cache[28] || (_cache[28] = $event => paramsChanged('arrowWidth'))
|
|
23754
25167
|
}, null, 8
|
|
23755
25168
|
/* PROPS */
|
|
23756
25169
|
, ["modelValue", "min", "max"])]),
|
|
@@ -23762,12 +25175,12 @@ const AspectAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
23762
25175
|
}, {
|
|
23763
25176
|
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_input_number, {
|
|
23764
25177
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowWidth,
|
|
23765
|
-
"onUpdate:modelValue": _cache[
|
|
25178
|
+
"onUpdate:modelValue": _cache[29] || (_cache[29] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowWidth = $event),
|
|
23766
25179
|
step: 1,
|
|
23767
25180
|
min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minArrowWidth,
|
|
23768
25181
|
max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxArrowWidth,
|
|
23769
25182
|
"controls-position": "right",
|
|
23770
|
-
onInput: _cache[
|
|
25183
|
+
onInput: _cache[30] || (_cache[30] = $event => paramsChanged('arrowWidth'))
|
|
23771
25184
|
}, null, 8
|
|
23772
25185
|
/* PROPS */
|
|
23773
25186
|
, ["modelValue", "min", "max"])]),
|
|
@@ -23794,8 +25207,8 @@ const AspectAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
23794
25207
|
}, {
|
|
23795
25208
|
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_color_picker, {
|
|
23796
25209
|
modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowColor,
|
|
23797
|
-
"onUpdate:modelValue": _cache[
|
|
23798
|
-
onChange: _cache[
|
|
25210
|
+
"onUpdate:modelValue": _cache[31] || (_cache[31] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowColor = $event),
|
|
25211
|
+
onChange: _cache[32] || (_cache[32] = $event => paramsChanged('arrowColor'))
|
|
23799
25212
|
}, null, 8
|
|
23800
25213
|
/* PROPS */
|
|
23801
25214
|
, ["modelValue"])]),
|
|
@@ -23826,8 +25239,8 @@ const AspectAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
23826
25239
|
|
|
23827
25240
|
}, 8
|
|
23828
25241
|
/* PROPS */
|
|
23829
|
-
, ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div",
|
|
23830
|
-
onClick: _cache[
|
|
25242
|
+
, ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", SlopeAspectAnalysisvue_type_script_setup_true_lang_js_hoisted_10, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
25243
|
+
onClick: _cache[33] || (_cache[33] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startAnalysis(), ["stop"])),
|
|
23831
25244
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startAnalysis,
|
|
23832
25245
|
type: "primary"
|
|
23833
25246
|
}, {
|
|
@@ -23840,7 +25253,7 @@ const AspectAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
23840
25253
|
}, 8
|
|
23841
25254
|
/* PROPS */
|
|
23842
25255
|
, ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
|
|
23843
|
-
onClick: _cache[
|
|
25256
|
+
onClick: _cache[34] || (_cache[34] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clearResult(), ["stop"])),
|
|
23844
25257
|
title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult
|
|
23845
25258
|
}, {
|
|
23846
25259
|
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).clearResult), 1
|
|
@@ -23858,23 +25271,23 @@ const AspectAnalysisvue_type_script_setup_true_lang_js_default_ = {
|
|
|
23858
25271
|
}
|
|
23859
25272
|
|
|
23860
25273
|
}));
|
|
23861
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
25274
|
+
;// CONCATENATED MODULE: ./src/webgl/slopeaspectanalysis/SlopeAspectAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
23862
25275
|
|
|
23863
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
25276
|
+
;// CONCATENATED MODULE: ./src/webgl/slopeaspectanalysis/SlopeAspectAnalysis.vue
|
|
23864
25277
|
|
|
23865
25278
|
|
|
23866
25279
|
|
|
23867
|
-
const
|
|
25280
|
+
const SlopeAspectAnalysis_exports_ = SlopeAspectAnalysisvue_type_script_setup_true_lang_js;
|
|
23868
25281
|
|
|
23869
|
-
/* harmony default export */ var
|
|
23870
|
-
;// CONCATENATED MODULE: ./src/webgl/
|
|
25282
|
+
/* harmony default export */ var SlopeAspectAnalysis = (SlopeAspectAnalysis_exports_);
|
|
25283
|
+
;// CONCATENATED MODULE: ./src/webgl/slopeaspectanalysis/index.js
|
|
23871
25284
|
|
|
23872
25285
|
|
|
23873
25286
|
|
|
23874
25287
|
|
|
23875
|
-
|
|
25288
|
+
SlopeAspectAnalysis.install = (Vue, opts) => {
|
|
23876
25289
|
init_js_default()(Vue, opts);
|
|
23877
|
-
Vue.component(
|
|
25290
|
+
Vue.component(SlopeAspectAnalysis.name, SlopeAspectAnalysis);
|
|
23878
25291
|
};
|
|
23879
25292
|
|
|
23880
25293
|
|
|
@@ -41032,6 +42445,9 @@ GeologicalBodyAnalysis.install = (Vue, opts) => {
|
|
|
41032
42445
|
|
|
41033
42446
|
|
|
41034
42447
|
|
|
42448
|
+
// 坡度坡向分析
|
|
42449
|
+
|
|
42450
|
+
|
|
41035
42451
|
|
|
41036
42452
|
|
|
41037
42453
|
|
|
@@ -41112,7 +42528,8 @@ const webglComponents = {
|
|
|
41112
42528
|
Kq3dTerrainProfileAnalysis: TerrainProfileAnalysis,
|
|
41113
42529
|
Kq3dScanEffect: ScanEffect,
|
|
41114
42530
|
Kq3dModelExcavate: ModelExcavate,
|
|
41115
|
-
Kq3dModelFlat: ModelFlat
|
|
42531
|
+
Kq3dModelFlat: ModelFlat,
|
|
42532
|
+
Kq3dSlopeAspectAnalysis: SlopeAspectAnalysis
|
|
41116
42533
|
}; // 全局引入
|
|
41117
42534
|
|
|
41118
42535
|
const install = function (Vue, opts = {}) {
|