@kq_npm/client3d_webgl_vue 4.5.0 → 4.5.2

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 CHANGED
@@ -84,6 +84,30 @@ module.exports = function (cssWithMappingToString) {
84
84
 
85
85
  /***/ }),
86
86
 
87
+ /***/ 21:
88
+ /***/ (function(__unused_webpack_module, exports) {
89
+
90
+ "use strict";
91
+ var __webpack_unused_export__;
92
+
93
+
94
+ __webpack_unused_export__ = ({
95
+ value: true
96
+ }); // runtime helper for setting properties on components
97
+ // in a tree-shakable way
98
+
99
+ exports.Z = (sfc, props) => {
100
+ const target = sfc.__vccOpts || sfc;
101
+
102
+ for (const [key, val] of props) {
103
+ target[key] = val;
104
+ }
105
+
106
+ return target;
107
+ };
108
+
109
+ /***/ }),
110
+
87
111
  /***/ 961:
88
112
  /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
89
113
 
@@ -432,6 +456,40 @@ ___CSS_LOADER_EXPORT___.push([module.id, ".coord-sightline{background:rgba(42,42
432
456
  /* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
433
457
 
434
458
 
459
+ /***/ }),
460
+
461
+ /***/ 98:
462
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
463
+
464
+ "use strict";
465
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(705);
466
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
467
+ // Imports
468
+
469
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
470
+ // Module
471
+ ___CSS_LOADER_EXPORT___.push([module.id, ".gp[data-v-b1608504]{display:flex;flex-direction:column;align-items:flex-start}.gp .palette[data-v-b1608504]{width:257px;height:16px}.gp .csh[data-v-b1608504]{width:257px;height:17.5px;position:relative;cursor:url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAA8AAAAPCAYAAAA71pVKAAAATUlEQVQ4T2NkwAH+////HybFyMjIiE0ZVkGQQpBmkB6QGaOaEUHHiByq6CEKCzBcMQLWjCMmcOkBi4NjgSKb8SWS0XjGDB28GYNQrgIAPsNjBG37r7sAAAAASUVORK5CYII=),crosshair !important}", ""]);
472
+ // Exports
473
+ /* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
474
+
475
+
476
+ /***/ }),
477
+
478
+ /***/ 757:
479
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
480
+
481
+ "use strict";
482
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(705);
483
+ /* harmony import */ var _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0__);
484
+ // Imports
485
+
486
+ var ___CSS_LOADER_EXPORT___ = _node_modules_css_loader_dist_runtime_api_js__WEBPACK_IMPORTED_MODULE_0___default()(function(i){return i[1]});
487
+ // Module
488
+ ___CSS_LOADER_EXPORT___.push([module.id, ".cs[data-v-c771bfde]{position:absolute;width:10px;cursor:pointer}.cs[data-v-c771bfde] .kq-color-picker{display:block}.cs[data-v-c771bfde] .kq-color-picker .kq-color-picker__trigger{display:flex;height:8px;width:10px;border:none;border-radius:0}.cs[data-v-c771bfde] .kq-color-picker .kq-color-picker__trigger .kq-color-picker__color{border:none;height:8px;width:10px}.cs[data-v-c771bfde] .kq-color-picker .kq-color-picker__trigger .kq-color-picker__color .kq-color-picker__color-inner{height:8px;width:10px}.cs[data-v-c771bfde] .kq-color-picker .kq-color-picker__trigger .kq-color-picker__color .kq-color-picker__color-inner .kq-color-picker__icon{display:none}.cs[data-v-c771bfde] .kq-color-picker .kq-color-picker__mask{display:none}.cs[data-v-c771bfde] .kq-color-picker:hover:not(.is-disabled) .kq-color-picker__trigger{border:none}.cs[data-v-c771bfde] .kq-color-picker.is-disabled .kq-color-picker__trigger{cursor:pointer}.cs .delete[data-v-c771bfde]{display:none;font-size:12px;line-height:normal;text-align:center;margin-left:-16px}.cs:hover .delete[data-v-c771bfde]{display:block}.cs .arrow[data-v-c771bfde]{width:0;height:0;border-left:5px solid rgba(0,0,0,0);border-right:5px solid rgba(0,0,0,0);border-bottom:4px solid #d9d9d9}.cs .content[data-v-c771bfde]{height:8px;width:10px;border:1px solid #d9d9d9;box-sizing:border-box}", ""]);
489
+ // Exports
490
+ /* harmony default export */ __webpack_exports__["Z"] = (___CSS_LOADER_EXPORT___);
491
+
492
+
435
493
  /***/ }),
436
494
 
437
495
  /***/ 355:
@@ -935,6 +993,8 @@ __webpack_require__.d(__webpack_exports__, {
935
993
  "Kq3dGeologicalBodyAnalysisViewModel": function() { return /* reexport */ GeologicalBodyAnalysisViewModel; },
936
994
  "Kq3dHawkeye": function() { return /* reexport */ Hawkeye; },
937
995
  "Kq3dHawkeyeViewModel": function() { return /* reexport */ HawkeyeViewModel; },
996
+ "Kq3dHeatmap": function() { return /* reexport */ Heatmap3d; },
997
+ "Kq3dHeatmapViewModel": function() { return /* reexport */ Heatmap3dViewModel; },
938
998
  "Kq3dIsolineAnalysis": function() { return /* reexport */ IsolineAnalysis; },
939
999
  "Kq3dIsolineAnalysisViewModel": function() { return /* reexport */ IsolineAnalysisViewModel; },
940
1000
  "Kq3dLight": function() { return /* reexport */ Light; },
@@ -13434,7 +13494,8 @@ class SceneToHDImageViewModel {
13434
13494
  canvas: this._viewer.scene.canvas
13435
13495
  });
13436
13496
  this.resizeExportRegionSize();
13437
- }
13497
+ } // 重置输出图片尺寸
13498
+
13438
13499
 
13439
13500
  resizeExportRegionSize() {
13440
13501
  document.getElementById('exportPictureRegion').style.width = Number(this._options.imgWidth) * Number(this._options.pantographRatio) + 'px';
@@ -13472,7 +13533,8 @@ class SceneToHDImageViewModel {
13472
13533
 
13473
13534
  this._canvasToImage.saveAsimages(canvas, options);
13474
13535
  }
13475
- }
13536
+ } // 重新设置场景尺寸
13537
+
13476
13538
 
