@kq_npm/client3d_webgl_vue 3.2.9-beta → 3.3.1-beta

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -821,6 +821,27 @@ class AddDataViewModel {
821
821
  cb && cb(node);
822
822
  break;
823
823
 
824
+ case "mvt":
825
+ layer = this._viewer.imageryLayers.addImageryProvider(new Cesium.Kq3dMvtImageryProviderExt({
826
+ name: name,
827
+ style: url
828
+ }));
829
+ this.flyToLayer(layer);
830
+ node = {
831
+ guid: layer.guid,
832
+ name: name,
833
+ visible: true,
834
+ serverType: "imagerylayer",
835
+ lsType: "ls",
836
+ url: url,
837
+ addType: type
838
+ };
839
+
840
+ this._layerManager.addTempLayerNode(node);
841
+
842
+ cb && cb(node);
843
+ break;
844
+
824
845
  case "wms":
825
846
  this._viewer.addWMSLayerGroup(url).then(group => {
826
847
  node = {
@@ -857,6 +878,7 @@ class AddDataViewModel {
857
878
  break;
858
879
 
859
880
  case "wmts":
881
+ case "kqgistileserver":
860
882
  this._viewer.addWMTSLayerGroup(url).then(group => {
861
883
  node = {
862
884
  guid: group.guid,
@@ -1256,9 +1278,9 @@ const __default__ = {
1256
1278
  description: language.value.imagertyDataflowServerdescription
1257
1279
  }, {
1258
1280
  type: "kqgistileserver",
1259
- name: language.value.KQGISTileServer + "(未实现)",
1281
+ name: language.value.KQGISTileServer,
1260
1282
  namePlaceholder: language.value.unnamedLayer,
1261
- urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/tile",
1283
+ urlPlaceholder: language.value.format + ":http://<host>:<port>/kqgis/rest/services/<servername>/tile/wmts",
1262
1284
  description: language.value.imagertyTileServerdescription
1263
1285
  }, {
1264
1286
  type: "arcgismapserver",
@@ -1294,11 +1316,11 @@ const __default__ = {
1294
1316
  type: "geojson",
1295
1317
  name: language.value.GeoJson,
1296
1318
  namePlaceholder: language.value.unnamedLayer,
1297
- urlPlaceholder: language.value.format + ": http://<host>:<port>/xxx.geojson",
1319
+ urlPlaceholder: language.value.format + ":http://<host>:<port>/xxx.geojson",
1298
1320
  description: language.value.imagertyGeoJsondescription
1299
1321
  }, {
1300
1322
  type: "mvt",
1301
- name: language.value.MVT + "(未实现)",
1323
+ name: language.value.MVT,
1302
1324
  namePlaceholder: language.value.unnamedLayer,
1303
1325
  urlPlaceholder: language.value.format + ":http://<host>:<port>/mvt/style.json",
1304
1326
  description: language.value.imagertyMVTdescription
@@ -14471,17 +14493,14 @@ var util_ = __webpack_require__(9519);
14471
14493
  ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/modelselect/ModelSelect.vue?vue&type=script&setup=true&lang=js
14472
14494
 
14473
14495
  const _hoisted_1 = {
14474
- class: "kq3d-model-select-box"
14475
- };
14476
- const _hoisted_2 = {
14477
14496
  class: "title"
14478
14497
  };
14479
14498
 
14480
- const _hoisted_3 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, "所属图层名称:", -1
14499
+ const _hoisted_2 = /*#__PURE__*/(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, "所属图层名称:", -1
14481
14500
  /* HOISTED */
14482
14501
  );
14483
14502
 
14484
- const _hoisted_4 = {
14503
+ const _hoisted_3 = {
14485
14504
  class: "footer-buttons"
14486
14505
  };
14487
14506
 
@@ -14551,7 +14570,8 @@ const __default__ = {
14551
14570
  let tableData = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]); //语言
14552
14571
 
14553
14572
  let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
14554
- let viewModel = null; // 获取组件传参
14573
+ let viewModel = null;
14574
+ let ref_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 获取组件传参
14555
14575
  // 表格头样式
14556
14576
 
14557
14577
  let headClass = args => {
@@ -14669,15 +14689,20 @@ const __default__ = {
14669
14689
  ref: headerTempRef
14670
14690
  }, null, 512
14671
14691
  /* NEED_PATCH */
14672
- )) : (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, null, {
14673
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_2, [_hoisted_3, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(layerNameTitle)), 1
14692
+ )) : (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", {
14693
+ class: "kq3d-model-select-box",
14694
+ ref_key: "ref_box",
14695
+ ref: ref_box
14696
+ }, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
14697
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [_hoisted_2, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(layerNameTitle)), 1
14674
14698
  /* TEXT */
14675
14699
  )])]),
14676
14700
  _: 1
14677
14701
  /* STABLE */
14678
14702
 
14679
14703
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
14680
- class: "modelTable"
14704
+ class: "modelTable",
14705
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)(__props.showHeaderTemp ? 'height: calc(100% - 70px)' : 'height: calc(100% - 35px)')
14681
14706
  }, {
14682
14707
  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_table, {
14683
14708
  border: "",
@@ -14714,7 +14739,9 @@ const __default__ = {
14714
14739
  _: 1
14715
14740
  /* STABLE */
14716
14741
 
14717
- }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_4, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
14742
+ }, 8
14743
+ /* PROPS */
14744
+ , ["style"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_3, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
14718
14745
  onClick: _cache[0] || (_cache[0] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => pick(), ["stop"])),
14719
14746
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).pick,
14720
14747
  type: "primary"
@@ -14739,7 +14766,9 @@ const __default__ = {
14739
14766
 
14740
14767
  }, 8
14741
14768
  /* PROPS */
14742
- , ["title"])])])], 2
14769
+ , ["title"])])], 512
14770
+ /* NEED_PATCH */
14771
+ )], 2
14743
14772
  /* CLASS */
