@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.
@@ -17335,6 +17335,22 @@ const _hoisted_32 = {
17335
17335
  const _hoisted_33 = {
17336
17336
  class: "res"
17337
17337
  };
17338
+ const _hoisted_34 = {
17339
+ class: "tit"
17340
+ };
17341
+ const _hoisted_35 = {
17342
+ class: "res"
17343
+ };
17344
+ const _hoisted_36 = {
17345
+ key: 3,
17346
+ class: "result"
17347
+ };
17348
+ const _hoisted_37 = {
17349
+ class: "tit"
17350
+ };
17351
+ const _hoisted_38 = {
17352
+ class: "res"
17353
+ };
17338
17354
 
17339
17355
 
17340
17356
 
@@ -17398,6 +17414,7 @@ const __default__ = {
17398
17414
 
17399
17415
  let isActive = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
17400
17416
  let isResult = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
17417
+ let isTips = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
17401
17418
  let distanceValue = null; // 默认显示距离的单位
17402
17419
 
17403
17420
  let distanceUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.distanceUnit || ""); // 海里单位选择
@@ -17405,7 +17422,7 @@ const __default__ = {
17405
17422
  let nauticalMileUnit = props.settingParams && props.settingParams.nauticalMileUnit || "nmi"; // 面积单位
17406
17423
 
17407
17424
  let areaUnit = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.settingParams && props.settingParams.areaUnit || "");
17408
- let result = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("0");
17425
+ let result = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(0);
17409
17426
  let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
17410
17427
  let mode = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("space");
17411
17428
  let modeList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
@@ -17511,7 +17528,10 @@ const __default__ = {
17511
17528
  }
17512
17529
  } else if (measureType.value === "azimuth" && res) {
17513
17530
  if (res.positions && res.positions.length > 0) {
17514
- result.value = res.azimuth.toFixed(4) + " °";
17531
+ result.value = {
17532
+ azimuth: res.azimuth.toFixed(4),
17533
+ distance: res.distance.toFixed(2)
17534
+ };
17515
17535
  } else result.value = 0;
17516
17536
  } else if (measureType.value === "slope" && res) {
17517
17537
  if (res.positions && res.positions.length > 0) {
@@ -17536,8 +17556,6 @@ const __default__ = {
17536
17556
  };
17537
17557
  }
17538
17558
 
17539
- viewModel.stopMeasure();
17540
-
17541
17559
  if (res.measureResult && res.measureResult.labels && res.measureResult.labels.length > 0) {
17542
17560
  res.measureResult.labels._labels.forEach(label => {
17543
17561
  label.text = label.text.replace('X', language.value.longitude).replace('Y', language.value.latitude).replace('Z', language.value.elevation).replace(/\n/g, '°\n');
@@ -17552,12 +17570,52 @@ const __default__ = {
17552
17570
  });
17553
17571
  viewModel.activeEvent.addEventListener(function (active) {
17554
17572
  if (!active) {
17555
- isActive.value = null;
17573
+ // isActive.value = null;
17574
+ isTips.value = false;
17575
+ if (result.value === 0) return;
17556
17576
  if (measureType.value === "height" && result.value.angle === 0) return;
17557
17577
  if (measureType.value === "azimuth" && result.value === 0) return;
17558
17578
  isResult.value = true;
17559
17579
  }
17560
17580
  });
17581
+ let handler = new Cesium.ScreenSpaceEventHandler(scenceView._viewer.scene.canvas);
17582
+ handler.setInputAction(function () {
17583
+ if (!viewModel._measureHandler.active) return;
17584
+ let isDrawing = viewModel._measureHandler.isDrawing;
17585
+
17586
+ if (!isDrawing) {
17587
+ let measureResults = viewModel._measureHandler.measureResults;
17588
+
17589
+ if (measureResults && measureResults.length > 0) {
17590
+ measureResults[0].destroy();
17591
+ }
17592
+
17593
+ if (measureType.value === "coordinate") {
17594
+ isTips.value = false;
17595
+ isResult.value = true;
17596
+ } else {
17597
+ isTips.value = true;
17598
+ isResult.value = false;
17599
+ }
17600
+ }
17601
+
17602
+ if (isDrawing) {
17603
+ if (measureType.value !== 'distance' && measureType.value !== 'area') {
17604
+ continueMeasure();
17605
+ }
17606
+ }
17607
+ }, Cesium.ScreenSpaceEventType.LEFT_CLICK);
17608
+ handler.setInputAction(function () {
17609
+ let isDrawing = viewModel._measureHandler.isDrawing;
17610
+
17611
+ if (!isDrawing) {
17612
+ isActive.value = null;
17613
+ viewModel.stopMeasure();
17614
+ } else {
17615
+ continueMeasure();
17616
+ }
17617
+ }, Cesium.ScreenSpaceEventType.RIGHT_CLICK);
17618
+ window.measureClickHandler = handler;
17561
17619
  }
17562
17620
  });
17563
17621
  }); // 经纬度转度分秒
@@ -17684,6 +17742,11 @@ const __default__ = {
17684
17742
 
17685
17743
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
17686
17744
  clearMeasure();
17745
+
17746
+ if (window.measureClickHandler) {
17747
+ window.measureClickHandler.removeInputAction(Cesium.ScreenSpaceEventType.LEFT_CLICK);
17748
+ window.measureClickHandler.removeInputAction(Cesium.ScreenSpaceEventType.RIGHT_CLICK);
17749
+ }
17687
17750
  }); //开始测量
17688
17751
 
17689
17752
  function startMeasure(type) {
@@ -17708,6 +17771,8 @@ const __default__ = {
17708
17771
  }
17709
17772
 
17710
17773
  viewModel.clear();
17774
+ result.value = 0;
17775
+ isTips.value = true;
17711
17776
  isResult.value = false;
17712
17777
  measureType.value = type;
17713
17778
  isActive.value = type;
@@ -17746,6 +17811,44 @@ const __default__ = {
17746
17811
  break;
17747
17812
  }
17748
17813
  }
17814
+
17815
+ function continueMeasure() {
17816
+ setTimeout(() => {
17817
+ switch (measureType.value) {
17818
+ case "distance":
17819
+ viewModel.distanceMeasure(mode.value);
17820
+ break;
17821
+
17822
+ case "area":
17823
+ viewModel.areaMeasure(mode.value);
17824
+ break;
17825
+
17826
+ case "height":
17827
+ viewModel.heightMeasure();
17828
+ break;
17829
+
17830
+ case "coordinate":
17831
+ viewModel.coordinateMeasure();
17832
+ break;
17833
+
17834
+ case "azimuth":
17835
+ viewModel.azimuthMeasure();
17836
+ break;
17837
+
17838
+ case "slope":
17839
+ if (mode.value === "ground") {
17840
+ viewModel.terrainSlopeMeasure();
17841
+ } else if (mode.value === "model") {
17842
+ viewModel.sceneSlopeMeasure();
17843
+ }
17844
+
17845
+ break;
17846
+
17847
+ default:
17848
+ break;
17849
+ }
17850
+ }, 300);
17851
+ }
17749
17852
  /**
17750
17853
  * 清除测量
17751
17854
  */
@@ -17755,6 +17858,7 @@ const __default__ = {
17755
17858
  viewModel && viewModel.clear();
17756
17859
  measureType.value = null;
17757
17860
  isActive.value = null;
17861
+ isTips.value = false;
17758
17862
  isResult.value = false;
17759
17863
  }
17760
17864
 
@@ -17792,8 +17896,7 @@ const __default__ = {
17792
17896
  /* TEXT */
17793
17897
  ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_select, {
17794
17898
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode),
17795
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(mode) ? mode.value = $event : mode = $event),
17796
- disabled: !!(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive)
17899
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(mode) ? mode.value = $event : mode = $event)
17797
17900
  }, {
17798
17901
  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 => {
17799
17902
  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, {
@@ -17811,7 +17914,7 @@ const __default__ = {
17811
17914
 
17812
17915
  }, 8
17813
17916
  /* PROPS */
17814
- , ["modelValue", "disabled"])])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_5, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
17917
+ , ["modelValue"])])]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_5, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
17815
17918
  onClick: _cache[1] || (_cache[1] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('distance'), ["stop"])),
17816
17919
  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),
17817
17920
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).distance
@@ -17939,7 +18042,7 @@ const __default__ = {
17939
18042
 
17940
18043
  }, 8
17941
18044
  /* PROPS */
17942
- , ["onClick", "title"])]), !!(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _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", _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
18045
+ , ["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", _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", _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
17943
18046
  /* TEXT */
17944
18047
  )) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("p", _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
17945
18048
  /* TEXT */
@@ -18019,9 +18122,17 @@ const __default__ = {
18019
18122
  /* TEXT */
18020
18123
  ), (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
18021
18124
  /* TEXT */
18022
- )])) : ((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)[(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType)]), 1
18125
+ )])) : (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
18023
18126
  /* TEXT */
18024
- ), (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
18127
+ ), (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
18128
+ /* TEXT */
18129
+ ), (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
18130
+ /* TEXT */
18131
+ ), (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
18132
+ /* TEXT */
18133
+ )])) : ((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
18134
+ /* TEXT */
18135
+ ), (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
18025
18136
  /* TEXT */
18026
18137
  )]))])])])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)])], 2
