@kq_npm/client3d_webgl_vue 4.5.31 → 4.5.32

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.
Files changed (55) hide show
  1. package/adddata/index.js +226 -495
  2. package/aspectanalysis/index.js +71 -182
  3. package/baseterraingallery/index.js +40 -102
  4. package/boxclip/index.js +197 -423
  5. package/clientPrint/index.js +6953 -17145
  6. package/comparemap/index.js +165 -216
  7. package/compass/index.js +20 -47
  8. package/excavatefillanalysis/index.js +101 -206
  9. package/fixedzoomin/index.js +20 -43
  10. package/fixedzoomout/index.js +18 -42
  11. package/flight/index.js +206 -353
  12. package/floodanalysis/index.js +145 -328
  13. package/geologicalbodyanalysis/index.js +114 -241
  14. package/gpuspatialquery/index.js +146 -340
  15. package/hawkeye/index.js +78 -80
  16. package/headertemp/index.js +8 -19
  17. package/heatmap3d/index.js +304 -645
  18. package/index.js +6525 -16962
  19. package/isolineanalysis/index.js +451 -1183
  20. package/light/index.js +308 -486
  21. package/limitheightanalysis/index.js +107 -204
  22. package/measure/index.js +145 -331
  23. package/modelFlat/index.js +114 -183
  24. package/modelexcavate/index.js +78 -172
  25. package/modelfilter/index.js +127 -252
  26. package/modelprofileanalysis/index.js +154 -297
  27. package/modelselect/index.js +90 -128
  28. package/package.json +1 -1
  29. package/particleeffect/index.js +170 -381
  30. package/planeclip/index.js +146 -281
  31. package/resetview/index.js +12 -31
  32. package/roller/index.js +252 -353
  33. package/scaneffect/index.js +178 -518
  34. package/sceneadvancedtoimage/index.js +152 -337
  35. package/sceneapp/index.js +6953 -17145
  36. package/sceneset/index.js +299 -838
  37. package/scenetohdimage/index.js +105 -276
  38. package/sceneview/index.js +6953 -17145
  39. package/screenshot/index.js +204 -281
  40. package/shadowanalysis/index.js +175 -386
  41. package/sightlineanalysis/index.js +135 -245
  42. package/skylineanalysis/index.js +108 -289
  43. package/slopeanalysis/index.js +174 -378
  44. package/slopeaspectanalysis/index.js +206 -466
  45. package/statusbar/index.js +37 -39
  46. package/terrainoperation/index.js +124 -218
  47. package/terrainprofileanalysis/index.js +66 -118
  48. package/typhoontrac/index.js +165 -321
  49. package/underground/index.js +16 -40
  50. package/videofusion/index.js +214 -470
  51. package/videoproject/index.js +220 -472
  52. package/viewshedanalysis/index.js +93 -230
  53. package/weathereffect/index.js +111 -295
  54. package/windyslicing/index.js +262 -695
  55. package/wireframesketch/index.js +49 -106