13477
13539
  scaleCesiumContainer() {
13478
13540
  // var bWidth = document.getElementById(this._viewer._container.id).parentNode.clientWidth,
@@ -13491,7 +13553,8 @@ class SceneToHDImageViewModel {
13491
13553
 
13492
13554
  changeDisplayArea() {
13493
13555
  document.getElementById('exportPictureRegion').style.display = this._options.displayArea ? 'block' : 'none';
13494
- }
13556
+ } // 调整出图范围尺寸
13557
+
13495
13558
 
13496
13559
  changPantographRatio() {
13497
13560
  this._viewer.container.style.transform = `translate(-50%,-50%) scale(${this._options.pantographRatio})`;
@@ -15717,324 +15780,2176 @@ ScanEffect.install = (Vue, opts) => {
15717
15780
  };
15718
15781
 
15719
15782
 
15720
- ;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavateViewModel.js
15783
+ ;// CONCATENATED MODULE: ./src/webgl/heatmap3d/Heatmap3dViewModel.js
15721
15784
 
15722
- //模型开挖逻辑类
15723
15785
 
15724
- class ModelExcavateViewModel {
15725
- //三维viewer对象
15726
- //Box裁剪存储参数对象
15727
- //绘制管理对象
15728
- //绘制完成监听事件
15729
- //Kq3dWallPrimitive
15786
+ //热力图
15787
+
15788
+ class Heatmap3dViewModel {
15730
15789
  constructor(scenceView, options) {
15731
15790
  _defineProperty(this, "_viewer", null);
15732
15791
 
15733
- _defineProperty(this, "_options", {});
15792
+ _defineProperty(this, "_options", null);
15734
15793
 
15735
- _defineProperty(this, "_Kq3dTerrainExcavation", null);
15794
+ _defineProperty(this, "_heatmap", null);
15736
15795
 
15737
- _defineProperty(this, "_drawManager", null);
15796
+ _defineProperty(this, "_mouseLabel", null);
15738
15797
 
15739
- _defineProperty(this, "_removeEventListener", null);
15798
+ _defineProperty(this, "language", null);
15740
15799
 
15741
- _defineProperty(this, "_wallPrimitive", void 0);
15800
+ _defineProperty(this, "_heatmap2d", null);
15742
15801
 
15743
- _defineProperty(this, "entity0", null);
15802
+ _defineProperty(this, "_heatmap2dCountLayer", null);
15744
15803
 
15745
- _defineProperty(this, "wall", null);
15804
+ _defineProperty(this, "heatmapData", null);
15746
15805
 
15747
- _defineProperty(this, "ratio", 0.01);
15806
+ this._viewer = scenceView._viewer;
15807
+ this._options = options;
15808
+ this._viewer.scene.globe.depthTestAgainstTerrain = true; // 地图标注对象
15809
+
15810
+ this._mouseLabel = new Cesium.Kq3dHtmlTag(this._viewer, {
15811
+ position: new Cesium.Cartesian3(0, 0, 0),
15812
+ html: `<div>
15813
+ <div class="border-moving">
15814
+ <span id="mouse_lonlat" class="append"></span>
15815
+ <div class="border-moving-box" style="top:3px;left:3px;bottom:3px;right:3px;">
15816
+ <span></span><span></span><span></span><span></span>
15817
+ </div></div>
15818
+ <div class="guidline">
15819
+ <div class="pulse"></div>
15820
+ </div>
15821
+ </div>`,
15822
+ anchor: [0, -138],
15823
+ noEvent: true,
15824
+ visible: false
15825
+ }); // 地图拾取事件,交互展示
15748
15826
 
15749
- _defineProperty(this, "ii", 1);
15827
+ let that = this;
15828
+ var handler = new window.Cesium.ScreenSpaceEventHandler(this._viewer.canvas);
15829
+ handler.setInputAction(function (movement) {
15830
+ var worldPosition = that._viewer.scene.pickPosition(movement.position);
15831
+
15832
+ if (worldPosition) {
15833
+ that._mouseLabel.position = worldPosition;
15834
+ var lonlat = Cesium.Cartographic.fromCartesian(worldPosition);
15835
+ var lon = Cesium.Math.toDegrees(lonlat.longitude),
15836
+ lat = Cesium.Math.toDegrees(lonlat.latitude);
15837
+ var val = 0;
15838
+
15839
+ if (that._options.heatmapType == "3D") {
15840
+ val = String(that._heatmap.getValueAt({
15841
+ lng: lon,
15842
+ lat: lat
15843
+ }));
15844
+ } else if (that._options.heatmapType == "2D") {
15845
+ val = String(that._heatmap2d.getValueAt({
15846
+ lng: lon,
15847
+ lat: lat
15848
+ }));
15849
+ }
15750
15850
 
15751
- _defineProperty(this, "scratchCartesian2", new window.Cesium.Cartesian3());
15851
+ document.getElementById('mouse_lonlat').innerHTML = that.sanitizeInput(`<p>${that.language['longitude'] || "经度"}:${lon.toFixed(5)}</p><p>${that.language['latitude'] || "纬度"}:${lat.toFixed(5)}</p><p>${that.language['heatValue'] || "热力值"}:${val}</p>`);
15752
15852
 
15753
- _defineProperty(this, "scratchCartesian3", new window.Cesium.Cartesian3());
15853
+ that._mouseLabel.setVisible(true);
15854
+ } else {
15855
+ that._mouseLabel.setVisible(false);
15856
+ }
15857
+ }, Cesium.ScreenSpaceEventType.LEFT_CLICK);
15858
+ }
15754
15859
 
15755
- _defineProperty(this, "scratchCartesian4", new window.Cesium.Cartesian3());
15860
+ sanitizeInput(inputHTML) {
15861
+ const allowedTags = ['p', 'strong', 'em'];
15862
+ const tempDiv = document.createElement('div');
15863
+ tempDiv.innerHTML = inputHTML;
15864
+ const childNodes = Array.from(tempDiv.childNodes);
15865
+ childNodes.forEach(node => {
15866
+ if (!allowedTags.includes(node.tagName.toLowerCase())) {
15867
+ tempDiv.removeChild(node);
15868
+ }
15869
+ });
15870
+ return tempDiv.innerHTML;
15871
+ } // 创建三维热力图对象
15756
15872
 
15757
- _defineProperty(this, "scratchCartesian5", new window.Cesium.Cartesian3());
15758
15873
 
15759
- _defineProperty(this, "scratchCartesian6", new window.Cesium.Cartesian3());
15874
+ initHeatmap3d(heatmapData) {
15875
+ this._heatmap = new Cesium.Kq3dHeatmap3D({
15876
+ xField: 'lng',
15877
+ yField: 'lat',
15878
+ valueField: this._options.valueField || this.language["noSet"],
15879
+ radius: this._options.radius,
15880
+ scene: this._viewer.scene,
15881
+ height: this._options.height,
15882
+ heightRatio: this._options.heightRatio,
15883
+ alpha: this._options.transparents,
15884
+ dynamic: this._options.isFollowingPerspective,
15885
+ clampToGround: this._options.isGround,
15886
+ show: this._options.heatmapType == "3D" ? true : false
15887
+ });
15888
+ if (this._options.gradient) this._heatmap.gradient = this._options.gradient;
15760
15889
 
15761
- _defineProperty(this, "scratchCartesian7", new window.Cesium.Cartesian3());
15890
+ this._viewer.scene.primitives.add(this._heatmap);
15762
15891
 
15763
- _defineProperty(this, "intervalId", null);
15892
+ this._heatmap && this._heatmap.setData(heatmapData);
15893
+ } // 创建二维热力图对象
15764
15894
 
15765
- _defineProperty(this, "tileset1", null);
15766
15895
 
15767
- _defineProperty(this, "g_flattenedPolygonTexture", null);
15896
+ initHeatmap2d(heatmapData) {
15897
+ this._heatmap2d = new Cesium.Kq3dHeatmap2D({
15898
+ xField: 'lng',
15899
+ yField: 'lat',
15900
+ valueField: this._options.valueField || this.language["noSet"],
15901
+ canvasWidth: 1024,
15902
+ canvasHeight: 1024,
15903
+ radius: this._options.radius,
15904
+ blur: 1.0,
15905
+ gradient: this._options.gradient
15906
+ });
15768
15907
 
15769
- this._viewer = scenceView._viewer;
15770
- this._options = options;
15771
- this._drawManager = scenceView._drawManager;
15772
- this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
15908
+ this._heatmap2d.setData(heatmapData);
15773
15909
 
15774
- let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
15775
- this.g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture(); // this.tileset1 = this._viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
15776
- // url: "http://support.kqgeo.com:18700/SampleData/3DTiles/Oblique/tileset.json"
15777
- // }));
15778
- // this.tileset1.readyPromise.then(function (tileset) {
15779
- // that._viewer.zoomTo(tileset);
15780
- // }).otherwise(function (error) {
15781
- // console.log(error);
15782
- // });
15783
- // this.tileset1.enableFlattenning = true;
15784
- // this.tileset1.flattenDiscard = true;
15785
- // this.g_flattenedPolygonTexture.attachTileset(this.tileset1);
15910
+ let extent = this._heatmap2d.extent;
15911
+ let pv = new Cesium.SingleTileImageryProvider({
15912
+ url: this._heatmap2d.toDataURL(),
15913
+ rectangle: Cesium.Rectangle.fromDegrees(extent[0], extent[1], extent[2], extent[3])
15914
+ });
15915
+ this._heatmap2dCountLayer = new Cesium.ImageryLayer(pv, {
15916
+ alpha: this._options.transparents,
15917
+ show: this._options.heatmapType == "2D" ? true : false
15918
+ });
15786
15919
 
15787
- var that = this;
15788
- var models = this._viewer.scene.primitives._primitives;
15920
+ this._viewer.imageryLayers.add(this._heatmap2dCountLayer);
15921
+ } // 切换二维数据
15789
15922
 
15790
- for (let i = 0; i < models.length; i++) {
15791
- if (models[1] instanceof Cesium.Cesium3DTileset && models[i]._url) {
15792
- models[i].enableFlattenning = true;
15793
- models[i].flattenDiscard = true;
15794
- models[i].readyPromise.then(function (tileset) {
15795
- that.g_flattenedPolygonTexture.attachTileset(tileset);
15796
- });
15797
- }
15798
- }
15799
15923
 
15800
- this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
15801
- if (shape) {
15802
- that._options.positions = shape._controlPoints;
15924
+ changeHeatmap2d() {
15925
+ if (this._options.gradient) this._heatmap2d.gradient = this._options.gradient;
15926
+ if (this._options.radius) this._heatmap2d.radius = this._options.radius;
15927
+ if (this._heatmap2dCountLayer) this._viewer.imageryLayers.remove(this._heatmap2dCountLayer, true);
15928
+ let extent = this._heatmap2d.extent;
15929
+ let pv = new Cesium.SingleTileImageryProvider({
15930
+ url: this._heatmap2d.toDataURL(),
15931
+ rectangle: Cesium.Rectangle.fromDegrees(extent[0], extent[1], extent[2], extent[3])
15932
+ });
15933
+ this._heatmap2dCountLayer = new Cesium.ImageryLayer(pv, {
15934
+ alpha: this._options.transparents,
15935
+ show: this._options.heatmapType == "2D" ? true : false
15936
+ });
15803
15937
 
15804
- if (shape._controlPoints && shape._controlPoints.length > 3 || shape._controlPoints && shape._controlPoints.length == 3 && shape._controlPoints[2] != shape._controlPoints[0]) {
15805
- that.createDynamicExcavationEffect();
15806
- } else {
15807
- message({
15808
- message: "请至少绘制3个点!",
15809
- type: "warning"
15810
- });
15938
+ this._viewer.imageryLayers.add(this._heatmap2dCountLayer);
15939
+ } // 设置颜色渲染
15940
+
15941
+
15942
+ setColorArray(val) {
15943
+ this._options.gradient = val;
15944
+ if (this._heatmap) this._heatmap.gradient = val;
15945
+ if (this._heatmap2d) this.changeHeatmap2d();
15946
+ } // 参数改变
15947
+
15948
+
15949
+ paramsChanged(key, val) {
15950
+ this._options[key] = val;
15951
+ if (!this._heatmap) return;
15952
+ if (!this._heatmap2dCountLayer) return;
15953
+
15954
+ switch (key) {
15955
+ case "heatmapType":
15956
+ this._mouseLabel.setVisible(false);
15957
+
15958
+ if (this._options.heatmapType == "3D") {
15959
+ this._viewer.scene.highDynamicRange = false;
15960
+ this._viewer.scene.globe.showGroundAtmosphere = true;
15961
+ this._heatmap.show = this._options.isShow;
15962
+ this._heatmap2dCountLayer.show = false;
15963
+ } else if (this._options.heatmapType == "2D") {
15964
+ this._viewer.scene.highDynamicRange = true;
15965
+ this._viewer.scene.globe.showGroundAtmosphere = false;
15966
+ this._heatmap.show = false;
15967
+ this._heatmap2dCountLayer.show = this._options.isShow;
15811
15968
  }
15812
15969
 
15813
- that._drawManager.clear();
15814
- }
15815
- });
15816
- } // 创建开挖模型
15970
+ break;
15817
15971
 
15972
+ case "radius":
15973
+ this._mouseLabel.setVisible(false);
15818
15974
 
15819
- createDynamicExcavationEffect() {
15820
- this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
15821
- this._Kq3dTerrainExcavation = new window.Cesium.Kq3dTerrainExcavation({
15822
- viewer: this._viewer,
15823
- height: this._options.height,
15824
- positions: this._options.positions,
15825
- hasWall: false
15826
- });
15975
+ this._heatmap[key] = Number(val);
15827
15976
 
15828
- if (this._wallPrimitive) {
15829
- this._viewer.scene.primitives.remove(this._wallPrimitive);
15977
+ if (this._heatmap.dynamic) {
15978
+ this._heatmap.dynamic = false;
15979
+ }
15830
15980
 
15831
- this._wallPrimitive = undefined;
15832
- }
15981
+ this.changeHeatmap2d();
15982
+ break;
15833
15983
 
15834
- this._wallPrimitive = new window.Cesium.Kq3dWallPrimitive({
15835
- viewer: this._viewer,
15836
- height: this._options.height,
15837
- positions: this._options.positions,
15838
- elevationOnTerrain: false
15839
- });
15984
+ case "height":
15985
+ this._mouseLabel.setVisible(false);
15840
15986
 
15841
- this._viewer.scene.primitives.add(this._wallPrimitive);
15987
+ this._heatmap[key] = Number(val);
15842
15988
 
15843
- let that = this;
15989
+ if (this._heatmap.dynamic) {
15990
+ this._heatmap.dynamic = false;
15991
+ }
15844
15992
 
15845
- this._wallPrimitive._readyEvent.addEventListener(function (eventType) {
15846
- if (eventType != "Ready") {
15847
- return;
15848
- }
15993
+ break;
15849
15994
 
15850
- that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
15851
- var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
15852
- positions: that._options.positions,
15853
- height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
15995
+ case "transparents":
15996
+ this._heatmap.alpha = Number(val);
15997
+ this._heatmap2dCountLayer.alpha = Number(val);
15998
+ break;
15999
+
16000
+ case "heightRatio":
16001
+ this._mouseLabel.setVisible(false);
16002
+
16003
+ this._heatmap.heightRatio = Number(val);
16004
+ break;
16005
+
16006
+ case "isShow":
16007
+ if (this._options.heatmapType == "3D") {
16008
+ this._heatmap.show = val;
16009
+ } else if (this._options.heatmapType == "2D") {
16010
+ this._heatmap2dCountLayer.show = val;
16011
+ }
16012
+
16013
+ this._mouseLabel.setVisible(false);
16014
+
16015
+ break;
16016
+
16017
+ case "isFollowingPerspective":
16018
+ this._heatmap.dynamic = val;
16019
+
16020
+ this._mouseLabel.setVisible(false);
16021
+
16022
+ break;
16023
+
16024
+ case "isGround":
16025
+ this._heatmap.clampToGround = val;
16026
+
16027
+ this._mouseLabel.setVisible(false);
16028
+
16029
+ break;
16030
+
16031
+ case "valueField":
16032
+ this.clear();
16033
+
16034
+ if (this.heatmapData) {
16035
+ this.initHeatmap3d(this.heatmapData);
16036
+ this.initHeatmap2d(this.heatmapData);
16037
+ }
16038
+
16039
+ break;
16040
+
16041
+ default:
16042
+ break;
16043
+ }
16044
+ } // 加载
16045
+
16046
+
16047
+ start() {
16048
+ this.clear();
16049
+
16050
+ if (this.heatmapData) {
16051
+ this.initHeatmap3d(this.heatmapData);
16052
+ this.initHeatmap2d(this.heatmapData);
16053
+ } else {
16054
+ message({
16055
+ message: this.language["fileTypeMessage"] + "!",
16056
+ type: "warning",
16057
+ duration: 2000
15854
16058
  });
15855
- that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon); // that.intervalId = setInterval(function () {
15856
- // if (that.ii > 100) {
15857
- // if (that.entity0) {
15858
- // that._viewer.scene.primitives.remove(that.entity0);
15859
- // that.entity0 = undefined;
15860
- // }
15861
- // if (that.wall) {
15862
- // that._viewer.scene.primitives.remove(that.wall);
15863
- // that.wall = undefined;
15864
- // }
15865
- // clearInterval(that.intervalId);
15866
- // that.ii = 0;
15867
- // return;
15868
- // }
15869
- // var carto2 = window.Cesium.Cartesian3.lerp(that._options.positions[0], that._options.positions[3], that.ratio * that.ii, that.scratchCartesian2);
15870
- // var carto3 = window.Cesium.Cartesian3.lerp(that._options.positions[1], that._options.positions[2], that.ratio * that.ii, that.scratchCartesian3);
15871
- // if (that.entity0) {
15872
- // that._viewer.scene.primitives.remove(that.entity0);
15873
- // that.entity0 = undefined;
15874
- // }
15875
- // that.entity0 = that.createPolyline([carto2, carto3]);
15876
- // that.ii++;
15877
- // that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
15878
- // var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
15879
- // positions: [that._options.positions[0], that._options.positions[1], carto3, carto2],
15880
- // height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
15881
- // });
15882
- // that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon);
15883
- // }, 100);
15884
- });
15885
- }
16059
+ return;
16060
+ }
16061
+ } //清除全部结果
15886
16062
 
15887
- createPolyline(positions) {
15888
- var material = window.Cesium.Material.fromType("Kq3dLightningMaterial", {});
15889
16063
 
15890
- if (this.wall) {
15891
- this._viewer.scene.primitives.remove(this.wall);
16064
+ clear() {
16065
+ this._mouseLabel.setVisible(false);
15892
16066
 
15893
- this.wall = undefined;
16067
+ if (this._heatmap) {
16068
+ this._viewer.scene.primitives.remove(this._heatmap);
16069
+
16070
+ this._heatmap = null;
15894
16071
  }
15895
16072
 
15896
- var geometryInstances = [];
15897
- geometryInstances.push(new window.Cesium.GeometryInstance({
15898
- geometry: new window.Cesium.WallGeometry({
15899
- positions: positions,
15900
- maximumHeights: [10, 10],
15901
- minimumHeights: [-10, -10],
15902
- vertexFormat: window.Cesium.VertexFormat.POSITION_NORMAL_AND_ST
15903
- })
15904
- }));
15905
- this.wall = new window.Cesium.Primitive({
15906
- geometryInstances: geometryInstances,
15907
- appearance: new window.Cesium.MaterialAppearance({
15908
- material: material
15909
- })
15910
- });
16073
+ if (this._heatmap2d) this._heatmap2d = null;
16074
+ if (this._heatmap2dCountLayer) this._viewer.imageryLayers.remove(this._heatmap2dCountLayer, true);
16075
+ } //销毁
15911
16076
 
15912
- this._viewer.scene.primitives.add(this.wall);
15913
16077
 
15914
- var geo = new window.Cesium.GroundPolylineGeometry({
15915
- positions: positions,
15916
- width: 40.0,
15917
- vertexFormat: window.Cesium.PolylineMaterialAppearance.VERTEX_FORMAT
15918
- });
15919
- var primitive = new window.Cesium.GroundPolylinePrimitive({
15920
- asynchronous: false,
15921
- classificationType: window.Cesium.ClassificationType.BOTH,
15922
- geometryInstances: new window.Cesium.GeometryInstance({
15923
- geometry: geo
15924
- }),
15925
- appearance: new window.Cesium.PolylineMaterialAppearance({
15926
- material: material
15927
- })
15928
- });
15929
- return this._viewer.scene.primitives.add(primitive);
16078
+ destroy() {
16079
+ this.clear();
16080
+
16081
+ this._mouseLabel.destroy();
15930
16082
  }
15931
16083
 
15932
- start() {
15933
- // 判断是否添加了模型
15934
- var flag = false;
15935
- var that = this;
15936
- var models = this._viewer.scene.primitives._primitives;
16084
+ }
16085
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/heatmap3d/CustomColorPickerSlider.vue?vue&type=script&setup=true&lang=js
15937
16086
 
15938
- for (let i = 0; i < models.length; i++) {
15939
- if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
15940
- // models[i].enableFlattenning = true;
15941
- // models[i].flattenDiscard = true;
15942
- // models[i].readyPromise.then(function (tileset) {
15943
- // that.g_flattenedPolygonTexture.attachTileset(tileset);
15944
- // });
15945
- flag = true;
16087
+
16088
+ const _withScopeId = n => ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.pushScopeId)("data-v-c771bfde"), n = n(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.popScopeId)(), n);
16089
+
16090
+ const CustomColorPickerSlidervue_type_script_setup_true_lang_js_hoisted_1 = /*#__PURE__*/_withScopeId(() => /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
16091
+ class: "arrow"
16092
+ }, null, -1
16093
+ /* HOISTED */
16094
+ ));
16095
+
16096
+
16097
+ /* harmony default export */ var CustomColorPickerSlidervue_type_script_setup_true_lang_js = ({
16098
+ __name: 'CustomColorPickerSlider',
16099
+ props: ["width", "color", "percentage", "id"],
16100
+ emits: ["updatePercentage", "updateColor", "deleteColorSlider"],
16101
+
16102
+ setup(__props, {
16103
+ emit
16104
+ }) {
16105
+ const props = __props; // eslint-disable-next-line vue/no-setup-props-destructure
16106
+
16107
+ const initId = props.id;
16108
+ const initColor = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.color);
16109
+ const rangeMin = -5;
16110
+ const rangeMax = props.width - 5;
16111
+ const position = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.percentage / 100 * props.width + rangeMin);
16112
+ const disabled = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false); // 为了防止在mouseup事件结束后,弹出颜色框
16113
+
16114
+ let offsetX = 0;
16115
+ let isDragging = false; // 是否拖动
16116
+
16117
+ let mouseDownX = 0; // 通过拖动的距离,判断是拖动还是点击
16118
+
16119
+ function handleMouseDown(event) {
16120
+ isDragging = true;
16121
+ offsetX = event.clientX - position.value;
16122
+ mouseDownX = event.clientX; // 监听mousemove、mouseup事件 注意是在document上监听
16123
+
16124
+ document.addEventListener("mousemove", handleMouseMove);
16125
+ document.addEventListener("mouseup", handleMouseUp); // 阻止了默认行为,防止出现not-allowed的光标
16126
+
16127
+ event.preventDefault();
16128
+ } // 处理MouseMove
16129
+
16130
+
16131
+ function handleMouseMove(event) {
16132
+ if (isDragging) {
16133
+ position.value = Math.min(Math.max(event.clientX - offsetX, rangeMin), rangeMax); // 拖动的过程中,不断改变percentage
16134
+
16135
+ const percentage = (position.value + Math.abs(rangeMin)) / (rangeMax - rangeMin) * 100;
16136
+ emit("updatePercentage", {
16137
+ percentage: percentage,
16138
+ id: initId
16139
+ });
15946
16140
  }
15947
16141
  }