18027
18138
  /* CLASS */
@@ -31166,18 +31277,23 @@ class SlopeAnalysisViewModel {
31166
31277
  // this._globaOptions.viewer.scene.globe.enableLighting = true;
31167
31278
 
31168
31279
  this._globaOptions._drawManager = scenceView._drawManager;
31169
- var that = this;
31170
- that._slopeAnalysis = new Cesium.Kq3dSlope({
31171
- viewer: that._globaOptions.viewer,
31172
- positions: [new Cesium.Cartesian3(528486.4951355414, 5591866.071664512, 3011848.5874731047), new Cesium.Cartesian3(511851.92328430264, 5590161.386242805, 3017839.604729828), new Cesium.Cartesian3(512863.7934440037, 5579087.150988879, 3037957.9974059854), new Cesium.Cartesian3(526764.7827270611, 5574253.865524863, 3044401.4321003747), new Cesium.Cartesian3(544782.217496756, 5578126.194618411, 3034189.5478781504), new Cesium.Cartesian3(546626.3798432688, 5588179.698741777, 3015426.663665117)],
31173
- isFilter: false,
31174
- colorTableDegree: that._globaOptions.viewModel.colorTableDegree,
31175
- colorTable: that._globaOptions.viewModel.colorTable
31176
- });
31177
-
31178
- that._slopeAnalysis.destroy();
31280
+ var that = this; // that._slopeAnalysis = new Cesium.Kq3dSlope({
31281
+ // viewer: that._globaOptions.viewer,
31282
+ // positions: [
31283
+ // new Cesium.Cartesian3(528486.4951355414, 5591866.071664512, 3011848.5874731047),
31284
+ // new Cesium.Cartesian3(511851.92328430264, 5590161.386242805, 3017839.604729828),
31285
+ // new Cesium.Cartesian3(512863.7934440037, 5579087.150988879, 3037957.9974059854),
31286
+ // new Cesium.Cartesian3(526764.7827270611, 5574253.865524863, 3044401.4321003747),
31287
+ // new Cesium.Cartesian3(544782.217496756, 5578126.194618411, 3034189.5478781504),
31288
+ // new Cesium.Cartesian3(546626.3798432688, 5588179.698741777, 3015426.663665117)
31289
+ // ],
31290
+ // isFilter: false,
31291
+ // colorTableDegree: that._globaOptions.viewModel.colorTableDegree,
31292
+ // colorTable: that._globaOptions.viewModel.colorTable
31293
+ // });
31294
+ // that._slopeAnalysis.destroy();
31295
+ // that._slopeAnalysis = null;
31179
31296
 
31180
- that._slopeAnalysis = null;
31181
31297
  this._globaOptions._drawFinishedEventListener = this._globaOptions._drawManager.drawFinishedEvent.addEventListener(shape => {
31182
31298
  if (shape) {
31183
31299
  that._globaOptions.viewModel.positions = shape._controlPoints; // 实例化分析对象
@@ -32219,125 +32335,1454 @@ SlopeAnalysis.install = (Vue, opts) => {
32219
32335
 
32220
32336
  /***/ }),
32221
32337
 
32222
- /***/ 6311:
32338
+ /***/ 9643:
32223
32339
  /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
32224
32340
 
32225
32341
  "use strict";
32226
- /* harmony export */ __webpack_require__.d(__webpack_exports__, {
32227
- /* harmony export */ "Z": function() { return /* binding */ StatusBarViewModel; }
32228
- /* harmony export */ });
32229
- /* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
32230
32342
 
32231
- // 地图状态栏逻辑类
32232
- class StatusBarViewModel {
32233
- constructor(viewer, options) {
32234
- (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
32343
+ // EXPORTS
32344
+ __webpack_require__.d(__webpack_exports__, {
32345
+ "default": function() { return /* reexport */ SlopeAspectAnalysis; }
32346
+ });
32235
32347
 
32236
- viewer.statusBar.show = true;
32237
- let callback = viewer.statusBar.readyPromise.then || viewer.statusBar.readyPromise.resolve;
32238
- callback(() => {
32239
- // viewer.statusBar.container.style.bottom = "16px";
32240
- //viewer.statusBar.container.parentElement.style.right = "0px!important";
32241
- // console.log(viewer.statusBar.container.parentElement.style.right);
32242
- if (options.hideResolution) {
32243
- viewer.statusBar.hideResolution();
32244
- }
32348
+ // UNUSED EXPORTS: SlopeAspectAnalysisViewModel
32245
32349
 
32246
- if (options.hideScale) {
32247
- viewer.statusBar.hideScale();
32248
- }
32350
+ // EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
32351
+ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
32352
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
32353
+ var gis_utils_ = __webpack_require__(7135);
32354
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
32355
+ var defineProperty = __webpack_require__(8270);
32356
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
32357
+ var const_image_ = __webpack_require__(6277);
32358
+ // EXTERNAL MODULE: ./src/common/_ui/message/index.js + 1 modules
32359
+ var message = __webpack_require__(3694);
32360
+ ;// CONCATENATED MODULE: ./src/webgl/slopeaspectanalysis/SlopeAspectAnalysisViewModel.js
32249
32361
 
32250
- if (options.hideLonLat) {
32251
- viewer.statusBar.hideLonLat();
32252
- }
32362
+ // 分析逻辑类
32253
32363
 
32254
- if (options.hideEyeAlt) {
32255
- viewer.statusBar.hideEyeAlt();
32256
- }
32257
32364
 
32258
- if (options.hideCopyright) {
32259
- viewer.statusBar.hideCopyright();
32260
- }
32365
+ class SlopeAspectAnalysisViewModel {
32366
+ // 坡度坡向三维对象
32367
+ // 坡向三维对象
32368
+ //全局参数
32369
+ constructor(scenceView, viewModel) {
32370
+ (0,defineProperty/* default */.Z)(this, "_slopeAnalysis", null);
32261
32371
 
32262
- if (options.copyrightText) {
32263
- viewer.statusBar.setCopyrightText(options.copyrightText);
32264
- }
32372
+ (0,defineProperty/* default */.Z)(this, "_aspectAnalysis", null);
32373
+
32374
+ (0,defineProperty/* default */.Z)(this, "_globaOptions", {
32375
+ viewer: null,
32376
+ _drawManager: null
32265
32377
  });
32266
- this._viewer = viewer;
32267
- }
32268
32378
 
32269
- changeLanguage(lang) {
32270
- var that = this;
32379
+ (0,defineProperty/* default */.Z)(this, "_colorImages", [//渐变图片集合
32380
+ {
32381
+ value: "0",
32382
+ src: const_image_.RED_TO_PURPLE_URL
32383
+ }, {
32384
+ value: "1",
32385
+ src: const_image_.PURPLE_TO_YELLOW_URL
32386
+ }, {
32387
+ value: "2",
32388
+ src: const_image_.GREEN_TO_BLUE_URL
32389
+ }]);
32271
32390
 
32272
- if (that._viewer.statusBar._ready) {
32273
- var originLanguage = that._viewer.statusBar._curLanguage;
32274
- var language = new Cesium.Languages({
32275
- languageStyle: lang == 'zh' ? 'zh-cn' : 'en'
32276
- });
32277
- language.readyPromise.then(function () {
32278
- //loaded success
32279
- that._viewer._language = language;
32280
- var langContent = language.content;
32391
+ this._globaOptions.viewer = scenceView._viewer;
32392
+ this._globaOptions.viewModel = {
32393
+ fillStyle: viewModel.fillStyle,
32394
+ viewer: this._globaOptions.viewer,
32395
+ isFilter: false,
32396
+ // 自定义颜色
32397
+ colorTableDegree: viewModel.colorTableDegree,
32398
+ colorTable: viewModel.colorTable,
32399
+ // 渐变纹理
32400
+ imageSrc: this.getColorLine(viewModel.colorImage),
32401
+ // 坡度过滤
32402
+ minSlope: viewModel.minSlope,
32403
+ maxSlope: viewModel.maxSlope,
32404
+ slopeColorText: viewModel.slopeColorText,
32405
+ slopeColorAlpha: viewModel.slopeColorAlpha,
32406
+ colorImage: this.getImagePath(viewModel.colorImage)
32407
+ };
32408
+ this._globaOptions.viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
32409
+ // this._globaOptions.viewer.scene.globe.enableLighting = true;
32281
32410
 
32282
- if (langContent) {
32283
- that._viewer.statusBar._curLanguage = {
32284
- mUnit: langContent.mUnit,
32285
- kmUnit: langContent.kmUnit,
32286
- sqkmUnit: langContent.sqkmUnit,
32287
- sqmUnit: langContent.sqmUnit,
32288
- N: langContent.N,
32289
- S: langContent.S,
32290
- E: langContent.E,
32291
- W: langContent.W,
32292
- du: langContent.du,
32293
- fen: langContent.fen,
32294
- miao: langContent.miao,
32295
- elevation: langContent.elevation,
32296
- eyeAltitude: langContent.eyeAltitude,
32297
- copyright: langContent.copyright,
32298
- scale: langContent.scale
32299
- };
32300
- var id = that._viewer.statusBar._id; // 比例尺控件
32411
+ this._globaOptions._drawManager = scenceView._drawManager;
32412
+ var that = this; // 坡度对象
32301
32413
 
32302
- html = document.getElementById(id + '_ScaleBarTxt').innerHTML;
32303
- document.getElementById(id + '_ScaleBarTxt').innerHTML = html.replace(originLanguage.scale, langContent.scale); // 比例尺
32414
+ this._aspectAnalysis = new window.Cesium.Kq3dAspect({
32415
+ interval: viewModel.interval || 500,
32416
+ // 采样间隔
32417
+ width: viewModel.arrowWidth || 20,
32418
+ // 箭头宽度
32419
+ color: window.Cesium.Color.fromCssColorString(viewModel.color || "#FFFF00"),
32420
+ // 箭头颜色
32421
+ viewer: scenceView._viewer
32422
+ });
32423
+ this._globaOptions._drawFinishedEventListener = this._globaOptions._drawManager.drawFinishedEvent.addEventListener(shape => {
32424
+ if (shape) {
32425
+ that._globaOptions.viewModel.positions = shape._controlPoints;
32426
+ if (that._aspectAnalysis) that._aspectAnalysis.positions = shape._controlPoints; // 实例化分析对象
32304
32427
 
32305
- html = document.getElementById(id + '_ScaleTxt').innerHTML;
32306
- document.getElementById(id + '_ScaleTxt').innerHTMLhtml = html.replace(originLanguage.kmUnit, langContent.kmUnit).replace(originLanguage.mUnit, langContent.mUnit); // 视点高
32428
+ if (!that._slopeAnalysis) {
32429
+ switch (that._globaOptions.viewModel.fillStyle) {
32430
+ case "tableColor":
32431
+ that._slopeAnalysis = new Cesium.Kq3dSlope({
32432
+ viewer: that._globaOptions.viewer,
32433
+ positions: that._globaOptions.viewModel.positions,
32434
+ isFilter: false,
32435
+ colorTableDegree: that._globaOptions.viewModel.colorTableDegree,
32436
+ colorTable: that._globaOptions.viewModel.colorTable
32437
+ });
32438
+ break;
32307
32439
 
32308
- html = document.getElementById(id + '_CoordEyeAlt').innerHTML;
32309
- document.getElementById(id + '_CoordEyeAlt').innerHTML = html.replace(originLanguage.eyeAltitude, langContent.eyeAltitude).replace(originLanguage.kmUnit, langContent.kmUnit).replace(originLanguage.mUnit, langContent.mUnit); // 高度
32440
+ case "colorImage":
32441
+ that._slopeAnalysis = new Cesium.Kq3dSlope({
32442
+ viewer: that._globaOptions.viewer,
32443
+ positions: that._globaOptions.viewModel.positions,
32444
+ isFilter: false,
32445
+ colorImage: that._globaOptions.viewModel.imageSrc
32446
+ });
32447
+ break;
32310
32448
 
32311
- var html = document.getElementById(id + '_CoordHeight').innerHTML;
32312
- document.getElementById(id + '_CoordHeight').innerHTML = html.replace(originLanguage.kmUnit, langContent.kmUnit).replace(originLanguage.mUnit, langContent.mUnit);
32449
+ case "slopeFilter":
32450
+ that._slopeAnalysis = new Cesium.Kq3dSlope({
32451
+ viewer: that._globaOptions.viewer,
32452
+ positions: that._globaOptions.viewModel.positions,
32453
+ isFilter: true,
32454
+ minSlope: that._globaOptions.viewModel.minSlope,
32455
+ maxSlope: that._globaOptions.viewModel.maxSlope,
32456
+ color: Cesium.Color.fromCssColorString(that._globaOptions.viewModel.slopeColorText).withAlpha(Number(that._globaOptions.viewModel.slopeColorAlpha))
32457
+ });
32458
+ break;
32459
+ }
32460
+ } else {
32461
+ that._slopeAnalysis.positions = that._globaOptions.viewModel.positions;
32313
32462
  }
32314
- });
32315
- }
32316
- }
32317
32463
 
32318
- }
32464
+ that._globaOptions._drawManager.clear();
32465
+ }
32466
+ });
32467
+ } //获取图片路径
32319
32468
 
32320
- /***/ }),
32321
32469
 