@@ -13,7 +13,8 @@ return /******/ (function() { // webpackBootstrap
13
13
  /******/ var __webpack_modules__ = ({
14
14
 
15
15
  /***/ 7705:
16
- /***/ (function(module) {
16
+ /***/ (function(module, __unused_webpack_exports, __webpack_require__) {
17
+
17
18
 
18
19
 
19
20
  /*
@@ -22,51 +23,44 @@ return /******/ (function() { // webpackBootstrap
22
23
  */
23
24
  // css base code, injected by the css-loader
24
25
  // eslint-disable-next-line func-names
25
-
26
+ __webpack_require__(2118);
27
+ __webpack_require__(8470);
28
+ __webpack_require__(2170);
26
29
  module.exports = function (cssWithMappingToString) {
27
30
  var list = []; // return the list of modules as css string
28
31
 
29
32
  list.toString = function toString() {
30
33
  return this.map(function (item) {
31
34
  var content = cssWithMappingToString(item);
32
-
33
35
  if (item[2]) {
34
36
  return "@media ".concat(item[2], " {").concat(content, "}");
35
37
  }
36
-
37
38
  return content;
38
39
  }).join("");
39
40
  }; // import a list of modules into the list
40
41
  // eslint-disable-next-line func-names
41
42
 
42
-
43
43
  list.i = function (modules, mediaQuery, dedupe) {
44
44
  if (typeof modules === "string") {
45
45
  // eslint-disable-next-line no-param-reassign
46
46
  modules = [[null, modules, ""]];
47
47
  }
48
-
49
48
  var alreadyImportedModules = {};
50
-
51
49
  if (dedupe) {
52
50
  for (var i = 0; i < this.length; i++) {
53
51
  // eslint-disable-next-line prefer-destructuring
54
52
  var id = this[i][0];
55
-
56
53
  if (id != null) {
57
54
  alreadyImportedModules[id] = true;
58
55
  }
59
56
  }
60
57
  }
61
-
62
58
  for (var _i = 0; _i < modules.length; _i++) {
63
59
  var item = [].concat(modules[_i]);
64
-
65
60
  if (dedupe && alreadyImportedModules[item[0]]) {
66
61
  // eslint-disable-next-line no-continue
67
62
  continue;
68
63
  }
69
-
70
64
  if (mediaQuery) {
71
65
  if (!item[2]) {
72
66
  item[2] = mediaQuery;
@@ -74,11 +68,9 @@ module.exports = function (cssWithMappingToString) {
74
68
  item[2] = "".concat(mediaQuery, " and ").concat(item[2]);
75
69
  }
76
70
  }
77
-
78
71
  list.push(item);
79
72
  }
80
73
  };
81
-
82
74
  return list;
83
75
  };
84
76
 
@@ -389,6 +381,27 @@ module.exports = require("core-js/modules/es.array.includes.js");
389
381
 
390
382
  /***/ }),
391
383
 
384
+ /***/ 2118:
385
+ /***/ (function(module) {
386
+
387
+ module.exports = require("core-js/modules/es.array.push.js");
388
+
389
+ /***/ }),
390
+
391
+ /***/ 8470:
392
+ /***/ (function(module) {
393
+
394
+ module.exports = require("core-js/modules/esnext.iterator.constructor.js");
395
+
396
+ /***/ }),
397
+
398
+ /***/ 2170:
399
+ /***/ (function(module) {
400
+
401
+ module.exports = require("core-js/modules/esnext.iterator.map.js");
402
+
403
+ /***/ }),
404
+
392
405
  /***/ 7080:
393
406
  /***/ (function(module) {
394
407
 
@@ -448,7 +461,6 @@ function _defineProperty(obj, key, value) {
448
461
  } else {
449
462
  obj[key] = value;
450
463
  }
451
-
452
464
  return obj;
453
465
  }
454
466
 
@@ -547,6 +559,12 @@ var gis_utils_ = __webpack_require__(7135);
547
559
  var defineProperty = __webpack_require__(8270);
548
560
  // EXTERNAL MODULE: external "core-js/modules/es.array.includes.js"
549
561
  var es_array_includes_js_ = __webpack_require__(3600);
562
+ // EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
563
+ var es_array_push_js_ = __webpack_require__(2118);
564
+ // EXTERNAL MODULE: external "core-js/modules/esnext.iterator.constructor.js"
565
+ var esnext_iterator_constructor_js_ = __webpack_require__(8470);
566
+ ;// CONCATENATED MODULE: external "core-js/modules/esnext.iterator.some.js"
567
+ var esnext_iterator_some_js_namespaceObject = require("core-js/modules/esnext.iterator.some.js");
550
568
  // EXTERNAL MODULE: ./node_modules/style-loader/dist/runtime/injectStylesIntoStyleTag.js
551
569
  var injectStylesIntoStyleTag = __webpack_require__(3379);
552
570
  var injectStylesIntoStyleTag_default = /*#__PURE__*/__webpack_require__.n(injectStylesIntoStyleTag);
@@ -572,103 +590,80 @@ var const_image_ = __webpack_require__(6277);
572
590
 
573
591
 
574
592
 
593
+
594
+
575
595
  /*
576
596
  * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
577
597
  * All rights reserved.
578
598
  */
579
599
 
580
- //通视分析逻辑类
581
600
 
601
+ //通视分析逻辑类
582
602
  class SightlineAnalysisViewModel {
583
- //三维viewer对象
584
- //通视分析三维对象
585
- //绘制管理对象
586
- //绘制完成监听事件
587
- //障碍物颜色
588
- //是否显示标注
589
- //添加的点的类型
590
- //创建的divpoint集合
591
- //拾取的点位集合
592
- //高亮的障碍物的id集合
593
- // 点位图标billboards集合
594
603
  constructor(scenceView, options, language) {
595
604
  (0,defineProperty/* default */.Z)(this, "_viewer", null);
596
-
605
+ //三维viewer对象
597
606
  (0,defineProperty/* default */.Z)(this, "_sightlineAnalysis", null);
598
-
607
+ //通视分析三维对象
599
608
  (0,defineProperty/* default */.Z)(this, "_drawManager", null);
600
-
609
+ //绘制管理对象
601
610
  (0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
602
-
611
+ //绘制完成监听事件
603
612
  (0,defineProperty/* default */.Z)(this, "_obstacleColor", Cesium.Color.RED);
604
-
613
+ //障碍物颜色
605
614
  (0,defineProperty/* default */.Z)(this, "_isLabel", false);
606
-
615
+ //是否显示标注
607
616
  (0,defineProperty/* default */.Z)(this, "_addType", 0);
608
-
617
+ //添加的点的类型
609
618
  (0,defineProperty/* default */.Z)(this, "_pointCollection", []);
610
-
619
+ //创建的divpoint集合
611
620
  (0,defineProperty/* default */.Z)(this, "_cartographicList", []);
612
-
621
+ //拾取的点位集合
613
622
  (0,defineProperty/* default */.Z)(this, "_highlightIds", []);
614
-
623
+ //高亮的障碍物的id集合
615
624
  (0,defineProperty/* default */.Z)(this, "_billboards", []);
616
-
625
+ // 点位图标billboards集合
617
626
  (0,defineProperty/* default */.Z)(this, "_language", null);
618
-
619
627
  this._viewer = scenceView._viewer;
620
628
  this._viewer.scene.postProcessStages._fxaa.enabled = true;
621
629
  this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
622
-
623
630
  this._language = language;
624
631
  options.viewer = this._viewer;
625
-
626
632
  if (options.visibleColor) {
627
633
  options.visibleColor = Cesium.Color.fromCssColorString(options.visibleColor);
628
634
  }
629
-
630
635
  if (options.visibleColor) {
631
636
  options.invisibleColor = Cesium.Color.fromCssColorString(options.invisibleColor);
632
637
  }
633
-
634
638
  if (options.obstacleColor) {
635
639
  this._obstacleColor = Cesium.Color.fromCssColorString(options.obstacleColor);
636
640
  }
637
-
638
641
  this._isLabel = options.isLabel;
639
642
  options.isLabel = false;
640
643
  this._sightlineAnalysis = new Cesium.Kq3dSightAnalysis(options);
641
644
  this._drawManager = scenceView._drawManager;
642
-
643
645
  this._drawManager.enableMultiDraw(true);
644
-
645
646
  let that = this;
646
647
  this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
647
648
  if (shape && shape.type === "marker") {
648
649
  that.createBillboard(shape.position);
649
-
650
650
  if (that._addType === 1) {
651
651
  that._sightlineAnalysis.setSeePoint(shape.position);
652
-
653
652
  that.clearDisplay();
654
653
  that.createLabels(that._sightlineAnalysis._pickedPos);
655
654
  that.highlightObstacles(that._sightlineAnalysis._pickedFeatures);
656
655
  } else if (that._addType === 2) {
657
656
  let result = that._sightlineAnalysis.addTargetPoint(shape.position);
658
-
659
657
  that.createLabels(result.cartographic);
660
658
  that.highlightObstacles(result.id);
661
659
  }
662
-
663
660
  that._drawManager.clear();
664
661
  }
665
662
  });
666
- } // 创建图标
667
-
668
-
663
+ }
664
+ // 创建图标
669
665
  createBillboard(pos) {
670
666
  if (this._addType == 1) this.clearBillboards("marker" + this._addType);
671
-
672
667
  this._billboards.push(this._viewer.entities.add({
673
668
  position: pos,
674
669
  name: "marker" + this._addType,
@@ -678,9 +673,8 @@ class SightlineAnalysisViewModel {
678
673
  disableDepthTestDistance: Number.POSITIVE_INFINITY
679
674
  }
680
675
  }));
681
- } //创建点位置
682
-
683
-
676
+ }
677
+ //创建点位置
684
678
  createDivPoint(position) {
685
679
  if (position) {
686
680
  var longitude = Cesium.Math.toDegrees(position.longitude).toFixed(5);
@@ -705,11 +699,9 @@ class SightlineAnalysisViewModel {
705
699
  <span class="triangle"></span>
706
700
  </div>`;
707
701
  html = html.replace('{X}', longitude).replace('{Y}', latitude).replace('{Z}', height);
708
-
709
702
  if (this._language) {
710
703
  html = html.replace('X', this._language.value.longitude).replace('Y', this._language.value.latitude).replace('Z', this._language.value.elevation);
711
704
  }
712
-
713
705
  var divpoint = new Cesium.Kq3dHtmlTag(this._viewer, {
714
706
  html: html,
715
707
  position: position,
@@ -717,16 +709,14 @@ class SightlineAnalysisViewModel {
717
709
  alignmentMode: 7,
718
710
  noEvent: true
719
711
  });
720
-
721
712
  if (!this._isLabel) {
722
713
  divpoint.setVisible(false);
723
714
  }
724
-
725
715
  this._pointCollection.push(divpoint);
726
716
  }
727
- } //创建label标签
728
-
717
+ }
729
718
 
719
+ //创建label标签
730
720
  createLabels(positions) {
731
721
  for (let i = 0; i < positions.length; i++) {
732
722
  let include = this._cartographicList.some(item => {
@@ -734,20 +724,17 @@ class SightlineAnalysisViewModel {
734
724
  return true;
735
725
  }
736
726
  });
737
-
738
727
  if (!include) {
739
728
  this.createDivPoint(positions[i]);
740
729
  }
741
730
  }
742
-
743
731
  this._cartographicList = [].concat(positions);
744
- } //设置3DTileset颜色
745
-
732
+ }
746
733
 
734
+ //设置3DTileset颜色
747
735
  set3DTilesetColor(color, ids) {
748
736
  if (!ids) ids = [];
749
737
  let primitives = this._viewer.scene.primitives._primitives;
750
-
751
738
  for (let i = 0; i < primitives.length; i++) {
752
739
  if (primitives[i] instanceof Cesium.Cesium3DTileset) {
753
740
  primitives[i].style = new Cesium.Cesium3DTileStyle({
@@ -760,51 +747,47 @@ class SightlineAnalysisViewModel {
760
747
  });
761
748
  }
762
749
  }
763
- } //高亮障碍物
764
-
750
+ }
765
751
 
752
+ //高亮障碍物
766
753
  highlightObstacles(ids) {
767
754
  if (!ids || ids.length === 0) return;
768
755
  this._highlightIds = ids;
769
756
  this.set3DTilesetColor(this._obstacleColor, ids);
770
- } //清除所有高亮效果
771
-
757
+ }
772
758
 
759
+ //清除所有高亮效果
773
760
  clearHighlights() {
774
761
  this._highlightIds = [];
775
762
  this.set3DTilesetColor(Cesium.Color.WHITE);
776
- } //添加观察点
777
-
763
+ }
778
764
 
765
+ //添加观察点
779
766
  addSeePoint() {
780
767
  this._addType = 1;
781
-
782
768
  this._drawManager.startDraw("point", {
783
769
  image: const_image_.OBSERVATION_POINT
784
770
  });
785
- } //添加目标点
786
-
771
+ }
787
772
 
773
+ //添加目标点
788
774
  addTargetPoint() {
789
775
  if (!this._sightlineAnalysis._seePoint) return;
790
776
  this._addType = 2;
791
-
792
777
  this._drawManager.startDraw("point", {
793
778
  image: const_image_.TARGET_POINT
794
779
  });
795
- } //清除显示结果
796
-
780
+ }
797
781
 
782
+ //清除显示结果
798
783
  clearDisplay() {
799
784
  //清除标注
800
785
  for (var i = 0; i < this._pointCollection.length; i++) {
801
786
  this._pointCollection[i].destroy();
802
787
  }
803
-
804
788
  this._pointCollection = [];
805
- } // 清楚billboards
806
-
807
-
789
+ }
790
+ // 清楚billboards
808
791
  clearBillboards(val) {
809
792
  for (var i = 0; i < this._billboards.length; i++) {
810
793
  if (val) {
@@ -813,65 +796,55 @@ class SightlineAnalysisViewModel {
813
796
  this._viewer.entities.remove(this._billboards[i]);
814
797
  }
815
798
  }
816
-
817
799
  if (!val) this._billboards = [];
818
- } //清除全部
819
-
820
-
800
+ }
801
+ //清除全部
821
802
  clearAll() {
822
803
  this._drawManager.stopDraw();
823
-
824
804
  this.clearDisplay();
825
805
  this.clearHighlights();
826
806
  this.clearBillboards();
827
807
  this._sightlineAnalysis && this._sightlineAnalysis.remove();
828
- } //销毁
829
-
808
+ }
830
809
 
810
+ //销毁
831
811
  destroy() {
832
- this.clearAll(); //销毁分析对象
833
-
812
+ this.clearAll();
813
+ //销毁分析对象
834
814
  this._sightlineAnalysis && this._sightlineAnalysis.destroy();
835
- this._sightlineAnalysis = null; //移除监听事件
836
-
815
+ this._sightlineAnalysis = null;
816
+ //移除监听事件
837
817
  this._removeEventListener && this._removeEventListener();
838
818
  this._removeEventListener = null;
839
-
840
819
  this._drawManager.enableMultiDraw(false);
841
- } // //设置线宽
820
+ }
821
+
822
+ // //设置线宽
842
823
  // setLineWidth(lineWith) {
843
824
  // this._sightlineAnalysis.lineWith = Number(lineWith);
844
825
  // }
845
826
  //设置可视颜色
846
-
847
-
848
827
  setVisibleColor(visibleColor) {
849
828
  this._sightlineAnalysis.visibleColor = Cesium.Color.fromCssColorString(visibleColor);
850
- } //设置不可视颜色
851
-
852
-
829
+ }
830
+ //设置不可视颜色
853
831
  setInvisibleColor(invisibleColor) {
854
832
  this._sightlineAnalysis.invisibleColor = Cesium.Color.fromCssColorString(invisibleColor);
855
- } //设置障碍物颜色
856
-
857
-
833
+ }
834
+ //设置障碍物颜色
858
835
  setObstacleColor(obstacleColor) {
859
836
  this._obstacleColor = Cesium.Color.fromCssColorString(obstacleColor);
860
-
861
837
  if (this._highlightIds.length > 0) {
862
838
  this.set3DTilesetColor(this._obstacleColor, this._highlightIds);
863
839
  }
864
- } //显示/隐藏标注
865
-
866
-
840
+ }
841
+ //显示/隐藏标注
867
842
  setShowLabel(isLabel) {
868
843
  this._isLabel = isLabel;
869
-
870
844
  for (var i = 0; i < this._pointCollection.length; i++) {
871
845
  this._pointCollection[i].setVisible(isLabel);
872
846
  }
873
847
  }
874
-
875
848
  }
876
849
  // EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
877
850
  var client_icons_vue_ = __webpack_require__(348);
@@ -907,7 +880,6 @@ const __default__ = {
907
880
  type: Boolean,
908
881
  default: true
909
882
  },
910
-
911
883
  /**
912
884
  * 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
913
885
  */
@@ -937,7 +909,6 @@ const __default__ = {
937
909
  default: true
938
910
  }
939
911
  },
940
-
941
912
  setup(__props, {
942
913
  expose: __expose
943
914
  }) {
@@ -945,7 +916,9 @@ const __default__ = {
945
916
  const {
946
917
  proxy
947
918
  } = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
948
- let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]); // 获取组件传参
919
+ let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
920
+
921
+ // 获取组件传参
949
922
 
950
923
  let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
951
924
  collapseValue: props.settingParams && props.settingParams.collapseValue || ((props.settingParams && props.settingParams.collapseValue) == '' ? "" : "setting"),
@@ -958,13 +931,16 @@ const __default__ = {
958
931
  highlightObstacle: props.settingParams && props.settingParams.highlightObstacle !== undefined || false,
959
932
  isLabel: props.settingParams && props.settingParams.isLabel !== undefined || true
960
933
  });
961
- let viewModel = null; // 组件容器Ref
934
+ let viewModel = null;
962
935
 
963
- let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
936
+ // 组件容器Ref
937
+ let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
964
938
 
939
+ // 生成组件默认header
965
940
  let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
966
- let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
941
+ let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
967
942
 
943
+ // 国际化
968
944
  let {
969
945
  locale,
970
946
  messages
@@ -985,8 +961,9 @@ const __default__ = {
985
961
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
986
962
  watchCreateHeaderTemp();
987
963
  });
988
- }); //父组件ScenceView初始化完成后执行
964
+ });
989
965
 
966
+ //父组件ScenceView初始化完成后执行
990
967
  gis_utils_.utils.getWebMap(null, scenceView => {
991
968
  if (scenceView) {
992
969
  let options = {
@@ -1003,14 +980,12 @@ const __default__ = {
1003
980
  /**
1004
981
  * @description 监听header生成
1005
982
  */
1006
-
1007
983
  const watchCreateHeaderTemp = () => {
1008
984
  if (props.showHeaderTemp) {
1009
985
  // 生成headerTemp
1010
986
  headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
1011
987
  }
1012
988
  };
1013
-
1014
989
  function paramsChanged(key) {
1015
990
  switch (key) {
1016
991
  // case "lineWidth":
@@ -1019,68 +994,54 @@ const __default__ = {
1019
994
  case "visibleColor":
1020
995
  viewModel.setVisibleColor(formItem.visibleColor);
1021
996
  break;
1022
-
1023
997
  case "invisibleColor":
1024
998
  viewModel.setInvisibleColor(formItem.invisibleColor);
1025
999
  break;
1026
-
1027
1000
  case "obstacleColor":
1028
1001
  viewModel.setObstacleColor(formItem.obstacleColor);
1029
1002
  break;
1030
-
1031
1003
  case "isLabel":
1032
1004
  viewModel.setShowLabel(formItem.isLabel);
1033
1005
  break;
1034
-
1035
1006
  default:
1036
1007
  break;
1037
1008
  }
1038
- } //添加观察点
1039
-
1009
+ }
1040
1010
 
1011
+ //添加观察点
1041
1012
  function addSeePoint() {
1042
1013
  viewModel && viewModel.addSeePoint();
1043
- } //添加目标点
1044
-
1014
+ }
1045
1015
 
1016
+ //添加目标点
1046
1017
  function addTargetPoint() {
1047
1018
  viewModel && viewModel.addTargetPoint();
1048
- } //清除结果
1049
-
1019
+ }
1050
1020
 
1021
+ //清除结果
1051
1022
  function clearResult() {
1052
1023
  viewModel && viewModel.clearAll();
1053
- } // 销毁
1054
-
1024
+ }
1055
1025
 
1026
+ // 销毁
1056
1027
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
1057
1028
  viewModel && viewModel.destroy();
1058
1029
  });
1059
-
1060
1030
  __expose({
1061
1031
  paramsChanged,
1062
1032
  addSeePoint,
1063
1033
  addTargetPoint,
1064
1034
  clearResult
1065
1035
  });
1066
-
1067
1036
  return (_ctx, _cache) => {
1068
1037
  const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
1069
-
1070
1038
  const _component_kq_color_picker = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-color-picker");
1071
-
1072
1039
  const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
1073
-
1074
1040
  const _component_kq_checkbox = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-checkbox");
1075
-
1076
1041
  const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
1077
-
1078
1042
  const _component_kq_collapse_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse-item");
1079
-
1080
1043
  const _component_kq_collapse = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse");
1081
-
1082
1044
  const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
1083
-
1084
1045
  return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
1085
1046
  class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-sightline-analysis", {
1086
1047
  'kq-box-shadow': __props.showShadow
@@ -1091,17 +1052,11 @@ const __default__ = {
1091
1052
  key: 0,
1092
1053
  ref_key: "headerTempRef",
1093
1054
  ref: headerTempRef
1094
- }, null, 512
1095
- /* NEED_PATCH */
1096
- )) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
1055
+ }, null, 512 /* NEED_PATCH */)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
1097
1056
  class: "kq3d-sightline-analysis-tip"
1098
1057
  }, {
1099
- 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).sightTips), 1
1100
- /* TEXT */
1101
- )]),
1102
- _: 1
1103
- /* STABLE */
1104
-
1058
+ 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).sightTips), 1 /* TEXT */)]),
1059
+ _: 1 /* STABLE */
1105
1060
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse, {
1106
1061
  "model-value": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).collapseValue
1107
1062
  }, {
@@ -1121,18 +1076,10 @@ const __default__ = {
1121
1076
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).visibleColor,
1122
1077
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).visibleColor = $event),
1123
1078
  onChange: _cache[1] || (_cache[1] = $event => paramsChanged('visibleColor'))
1124
- }, null, 8
1125
- /* PROPS */
1126
- , ["modelValue"])]),
1127
- _: 1
1128
- /* STABLE */
1129
-
1130
- }, 8
1131
- /* PROPS */
1132
- , ["label"])]),
1133
- _: 1
1134
- /* STABLE */
1135
-
1079
+ }, null, 8 /* PROPS */, ["modelValue"])]),
1080
+ _: 1 /* STABLE */
1081
+ }, 8 /* PROPS */, ["label"])]),
1082
+ _: 1 /* STABLE */
1136
1083
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
1137
1084
  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, {
1138
1085
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).invisibleColor
@@ -1141,18 +1088,10 @@ const __default__ = {
1141
1088
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).invisibleColor,
1142
1089
  "onUpdate:modelValue": _cache[2] || (_cache[2] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).invisibleColor = $event),
1143
1090
  onChange: _cache[3] || (_cache[3] = $event => paramsChanged('invisibleColor'))
1144
- }, null, 8
1145
- /* PROPS */
1146
- , ["modelValue"])]),
1147
- _: 1
1148
- /* STABLE */
1149
-
1150
- }, 8
1151
- /* PROPS */
1152
- , ["label"])]),
1153
- _: 1
1154
- /* STABLE */
1155
-
1091
+ }, null, 8 /* PROPS */, ["modelValue"])]),
1092
+ _: 1 /* STABLE */
1093
+ }, 8 /* PROPS */, ["label"])]),
1094
+ _: 1 /* STABLE */
1156
1095
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
1157
1096
  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, {
1158
1097
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).obstacleColor
@@ -1161,96 +1100,49 @@ const __default__ = {
1161
1100
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).obstacleColor,
1162
1101
  "onUpdate:modelValue": _cache[4] || (_cache[4] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).obstacleColor = $event),
1163
1102
  onChange: _cache[5] || (_cache[5] = $event => paramsChanged('obstacleColor'))
1164
- }, null, 8
1165
- /* PROPS */
1166
- , ["modelValue"])]),
1167
- _: 1
1168
- /* STABLE */
1169
-
1170
- }, 8
1171
- /* PROPS */
1172
- , ["label"])]),
1173
- _: 1
1174
- /* STABLE */
1175
-
1103
+ }, null, 8 /* PROPS */, ["modelValue"])]),
1104
+ _: 1 /* STABLE */
1105
+ }, 8 /* PROPS */, ["label"])]),
1106
+ _: 1 /* STABLE */
1176
1107
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" <kq-row style=\"display: flex\">\r\n <kq-col :span=\"12\">\r\n <kq-checkbox v-model=\"formItem.obstaclePoint\">{{ language.obstaclePoint }}</kq-checkbox>\r\n </kq-col>\r\n <kq-col :span=\"12\">\r\n <kq-checkbox v-model=\"formItem.highlightObstacle\">{{ language.highlightObstacle }}</kq-checkbox>\r\n </kq-col>\r\n </kq-row> "), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
1177
1108
  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_checkbox, {
1178
1109
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isLabel,
1179
1110
  "onUpdate:modelValue": _cache[6] || (_cache[6] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).isLabel = $event),
1180
1111
  onChange: _cache[7] || (_cache[7] = $event => paramsChanged('isLabel'))
1181
1112
  }, {
1182
- 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).showLabel), 1
1183
- /* TEXT */
1184
- )]),
1185
- _: 1
1186
- /* STABLE */
1187
-
1188
- }, 8
1189
- /* PROPS */
1190
- , ["modelValue"])]),
1191
- _: 1
1192
- /* STABLE */
1193
-
1113
+ 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).showLabel), 1 /* TEXT */)]),
1114
+ _: 1 /* STABLE */
1115
+ }, 8 /* PROPS */, ["modelValue"])]),
1116
+ _: 1 /* STABLE */
1194
1117
  })]),
1195
- _: 1
1196
- /* STABLE */
1197
-
1118
+ _: 1 /* STABLE */
1198
1119
  })]),
1199
- _: 1
1200
- /* STABLE */
1201
-
1202
- }, 8
1203
- /* PROPS */
1204
- , ["title"])]),
1205
- _: 1
1206
- /* STABLE */
1207
-
1208
- }, 8
1209
- /* PROPS */
1210
- , ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
1120
+ _: 1 /* STABLE */
1121
+ }, 8 /* PROPS */, ["title"])]),
1122
+ _: 1 /* STABLE */
1123
+ }, 8 /* PROPS */, ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
1211
1124
  onClick: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)(addSeePoint, ["stop"]),
1212
1125
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).seePoint,
1213
1126
  type: "primary"
1214
1127
  }, {
1215
- 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).seePoint), 1
1216
- /* TEXT */
1217
- )]),
1218
- _: 1
1219
- /* STABLE */
1220
-
1221
- }, 8
1222
- /* PROPS */
1223
- , ["onClick", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
1128
+ 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).seePoint), 1 /* TEXT */)]),
1129
+ _: 1 /* STABLE */
1130
+ }, 8 /* PROPS */, ["onClick", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
1224
1131
  onClick: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)(addTargetPoint, ["stop"]),
1225
1132
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).targetPoint,
1226
1133
  type: "primary"
1227
1134
  }, {
1228
- 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).targetPoint), 1
1229
- /* TEXT */
1230
- )]),
1231
- _: 1
1232
- /* STABLE */
1233
-
1234
- }, 8
1235
- /* PROPS */
1236
- , ["onClick", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
1135
+ 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).targetPoint), 1 /* TEXT */)]),
1136
+ _: 1 /* STABLE */
1137
+ }, 8 /* PROPS */, ["onClick", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
1237
1138
  onClick: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)(clearResult, ["stop"]),
1238
1139
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).clearResult
1239
1140
  }, {
1240
- 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
1241
- /* TEXT */
1242
- )]),
1243
- _: 1
1244
- /* STABLE */
1245
-
1246
- }, 8
1247
- /* PROPS */
1248
- , ["onClick", "title"])])])], 2
1249
- /* CLASS */
1250
- );
1141
+ 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 /* TEXT */)]),
1142
+ _: 1 /* STABLE */
1143
+ }, 8 /* PROPS */, ["onClick", "title"])])])], 2 /* CLASS */);
1251
1144
  };
1252
1145
  }
1253
-
1254
1146
  }));
1255
1147
  ;// CONCATENATED MODULE: ./src/webgl/sightlineanalysis/SightlineAnalysis.vue?vue&type=script&setup=true&lang=js
1256
1148
 
@@ -1272,13 +1164,11 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
1272
1164
 
1273
1165
 
1274
1166
 
1275
-
1276
1167
  SightlineAnalysis.install = (Vue, opts) => {
1277
1168
  init_js_default()(Vue, opts);
1278
1169
  Vue.component(SightlineAnalysis.name, SightlineAnalysis);
1279
1170
  };
1280
1171
 
1281
-
1282
1172
  }();
1283
1173
  /******/ return __webpack_exports__;
1284
1174
  /******/ })()