15948
16142
 
15949
- if (flag) {
15950
- this.remove();
16143
+ function handleMouseUp(event) {
16144
+ if (isDragging) {
16145
+ isDragging = false; // 移除mousemove、mouseup的事件监听
15951
16146
 
15952
- this._drawManager.startDraw("polygon", {
15953
- clampToGround: true
16147
+ document.removeEventListener("mousemove", handleMouseMove);
16148
+ document.removeEventListener("mouseup", handleMouseUp);
16149
+ } // 判断是否拖动模式
16150
+
16151
+
16152
+ if (Math.abs(event.clientX - mouseDownX) > 2) {
16153
+ // 是拖动模式 禁止colorPicker组件弹出
16154
+ disabled.value = true;
16155
+ setTimeout(function () {
16156
+ disabled.value = false;
16157
+ }, 100);
16158
+ }
16159
+ }
16160
+
16161
+ function updateColor(color) {
16162
+ initColor.value = color;
16163
+ emit("updateColor", {
16164
+ color: color,
16165
+ id: initId
15954
16166
  });
15955
- } else {
15956
- message({
15957
- message: "请添加模型后绘制!",
15958
- type: "warning"
16167
+ }
16168
+
16169
+ function deleteColorSlider() {
16170
+ emit("deleteColorSlider", {
16171
+ id: initId
15959
16172
  });
15960
16173
  }
15961
- } // 切换高度重新计算
15962
16174
 
16175
+ function handleClick(event) {
16176
+ // 阻止滑块上的点击事件冒泡
16177
+ event.stopPropagation();
16178
+ }
15963
16179
 
15964
- setHeight(val) {
15965
- this._options.height = Number(val);
16180
+ return (_ctx, _cache) => {
16181
+ const _component_kq_color_picker = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-color-picker");
16182
+
16183
+ return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", {
16184
+ class: "cs",
16185
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)({
16186
+ left: position.value + 'px'
16187
+ }),
16188
+ onMousedown: handleMouseDown,
16189
+ onClick: handleClick
16190
+ }, [CustomColorPickerSlidervue_type_script_setup_true_lang_js_hoisted_1, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_color_picker, {
16191
+ modelValue: initColor.value,
16192
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => initColor.value = $event),
16193
+ onActiveChange: updateColor,
16194
+ disabled: disabled.value
16195
+ }, null, 8
16196
+ /* PROPS */
16197
+ , ["modelValue", "disabled"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
16198
+ class: "delete",
16199
+ onClick: deleteColorSlider
16200
+ }, "x")], 36
16201
+ /* STYLE, HYDRATE_EVENTS */
16202
+ );
16203
+ };
15966
16204
  }
15967
16205
 
15968
- remove() {
15969
- // 销毁地形开挖
15970
- if (this.intervalId) {
15971
- clearInterval(this.intervalId);
15972
- this.ii = 0;
16206
+ });
16207
+ ;// CONCATENATED MODULE: ./src/webgl/heatmap3d/CustomColorPickerSlider.vue?vue&type=script&setup=true&lang=js
16208
+
16209
+ // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
16210
+ var injectStylesIntoStyleTag = __webpack_require__(379);
16211
+ var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
16212
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/heatmap3d/CustomColorPickerSlider.vue?vue&type=style&index=0&id=c771bfde&scoped=true&lang=scss
16213
+ var CustomColorPickerSlidervue_type_style_index_0_id_c771bfde_scoped_true_lang_scss = __webpack_require__(757);
16214
+ ;// CONCATENATED MODULE: ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/heatmap3d/CustomColorPickerSlider.vue?vue&type=style&index=0&id=c771bfde&scoped=true&lang=scss
15973
16215
 
15974
- if (this.entity0) {
15975
- this._viewer.scene.primitives.remove(this.entity0);
16216
+
15976
16217
 
15977
- this.entity0 = undefined;
16218
+ var options = {};
16219
+
16220
+ options.insert = "head";
16221
+ options.singleton = false;
16222
+
16223
+ var update = injectStylesIntoStyleTag_default()(CustomColorPickerSlidervue_type_style_index_0_id_c771bfde_scoped_true_lang_scss/* default */.Z, options);
16224
+
16225
+
16226
+
16227
+ /* harmony default export */ var heatmap3d_CustomColorPickerSlidervue_type_style_index_0_id_c771bfde_scoped_true_lang_scss = (CustomColorPickerSlidervue_type_style_index_0_id_c771bfde_scoped_true_lang_scss/* default.locals */.Z.locals || {});
16228
+ ;// CONCATENATED MODULE: ./src/webgl/heatmap3d/CustomColorPickerSlider.vue?vue&type=style&index=0&id=c771bfde&scoped=true&lang=scss
16229
+
16230
+ // EXTERNAL MODULE: ./node_modules/vue-loader/dist/exportHelper.js
16231
+ var exportHelper = __webpack_require__(21);
16232
+ ;// CONCATENATED MODULE: ./src/webgl/heatmap3d/CustomColorPickerSlider.vue
16233
+
16234
+
16235
+
16236
+ ;
16237
+
16238
+
16239
+ const CustomColorPickerSlider_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(CustomColorPickerSlidervue_type_script_setup_true_lang_js, [['__scopeId',"data-v-c771bfde"]])
16240
+
16241
+ /* harmony default export */ var CustomColorPickerSlider = (CustomColorPickerSlider_exports_);
16242
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/heatmap3d/CustomColorPicker.vue?vue&type=script&setup=true&lang=js
16243
+
16244
+
16245
+ const CustomColorPickervue_type_script_setup_true_lang_js_withScopeId = n => (_pushScopeId("data-v-b1608504"), n = n(), _popScopeId(), n);
16246
+
16247
+ const CustomColorPickervue_type_script_setup_true_lang_js_hoisted_1 = {
16248
+ class: "gp"
16249
+ };
16250
+
16251
+
16252
+
16253
+ /* harmony default export */ var CustomColorPickervue_type_script_setup_true_lang_js = ({
16254
+ __name: 'CustomColorPicker',
16255
+ props: ["data"],
16256
+ emits: ["color-changed"],
16257
+
16258
+ setup(__props, {
16259
+ emit
16260
+ }) {
16261
+ const props = __props; // 宽度
16262
+
16263
+ const width = 257;
16264
+ const items = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(props.data);
16265
+ let backgroundImage = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(updateBackgroundImage()); // 更新色带条
16266
+
16267
+ function updateBackgroundImage() {
16268
+ let style = [];
16269
+
16270
+ for (let i = 0; i < items.value.length; i++) {
16271
+ const item = items.value[i];
16272
+ style.push(`${item.color} ${item.percentage}%`);
15978
16273
  }
15979
16274
 
15980
- if (this.wall) {
15981
- this._viewer.scene.primitives.remove(this.wall);
16275
+ return `background-image: linear-gradient(90deg, ${style.toString()})`;
16276
+ } // 更新颜色百分比
15982
16277
 
15983
- this.wall = undefined;
16278
+
16279
+ function updatePercentage(args) {
16280
+ const {
16281
+ percentage,
16282
+ id
16283
+ } = args;
16284
+
16285
+ for (let i = 0; i < items.value.length; i++) {
16286
+ if (items.value[i].id == id) {
16287
+ items.value[i].percentage = percentage;
16288
+ break;
16289
+ }
16290
+ } // 重新排序数组
16291
+
16292
+
16293
+ items.value.sort((a, b) => a.percentage - b.percentage);
16294
+ backgroundImage.value = updateBackgroundImage();
16295
+ emit("color-changed", items.value);
16296
+ } // 更新颜色
16297
+
16298
+
16299
+ function updateColor(args) {
16300
+ const {
16301
+ color,
16302
+ id
16303
+ } = args;
16304
+
16305
+ for (let i = 0; i < items.value.length; i++) {
16306
+ if (items.value[i].id == id) {
16307
+ items.value[i].color = color;
16308
+ break;
16309
+ }
16310
+ } // 重新排序数组
16311
+
16312
+
16313
+ items.value.sort((a, b) => a.percentage - b.percentage);
16314
+ backgroundImage.value = updateBackgroundImage();
16315
+ emit("color-changed", items.value);
16316
+ } // 删除色块
16317
+
16318
+
16319
+ function deleteColorSlider(args) {
16320
+ if (items.value.length <= 2) {
16321
+ return;
15984
16322
  }
15985
- }
15986
16323
 
15987
- if (this._wallPrimitive) {
15988
- this._viewer.scene.primitives.remove(this._wallPrimitive);
16324
+ const {
16325
+ id
16326
+ } = args;
15989
16327
 
15990
- this._wallPrimitive = undefined;
16328
+ for (let i = 0; i < items.value.length; i++) {
16329
+ if (items.value[i].id == id) {
16330
+ items.value.splice(i, 1);
16331
+ break;
16332
+ }
16333
+ }
16334
+
16335
+ backgroundImage.value = updateBackgroundImage();
16336
+ emit("color-changed", items.value);
16337
+ } // 增加色块
16338
+
16339
+
16340
+ function addColorSlider(event) {
16341
+ items.value.push({
16342
+ id: (0,util_.guid)(),
16343
+ color: "#0000FF",
16344
+ percentage: event.offsetX / width * 100
16345
+ }); // 重新排序数组
16346
+
16347
+ items.value.sort((a, b) => a.percentage - b.percentage);
16348
+ backgroundImage.value = updateBackgroundImage();
16349
+ emit("color-changed", items.value);
15991
16350
  }
15992
16351
 
15993
- this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
15994
- this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
15995
- } // 清除
16352
+ return (_ctx, _cache) => {
16353
+ return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", CustomColorPickervue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
16354
+ class: "palette",
16355
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(backgroundImage))
16356
+ }, null, 4
16357
+ /* STYLE */
16358
+ ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
16359
+ class: "csh",
16360
+ onClick: addColorSlider
16361
+ }, [((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)(items.value, item => {
16362
+ return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(CustomColorPickerSlider, {
16363
+ key: item.id,
16364
+ width: width,
16365
+ color: item.color,
16366
+ id: item.id,
16367
+ percentage: item.percentage,
16368
+ onUpdatePercentage: updatePercentage,
16369
+ onUpdateColor: updateColor,
16370
+ onDeleteColorSlider: deleteColorSlider
16371
+ }, null, 8
16372
+ /* PROPS */
16373
+ , ["color", "id", "percentage"]);
16374
+ }), 128
16375
+ /* KEYED_FRAGMENT */
16376
+ ))])]);
16377
+ };
16378
+ }
15996
16379
 