32322
- /***/ 6719:
32323
- /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
32470
+ getImagePath(value) {
32471
+ var imagePath = "";
32324
32472
 
32325
- "use strict";
32473
+ var image = this._colorImages.find(item => item.value === value);
32326
32474
 
32327
- // EXPORTS
32328
- __webpack_require__.d(__webpack_exports__, {
32329
- "default": function() { return /* reexport */ StatusBar; }
32330
- });
32475
+ if (image) {
32476
+ imagePath = image.src;
32477
+ }
32331
32478
 
32332
- // UNUSED EXPORTS: StatusBarViewModel
32479
+ return imagePath;
32480
+ } // 开始分析
32333
32481
 
32334
- // EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
32335
- var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
32336
- // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
32337
- var gis_utils_ = __webpack_require__(7135);
32338
- // EXTERNAL MODULE: ./src/webgl/statusbar/StatusBarViewModel.js
32339
- var StatusBarViewModel = __webpack_require__(6311);
32340
- // EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
32482
+
32483
+ start() {
32484
+ // 判断是否添加了地形
32485
+ if (this._globaOptions.viewModel.viewer.terrainProvider.availability) {
32486
+ if (this._globaOptions.viewModel.viewer.terrainProvider instanceof Cesium.CesiumTerrainProvider) {
32487
+ if (this._globaOptions.viewModel.fillStyle === "slopeFilter") {
32488
+ // 坡度过滤不需要进行绘制
32489
+ this._slopeAnalysis = new Cesium.Kq3dSlope({
32490
+ viewer: this._globaOptions.viewer,
32491
+ positions: [],
32492
+ isFilter: true,
32493
+ minSlope: this._globaOptions.viewModel.minSlope,
32494
+ maxSlope: this._globaOptions.viewModel.maxSlope,
32495
+ color: Cesium.Color.fromCssColorString(this._globaOptions.viewModel.slopeColorText).withAlpha(Number(this._globaOptions.viewModel.slopeColorAlpha))
32496
+ });
32497
+ } else {
32498
+ // this.clear();
32499
+ if (this._globaOptions._drawManager) {
32500
+ this._globaOptions._drawManager.startDraw("polygon", {
32501
+ clampToGround: true
32502
+ });
32503
+ }
32504
+ }
32505
+ } else {
32506
+ (0,message/* default */.Z)({
32507
+ message: "只支持STK类型的地形分析!",
32508
+ type: "warning"
32509
+ });
32510
+ }
32511
+ } else {
32512
+ (0,message/* default */.Z)({
32513
+ message: "请加载地形后分析!",
32514
+ type: "warning"
32515
+ });
32516
+ }
32517
+ } //修改填充样式
32518
+
32519
+
32520
+ changeFilltyle(key) {
32521
+ this._globaOptions.viewModel.fillStyle = key;
32522
+ if (!this._slopeAnalysis) return;
32523
+
32524
+ switch (key) {
32525
+ case "tableColor":
32526
+ if (this._slopeAnalysis.isFilter) this._slopeAnalysis.isFilter = false;
32527
+ this._slopeAnalysis.colorImage = null;
32528
+ this._slopeAnalysis.color = null;
32529
+ this._slopeAnalysis.colorTableDegree = this._globaOptions.viewModel.colorTableDegree;
32530
+ this._slopeAnalysis.colorTable = this._globaOptions.viewModel.colorTable;
32531
+ break;
32532
+
32533
+ case "colorImage":
32534
+ if (this._slopeAnalysis.isFilter) this._slopeAnalysis.isFilter = false;
32535
+ this._slopeAnalysis.colorTableDegree = [];
32536
+ this._slopeAnalysis.colorTable = [];
32537
+ this._slopeAnalysis.color = null;
32538
+ this._slopeAnalysis.colorImage = this._globaOptions.viewModel.imageSrc;
32539
+ break;
32540
+
32541
+ case "slopeFilter":
32542
+ this._slopeAnalysis.colorImage = null;
32543
+ this._slopeAnalysis.isFilter = true;
32544
+ 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));
32545
+ break;
32546
+ }
32547
+ } // 设置填充纹理值
32548
+
32549
+
32550
+ setColorTableDegree(newValue) {
32551
+ this._globaOptions.viewModel.colorTableDegree = newValue;
32552
+ if (this._slopeAnalysis) this._slopeAnalysis.colorTableDegree = this._globaOptions.viewModel.colorTableDegree;
32553
+ } // 设置填充纹理颜色
32554
+
32555
+
32556
+ setColorTable(newValue) {
32557
+ this._globaOptions.viewModel.colorTable = newValue;
32558
+ if (this._slopeAnalysis) this._slopeAnalysis.colorTable = this._globaOptions.viewModel.colorTable;
32559
+ } // 设置填充纹理
32560
+
32561
+
32562
+ setColorImage(newValue) {
32563
+ this._globaOptions.viewModel.imageSrc = newValue;
32564
+ if (this._slopeAnalysis) this._slopeAnalysis.colorImage = this._globaOptions.viewModel.imageSrc;
32565
+ } // 设置渐变纹理
32566
+
32567
+
32568
+ getColorLine(key) {
32569
+ var path = "";
32570
+
32571
+ switch (key) {
32572
+ case 0:
32573
+ path = const_image_.RED_TO_PURPLE_URL;
32574
+ break;
32575
+
32576
+ case 1:
32577
+ path = const_image_.PURPLE_TO_YELLOW_URL;
32578
+ break;
32579
+
32580
+ case 2:
32581
+ path = const_image_.GREEN_TO_BLUE_URL;
32582
+ break;
32583
+
32584
+ default:
32585
+ path = const_image_.RED_TO_PURPLE_URL;
32586
+ break;
32587
+ }
32588
+
32589
+ return path;
32590
+ } // 设置坡度过滤样式
32591
+
32592
+
32593
+ setSlopeFilterColor(slopeColorText, slopeColorAlpha) {
32594
+ this._globaOptions.viewModel.slopeColorText = slopeColorText;
32595
+ this._globaOptions.viewModel.slopeColorAlpha = Number(slopeColorAlpha);
32596
+ if (this._slopeAnalysis) this._slopeAnalysis.color = Cesium.Color.fromCssColorString(slopeColorText).withAlpha(Number(slopeColorAlpha));
32597
+ } // 设置最小坡度值
32598
+
32599
+
32600
+ setSlopeFilterMin(newValue) {
32601
+ this._globaOptions.viewModel.minSlope = Number(newValue);
32602
+ if (this._slopeAnalysis) this._slopeAnalysis.minSlope = this._globaOptions.viewModel.minSlope;
32603
+ } // 设置最大坡度值
32604
+
32605
+
32606
+ setSlopeFilterMax(newValue) {
32607
+ this._globaOptions.viewModel.maxSlope = Number(newValue);
32608
+ if (this._slopeAnalysis) this._slopeAnalysis.maxSlope = this._globaOptions.viewModel.maxSlope;
32609
+ } // 设置采样间隔
32610
+
32611
+
32612
+ setInterval(newValue) {
32613
+ if (this._aspectAnalysis) this._aspectAnalysis._interval = newValue;
32614
+ } // 设置箭头宽度
32615
+
32616
+
32617
+ setArrowWidth(newValue) {
32618
+ if (this._aspectAnalysis) this._aspectAnalysis._width = newValue;
32619
+ } // 设置箭头颜色
32620
+
32621
+
32622
+ setArrowColor(newValue) {
32623
+ if (this._aspectAnalysis) this._aspectAnalysis._color = Cesium.Color.fromCssColorString(newValue);
32624
+ } // 清除全部结果
32625
+
32626
+
32627
+ clear() {
32628
+ this._globaOptions._drawManager && this._globaOptions._drawManager.stopDraw();
32629
+ this._slopeAnalysis && this._slopeAnalysis.destroy();
32630
+ this._slopeAnalysis = null;
32631
+ this._aspectAnalysis && this._aspectAnalysis.clear();
32632
+ } // 销毁
32633
+
32634
+
32635
+ destroy() {
32636
+ // 移除监听事件
32637
+ this._globaOptions._drawFinishedEventListener && this._globaOptions._drawFinishedEventListener();
32638
+ this._globaOptions._drawFinishedEventListener = null;
32639
+ this._slopeAnalysis && this._slopeAnalysis.destroy();
32640
+ this._slopeAnalysis = null;
32641
+ this._aspectAnalysis && this._aspectAnalysis.clear();
32642
+ this._aspectAnalysis = null;
32643
+ }
32644
+
32645
+ }
32646
+ // EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
32647
+ var client_icons_vue_ = __webpack_require__(348);
32648
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
32649
+ var util_ = __webpack_require__(3458);
32650
+ // EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
32651
+ var vue_i18n_cjs_js_ = __webpack_require__(7080);
32652
+ ;// 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
32653
+
32654
+ const _hoisted_1 = {
32655
+ class: "kq3d-slope-aspect-analysis-box"
32656
+ };
32657
+ const _hoisted_2 = {
32658
+ key: 0
32659
+ };
32660
+ const _hoisted_3 = {
32661
+ class: "kq3d-slope-aspect-analysis-span"
32662
+ };
32663
+ const _hoisted_4 = {
32664
+ key: 1
32665
+ };
32666
+
32667
+ const _hoisted_5 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", null, "0°", -1
32668
+ /* HOISTED */
32669
+ );
32670
+
32671
+ const _hoisted_6 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
32672
+ class: "kq3d-slope-aspect-analysis-line"
32673
+ }, null, -1
32674
+ /* HOISTED */
32675
+ );
32676
+
32677
+ const _hoisted_7 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", null, "90°", -1
32678
+ /* HOISTED */
32679
+ );
32680
+
32681
+ const _hoisted_8 = ["src"];
32682
+ const _hoisted_9 = {
32683
+ key: 2
32684
+ };
32685
+ const _hoisted_10 = {
32686
+ class: "kq3d-slope-aspect-analysis-footer"
32687
+ };
32688
+
32689
+
32690
+
32691
+
32692
+
32693
+
32694
+
32695
+ const __default__ = {
32696
+ name: "Kq3dSlopeAspectAnalysis"
32697
+ };
32698
+ /* harmony default export */ var SlopeAspectAnalysisvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(__default__, {
32699
+ props: {
32700
+ // 设置参数
32701
+ settingParams: {
32702
+ type: Object
32703
+ },
32704
+ // 是否显示阴影效果
32705
+ showShadow: {
32706
+ type: Boolean,
32707
+ default: true
32708
+ },
32709
+
32710
+ /**
32711
+ * 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
32712
+ */
32713
+ position: [String, Object],
32714
+ // 是否生成HeaderTemp
32715
+ showHeaderTemp: {
32716
+ type: Boolean,
32717
+ default: false
32718
+ },
32719
+ // 是否折叠HeaderTemp,showHeaderTemp为true时生效
32720
+ isCollapseHeaderTemp: {
32721
+ type: Boolean,
32722
+ default: false
32723
+ },
32724
+ // HeaderTemp标题
32725
+ headerTempTitle: {
32726
+ type: String
32727
+ },
32728
+ // HeaderTemp图标
32729
+ headerTempIcon: {
32730
+ type: [Object, String],
32731
+ default: client_icons_vue_.IconSlopeAnalysis
32732
+ },
32733
+ // HeaderTemp Title&Icon的位置
32734
+ isRight: {
32735
+ type: Boolean,
32736
+ default: true
32737
+ }
32738
+ },
32739
+
32740
+ setup(__props, {
32741
+ expose
32742
+ }) {
32743
+ const props = __props;
32744
+ const {
32745
+ proxy
32746
+ } = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
32747
+ let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
32748
+ let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
32749
+ let dataList = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)([{
32750
+ colorTableDegree: 0,
32751
+ colorTable: null
32752
+ }, {
32753
+ colorTableDegree: 10,
32754
+ colorTable: "#00FF00"
32755
+ }, {
32756
+ colorTableDegree: 20,
32757
+ colorTable: "#0000FF"
32758
+ }, {
32759
+ colorTableDegree: 30,
32760
+ colorTable: "#FFFF00"
32761
+ }, {
32762
+ colorTableDegree: 40,
32763
+ colorTable: "#FF7F00"
32764
+ }, {
32765
+ colorTableDegree: 90,
32766
+ colorTable: "#FF0000"
32767
+ }]);
32768
+ const colorImages = [{
32769
+ value: 0,
32770
+ src: const_image_.RED_TO_PURPLE_URL
32771
+ }, {
32772
+ value: 1,
32773
+ src: const_image_.PURPLE_TO_YELLOW_URL
32774
+ }, {
32775
+ value: 2,
32776
+ src: const_image_.GREEN_TO_BLUE_URL
32777
+ }]; //计算属性
32778
+ // 获取组件传参
32779
+ // 分析类
32780
+
32781
+ let viewModel = null; // 默认参数
32782
+
32783
+ let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
32784
+ collapseValue: props.settingParams && props.settingParams.collapseValue || "",
32785
+ // 折叠组件是否折叠,slope:展开坡度设置,aspect:展开破坡向设置
32786
+ fillStyle: props.settingParams && props.settingParams.fillStyle || "tableColor",
32787
+ colorTableDegree: props.settingParams && props.settingParams.colorTableDegree || [10, 20, 30, 40, 90],
32788
+ colorTable: props.settingParams && props.settingParams.colorTable || ["#00FF00", "#0000FF", "#FFFF00", "#FF7F00", "#FF0000"],
32789
+ colorImage: props.settingParams && props.settingParams.colorImage || 0,
32790
+ minSlope: props.settingParams && props.settingParams.minSlope || 10,
32791
+ maxSlope: props.settingParams && props.settingParams.maxSlope || 60,
32792
+ slopeColorAlpha: props.settingParams && props.settingParams.slopeColorAlpha || 0.3,
32793
+ slopeColorText: props.settingParams && props.settingParams.slopeColorText || "#FF0000",
32794
+ // 坡向参数
32795
+ interval: props.settingParams && props.settingParams.interval || 500,
32796
+ // 采样间隔
32797
+ minInterval: props.settingParams && props.settingParams.minInterval || 100,
32798
+ // 采样间隔最小值
32799
+ maxInterval: props.settingParams && props.settingParams.maxInterval || 1000,
32800
+ // 采样间隔最大值
32801
+ arrowWidth: props.settingParams && props.settingParams.arrowWidth || 20,
32802
+ // 箭头宽度
32803
+ minArrowWidth: props.settingParams && props.settingParams.minArrowWidth || 1,
32804
+ // 箭头宽度最小值
32805
+ maxArrowWidth: props.settingParams && props.settingParams.maxArrowWidth || 30,
32806
+ // 箭头宽度最大值
32807
+ arrowColor: props.settingParams && props.settingParams.arrowColor || "#FFFF00" // 箭头颜色
32808
+
32809
+ }); // 组件容器Ref
32810
+
32811
+ let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
32812
+
32813
+ let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
32814
+ let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
32815
+
32816
+ let {
32817
+ locale,
32818
+ messages
32819
+ } = (0,vue_i18n_cjs_js_.useI18n)();
32820
+ let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
32821
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
32822
+ language.value = messages.value[newVal]["webgl"];
32823
+ headerTempTitle.value = language.value.slopeAspectAnalysisTitle;
32824
+ });
32825
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
32826
+ (0,util_.updatePosition)(boxRef.value, props);
32827
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
32828
+ (0,util_.updatePosition)(boxRef.value, props);
32829
+ });
32830
+ watchCreateHeaderTemp();
32831
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
32832
+ watchCreateHeaderTemp();
32833
+ });
32834
+ currentLang.value = proxy.$i18n.locale; // 获取当前语言
32835
+
32836
+ gis_utils_.utils.getWebMap(null, scenceView => {
32837
+ if (scenceView) {
32838
+ refactorArr();
32839
+ viewModel = new SlopeAspectAnalysisViewModel(scenceView, formItem); // var imageUrl = getImagePath(formItem.colorImage);
32840
+ // viewModel.setColorImage(imageUrl);
32841
+ }
32842
+ });
32843
+ });
32844
+ /**
32845
+ * @description 监听header生成
32846
+ */
32847
+
32848
+ const watchCreateHeaderTemp = () => {
32849
+ if (props.showHeaderTemp) {
32850
+ // 生成headerTemp
32851
+ headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
32852
+ }
32853
+ }; // 刷新自定义样式数组
32854
+
32855
+
32856
+ function refactorArr(type) {
32857
+ if (!dataList || !dataList.length) return;
32858
+
32859
+ if (type == "degree") {
32860
+ formItem.colorTableDegree = dataList.map(item => {
32861
+ return item.colorTableDegree;
32862
+ });
32863
+ formItem.colorTableDegree.shift();
32864
+ } else if (type == "color") {
32865
+ formItem.colorTable = dataList.map(item => {
32866
+ return item.colorTable;
32867
+ });
32868
+ formItem.colorTable.shift();
32869
+ }
32870
+ } //获取图片路径
32871
+
32872
+
32873
+ function getImagePath(value) {
32874
+ var imagePath = "";
32875
+ var image = colorImages.find(item => item.value === value);
32876
+
32877
+ if (image) {
32878
+ imagePath = image.src;
32879
+ }
32880
+
32881
+ return imagePath;
32882
+ } // 参数改变
32883
+
32884
+
32885
+ function paramsChanged(key) {
32886
+ switch (key) {
32887
+ case "fillStyle":
32888
+ // 填充样式
32889
+ viewModel.changeFilltyle(formItem.fillStyle);
32890
+ break;
32891
+
32892
+ case "colorTableDegree":
32893
+ // 自定义填充样式区间
32894
+ refactorArr("degree");
32895
+ viewModel.setColorTableDegree(formItem.colorTableDegree);
32896
+ break;
32897
+
32898
+ case "colorTable":
32899
+ // 自定义填充样式颜色
32900
+ refactorArr("color");
32901
+ viewModel.setColorTable(formItem.colorTable);
32902
+ break;
32903
+
32904
+ case "colorImage":
32905
+ // 填充样式
32906
+ var imageUrl = getImagePath(formItem.colorImage);
32907
+ viewModel.setColorImage(imageUrl);
32908
+ break;
32909
+
32910
+ case "minSlope":
32911
+ // 填充样式
32912
+ viewModel.setSlopeFilterMin(formItem.minSlope);
32913
+ break;
32914
+
32915
+ case "maxSlope":
32916
+ // 填充样式
32917
+ viewModel.setSlopeFilterMax(formItem.maxSlope);
32918
+ break;
32919
+
32920
+ case "slopeColorAlpha":
32921
+ // 填充样式
32922
+ viewModel.setSlopeFilterColor(formItem.slopeColorText, formItem.slopeColorAlpha);
32923
+ break;
32924
+
32925
+ case "slopeColorText":
32926
+ // 填充样式
32927
+ viewModel.setSlopeFilterColor(formItem.slopeColorText, formItem.slopeColorAlpha);
32928
+ break;
32929
+
32930
+ case "interval":
32931
+ // 采样间隔
32932
+ viewModel.setInterval(formItem.interval);
32933
+ break;
32934
+
32935
+ case "arrowWidth":
32936
+ // 箭头间隔
32937
+ viewModel.setArrowWidth(formItem.arrowWidth);
32938
+ break;
32939
+
32940
+ case "arrowColor":
32941
+ // 箭头颜色
32942
+ viewModel.setArrowColor(formItem.arrowColor);
32943
+ break;
32944
+
32945
+ default:
32946
+ break;
32947
+ }
32948
+ } // 开始分析
32949
+
32950
+
32951
+ function startAnalysis() {
32952
+ clearResult();
32953
+ viewModel && viewModel.start();
32954
+ } //清除结果
32955
+
32956
+
32957
+ function clearResult() {
32958
+ viewModel && viewModel.clear();
32959
+ } // 销毁
32960
+
32961
+
32962
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
32963
+ viewModel && viewModel.destroy();
32964
+ });
32965
+ expose({
32966
+ refactorArr,
32967
+ getImagePath,
32968
+ paramsChanged,
32969
+ startAnalysis,
32970
+ clearResult
32971
+ });
32972
+ return (_ctx, _cache) => {
32973
+ const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
32974
+
32975
+ const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");
32976
+
32977
+ const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-select");
32978
+
32979
+ const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
32980
+
32981
+ const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
32982
+
32983
+ const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
32984
+
32985
+ const _component_kq_color_picker = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-color-picker");
32986
+
32987
+ const _component_kq_radio = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-radio");
32988
+
32989
+ const _component_kq_radio_group = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-radio-group");
32990
+
32991
+ const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
32992
+
32993
+ const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
32994
+
32995
+ const _component_kq_collapse_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse-item");
32996
+
32997
+ const _component_kq_collapse = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse");
32998
+
32999
+ const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
33000
+
33001
+ return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
33002
+ class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-slope-aspect-analysis", {
33003
+ 'kq-box-shadow': __props.showShadow
33004
+ }]),
33005
+ ref_key: "boxRef",
33006
+ ref: boxRef
33007
+ }, [__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)), {
33008
+ key: 0,
33009
+ ref_key: "headerTempRef",
33010
+ ref: headerTempRef
33011
+ }, null, 512
33012
+ /* NEED_PATCH */
33013
+ )) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.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, {
33014
+ key: 0,
33015
+ class: "kq3d-slope-aspect-analysis-tip"
33016
+ }, {
33017
+ 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
33018
+ /* TEXT */
33019
+ )]),
33020
+ _: 1
33021
+ /* STABLE */
33022
+
33023
+ })) : (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, {
33024
+ "model-value": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).collapseValue
33025
+ }, {
33026
+ 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, {
33027
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).slopeAnalysisSettings,
33028
+ name: "slope"
33029
+ }, {
33030
+ 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, {
33031
+ "label-width": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? '90px' : '120px',
33032
+ "label-position": "left"
33033
+ }, {
33034
+ 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, {
33035
+ style: {
33036
+ "display": "block"
33037
+ }
33038
+ }, {
33039
+ 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, {
33040
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).fillStyle
33041
+ }, {
33042
+ 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, {
33043
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).fillStyle,
33044
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).fillStyle = $event),
33045
+ onChange: _cache[1] || (_cache[1] = $event => paramsChanged('fillStyle'))
33046
+ }, {
33047
+ 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, {
33048
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).customColorScheme,
33049
+ value: "tableColor"
33050
+ }, null, 8
33051
+ /* PROPS */
33052
+ , ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
33053
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).gradientTexture,
33054
+ value: "colorImage"
33055
+ }, null, 8
33056
+ /* PROPS */
33057
+ , ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_option, {
33058
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).slopeFilter,
33059
+ value: "slopeFilter"
33060
+ }, null, 8
33061
+ /* PROPS */
33062
+ , ["label"])]),
33063
+ _: 1
33064
+ /* STABLE */
33065
+
33066
+ }, 8
33067
+ /* PROPS */
33068
+ , ["modelValue"])]),
33069
+ _: 1
33070
+ /* STABLE */
33071
+
33072
+ }, 8
33073
+ /* PROPS */
33074
+ , ["label"])]),
33075
+ _: 1
33076
+ /* STABLE */
33077
+
33078
+ }), (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", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
33079
+ style: {
33080
+ "display": "flex"
33081
+ }
33082
+ }, {
33083
+ 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, {
33084
+ span: 18
33085
+ }, {
33086
+ 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
33087
+ /* TEXT */
33088
+ )]),
33089
+ _: 1
33090
+ /* STABLE */
33091
+
33092
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
33093
+ span: 6
33094
+ }, {
33095
+ 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
33096
+ /* TEXT */
33097
+ )]),
33098
+ _: 1
33099
+ /* STABLE */
33100
+
33101
+ })]),
33102
+ _: 1
33103
+ /* STABLE */
33104
+
33105
+ }), ((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) => {
33106
+ 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, {
33107
+ key: index,
33108
+ style: {
33109
+ "display": "flex",
33110
+ "padding-bottom": "8px"
33111
+ }
33112
+ }, {
33113
+ 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, {
33114
+ key: 0
33115
+ }, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
33116
+ span: 18
33117
+ }, {
33118
+ 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, {
33119
+ key: 0,
33120
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataList)[index - 1].colorTableDegree,
33121
+ "onUpdate:modelValue": $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataList)[index - 1].colorTableDegree = $event,
33122
+ disabled: true,
33123
+ onInput: _cache[2] || (_cache[2] = $event => paramsChanged('colorTableDegree')),
33124
+ "controls-position": "right"
33125
+ }, null, 8
33126
+ /* PROPS */
33127
+ , ["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, {
33128
+ key: 1,
33129
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataList)[index - 1].colorTableDegree,
33130
+ "onUpdate:modelValue": $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataList)[index - 1].colorTableDegree = $event,
33131
+ disabled: true,
33132
+ step: 1,
33133
+ onInput: _cache[3] || (_cache[3] = $event => paramsChanged('colorTableDegree')),
33134
+ "controls-position": "right"
33135
+ }, null, 8
33136
+ /* PROPS */
33137
+ , ["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", _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
33138
+ /* TEXT */
33139
+ ), 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, {
33140
+ key: 2,
33141
+ modelValue: item.colorTableDegree,
33142
+ "onUpdate:modelValue": $event => item.colorTableDegree = $event,
33143
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataList)[index - 1].colorTableDegree,
33144
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(dataList)[index + 1].colorTableDegree,
33145
+ step: 1,
33146
+ onInput: _cache[4] || (_cache[4] = $event => paramsChanged('colorTableDegree')),
33147
+ "controls-position": "right"
33148
+ }, null, 8
33149
+ /* PROPS */
33150
+ , ["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, {
33151
+ key: 3,
33152
+ modelValue: item.colorTableDegree,
33153
+ "onUpdate:modelValue": $event => item.colorTableDegree = $event,
33154
+ step: 1,
33155
+ disabled: true,
33156
+ onInput: _cache[5] || (_cache[5] = $event => paramsChanged('colorTableDegree')),
33157
+ "controls-position": "right"
33158
+ }, null, 8
33159
+ /* PROPS */
33160
+ , ["modelValue", "onUpdate:modelValue"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)]),
33161
+ _: 2
33162
+ /* DYNAMIC */
33163
+
33164
+ }, 1024
33165
+ /* DYNAMIC_SLOTS */
33166
+ ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
33167
+ span: 6
33168
+ }, {
33169
+ 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, {
33170
+ modelValue: item.colorTable,
33171
+ "onUpdate:modelValue": $event => item.colorTable = $event,
33172
+ onChange: _cache[6] || (_cache[6] = $event => paramsChanged('colorTable'))
33173
+ }, null, 8
33174
+ /* PROPS */
33175
+ , ["modelValue", "onUpdate:modelValue"])]),
33176
+ _: 2
33177
+ /* DYNAMIC */
33178
+
33179
+ }, 1024
33180
+ /* DYNAMIC_SLOTS */
33181
+ )], 64
33182
+ /* STABLE_FRAGMENT */
33183
+ )) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)]),
33184
+ _: 2
33185
+ /* DYNAMIC */
33186
+
33187
+ }, 1024
33188
+ /* DYNAMIC_SLOTS */
33189
+ );
33190
+ }), 128
33191
+ /* KEYED_FRAGMENT */
33192
+ ))])) : (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", _hoisted_4, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
33193
+ 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, {
33194
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).gradientColor
33195
+ }, {
33196
+ 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, {
33197
+ style: {
33198
+ "display": "flex"
33199
+ }
33200
+ }, {
33201
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [_hoisted_5, _hoisted_6, _hoisted_7]),
33202
+ _: 1
33203
+ /* STABLE */
33204
+
33205
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_radio_group, {
33206
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorImage,
33207
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorImage = $event),
33208
+ onChange: _cache[8] || (_cache[8] = $event => paramsChanged('colorImage'))
33209
+ }, {
33210
+ 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) => {
33211
+ return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_radio, {
33212
+ key: index,
33213
+ label: index
33214
+ }, {
33215
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("img", {
33216
+ class: "kq3d-slope-aspect-analysis-legend",
33217
+ src: item.src,
33218
+ alt: ""
33219
+ }, null, 8
33220
+ /* PROPS */
33221
+ , _hoisted_8)]),
33222
+ _: 2
33223
+ /* DYNAMIC */
33224
+
33225
+ }, 1032
33226
+ /* PROPS, DYNAMIC_SLOTS */
33227
+ , ["label"]);
33228
+ }), 64
33229
+ /* STABLE_FRAGMENT */
33230
+ ))]),
33231
+ _: 1
33232
+ /* STABLE */
33233
+
33234
+ }, 8
33235
+ /* PROPS */
33236
+ , ["modelValue"])]),
33237
+ _: 1
33238
+ /* STABLE */
33239
+
33240
+ }, 8
33241
+ /* PROPS */
33242
+ , ["label"])]),
33243
+ _: 1
33244
+ /* STABLE */
33245
+
33246
+ })])) : (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", _hoisted_9, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
33247
+ 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, {
33248
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).minSlope
33249
+ }, {
33250
+ 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, {
33251
+ style: {
33252
+ "display": "flex"
33253
+ }
33254
+ }, {
33255
+ 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, {
33256
+ span: 16
33257
+ }, {
33258
+ 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, {
33259
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minSlope,
33260
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minSlope = $event),
33261
+ step: 1,
33262
+ min: 0,
33263
+ max: 90,
33264
+ onInput: _cache[10] || (_cache[10] = $event => paramsChanged('minSlope'))
33265
+ }, null, 8
33266
+ /* PROPS */
33267
+ , ["modelValue"])]),
33268
+ _: 1
33269
+ /* STABLE */
33270
+
33271
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
33272
+ span: 8
33273
+ }, {
33274
+ 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, {
33275
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minSlope,
33276
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minSlope = $event),
33277
+ step: 1,
33278
+ min: 0,
33279
+ max: 90,
33280
+ "controls-position": "right",
33281
+ onInput: _cache[12] || (_cache[12] = $event => paramsChanged('minSlope'))
33282
+ }, null, 8
33283
+ /* PROPS */
33284
+ , ["modelValue"])]),
33285
+ _: 1
33286
+ /* STABLE */
33287
+
33288
+ })]),
33289
+ _: 1
33290
+ /* STABLE */
33291
+
33292
+ })]),
33293
+ _: 1
33294
+ /* STABLE */
33295
+
33296
+ }, 8
33297
+ /* PROPS */
33298
+ , ["label"])]),
33299
+ _: 1
33300
+ /* STABLE */
33301
+
33302
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
33303
+ 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, {
33304
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).maxSlope
33305
+ }, {
33306
+ 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, {
33307
+ style: {
33308
+ "display": "flex"
33309
+ }
33310
+ }, {
33311
+ 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, {
33312
+ span: 16
33313
+ }, {
33314
+ 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, {
33315
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxSlope,
33316
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxSlope = $event),
33317
+ step: 1,
33318
+ min: 0,
33319
+ max: 90,
33320
+ onInput: _cache[14] || (_cache[14] = $event => paramsChanged('maxSlope'))
33321
+ }, null, 8
33322
+ /* PROPS */
33323
+ , ["modelValue"])]),
33324
+ _: 1
33325
+ /* STABLE */
33326
+
33327
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
33328
+ span: 8
33329
+ }, {
33330
+ 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, {
33331
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxSlope,
33332
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxSlope = $event),
33333
+ step: 1,
33334
+ min: 0,
33335
+ max: 90,
33336
+ "controls-position": "right",
33337
+ onInput: _cache[16] || (_cache[16] = $event => paramsChanged('maxSlope'))
33338
+ }, null, 8
33339
+ /* PROPS */
33340
+ , ["modelValue"])]),
33341
+ _: 1
33342
+ /* STABLE */
33343
+
33344
+ })]),
33345
+ _: 1
33346
+ /* STABLE */
33347
+
33348
+ })]),
33349
+ _: 1
33350
+ /* STABLE */
33351
+
33352
+ }, 8
33353
+ /* PROPS */
33354
+ , ["label"])]),
33355
+ _: 1
33356
+ /* STABLE */
33357
+
33358
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
33359
+ 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, {
33360
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).transparents
33361
+ }, {
33362
+ 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, {
33363
+ style: {
33364
+ "display": "flex"
33365
+ }
33366
+ }, {
33367
+ 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, {
33368
+ span: 16
33369
+ }, {
33370
+ 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, {
33371
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).slopeColorAlpha,
33372
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).slopeColorAlpha = $event),
33373
+ min: 0,
33374
+ max: 1,
33375
+ step: 0.01,
33376
+ onInput: _cache[18] || (_cache[18] = $event => paramsChanged('slopeColorAlpha'))
33377
+ }, null, 8
33378
+ /* PROPS */
33379
+ , ["modelValue", "step"])]),
33380
+ _: 1
33381
+ /* STABLE */
33382
+
33383
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
33384
+ span: 8
33385
+ }, {
33386
+ 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, {
33387
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).slopeColorAlpha,
33388
+ "onUpdate:modelValue": _cache[19] || (_cache[19] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).slopeColorAlpha = $event),
33389
+ min: 0,
33390
+ max: 1,
33391
+ step: 0.01,
33392
+ "controls-position": "right",
33393
+ onInput: _cache[20] || (_cache[20] = $event => paramsChanged('slopeColorAlpha'))
33394
+ }, null, 8
33395
+ /* PROPS */
33396
+ , ["modelValue", "step"])]),
33397
+ _: 1
33398
+ /* STABLE */
33399
+
33400
+ })]),
33401
+ _: 1
33402
+ /* STABLE */
33403
+
33404
+ })]),
33405
+ _: 1
33406
+ /* STABLE */
33407
+
33408
+ }, 8
33409
+ /* PROPS */
33410
+ , ["label"])]),
33411
+ _: 1
33412
+ /* STABLE */
33413
+
33414
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
33415
+ style: {
33416
+ "padding-bottom": "8px"
33417
+ }
33418
+ }, {
33419
+ 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, {
33420
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).color
33421
+ }, {
33422
+ 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, {
33423
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).slopeColorText,
33424
+ "onUpdate:modelValue": _cache[21] || (_cache[21] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).slopeColorText = $event),
33425
+ onChange: _cache[22] || (_cache[22] = $event => paramsChanged('slopeColorText'))
33426
+ }, null, 8
33427
+ /* PROPS */
33428
+ , ["modelValue"])]),
33429
+ _: 1
33430
+ /* STABLE */
33431
+
33432
+ }, 8
33433
+ /* PROPS */
33434
+ , ["label"])]),
33435
+ _: 1
33436
+ /* STABLE */
33437
+
33438
+ })])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)]),
33439
+ _: 1
33440
+ /* STABLE */
33441
+
33442
+ }, 8
33443
+ /* PROPS */
33444
+ , ["label-width"])]),
33445
+ _: 1
33446
+ /* STABLE */
33447
+
33448
+ }, 8
33449
+ /* PROPS */
33450
+ , ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse_item, {
33451
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).aspectAnalysisSettings,
33452
+ name: "aspect",
33453
+ class: "kq3d-slope-aspect-analysis-collapse-item"
33454
+ }, {
33455
+ 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, {
33456
+ "label-width": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? '90px' : '120px',
33457
+ "label-position": "left"
33458
+ }, {
33459
+ 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, {
33460
+ 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, {
33461
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).samplingInterval
33462
+ }, {
33463
+ 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, {
33464
+ style: {
33465
+ "display": "flex"
33466
+ }
33467
+ }, {
33468
+ 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, {
33469
+ span: 16
33470
+ }, {
33471
+ 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, {
33472
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).interval,
33473
+ "onUpdate:modelValue": _cache[23] || (_cache[23] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).interval = $event),
33474
+ step: 1,
33475
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minInterval,
33476
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxInterval,
33477
+ onInput: _cache[24] || (_cache[24] = $event => paramsChanged('interval'))
33478
+ }, null, 8
33479
+ /* PROPS */
33480
+ , ["modelValue", "min", "max"])]),
33481
+ _: 1
33482
+ /* STABLE */
33483
+
33484
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
33485
+ span: 8
33486
+ }, {
33487
+ 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, {
33488
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).interval,
33489
+ "onUpdate:modelValue": _cache[25] || (_cache[25] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).interval = $event),
33490
+ step: 1,
33491
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minInterval,
33492
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxInterval,
33493
+ "controls-position": "right",
33494
+ onInput: _cache[26] || (_cache[26] = $event => paramsChanged('interval'))
33495
+ }, null, 8
33496
+ /* PROPS */
33497
+ , ["modelValue", "min", "max"])]),
33498
+ _: 1
33499
+ /* STABLE */
33500
+
33501
+ })]),
33502
+ _: 1
33503
+ /* STABLE */
33504
+
33505
+ })]),
33506
+ _: 1
33507
+ /* STABLE */
33508
+
33509
+ }, 8
33510
+ /* PROPS */
33511
+ , ["label"])]),
33512
+ _: 1
33513
+ /* STABLE */
33514
+
33515
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
33516
+ 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, {
33517
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).arrowWidth
33518
+ }, {
33519
+ 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, {
33520
+ style: {
33521
+ "display": "flex"
33522
+ }
33523
+ }, {
33524
+ 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, {
33525
+ span: 16
33526
+ }, {
33527
+ 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, {
33528
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowWidth,
33529
+ "onUpdate:modelValue": _cache[27] || (_cache[27] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowWidth = $event),
33530
+ step: 1,
33531
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minArrowWidth,
33532
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxArrowWidth,
33533
+ onInput: _cache[28] || (_cache[28] = $event => paramsChanged('arrowWidth'))
33534
+ }, null, 8
33535
+ /* PROPS */
33536
+ , ["modelValue", "min", "max"])]),
33537
+ _: 1
33538
+ /* STABLE */
33539
+
33540
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
33541
+ span: 8
33542
+ }, {
33543
+ 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, {
33544
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowWidth,
33545
+ "onUpdate:modelValue": _cache[29] || (_cache[29] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowWidth = $event),
33546
+ step: 1,
33547
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minArrowWidth,
33548
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxArrowWidth,
33549
+ "controls-position": "right",
33550
+ onInput: _cache[30] || (_cache[30] = $event => paramsChanged('arrowWidth'))
33551
+ }, null, 8
33552
+ /* PROPS */
33553
+ , ["modelValue", "min", "max"])]),
33554
+ _: 1
33555
+ /* STABLE */
33556
+
33557
+ })]),
33558
+ _: 1
33559
+ /* STABLE */
33560
+
33561
+ })]),
33562
+ _: 1
33563
+ /* STABLE */
33564
+
33565
+ }, 8
33566
+ /* PROPS */
33567
+ , ["label"])]),
33568
+ _: 1
33569
+ /* STABLE */
33570
+
33571
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
33572
+ 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, {
33573
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).arrowColor
33574
+ }, {
33575
+ 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, {
33576
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowColor,
33577
+ "onUpdate:modelValue": _cache[31] || (_cache[31] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).arrowColor = $event),
33578
+ onChange: _cache[32] || (_cache[32] = $event => paramsChanged('arrowColor'))
33579
+ }, null, 8
33580
+ /* PROPS */
33581
+ , ["modelValue"])]),
33582
+ _: 1
33583
+ /* STABLE */
33584
+
33585
+ }, 8
33586
+ /* PROPS */
33587
+ , ["label"])]),
33588
+ _: 1
33589
+ /* STABLE */
33590
+
33591
+ })])]),
33592
+ _: 1
33593
+ /* STABLE */
33594
+
33595
+ }, 8
33596
+ /* PROPS */
33597
+ , ["label-width"])]),
33598
+ _: 1
33599
+ /* STABLE */
33600
+
33601
+ }, 8
33602
+ /* PROPS */
33603
+ , ["title"])]),
33604
+ _: 1
33605
+ /* STABLE */
33606
+
33607
+ }, 8
33608
+ /* PROPS */
33609
+ , ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_10, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
33610
+ onClick: _cache[33] || (_cache[33] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startAnalysis(), ["stop"])),
33611
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).startAnalysis,
33612
+ type: "primary"
33613
+ }, {
33614
+ 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
33615
+ /* TEXT */
33616
+ )]),
33617
+ _: 1
33618
+ /* STABLE */
33619
+
33620
+ }, 8
33621
+ /* PROPS */
33622
+ , ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
33623
+ onClick: _cache[34] || (_cache[34] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clearResult(), ["stop"])),
33624
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult
33625
+ }, {
33626
+ 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
33627
+ /* TEXT */
33628
+ )]),
33629
+ _: 1
33630
+ /* STABLE */
33631
+
33632
+ }, 8
33633
+ /* PROPS */
33634
+ , ["title"])])])], 2
33635
+ /* CLASS */
33636
+ );
33637
+ };
33638
+ }
33639
+
33640
+ }));
33641
+ ;// CONCATENATED MODULE: ./src/webgl/slopeaspectanalysis/SlopeAspectAnalysis.vue?vue&type=script&setup=true&lang=js
33642
+
33643
+ ;// CONCATENATED MODULE: ./src/webgl/slopeaspectanalysis/SlopeAspectAnalysis.vue
33644
+
33645
+
33646
+
33647
+ const __exports__ = SlopeAspectAnalysisvue_type_script_setup_true_lang_js;
33648
+
33649
+ /* harmony default export */ var SlopeAspectAnalysis = (__exports__);
33650
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/init.js"
33651
+ var init_js_ = __webpack_require__(7997);
33652
+ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
33653
+ ;// CONCATENATED MODULE: ./src/webgl/slopeaspectanalysis/index.js
33654
+
33655
+
33656
+
33657
+
33658
+ SlopeAspectAnalysis.install = (Vue, opts) => {
33659
+ init_js_default()(Vue, opts);
33660
+ Vue.component(SlopeAspectAnalysis.name, SlopeAspectAnalysis);
33661
+ };
33662
+
33663
+
33664
+
33665
+ /***/ }),
33666
+
33667
+ /***/ 6311:
33668
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
33669
+
33670
+ "use strict";
33671
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
33672
+ /* harmony export */ "Z": function() { return /* binding */ StatusBarViewModel; }
33673
+ /* harmony export */ });
33674
+ /* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
33675
+
33676
+ // 地图状态栏逻辑类
33677
+ class StatusBarViewModel {
33678
+ constructor(viewer, options) {
33679
+ (0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewer", null);
33680
+
33681
+ viewer.statusBar.show = true;
33682
+ let callback = viewer.statusBar.readyPromise.then || viewer.statusBar.readyPromise.resolve;
33683
+ callback(() => {
33684
+ // viewer.statusBar.container.style.bottom = "16px";
33685
+ //viewer.statusBar.container.parentElement.style.right = "0px!important";
33686
+ // console.log(viewer.statusBar.container.parentElement.style.right);
33687
+ if (options.hideResolution) {
33688
+ viewer.statusBar.hideResolution();
33689
+ }
33690
+
33691
+ if (options.hideScale) {
33692
+ viewer.statusBar.hideScale();
33693
+ }
33694
+
33695
+ if (options.hideLonLat) {
33696
+ viewer.statusBar.hideLonLat();
33697
+ }
33698
+
33699
+ if (options.hideEyeAlt) {
33700
+ viewer.statusBar.hideEyeAlt();
33701
+ }
33702
+
33703
+ if (options.hideCopyright) {
33704
+ viewer.statusBar.hideCopyright();
33705
+ }
33706
+
33707
+ if (options.copyrightText) {
33708
+ viewer.statusBar.setCopyrightText(options.copyrightText);
33709
+ }
33710
+ });
33711
+ this._viewer = viewer;
33712
+ }
33713
+
33714
+ changeLanguage(lang) {
33715
+ var that = this;
33716
+
33717
+ if (that._viewer.statusBar._ready) {
33718
+ var originLanguage = that._viewer.statusBar._curLanguage;
33719
+ var language = new Cesium.Languages({
33720
+ languageStyle: lang == 'zh' ? 'zh-cn' : 'en'
33721
+ });
33722
+ language.readyPromise.then(function () {
33723
+ //loaded success
33724
+ that._viewer._language = language;
33725
+ var langContent = language.content;
33726
+
33727
+ if (langContent) {
33728
+ that._viewer.statusBar._curLanguage = {
33729
+ mUnit: langContent.mUnit,
33730
+ kmUnit: langContent.kmUnit,
33731
+ sqkmUnit: langContent.sqkmUnit,
33732
+ sqmUnit: langContent.sqmUnit,
33733
+ N: langContent.N,
33734
+ S: langContent.S,
33735
+ E: langContent.E,
33736
+ W: langContent.W,
33737
+ du: langContent.du,
33738
+ fen: langContent.fen,
33739
+ miao: langContent.miao,
33740
+ elevation: langContent.elevation,
33741
+ eyeAltitude: langContent.eyeAltitude,
33742
+ copyright: langContent.copyright,
33743
+ scale: langContent.scale
33744
+ };
33745
+ var id = that._viewer.statusBar._id; // 比例尺控件
33746
+
33747
+ html = document.getElementById(id + '_ScaleBarTxt').innerHTML;
33748
+ document.getElementById(id + '_ScaleBarTxt').innerHTML = html.replace(originLanguage.scale, langContent.scale); // 比例尺
33749
+
33750
+ html = document.getElementById(id + '_ScaleTxt').innerHTML;
33751
+ document.getElementById(id + '_ScaleTxt').innerHTMLhtml = html.replace(originLanguage.kmUnit, langContent.kmUnit).replace(originLanguage.mUnit, langContent.mUnit); // 视点高
33752
+
33753
+ html = document.getElementById(id + '_CoordEyeAlt').innerHTML;
33754
+ document.getElementById(id + '_CoordEyeAlt').innerHTML = html.replace(originLanguage.eyeAltitude, langContent.eyeAltitude).replace(originLanguage.kmUnit, langContent.kmUnit).replace(originLanguage.mUnit, langContent.mUnit); // 高度
33755
+
33756
+ var html = document.getElementById(id + '_CoordHeight').innerHTML;
33757
+ document.getElementById(id + '_CoordHeight').innerHTML = html.replace(originLanguage.kmUnit, langContent.kmUnit).replace(originLanguage.mUnit, langContent.mUnit);
33758
+ }
33759
+ });
33760
+ }
33761
+ }
33762
+
33763
+ }
33764
+
33765
+ /***/ }),
33766
+
33767
+ /***/ 6719:
33768
+ /***/ (function(__unused_webpack_module, __webpack_exports__, __webpack_require__) {
33769
+
33770
+ "use strict";
33771
+
33772
+ // EXPORTS
33773
+ __webpack_require__.d(__webpack_exports__, {
33774
+ "default": function() { return /* reexport */ StatusBar; }
33775
+ });
33776
+
33777
+ // UNUSED EXPORTS: StatusBarViewModel
33778
+
33779
+ // EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
33780
+ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
33781
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
33782
+ var gis_utils_ = __webpack_require__(7135);
33783
+ // EXTERNAL MODULE: ./src/webgl/statusbar/StatusBarViewModel.js
33784
+ var StatusBarViewModel = __webpack_require__(6311);
33785
+ // EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
32341
33786
  var vue_i18n_cjs_js_ = __webpack_require__(7080);
32342
33787
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/statusbar/StatusBar.vue?vue&type=script&setup=true&lang=js
32343
33788
 
@@ -38885,6 +40330,8 @@ var floodanalysis = __webpack_require__(3527);
38885
40330
  var slopeanalysis = __webpack_require__(7668);
38886
40331
  // EXTERNAL MODULE: ./src/webgl/aspectanalysis/index.js + 4 modules
38887
40332
  var aspectanalysis = __webpack_require__(6776);
40333
+ // EXTERNAL MODULE: ./src/webgl/slopeaspectanalysis/index.js + 4 modules
40334
+ var slopeaspectanalysis = __webpack_require__(9643);
38888
40335
  // EXTERNAL MODULE: ./src/webgl/isolineanalysis/index.js + 4 modules
38889
40336
  var isolineanalysis = __webpack_require__(9783);
38890
40337
  // EXTERNAL MODULE: ./src/webgl/boxclip/index.js + 4 modules
@@ -38993,6 +40440,9 @@ var geologicalbodyanalysis = __webpack_require__(9378);
38993
40440
 
38994
40441
 
38995
40442
 
40443
+ // 坡度坡向分析
40444
+
40445
+
38996
40446
 
38997
40447
 
38998
40448
 
@@ -39073,7 +40523,8 @@ const webglComponents = {
39073
40523
  Kq3dTerrainProfileAnalysis: terrainprofileanalysis["default"],
39074
40524
  Kq3dScanEffect: scaneffect["default"],
39075
40525
  Kq3dModelExcavate: modelexcavate["default"],
39076
- Kq3dModelFlat: modelFlat["default"]
40526
+ Kq3dModelFlat: modelFlat["default"],
40527
+ Kq3dSlopeAspectAnalysis: slopeaspectanalysis["default"]
39077
40528
  }; // 全局引入
39078
40529
 
39079
40530
  const install = function (Vue, opts = {}) {