14744
14773
  );
14745
14774
  };
@@ -14825,7 +14854,10 @@ class ParticleEffectViewModel {
14825
14854
  scenceView._viewer.clock.shouldAnimate = true;
14826
14855
  scenceView._viewer.scene.globe.depthTestAgainstTerrain = true;
14827
14856
  this._scene = scenceView._viewer.scene;
14828
- this._drawManager = scenceView._drawManager;
14857
+ this._drawManager = scenceView._drawManager; // 启动连续绘制
14858
+
14859
+ this._drawManager.enableMultiDraw(true);
14860
+
14829
14861
  _gravityScratch = new Cesium.Cartesian3();
14830
14862
  var that = this;
14831
14863
  that._removeEventListener = that._drawManager.drawFinishedEvent.addEventListener(shape => {
@@ -14928,6 +14960,8 @@ class ParticleEffectViewModel {
14928
14960
  clear() {
14929
14961
  this._drawManager.stopDraw();
14930
14962
 
14963
+ this._drawManager.clear();
14964
+
14931
14965
  for (let i = 0; i < this._particleSystemList.length; i++) {
14932
14966
  this._scene.primitives.remove(this._particleSystemList[i]);
14933
14967
  }
@@ -14937,7 +14971,10 @@ class ParticleEffectViewModel {
14937
14971
 
14938
14972
 
14939
14973
  destroy() {
14940
- this.clear(); //移除监听事件
14974
+ this.clear();
14975
+
14976
+ this._drawManager.enableMultiDraw(false); //移除监听事件
14977
+
14941
14978
 
14942
14979
  this._removeEventListener && this._removeEventListener();
14943
14980
  this._removeEventListener = null;
@@ -20032,9 +20069,12 @@ var update = injectStylesIntoStyleTag_default()(divpoint/* default */.Z, options
20032
20069
 
20033
20070
 
20034
20071
  /* harmony default export */ var style_divpoint = (divpoint/* default.locals */.Z.locals || {});
20072
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
20073
+ var const_image_ = __webpack_require__(9702);
20035
20074
  ;// CONCATENATED MODULE: ./src/webgl/sightlineanalysis/SightlineAnalysisViewModel.js
20036
20075
 
20037
20076
 
20077
+
20038
20078
  //通视分析逻辑类
20039
20079
 
20040
20080
  class SightlineAnalysisViewModel {
@@ -20048,6 +20088,7 @@ class SightlineAnalysisViewModel {
20048
20088
  //创建的divpoint集合
20049
20089
  //拾取的点位集合
20050
20090
  //高亮的障碍物的id集合
20091
+ // 点位图标billboards集合
20051
20092
  constructor(scenceView, options) {
20052
20093
  (0,defineProperty/* default */.Z)(this, "_viewer", null);
20053
20094
 
@@ -20069,6 +20110,8 @@ class SightlineAnalysisViewModel {
20069
20110
 
20070
20111
  (0,defineProperty/* default */.Z)(this, "_highlightIds", []);
20071
20112
 
20113
+ (0,defineProperty/* default */.Z)(this, "_billboards", []);
20114
+
20072
20115
  this._viewer = scenceView._viewer;
20073
20116
  this._viewer.scene.postProcessStages._fxaa.enabled = true;
20074
20117
  this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
@@ -20094,6 +20137,8 @@ class SightlineAnalysisViewModel {
20094
20137
  let that = this;
20095
20138
  this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
20096
20139
  if (shape && shape.type === "marker") {
20140
+ that.createBillboard(shape.position);
20141
+
20097
20142
  if (that._addType === 1) {
20098
20143
  that._sightlineAnalysis.setSeePoint(shape.position);
20099
20144
 
@@ -20110,6 +20155,18 @@ class SightlineAnalysisViewModel {
20110
20155
  that._drawManager.clear();
20111
20156
  }
20112
20157
  });
20158
+ } // 创建图标
20159
+
20160
+
20161
+ createBillboard(pos) {
20162
+ this._billboards.push(this._viewer.entities.add({
20163
+ position: pos,
20164
+ billboard: {
20165
+ image: this._addType === 1 ? const_image_.OBSERVATION_POINT : const_image_.TARGET_POINT,
20166
+ verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
20167
+ scale: 0.15
20168
+ }
20169
+ }));
20113
20170
  } //创建点位置
20114
20171
 
20115
20172
 
@@ -20206,7 +20263,7 @@ class SightlineAnalysisViewModel {
20206
20263
  this._addType = 1;
20207
20264
 
20208
20265
  this._drawManager.startDraw("point", {
20209
- image: null
20266
+ image: const_image_.OBSERVATION_POINT
20210
20267
  });
20211
20268
  } //添加目标点
20212
20269
 
@@ -20216,7 +20273,7 @@ class SightlineAnalysisViewModel {
20216
20273
  this._addType = 2;
20217
20274
 
20218
20275
  this._drawManager.startDraw("point", {
20219
- image: null
20276
+ image: const_image_.TARGET_POINT
20220
20277
  });
20221
20278
  } //清除显示结果
20222
20279
 
@@ -20228,6 +20285,15 @@ class SightlineAnalysisViewModel {
20228
20285
  }
20229
20286
 
20230
20287
  this._pointCollection = [];
20288
+ } // 清楚billboards
20289
+
20290
+
20291
+ clearBillboards() {
20292
+ for (var i = 0; i < this._billboards.length; i++) {
20293
+ this._viewer.entities.remove(this._billboards[i]);
20294
+ }
20295
+
20296
+ this._billboards = [];
20231
20297
  } //清除全部
20232
20298
 
20233
20299
 
@@ -20236,6 +20302,7 @@ class SightlineAnalysisViewModel {
20236
20302
 
20237
20303
  this.clearDisplay();
20238
20304
  this.clearHighlights();
20305
+ this.clearBillboards();
20239
20306
  this._sightlineAnalysis && this._sightlineAnalysis.remove();
20240
20307
  } //销毁
20241
20308
 
@@ -24347,6 +24414,8 @@ class WeatherEffectViewModel {
24347
24414
  clear() {
24348
24415
  this._drawManager.stopDraw();
24349
24416
 
24417
+ this._drawManager.clear();
24418
+
24350
24419
  this._particleSystem && this._scene.primitives.remove(this._particleSystem);
24351
24420
  this._particleSystem = null;
24352
24421
  } //销毁
@@ -27842,16 +27911,13 @@ class ScenceViewViewModel extends (mitt_default()) {
27842
27911
  } //销毁
27843
27912
 
27844
27913
 
27845
- destroy() {
27846
- if (this._removeEventListener) {
27847
- this._removeEventListener();
27848
-
27849
- this._removeEventListener = null;
27850
- }
27851
-
27852
- this._viewer = null;
27853
- this._drawManager = null;
27854
- this._layerManager = null;
27914
+ destroy() {// if (this._removeEventListener) {
27915
+ // this._removeEventListener();
27916
+ // this._removeEventListener = null;
27917
+ // }
27918
+ // this._viewer = null;
27919
+ // this._drawManager = null;
27920
+ // this._layerManager = null;
27855
27921
  } //创建底图
27856
27922
 
27857
27923
 
@@ -379,6 +379,13 @@ module.exports = require("core-js/modules/es.array.includes.js");
379
379
 
380
380
  /***/ }),
381
381
 
382
+ /***/ 9702:
383
+ /***/ (function(module) {
384
+
385
+ module.exports = require("@kq_npm/client_common_vue/_utils/const-image");
386
+
387
+ /***/ }),
388
+
382
389
  /***/ 826:
383
390
  /***/ (function(module) {
384
391
 
@@ -542,9 +549,12 @@ var update = injectStylesIntoStyleTag_default()(divpoint/* default */.Z, options
542
549
 
543
550
 
544
551
  /* harmony default export */ var style_divpoint = (divpoint/* default.locals */.Z.locals || {});
552
+ // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
553
+ var const_image_ = __webpack_require__(9702);
545
554
  ;// CONCATENATED MODULE: ./src/webgl/sightlineanalysis/SightlineAnalysisViewModel.js
546
555
 
547
556
 
557
+
548
558
  //通视分析逻辑类
549
559
 
550
560
  class SightlineAnalysisViewModel {
@@ -558,6 +568,7 @@ class SightlineAnalysisViewModel {
558
568
  //创建的divpoint集合
559
569
  //拾取的点位集合
560
570
  //高亮的障碍物的id集合
571
+ // 点位图标billboards集合
561
572
  constructor(scenceView, options) {
562
573
  (0,defineProperty/* default */.Z)(this, "_viewer", null);
563
574
 
@@ -579,6 +590,8 @@ class SightlineAnalysisViewModel {
579
590
 
580
591
  (0,defineProperty/* default */.Z)(this, "_highlightIds", []);
581
592
 
593
+ (0,defineProperty/* default */.Z)(this, "_billboards", []);
594
+
582
595
  this._viewer = scenceView._viewer;
583
596
  this._viewer.scene.postProcessStages._fxaa.enabled = true;
584
597
  this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
@@ -604,6 +617,8 @@ class SightlineAnalysisViewModel {
604
617
  let that = this;
605
618
  this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
606
619
  if (shape && shape.type === "marker") {
620
+ that.createBillboard(shape.position);
621
+
607
622
  if (that._addType === 1) {
608
623
  that._sightlineAnalysis.setSeePoint(shape.position);
609
624
 
@@ -620,6 +635,18 @@ class SightlineAnalysisViewModel {
620
635
  that._drawManager.clear();
621
636
  }
622
637
  });
638
+ } // 创建图标
639
+
640
+
641
+ createBillboard(pos) {
642
+ this._billboards.push(this._viewer.entities.add({
643
+ position: pos,
644
+ billboard: {
645
+ image: this._addType === 1 ? const_image_.OBSERVATION_POINT : const_image_.TARGET_POINT,
646
+ verticalOrigin: Cesium.VerticalOrigin.BOTTOM,
647
+ scale: 0.15
648
+ }
649
+ }));
623
650
  } //创建点位置
624
651
 
625
652
 
@@ -716,7 +743,7 @@ class SightlineAnalysisViewModel {
716
743
  this._addType = 1;
717
744
 
718
745
  this._drawManager.startDraw("point", {
719
- image: null
746
+ image: const_image_.OBSERVATION_POINT
720
747
  });
721
748
  } //添加目标点
722
749
 
@@ -726,7 +753,7 @@ class SightlineAnalysisViewModel {
726
753
  this._addType = 2;
727
754
 
728
755
  this._drawManager.startDraw("point", {
729
- image: null
756
+ image: const_image_.TARGET_POINT
730
757
  });
731
758
  } //清除显示结果
732
759
 
@@ -738,6 +765,15 @@ class SightlineAnalysisViewModel {
738
765
  }
739
766
 
740
767
  this._pointCollection = [];
768
+ } // 清楚billboards
769
+
770
+
771
+ clearBillboards() {
772
+ for (var i = 0; i < this._billboards.length; i++) {
773
+ this._viewer.entities.remove(this._billboards[i]);
774
+ }
775
+
776
+ this._billboards = [];
741
777
  } //清除全部
742
778
 
743
779
 
@@ -746,6 +782,7 @@ class SightlineAnalysisViewModel {
746
782
 
747
783
  this.clearDisplay();
748
784
  this.clearHighlights();
785
+ this.clearBillboards();
749
786
  this._sightlineAnalysis && this._sightlineAnalysis.remove();
750
787
  } //销毁
751
788