16380
+ });
16381
+ ;// CONCATENATED MODULE: ./src/webgl/heatmap3d/CustomColorPicker.vue?vue&type=script&setup=true&lang=js
16382
+
16383
+ // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/heatmap3d/CustomColorPicker.vue?vue&type=style&index=0&id=b1608504&scoped=true&lang=scss
16384
+ var CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss = __webpack_require__(98);
16385
+ ;// CONCATENATED MODULE: ./node_modules/style-loader/dist/cjs.js!./node_modules/css-loader/dist/cjs.js!./node_modules/vue-loader/dist/stylePostLoader.js!./node_modules/sass-loader/dist/cjs.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/heatmap3d/CustomColorPicker.vue?vue&type=style&index=0&id=b1608504&scoped=true&lang=scss
15997
16386
 
15998
- clear() {
15999
- this._drawManager.stopDraw();
16387
+
16000
16388
 
16001
- this.remove();
16002
- } //销毁
16389
+ var CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss_options = {};
16003
16390
 
16391
+ CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss_options.insert = "head";
16392
+ CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss_options.singleton = false;
16004
16393
 
16005
- destroy() {
16006
- this.clear();
16007
- this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.detachAllTileset();
16008
- this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.destroy();
16009
- }
16394
+ var CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss_update = injectStylesIntoStyleTag_default()(CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss/* default */.Z, CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss_options);
16010
16395
 
16011
- }
16012
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/modelexcavate/ModelExcavate.vue?vue&type=script&setup=true&lang=js
16013
16396
 
16014
- const ModelExcavatevue_type_script_setup_true_lang_js_hoisted_1 = {
16015
- class: "kq3d-model-excavate-box",
16016
- ref: "ref_box"
16397
+
16398
+ /* harmony default export */ var heatmap3d_CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss = (CustomColorPickervue_type_style_index_0_id_b1608504_scoped_true_lang_scss/* default.locals */.Z.locals || {});
16399
+ ;// CONCATENATED MODULE: ./src/webgl/heatmap3d/CustomColorPicker.vue?vue&type=style&index=0&id=b1608504&scoped=true&lang=scss
16400
+
16401
+ ;// CONCATENATED MODULE: ./src/webgl/heatmap3d/CustomColorPicker.vue
16402
+
16403
+
16404
+
16405
+ ;
16406
+
16407
+
16408
+ const CustomColorPicker_exports_ = /*#__PURE__*/(0,exportHelper/* default */.Z)(CustomColorPickervue_type_script_setup_true_lang_js, [['__scopeId',"data-v-b1608504"]])
16409
+
16410
+ /* harmony default export */ var CustomColorPicker = (CustomColorPicker_exports_);
16411
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/heatmap3d/Heatmap3d.vue?vue&type=script&setup=true&lang=js
16412
+
16413
+
16414
+ const Heatmap3dvue_type_script_setup_true_lang_js_hoisted_1 = {
16415
+ class: "kq3d-heatmap-box"
16017
16416
  };
16018
- const ModelExcavatevue_type_script_setup_true_lang_js_hoisted_2 = {
16019
- class: "kq3d-model-excavate-span"
16417
+ const Heatmap3dvue_type_script_setup_true_lang_js_hoisted_2 = {
16418
+ class: "kq3d-heatmap-span"
16020
16419
  };
16021
- const ModelExcavatevue_type_script_setup_true_lang_js_hoisted_3 = {
16022
- class: "kq3d-model-excavate-footer"
16420
+ const Heatmap3dvue_type_script_setup_true_lang_js_hoisted_3 = {
16421
+ class: "kq3d-heatmap-span"
16422
+ };
16423
+ const Heatmap3dvue_type_script_setup_true_lang_js_hoisted_4 = {
16424
+ class: "kq3d-heatmap-footer"
16023
16425
  };
16024
16426
 
16025
16427
 
16026
16428
 
16027
16429
 
16028
16430
 
16029
- //语言
16030
16431
 
16031
- const ModelExcavatevue_type_script_setup_true_lang_js_default_ = {
16032
- name: "Kq3dModelExcavate"
16432
+
16433
+
16434
+
16435
+
16436
+ const Heatmap3dvue_type_script_setup_true_lang_js_default_ = {
16437
+ name: "Kq3dHeatmap"
16033
16438
  };
16034
- /* harmony default export */ var ModelExcavatevue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(ModelExcavatevue_type_script_setup_true_lang_js_default_, {
16439
+ /* harmony default export */ var Heatmap3dvue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(Heatmap3dvue_type_script_setup_true_lang_js_default_, {
16035
16440
  props: {
16036
- //指定组件绑定的viewer对象的div的id
16037
- mapTarget: String,
16441
+ // 设置参数
16442
+ settingParams: {
16443
+ type: Object
16444
+ },
16445
+ // 是否显示阴影效果
16446
+ showShadow: {
16447
+ type: Boolean,
16448
+ default: true
16449
+ },
16450
+
16451
+ /**
16452
+ * 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
16453
+ */
16454
+ position: [String, Object],
16455
+ // 是否生成HeaderTemp
16456
+ showHeaderTemp: {
16457
+ type: Boolean,
16458
+ default: false
16459
+ },
16460
+ // 是否折叠HeaderTemp,showHeaderTemp为true时生效
16461
+ isCollapseHeaderTemp: {
16462
+ type: Boolean,
16463
+ default: false
16464
+ },
16465
+ // HeaderTemp标题
16466
+ headerTempTitle: {
16467
+ type: String
16468
+ },
16469
+ // HeaderTemp图标
16470
+ headerTempIcon: {
16471
+ type: [Object, String],
16472
+ default: client_icons_vue_namespaceObject.IconHeatMap3D
16473
+ },
16474
+ // HeaderTemp Title&Icon的位置
16475
+ isRight: {
16476
+ type: Boolean,
16477
+ default: true
16478
+ }
16479
+ },
16480
+
16481
+ setup(__props, {
16482
+ expose
16483
+ }) {
16484
+ const props = __props;
16485
+ const {
16486
+ proxy
16487
+ } = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
16488
+ let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
16489
+ let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
16490
+ let collapseValue = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
16491
+ let weightFields = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]); // 获取组件传参
16492
+
16493
+ let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
16494
+ dataPath: props.settingParams && props.settingParams.dataPath || "",
16495
+ //数据地址,json文件或json地址
16496
+ heatmapType: props.settingParams && props.settingParams.heatmapType || "3D",
16497
+ //渲染方式
16498
+ radius: props.settingParams && props.settingParams.radius || 8,
16499
+ //半径
16500
+ minRadius: props.settingParams && props.settingParams.minRadius || 5,
16501
+ maxRadius: props.settingParams && props.settingParams.maxRadius || 100,
16502
+ transparents: props.settingParams && props.settingParams.transparents || 0.75,
16503
+ //透明度
16504
+ minTransparents: 0,
16505
+ maxTransparents: 1,
16506
+ height: props.settingParams && props.settingParams.height || 800,
16507
+ //高度
16508
+ minHeight: props.settingParams && props.settingParams.minHeight || 0,
16509
+ maxHeight: props.settingParams && props.settingParams.minHeight || 1000,
16510
+ heightRatio: props.settingParams && props.settingParams.heightRatio || 2,
16511
+ //高度比率
16512
+ minHeightRatio: props.settingParams && props.settingParams.minHeightRatio || 0.1,
16513
+ // 最小值
16514
+ maxHeightRatio: props.settingParams && props.settingParams.maxHeightRatio || 10,
16515
+ // 最大值
16516
+ isShow: props.settingParams && props.settingParams.isShow || true,
16517
+ // 是否显示
16518
+ isGround: props.settingParams && props.settingParams.isGround || false,
16519
+ // 是否贴地
16520
+ isFollowingPerspective: props.settingParams && props.settingParams.isFollowingPerspective || true,
16521
+ //跟随视角调整
16522
+ valueField: props.settingParams && props.settingParams.valueField || "",
16523
+ // 权重字段
16524
+ colorMode: props.settingParams && props.settingParams.colorMode || 1,
16525
+ // 1:预设 2:自定义
16526
+ colorRamp: props.settingParams && props.settingParams.colorRamp || 0 //色带索引,0-16
16527
+
16528
+ });
16529
+ let viewModel = null; // 组件容器Ref
16530
+
16531
+ let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
16532
+
16533
+ let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
16534
+ let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
16535
+
16536
+ let {
16537
+ locale,
16538
+ messages
16539
+ } = (0,vue_i18n_cjs_js_namespaceObject.useI18n)();
16540
+ let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
16541
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
16542
+ language.value = messages.value[newVal]["webgl"];
16543
+ headerTempTitle.value = language.value.heatmapTitle;
16544
+ if (viewModel) viewModel.language = language.value;
16545
+ });
16546
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
16547
+ (0,util_.updatePosition)(boxRef.value, props);
16548
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
16549
+ (0,util_.updatePosition)(boxRef.value, props);
16550
+ });
16551
+ watchCreateHeaderTemp();
16552
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.showHeaderTemp, (newVal, oldVal) => {
16553
+ watchCreateHeaderTemp();
16554
+ });
16555
+ currentLang.value = proxy.$i18n.locale; // 获取当前语言
16556
+ //父组 件ScenceView初始化完成后执行
16557
+
16558
+ weightFields.value = [language.value.noSet];
16559
+ if (!formItem.valueField) formItem.valueField = language.value.noSet;
16560
+ gis_utils_.utils.getWebMap(null, scenceView => {
16561
+ if (scenceView) {
16562
+ viewModel = new Heatmap3dViewModel(scenceView, formItem);
16563
+
16564
+ if (viewModel) {
16565
+ viewModel.language = language.value;
16566
+ let test = heatColor.value; // 触发赋值
16567
+ }
16568
+ }
16569
+ });
16570
+ });
16571
+ /**
16572
+ * @description 监听header生成
16573
+ */
16574
+
16575
+ const watchCreateHeaderTemp = () => {
16576
+ if (props.showHeaderTemp) {
16577
+ // 生成headerTemp
16578
+ headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
16579
+ }
16580
+ };
16581
+
16582
+ function selectData(file) {
16583
+ let url = URL.createObjectURL(file.raw);
16584
+ formItem.dataPath = url;
16585
+ } // 参数改变
16586
+
16587
+
16588
+ function paramsChanged(key) {
16589
+ viewModel && viewModel.paramsChanged(key, formItem[key]);
16590
+
16591
+ switch (key) {
16592
+ case "radius":
16593
+ case "height":
16594
+ formItem.isFollowingPerspective = false;
16595
+ break;
16596
+
16597
+ default:
16598
+ break;
16599
+ }
16600
+ } // 加载
16601
+
16602
+
16603
+ function startAnalysis() {
16604
+ getDataByPath();
16605
+ } // 获取路径数据
16606
+
16607
+
16608
+ function getDataByPath() {
16609
+ if (formItem && formItem.dataPath) {
16610
+ Cesium.Resource.fetchJson(formItem.dataPath).then(res => {
16611
+ if (res && res.features) {
16612
+ if (res.features.length === 0) {
16613
+ message({
16614
+ message: "features " + language.value.noDataMessage + "!",
16615
+ type: "warning",
16616
+ duration: 2000
16617
+ });
16618
+ return;
16619
+ }
16620
+
16621
+ let heatmapArr = [];
16622
+ let bigArray = [];
16623
+ res.features.forEach(element => {
16624
+ if (!element.properties || Object.keys(element.properties).length === 0) return;
16625
+ let result = getValidKeysAndValues(element.properties);
16626
+ bigArray.push(result.validKeys);
16627
+ heatmapArr.push({
16628
+ lng: element.geometry.coordinates[0],
16629
+ lat: element.geometry.coordinates[1],
16630
+ ...result.newObj,
16631
+ ...{
16632
+ noSet: 0
16633
+ }
16634
+ });
16635
+ });
16636
+ let commonArr = commonValues(bigArray);
16637
+ weightFields.value = [language.value.noSet].concat(commonArr); // if (!formItem.valueField) {
16638
+ // formItem.valueField = commonArr[0];
16639
+ // paramsChanged("valueField");
16640
+ // }
16641
+
16642
+ if (viewModel) {
16643
+ viewModel.heatmapData = heatmapArr;
16644
+ viewModel.start();
16645
+ }
16646
+ } else {
16647
+ message({
16648
+ message: language.value.geojsonTypeMessage + "!",
16649
+ type: "warning",
16650
+ duration: 2000
16651
+ });
16652
+ return;
16653
+ }
16654
+ }).otherwise(ret => {
16655
+ console.log(ret);
16656
+ message({
16657
+ message: language.value.dataParsingMessage + "!",
16658
+ type: "error",
16659
+ duration: 2000
16660
+ });
16661
+ return;
16662
+ });
16663
+ } else {
16664
+ message({
16665
+ message: language.value.fileTypeMessage + "!",
16666
+ type: "warning",
16667
+ duration: 2000
16668
+ });
16669
+ return;
16670
+ }
16671
+ }
16672
+
16673
+ function commonValues(bigArray) {
16674
+ // 如果大数组为空,直接返回空数组
16675
+ if (bigArray.length === 0) {
16676
+ return [];
16677
+ } // 以第一个小数组为初始值进行比较
16678
+
16679
+
16680
+ let common = [...bigArray[0]];
16681
+
16682
+ for (let i = 1; i < bigArray.length; i++) {
16683
+ common = common.filter(item => bigArray[i].includes(item));
16684
+ }
16685
+
16686
+ return common;
16687
+ } // 获取对象键列表
16688
+
16689
+
16690
+ function getValidKeysAndValues(obj) {
16691
+ const validKeys = [];
16692
+ const newObj = {};
16693
+
16694
+ for (const key in obj) {
16695
+ const value = obj[key];
16696
+
16697
+ if (!isNaN(value) && value > 0) {
16698
+ validKeys.push(key);
16699
+ newObj[key] = value;
16700
+ }
16701
+ }
16702
+
16703
+ return {
16704
+ validKeys,
16705
+ newObj
16706
+ };
16707
+ } // 预设的色带
16708
+
16709
+
16710
+ const colorData = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([["#F0EDB6", "#E0831F", "#910909"], ["#80FFFF", "#2EA7F2", "#000068"], ["#9999FF", "#99FFFF", "#FF9999", "#FFFF99"], ["#9766BF", "#C9ADAD", "#B5ADDD", "#93A9DD", "#74A9E1"], ["#0000FF", "#00FFFF", "#00FF00", "#FFFF00", "#FF0000"], ["#814BAB", "#821498", "#D53448", "#FDD944", "#FFFFFF"], ["#636CEA", "#1B1DD5", "#BE1C4D", "#F79390", "#FFFFCC"], ["#7FC97F", "#BEAED4", "#FDC086", "#FFFF99", "#386CB0", "#70027F", "#BF5B17"], ["#A6CEE3", "#1F78B4", "#B2DF8A", "#33A02C", "#FB9A99", "#D2212D", "#FDBF6F"], ["#E41A1C", "#377EB8", "#4DAF4A", "#984EA3", "#FF7F00", "#FFFF33", "#A65628"], ["#D73027", "#FC8D59", "#FEE08B", "#FFFFBF", "#D9EF8B", "#91CF60", "#1A9850"], ["#D53E4F", "#FC8D59", "#FEE08B", "#FFFFBF", "#E6F598", "#99D594", "#3288BD"], ["#D73027", "#FC8D59", "#FEE090", "#FFFFBF", "#E0F3F8", "#91BFDB", "#4575B4"], ["#B2182B", "#EF8A62", "#FDDBC7", "#FFFFFF", "#E0E0E0", "#999999", "#4D4D4D"], ["#E9F013", "#B3B3B3", "#408000", "#000080", "#0D3069", "#ABABAB", "#FFFCFF"], ["#B0B0B0", "#0000FF", "#00A6FF", "#00FF00", "#00FFFF", "#FF0000", "#FFA600", "#FF00FF", "#0000FF"], ["#531DAB", "#2F54EB", "#40A9FF", "#5CDBD3", "#B7EB8F", "#FFE58F", "#FFC069", "#FF7A45", "#F53B44", "#A8071A"]]); // 自定义的颜色
16711
+
16712
+ const customColors = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.computed)({
16713
+ get() {
16714
+ const custom = props.settingParams && props.settingParams.custom;
16715
+
16716
+ if (!custom || custom.length == 0) {
16717
+ return getCustomColors(colorData.value[formItem.colorRamp]);
16718
+ } else {
16719
+ return custom;
16720
+ }
16721
+ },
16722
+
16723
+ set(value) {
16724
+ regroupColors();
16725
+ }
16726
+
16727
+ });
16728
+ const heatColor = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.computed)({
16729
+ get() {
16730
+ if (formItem.colorMode === 1) {
16731
+ getCustomColors(colorData.value[formItem.colorRamp]);
16732
+ regroupColors();
16733
+ } else {
16734
+ onChangeColorRamp();
16735
+ }
16736
+
16737
+ return heatColor.value;
16738
+ },
16739
+
16740
+ set(value) {
16741
+ viewModel && viewModel.setColorArray(value);
16742
+ }
16743
+
16744
+ });
16745
+
16746
+ function getHeatColor() {} // 重组颜色渲染对象
16747
+
16748
+
16749
+ function regroupColors() {
16750
+ let obj = {};
16751
+ customColors.value.forEach(element => {
16752
+ obj[element.percentage / 100] = element.color;
16753
+ });
16754
+ heatColor.value = obj;
16755
+ }
16756
+
16757
+ function onChangeColorRamp() {
16758
+ // 固定的开头
16759
+ const colors = colorData.value[formItem.colorRamp];
16760
+ const len = colors.length;
16761
+ const delta = 1 / len;
16762
+ let ramp = {};
16763
+
16764
+ for (let i = 0; i < len - 1; i++) {
16765
+ ramp[delta * (i + 1)] = colors[i];
16766
+ }
16767
+
16768
+ ramp[1] = colors[len - 1];
16769
+ heatColor.value = {
16770
+ 0: "rgba(0, 0, 0, 0)",
16771
+ ...ramp
16772
+ };
16773
+ }
16774
+
16775
+ function getCustomColors(colors) {
16776
+ let custom = [];
16777
+ const len = colors.length;
16778
+ const delta = 1 / (len - 1);
16779
+
16780
+ for (let i = 0; i < len; i++) {
16781
+ custom.push({
16782
+ id: (0,util_.guid)(),
16783
+ color: colors[i],
16784
+ percentage: i * delta * 100
16785
+ });
16786
+ }
16787
+
16788
+ return custom;
16789
+ }
16790
+
16791
+ function colorChanged(items) {
16792
+ let ramp = {};
16793
+
16794
+ for (let i = 0; i < items.length; i++) {
16795
+ if (items[i].percentage == 0) {
16796
+ items[i].percentage = 1;
16797
+ }
16798
+
16799
+ ramp[items[i].percentage / 100] = items[i].color;
16800
+ }
16801
+
16802
+ heatColor.value = {
16803
+ 0: "rgba(0, 0, 0, 0)",
16804
+ ...ramp
16805
+ };
16806
+ }
16807
+
16808
+ function generateColorStyle(colors) {
16809
+ return `background-image: linear-gradient(90deg, ${colors.toString()})`;
16810
+ } // 反转色带的颜色
16811
+
16812
+
16813
+ function onClickReverseRamp(colors) {
16814
+ colors = colors.reverse();
16815
+ onChangeColorRamp();
16816
+ } // 清除
16817
+
16818
+
16819
+ function clearResult() {
16820
+ viewModel && viewModel.clear();
16821
+ } // 销毁
16822
+
16823
+
16824
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
16825
+ viewModel && viewModel.destroy();
16826
+ });
16827
+ expose({});
16828
+ return (_ctx, _cache) => {
16829
+ const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
16830
+
16831
+ const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
16832
+
16833
+ const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
16834
+
16835
+ const _component_kq_upload = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-upload");
16836
+
16837
+ const _component_kq_input = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input");
16838
+
16839
+ const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
16840
+
16841
+ const _component_kq_radio = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-radio");
16842
+
16843
+ const _component_kq_radio_group = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-radio-group");
16844
+
16845
+ const _component_kq_option = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-option");
16846
+
16847
+ const _component_kq_select = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-select");
16848
+
16849
+ const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
16850
+
16851
+ const _component_kq_radio_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-radio-button");
16852
+
16853
+ const _component_kq_slider = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-slider");
16854
+
16855
+ const _component_kq_input_number = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input-number");
16856
+
16857
+ const _component_kq_switch = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-switch");
16858
+
16859
+ const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
16860
+
16861
+ const _component_kq_collapse_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse-item");
16862
+
16863
+ const _component_kq_collapse = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse");
16864
+
16865
+ return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
16866
+ class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-heatmap", {
16867
+ 'kq-box-shadow': __props.showShadow
16868
+ }]),
16869
+ ref_key: "boxRef",
16870
+ ref: boxRef
16871
+ }, [__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)), {
16872
+ key: 0,
16873
+ ref_key: "headerTempRef",
16874
+ ref: headerTempRef
16875
+ }, null, 512
16876
+ /* NEED_PATCH */
16877
+ )) : (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", Heatmap3dvue_type_script_setup_true_lang_js_hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
16878
+ gutter: 20,
16879
+ class: "rowClass"
16880
+ }, {
16881
+ 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, {
16882
+ span: 6,
16883
+ class: "colClass"
16884
+ }, {
16885
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", Heatmap3dvue_type_script_setup_true_lang_js_hoisted_2, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).dataPath), 1
16886
+ /* TEXT */
16887
+ )]),
16888
+ _: 1
16889
+ /* STABLE */
16890
+
16891
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
16892
+ span: 18
16893
+ }, {
16894
+ 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, {
16895
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).dataPath,
16896
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).dataPath = $event),
16897
+ onChange: _cache[1] || (_cache[1] = $event => paramsChanged('dataPath')),
16898
+ placeholder: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).videoPathPlace
16899
+ }, {
16900
+ append: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_upload, {
16901
+ "on-change": selectData,
16902
+ "auto-upload": false,
16903
+ "show-file-list": false,
16904
+ accept: ".json"
16905
+ }, {
16906
+ 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_button, null, {
16907
+ 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_icon, {
16908
+ size: 16
16909
+ }, {
16910
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_namespaceObject.IconFolder2))]),
16911
+ _: 1
16912
+ /* STABLE */
16913
+
16914
+ })]),
16915
+ _: 1
16916
+ /* STABLE */
16917
+
16918
+ })]),
16919
+ _: 1
16920
+ /* STABLE */
16921
+
16922
+ })]),
16923
+ _: 1
16924
+ /* STABLE */
16925
+
16926
+ }, 8
16927
+ /* PROPS */
16928
+ , ["modelValue", "placeholder"])]),
16929
+ _: 1
16930
+ /* STABLE */
16931
+
16932
+ })]),
16933
+ _: 1
16934
+ /* STABLE */
16935
+
16936
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
16937
+ gutter: 20,
16938
+ class: "rowClass"
16939
+ }, {
16940
+ 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, {
16941
+ span: 6,
16942
+ class: "colClass"
16943
+ }, {
16944
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", Heatmap3dvue_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).heatmapType), 1
16945
+ /* TEXT */
16946
+ )]),
16947
+ _: 1
16948
+ /* STABLE */
16949
+
16950
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
16951
+ span: 18
16952
+ }, {
16953
+ 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_radio_group, {
16954
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heatmapType,
16955
+ "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heatmapType = $event)
16956
+ }, {
16957
+ 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_radio, {
16958
+ label: "3D",
16959
+ onChange: _cache[2] || (_cache[2] = $event => paramsChanged('heatmapType'))
16960
+ }, {
16961
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)("3D")]),
16962
+ _: 1
16963
+ /* STABLE */
16964
+
16965
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_radio, {
16966
+ label: "2D",
16967
+ onChange: _cache[3] || (_cache[3] = $event => paramsChanged('heatmapType'))
16968
+ }, {
16969
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createTextVNode)("2D")]),
16970
+ _: 1
16971
+ /* STABLE */
16972
+
16973
+ })]),
16974
+ _: 1
16975
+ /* STABLE */
16976
+
16977
+ }, 8
16978
+ /* PROPS */
16979
+ , ["modelValue"])]),
16980
+ _: 1
16981
+ /* STABLE */
16982
+
16983
+ })]),
16984
+ _: 1
16985
+ /* STABLE */
16986
+
16987
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
16988
+ class: "kq3d-heatmap-tip"
16989
+ }, {
16990
+ 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).heatmapTips), 1
16991
+ /* TEXT */
16992
+ )]),
16993
+ _: 1
16994
+ /* STABLE */
16995
+
16996
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse, {
16997
+ "model-value": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(collapseValue),
16998
+ class: "kq3d-heatmap-collapse"
16999
+ }, {
17000
+ 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, {
17001
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).analysisSettings,
17002
+ name: "setting"
17003
+ }, {
17004
+ 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, {
17005
+ "label-width": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === 'zh' ? '110px' : '130px',
17006
+ "label-position": "left"
17007
+ }, {
17008
+ 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, null, {
17009
+ 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, {
17010
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).weightField
17011
+ }, {
17012
+ 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, {
17013
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).valueField,
17014
+ "onUpdate:modelValue": _cache[5] || (_cache[5] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).valueField = $event),
17015
+ onChange: _cache[6] || (_cache[6] = $event => paramsChanged('valueField')),
17016
+ style: {
17017
+ "width": "100%"
17018
+ }
17019
+ }, {
17020
+ 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)(weightFields), (item, index) => {
17021
+ 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, {
17022
+ key: index,
17023
+ label: item,
17024
+ value: item
17025
+ }, null, 8
17026
+ /* PROPS */
17027
+ , ["label", "value"]);
17028
+ }), 128
17029
+ /* KEYED_FRAGMENT */
17030
+ ))]),
17031
+ _: 1
17032
+ /* STABLE */
17033
+
17034
+ }, 8
17035
+ /* PROPS */
17036
+ , ["modelValue"])]),
17037
+ _: 1
17038
+ /* STABLE */
17039
+
17040
+ }, 8
17041
+ /* PROPS */
17042
+ , ["label"])]),
17043
+ _: 1
17044
+ /* STABLE */
17045
+
17046
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
17047
+ 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, {
17048
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).colorScheme
17049
+ }, {
17050
+ 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, null, {
17051
+ 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, {
17052
+ style: {
17053
+ "text-align": "left"
17054
+ }
17055
+ }, {
17056
+ 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_radio_group, {
17057
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorMode,
17058
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorMode = $event)
17059
+ }, {
17060
+ 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_radio_button, {
17061
+ label: "1"
17062
+ }, {
17063
+ 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).preset), 1
17064
+ /* TEXT */
17065
+ )]),
17066
+ _: 1
17067
+ /* STABLE */
17068
+
17069
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_radio_button, {
17070
+ label: "2"
17071
+ }, {
17072
+ 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).customTitle), 1
17073
+ /* TEXT */
17074
+ )]),
17075
+ _: 1
17076
+ /* STABLE */
17077
+
17078
+ })]),
17079
+ _: 1
17080
+ /* STABLE */
17081
+
17082
+ }, 8
17083
+ /* PROPS */
17084
+ , ["modelValue"])]),
17085
+ _: 1
17086
+ /* STABLE */
17087
+
17088
+ })]),
17089
+ _: 1
17090
+ /* STABLE */
17091
+
17092
+ })]),
17093
+ _: 1
17094
+ /* STABLE */
17095
+
17096
+ }, 8
17097
+ /* PROPS */
17098
+ , ["label"])]),
17099
+ _: 1
17100
+ /* STABLE */
17101
+
17102
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorMode == 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_row, {
17103
+ key: 0
17104
+ }, {
17105
+ 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, {
17106
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).colorBand
17107
+ }, {
17108
+ 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, null, {
17109
+ 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, {
17110
+ style: {
17111
+ "text-align": "left"
17112
+ },
17113
+ class: "heatSelect"
17114
+ }, {
17115
+ 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, {
17116
+ style: {
17117
+ "width": "100%"
17118
+ },
17119
+ "popper-class": "heat-color-select",
17120
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorRamp,
17121
+ "onUpdate:modelValue": _cache[8] || (_cache[8] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorRamp = $event),
17122
+ onChange: onChangeColorRamp
17123
+ }, {
17124
+ prefix: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
17125
+ class: "color-ramp",
17126
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)(generateColorStyle(colorData.value[(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).colorRamp]))
17127
+ }, null, 4
17128
+ /* STYLE */
17129
+ )]),
17130
+ 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)(colorData.value, (item, index) => {
17131
+ 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, {
17132
+ class: "color-option",
17133
+ key: index,
17134
+ value: index
17135
+ }, {
17136
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
17137
+ class: "color-ramp",
17138
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)(generateColorStyle(item))
17139
+ }, null, 4
17140
+ /* STYLE */
17141
+ ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
17142
+ class: "reverse",
17143
+ onClick: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => onClickReverseRamp(item), ["stop"])
17144
+ }, {
17145
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(icons_vue_namespaceObject.Switch))]),
17146
+ _: 2
17147
+ /* DYNAMIC */
17148
+
17149
+ }, 1032
17150
+ /* PROPS, DYNAMIC_SLOTS */
17151
+ , ["onClick"])]),
17152
+ _: 2
17153
+ /* DYNAMIC */
17154
+
17155
+ }, 1032
17156
+ /* PROPS, DYNAMIC_SLOTS */
17157
+ , ["value"]);
17158
+ }), 128
17159
+ /* KEYED_FRAGMENT */
17160
+ ))]),
17161
+ _: 1
17162
+ /* STABLE */
17163
+
17164
+ }, 8
17165
+ /* PROPS */
17166
+ , ["modelValue"])]),
17167
+ _: 1
17168
+ /* STABLE */
17169
+
17170
+ })]),
17171
+ _: 1
17172
+ /* STABLE */
17173
+
17174
+ })]),
17175
+ _: 1
17176
+ /* STABLE */
17177
+
17178
+ }, 8
17179
+ /* PROPS */
17180
+ , ["label"])]),
17181
+ _: 1
17182
+ /* STABLE */
17183
+
17184
+ })) : (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).colorMode == 2 ? ((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, {
17185
+ key: 1
17186
+ }, {
17187
+ 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, {
17188
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).colorBand
17189
+ }, {
17190
+ 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, null, {
17191
+ 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, {
17192
+ style: {
17193
+ "text-align": "left"
17194
+ }
17195
+ }, {
17196
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(CustomColorPicker, {
17197
+ data: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(customColors),
17198
+ onColorChanged: colorChanged
17199
+ }, null, 8
17200
+ /* PROPS */
17201
+ , ["data"])]),
17202
+ _: 1
17203
+ /* STABLE */
17204
+
17205
+ })]),
17206
+ _: 1
17207
+ /* STABLE */
17208
+
17209
+ })]),
17210
+ _: 1
17211
+ /* STABLE */
17212
+
17213
+ }, 8
17214
+ /* PROPS */
17215
+ , ["label"])]),
17216
+ _: 1
17217
+ /* STABLE */
17218
+
17219
+ })) : (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_row, null, {
17220
+ 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, {
17221
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).radius + '(m)'
17222
+ }, {
17223
+ 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, {
17224
+ style: {
17225
+ "display": "flex"
17226
+ }
17227
+ }, {
17228
+ 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, {
17229
+ span: 16
17230
+ }, {
17231
+ 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, {
17232
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).radius,
17233
+ "onUpdate:modelValue": _cache[9] || (_cache[9] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).radius = $event),
17234
+ step: 0.1,
17235
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minRadius,
17236
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxRadius,
17237
+ onInput: _cache[10] || (_cache[10] = $event => paramsChanged('radius'))
17238
+ }, null, 8
17239
+ /* PROPS */
17240
+ , ["modelValue", "step", "min", "max"])]),
17241
+ _: 1
17242
+ /* STABLE */
17243
+
17244
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
17245
+ span: 8
17246
+ }, {
17247
+ 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, {
17248
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).radius,
17249
+ "onUpdate:modelValue": _cache[11] || (_cache[11] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).radius = $event),
17250
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minRadius,
17251
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxRadius,
17252
+ step: 0.1,
17253
+ onInput: _cache[12] || (_cache[12] = $event => paramsChanged('radius')),
17254
+ "controls-position": "right"
17255
+ }, null, 8
17256
+ /* PROPS */
17257
+ , ["modelValue", "min", "max", "step"])]),
17258
+ _: 1
17259
+ /* STABLE */
17260
+
17261
+ })]),
17262
+ _: 1
17263
+ /* STABLE */
17264
+
17265
+ })]),
17266
+ _: 1
17267
+ /* STABLE */
17268
+
17269
+ }, 8
17270
+ /* PROPS */
17271
+ , ["label"])]),
17272
+ _: 1
17273
+ /* STABLE */
17274
+
17275
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
17276
+ 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, {
17277
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).transparents
17278
+ }, {
17279
+ 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, {
17280
+ style: {
17281
+ "display": "flex"
17282
+ }
17283
+ }, {
17284
+ 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, {
17285
+ span: 16
17286
+ }, {
17287
+ 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, {
17288
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).transparents,
17289
+ "onUpdate:modelValue": _cache[13] || (_cache[13] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).transparents = $event),
17290
+ step: 0.01,
17291
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minTransparents,
17292
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxTransparents,
17293
+ onInput: _cache[14] || (_cache[14] = $event => paramsChanged('transparents'))
17294
+ }, null, 8
17295
+ /* PROPS */
17296
+ , ["modelValue", "step", "min", "max"])]),
17297
+ _: 1
17298
+ /* STABLE */
17299
+
17300
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
17301
+ span: 8
17302
+ }, {
17303
+ 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, {
17304
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).transparents,
17305
+ "onUpdate:modelValue": _cache[15] || (_cache[15] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).transparents = $event),
17306
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minTransparents,
17307
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxTransparents,
17308
+ step: 0.01,
17309
+ onInput: _cache[16] || (_cache[16] = $event => paramsChanged('transparents')),
17310
+ "controls-position": "right"
17311
+ }, null, 8
17312
+ /* PROPS */
17313
+ , ["modelValue", "min", "max", "step"])]),
17314
+ _: 1
17315
+ /* STABLE */
17316
+
17317
+ })]),
17318
+ _: 1
17319
+ /* STABLE */
17320
+
17321
+ })]),
17322
+ _: 1
17323
+ /* STABLE */
17324
+
17325
+ }, 8
17326
+ /* PROPS */
17327
+ , ["label"])]),
17328
+ _: 1
17329
+ /* STABLE */
17330
+
17331
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
17332
+ 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, {
17333
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).height
17334
+ }, {
17335
+ 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, {
17336
+ style: {
17337
+ "display": "flex"
17338
+ }
17339
+ }, {
17340
+ 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, {
17341
+ span: 16
17342
+ }, {
17343
+ 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, {
17344
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).height,
17345
+ "onUpdate:modelValue": _cache[17] || (_cache[17] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).height = $event),
17346
+ step: 1,
17347
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minHeight,
17348
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxHeight,
17349
+ onInput: _cache[18] || (_cache[18] = $event => paramsChanged('height'))
17350
+ }, null, 8
17351
+ /* PROPS */
17352
+ , ["modelValue", "min", "max"])]),
17353
+ _: 1
17354
+ /* STABLE */
17355
+
17356
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
17357
+ span: 8
17358
+ }, {
17359
+ 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, {
17360
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).height,
17361
+ "onUpdate:modelValue": _cache[19] || (_cache[19] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).height = $event),
17362
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minHeight,
17363
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxHeight,
17364
+ step: 1,
17365
+ onInput: _cache[20] || (_cache[20] = $event => paramsChanged('height')),
17366
+ "controls-position": "right"
17367
+ }, null, 8
17368
+ /* PROPS */
17369
+ , ["modelValue", "min", "max"])]),
17370
+ _: 1
17371
+ /* STABLE */
17372
+
17373
+ })]),
17374
+ _: 1
17375
+ /* STABLE */
17376
+
17377
+ })]),
17378
+ _: 1
17379
+ /* STABLE */
17380
+
17381
+ }, 8
17382
+ /* PROPS */
17383
+ , ["label"])]),
17384
+ _: 1
17385
+ /* STABLE */
17386
+
17387
+ }, 512
17388
+ /* NEED_PATCH */
17389
+ ), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heatmapType === '3D']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
17390
+ 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, {
17391
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).heightRatio
17392
+ }, {
17393
+ 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, {
17394
+ style: {
17395
+ "display": "flex"
17396
+ }
17397
+ }, {
17398
+ 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, {
17399
+ span: 16
17400
+ }, {
17401
+ 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, {
17402
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heightRatio,
17403
+ "onUpdate:modelValue": _cache[21] || (_cache[21] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heightRatio = $event),
17404
+ step: 0.1,
17405
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minHeightRatio,
17406
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxHeightRatio,
17407
+ onInput: _cache[22] || (_cache[22] = $event => paramsChanged('heightRatio'))
17408
+ }, null, 8
17409
+ /* PROPS */
17410
+ , ["modelValue", "step", "min", "max"])]),
17411
+ _: 1
17412
+ /* STABLE */
17413
+
17414
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
17415
+ span: 8
17416
+ }, {
17417
+ 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, {
17418
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heightRatio,
17419
+ "onUpdate:modelValue": _cache[23] || (_cache[23] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heightRatio = $event),
17420
+ min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minHeightRatio,
17421
+ max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxHeightRatio,
17422
+ step: 0.1,
17423
+ onInput: _cache[24] || (_cache[24] = $event => paramsChanged('heightRatio')),
17424
+ "controls-position": "right"
17425
+ }, null, 8
17426
+ /* PROPS */
17427
+ , ["modelValue", "min", "max", "step"])]),
17428
+ _: 1
17429
+ /* STABLE */
17430
+
17431
+ })]),
17432
+ _: 1
17433
+ /* STABLE */
17434
+
17435
+ })]),
17436
+ _: 1
17437
+ /* STABLE */
17438
+
17439
+ }, 8
17440
+ /* PROPS */
17441
+ , ["label"])]),
17442
+ _: 1
17443
+ /* STABLE */
17444
+
17445
+ }, 512
17446
+ /* NEED_PATCH */
17447
+ ), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heatmapType === '3D']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
17448
+ 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, {
17449
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).isShow
17450
+ }, {
17451
+ 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, {
17452
+ style: {
17453
+ "display": "flex"
17454
+ }
17455
+ }, {
17456
+ 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, {
17457
+ style: {
17458
+ "text-align": "left"
17459
+ }
17460
+ }, {
17461
+ 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_switch, {
17462
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isShow,
17463
+ "onUpdate:modelValue": _cache[25] || (_cache[25] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isShow = $event),
17464
+ onChange: _cache[26] || (_cache[26] = $event => paramsChanged('isShow'))
17465
+ }, null, 8
17466
+ /* PROPS */
17467
+ , ["modelValue"])]),
17468
+ _: 1
17469
+ /* STABLE */
17470
+
17471
+ })]),
17472
+ _: 1
17473
+ /* STABLE */
17474
+
17475
+ })]),
17476
+ _: 1
17477
+ /* STABLE */
17478
+
17479
+ }, 8
17480
+ /* PROPS */
17481
+ , ["label"])]),
17482
+ _: 1
17483
+ /* STABLE */
17484
+
17485
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
17486
+ 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, {
17487
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).isGround
17488
+ }, {
17489
+ 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, {
17490
+ style: {
17491
+ "display": "flex"
17492
+ }
17493
+ }, {
17494
+ 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, {
17495
+ style: {
17496
+ "text-align": "left"
17497
+ }
17498
+ }, {
17499
+ 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_switch, {
17500
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isGround,
17501
+ "onUpdate:modelValue": _cache[27] || (_cache[27] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isGround = $event),
17502
+ onChange: _cache[28] || (_cache[28] = $event => paramsChanged('isGround'))
17503
+ }, null, 8
17504
+ /* PROPS */
17505
+ , ["modelValue"])]),
17506
+ _: 1
17507
+ /* STABLE */
17508
+
17509
+ })]),
17510
+ _: 1
17511
+ /* STABLE */
17512
+
17513
+ })]),
17514
+ _: 1
17515
+ /* STABLE */
17516
+
17517
+ }, 8
17518
+ /* PROPS */
17519
+ , ["label"])]),
17520
+ _: 1
17521
+ /* STABLE */
17522
+
17523
+ }, 512
17524
+ /* NEED_PATCH */
17525
+ ), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heatmapType === '3D']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
17526
+ 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, {
17527
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).isFollowingPerspective
17528
+ }, {
17529
+ 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, {
17530
+ style: {
17531
+ "display": "flex"
17532
+ }
17533
+ }, {
17534
+ 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, {
17535
+ style: {
17536
+ "text-align": "left"
17537
+ }
17538
+ }, {
17539
+ 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_switch, {
17540
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isFollowingPerspective,
17541
+ "onUpdate:modelValue": _cache[29] || (_cache[29] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isFollowingPerspective = $event),
17542
+ onChange: _cache[30] || (_cache[30] = $event => paramsChanged('isFollowingPerspective'))
17543
+ }, null, 8
17544
+ /* PROPS */
17545
+ , ["modelValue"])]),
17546
+ _: 1
17547
+ /* STABLE */
17548
+
17549
+ })]),
17550
+ _: 1
17551
+ /* STABLE */
17552
+
17553
+ })]),
17554
+ _: 1
17555
+ /* STABLE */
17556
+
17557
+ }, 8
17558
+ /* PROPS */
17559
+ , ["label"])]),
17560
+ _: 1
17561
+ /* STABLE */
17562
+
17563
+ }, 512
17564
+ /* NEED_PATCH */
17565
+ ), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).heatmapType === '3D']])]),
17566
+ _: 1
17567
+ /* STABLE */
17568
+
17569
+ }, 8
17570
+ /* PROPS */
17571
+ , ["label-width"])]),
17572
+ _: 1
17573
+ /* STABLE */
17574
+
17575
+ }, 8
17576
+ /* PROPS */
17577
+ , ["title"])]),
17578
+ _: 1
17579
+ /* STABLE */
17580
+
17581
+ }, 8
17582
+ /* PROPS */
17583
+ , ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", Heatmap3dvue_type_script_setup_true_lang_js_hoisted_4, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
17584
+ onClick: _cache[31] || (_cache[31] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startAnalysis(), ["stop"])),
17585
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).heatmapLoad,
17586
+ type: "primary"
17587
+ }, {
17588
+ 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).heatmapLoad), 1
17589
+ /* TEXT */
17590
+ )]),
17591
+ _: 1
17592
+ /* STABLE */
17593
+
17594
+ }, 8
17595
+ /* PROPS */
17596
+ , ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
17597
+ onClick: _cache[32] || (_cache[32] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => clearResult(), ["stop"])),
17598
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult
17599
+ }, {
17600
+ 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
17601
+ /* TEXT */
17602
+ )]),
17603
+ _: 1
17604
+ /* STABLE */
17605
+
17606
+ }, 8
17607
+ /* PROPS */
17608
+ , ["title"])])])], 2
17609
+ /* CLASS */
17610
+ );
17611
+ };
17612
+ }
17613
+
17614
+ }));
17615
+ ;// CONCATENATED MODULE: ./src/webgl/heatmap3d/Heatmap3d.vue?vue&type=script&setup=true&lang=js
17616
+
17617
+ ;// CONCATENATED MODULE: ./src/webgl/heatmap3d/Heatmap3d.vue
17618
+
17619
+
17620
+
17621
+ const Heatmap3d_exports_ = Heatmap3dvue_type_script_setup_true_lang_js;
17622
+
17623
+ /* harmony default export */ var Heatmap3d = (Heatmap3d_exports_);
17624
+ ;// CONCATENATED MODULE: ./src/webgl/heatmap3d/index.js
17625
+
17626
+
17627
+
17628
+
17629
+ Heatmap3d.install = (Vue, opts) => {
17630
+ init_js_default()(Vue, opts);
17631
+ Vue.component(Heatmap3d.name, Heatmap3d);
17632
+ };
17633
+
17634
+
17635
+ ;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavateViewModel.js
17636
+
17637
+ //模型开挖逻辑类
17638
+
17639
+ class ModelExcavateViewModel {
17640
+ //三维viewer对象
17641
+ //Box裁剪存储参数对象
17642
+ //绘制管理对象
17643
+ //绘制完成监听事件
17644
+ //Kq3dWallPrimitive
17645
+ constructor(scenceView, options) {
17646
+ _defineProperty(this, "_viewer", null);
17647
+
17648
+ _defineProperty(this, "_options", {});
17649
+
17650
+ _defineProperty(this, "_Kq3dTerrainExcavation", null);
17651
+
17652
+ _defineProperty(this, "_drawManager", null);
17653
+
17654
+ _defineProperty(this, "_removeEventListener", null);
17655
+
17656
+ _defineProperty(this, "_wallPrimitive", void 0);
17657
+
17658
+ _defineProperty(this, "entity0", null);
17659
+
17660
+ _defineProperty(this, "wall", null);
17661
+
17662
+ _defineProperty(this, "ratio", 0.01);
17663
+
17664
+ _defineProperty(this, "ii", 1);
17665
+
17666
+ _defineProperty(this, "scratchCartesian2", new window.Cesium.Cartesian3());
17667
+
17668
+ _defineProperty(this, "scratchCartesian3", new window.Cesium.Cartesian3());
17669
+
17670
+ _defineProperty(this, "scratchCartesian4", new window.Cesium.Cartesian3());
17671
+
17672
+ _defineProperty(this, "scratchCartesian5", new window.Cesium.Cartesian3());
17673
+
17674
+ _defineProperty(this, "scratchCartesian6", new window.Cesium.Cartesian3());
17675
+
17676
+ _defineProperty(this, "scratchCartesian7", new window.Cesium.Cartesian3());
17677
+
17678
+ _defineProperty(this, "intervalId", null);
17679
+
17680
+ _defineProperty(this, "tileset1", null);
17681
+
17682
+ _defineProperty(this, "g_flattenedPolygonTexture", null);
17683
+
17684
+ this._viewer = scenceView._viewer;
17685
+ this._options = options;
17686
+ this._drawManager = scenceView._drawManager;
17687
+ this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
17688
+
17689
+ let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
17690
+ this.g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture(); // this.tileset1 = this._viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
17691
+ // url: "http://support.kqgeo.com:18700/SampleData/3DTiles/Oblique/tileset.json"
17692
+ // }));
17693
+ // this.tileset1.readyPromise.then(function (tileset) {
17694
+ // that._viewer.zoomTo(tileset);
17695
+ // }).otherwise(function (error) {
17696
+ // console.log(error);
17697
+ // });
17698
+ // this.tileset1.enableFlattenning = true;
17699
+ // this.tileset1.flattenDiscard = true;
17700
+ // this.g_flattenedPolygonTexture.attachTileset(this.tileset1);
17701
+
17702
+ var that = this;
17703
+ var models = this._viewer.scene.primitives._primitives;
17704
+
17705
+ for (let i = 0; i < models.length; i++) {
17706
+ if (models[1] instanceof Cesium.Cesium3DTileset && models[i]._url) {
17707
+ models[i].enableFlattenning = true;
17708
+ models[i].flattenDiscard = true;
17709
+ models[i].readyPromise.then(function (tileset) {
17710
+ that.g_flattenedPolygonTexture.attachTileset(tileset);
17711
+ });
17712
+ }
17713
+ }
17714
+
17715
+ this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
17716
+ if (shape) {
17717
+ that._options.positions = shape._controlPoints;
17718
+
17719
+ if (shape._controlPoints && shape._controlPoints.length > 3 || shape._controlPoints && shape._controlPoints.length == 3 && shape._controlPoints[2] != shape._controlPoints[0]) {
17720
+ that.createDynamicExcavationEffect();
17721
+ } else {
17722
+ message({
17723
+ message: "请至少绘制3个点!",
17724
+ type: "warning"
17725
+ });
17726
+ }
17727
+
17728
+ that._drawManager.clear();
17729
+ }
17730
+ });
17731
+ } // 创建开挖模型
17732
+
17733
+
17734
+ createDynamicExcavationEffect() {
17735
+ this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
17736
+ this._Kq3dTerrainExcavation = new window.Cesium.Kq3dTerrainExcavation({
17737
+ viewer: this._viewer,
17738
+ height: this._options.height,
17739
+ positions: this._options.positions,
17740
+ hasWall: false
17741
+ });
17742
+
17743
+ if (this._wallPrimitive) {
17744
+ this._viewer.scene.primitives.remove(this._wallPrimitive);
17745
+
17746
+ this._wallPrimitive = undefined;
17747
+ }
17748
+
17749
+ this._wallPrimitive = new window.Cesium.Kq3dWallPrimitive({
17750
+ viewer: this._viewer,
17751
+ height: this._options.height,
17752
+ positions: this._options.positions,
17753
+ elevationOnTerrain: false
17754
+ });
17755
+
17756
+ this._viewer.scene.primitives.add(this._wallPrimitive);
17757
+
17758
+ let that = this;
17759
+
17760
+ this._wallPrimitive._readyEvent.addEventListener(function (eventType) {
17761
+ if (eventType != "Ready") {
17762
+ return;
17763
+ }
17764
+
17765
+ that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
17766
+ var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
17767
+ positions: that._options.positions,
17768
+ height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
17769
+ });
17770
+ that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon); // that.intervalId = setInterval(function () {
17771
+ // if (that.ii > 100) {
17772
+ // if (that.entity0) {
17773
+ // that._viewer.scene.primitives.remove(that.entity0);
17774
+ // that.entity0 = undefined;
17775
+ // }
17776
+ // if (that.wall) {
17777
+ // that._viewer.scene.primitives.remove(that.wall);
17778
+ // that.wall = undefined;
17779
+ // }
17780
+ // clearInterval(that.intervalId);
17781
+ // that.ii = 0;
17782
+ // return;
17783
+ // }
17784
+ // var carto2 = window.Cesium.Cartesian3.lerp(that._options.positions[0], that._options.positions[3], that.ratio * that.ii, that.scratchCartesian2);
17785
+ // var carto3 = window.Cesium.Cartesian3.lerp(that._options.positions[1], that._options.positions[2], that.ratio * that.ii, that.scratchCartesian3);
17786
+ // if (that.entity0) {
17787
+ // that._viewer.scene.primitives.remove(that.entity0);
17788
+ // that.entity0 = undefined;
17789
+ // }
17790
+ // that.entity0 = that.createPolyline([carto2, carto3]);
17791
+ // that.ii++;
17792
+ // that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
17793
+ // var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
17794
+ // positions: [that._options.positions[0], that._options.positions[1], carto3, carto2],
17795
+ // height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
17796
+ // });
17797
+ // that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon);
17798
+ // }, 100);
17799
+ });
17800
+ }
17801
+
17802
+ createPolyline(positions) {
17803
+ var material = window.Cesium.Material.fromType("Kq3dLightningMaterial", {});
17804
+
17805
+ if (this.wall) {
17806
+ this._viewer.scene.primitives.remove(this.wall);
17807
+
17808
+ this.wall = undefined;
17809
+ }
17810
+
17811
+ var geometryInstances = [];
17812
+ geometryInstances.push(new window.Cesium.GeometryInstance({
17813
+ geometry: new window.Cesium.WallGeometry({
17814
+ positions: positions,
17815
+ maximumHeights: [10, 10],
17816
+ minimumHeights: [-10, -10],
17817
+ vertexFormat: window.Cesium.VertexFormat.POSITION_NORMAL_AND_ST
17818
+ })
17819
+ }));
17820
+ this.wall = new window.Cesium.Primitive({
17821
+ geometryInstances: geometryInstances,
17822
+ appearance: new window.Cesium.MaterialAppearance({
17823
+ material: material
17824
+ })
17825
+ });
17826
+
17827
+ this._viewer.scene.primitives.add(this.wall);
17828
+
17829
+ var geo = new window.Cesium.GroundPolylineGeometry({
17830
+ positions: positions,
17831
+ width: 40.0,
17832
+ vertexFormat: window.Cesium.PolylineMaterialAppearance.VERTEX_FORMAT
17833
+ });
17834
+ var primitive = new window.Cesium.GroundPolylinePrimitive({
17835
+ asynchronous: false,
17836
+ classificationType: window.Cesium.ClassificationType.BOTH,
17837
+ geometryInstances: new window.Cesium.GeometryInstance({
17838
+ geometry: geo
17839
+ }),
17840
+ appearance: new window.Cesium.PolylineMaterialAppearance({
17841
+ material: material
17842
+ })
17843
+ });
17844
+ return this._viewer.scene.primitives.add(primitive);
17845
+ }
17846
+
17847
+ start() {
17848
+ // 判断是否添加了模型
17849
+ var flag = false;
17850
+ var that = this;
17851
+ var models = this._viewer.scene.primitives._primitives;
17852
+
17853
+ for (let i = 0; i < models.length; i++) {
17854
+ if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
17855
+ // models[i].enableFlattenning = true;
17856
+ // models[i].flattenDiscard = true;
17857
+ // models[i].readyPromise.then(function (tileset) {
17858
+ // that.g_flattenedPolygonTexture.attachTileset(tileset);
17859
+ // });
17860
+ flag = true;
17861
+ }
17862
+ }
17863
+
17864
+ if (flag) {
17865
+ this.remove();
17866
+
17867
+ this._drawManager.startDraw("polygon", {
17868
+ clampToGround: true
17869
+ });
17870
+ } else {
17871
+ message({
17872
+ message: "请添加模型后绘制!",
17873
+ type: "warning"
17874
+ });
17875
+ }
17876
+ } // 切换高度重新计算
17877
+
17878
+
17879
+ setHeight(val) {
17880
+ this._options.height = Number(val);
17881
+ }
17882
+
17883
+ remove() {
17884
+ // 销毁地形开挖
17885
+ if (this.intervalId) {
17886
+ clearInterval(this.intervalId);
17887
+ this.ii = 0;
17888
+
17889
+ if (this.entity0) {
17890
+ this._viewer.scene.primitives.remove(this.entity0);
17891
+
17892
+ this.entity0 = undefined;
17893
+ }
17894
+
17895
+ if (this.wall) {
17896
+ this._viewer.scene.primitives.remove(this.wall);
17897
+
17898
+ this.wall = undefined;
17899
+ }
17900
+ }
17901
+
17902
+ if (this._wallPrimitive) {
17903
+ this._viewer.scene.primitives.remove(this._wallPrimitive);
17904
+
17905
+ this._wallPrimitive = undefined;
17906
+ }
17907
+
17908
+ this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
17909
+ this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
17910
+ } // 清除
17911
+
17912
+
17913
+ clear() {
17914
+ this._drawManager.stopDraw();
17915
+
17916
+ this.remove();
17917
+ } //销毁
17918
+
17919
+
17920
+ destroy() {
17921
+ this.clear();
17922
+ this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.detachAllTileset();
17923
+ this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.destroy();
17924
+ }
17925
+
17926
+ }
17927
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/modelexcavate/ModelExcavate.vue?vue&type=script&setup=true&lang=js
17928
+
17929
+ const ModelExcavatevue_type_script_setup_true_lang_js_hoisted_1 = {
17930
+ class: "kq3d-model-excavate-box",
17931
+ ref: "ref_box"
17932
+ };
17933
+ const ModelExcavatevue_type_script_setup_true_lang_js_hoisted_2 = {
17934
+ class: "kq3d-model-excavate-span"
17935
+ };
17936
+ const ModelExcavatevue_type_script_setup_true_lang_js_hoisted_3 = {
17937
+ class: "kq3d-model-excavate-footer"
17938
+ };
17939
+
17940
+
17941
+
17942
+
17943
+
17944
+ //语言
17945
+
17946
+ const ModelExcavatevue_type_script_setup_true_lang_js_default_ = {
17947
+ name: "Kq3dModelExcavate"
17948
+ };
17949
+ /* harmony default export */ var ModelExcavatevue_type_script_setup_true_lang_js = (/*#__PURE__*/Object.assign(ModelExcavatevue_type_script_setup_true_lang_js_default_, {
17950
+ props: {
17951
+ //指定组件绑定的viewer对象的div的id
17952
+ mapTarget: String,
16038
17953
  // 设置参数
16039
17954
  settingParams: {
16040
17955
  type: Object
@@ -16804,21 +18719,18 @@ ModelFlat.install = (Vue, opts) => {
16804
18719
  };
16805
18720
 
16806
18721
 
16807
- // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
16808
- var injectStylesIntoStyleTag = __webpack_require__(379);
16809
- var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
16810
18722
  // EXTERNAL MODULE: ./node_modules/css-loader/dist/cjs.js!./node_modules/sass-loader/dist/cjs.js!./src/webgl/sightlineanalysis/style/divpoint.scss
16811
18723
  var divpoint = __webpack_require__(868);
16812
18724
  ;// CONCATENATED MODULE: ./src/webgl/sightlineanalysis/style/divpoint.scss
16813
18725
 
16814
18726
 
16815
18727
 
16816
- var options = {};
18728
+ var divpoint_options = {};
16817
18729
 
16818
- options.insert = "head";
16819
- options.singleton = false;
18730
+ divpoint_options.insert = "head";
18731
+ divpoint_options.singleton = false;
16820
18732
 
16821
- var update = injectStylesIntoStyleTag_default()(divpoint/* default */.Z, options);
18733
+ var divpoint_update = injectStylesIntoStyleTag_default()(divpoint/* default */.Z, divpoint_options);
16822
18734
 
16823
18735
 
16824
18736
 
@@ -43298,6 +45210,9 @@ GeologicalBodyAnalysis.install = (Vue, opts) => {
43298
45210
  // 扫描线
43299
45211
 
43300
45212
 
45213
+ // 热力图3d
45214
+
45215
+
43301
45216
  // 模型开挖
43302
45217
 
43303
45218
 
@@ -43409,7 +45324,8 @@ const webglComponents = {
43409
45324
  Kq3dModelExcavate: ModelExcavate,
43410
45325
  Kq3dModelFlat: ModelFlat,
43411
45326
  Kq3dSlopeAspectAnalysis: SlopeAspectAnalysis,
43412
- Kq3dSceneToHDImage: SceneToHDImage
45327
+ Kq3dSceneToHDImage: SceneToHDImage,
45328
+ Kq3dHeatmap: Heatmap3d
43413
45329
  }; // 全局引入
43414
45330
 
43415
45331
  const install = function (Vue, opts = {}) {