@kq_npm/client3d_webgl_vue 4.3.3-beta → 4.3.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (84) hide show
  1. package/adddata/index.js +4 -35
  2. package/adddata/style/adddata.css +1 -110
  3. package/aspectanalysis/style/aspectanalysis.css +1 -101
  4. package/baseterraingallery/index.js +2 -2
  5. package/baseterraingallery/style/baseterraingallery.css +1 -88
  6. package/boxclip/index.js +0 -10
  7. package/boxclip/style/boxclip.css +1 -97
  8. package/clientPrint/index.js +15 -5
  9. package/clientPrint/style/clientPrint.css +1 -461
  10. package/comparemap/index.js +145 -136
  11. package/comparemap/style/comparemap.css +1 -35
  12. package/compass/index.js +2 -2
  13. package/excavatefillanalysis/index.js +2 -2
  14. package/excavatefillanalysis/style/excavatefillanalysis.css +1 -140
  15. package/fixedzoomin/index.js +2 -2
  16. package/fixedzoomout/index.js +2 -2
  17. package/flight/index.js +3 -13
  18. package/flight/style/flight.css +1 -150
  19. package/floodanalysis/style/floodanalysis.css +1 -95
  20. package/geologicalbodyanalysis/index.js +0 -10
  21. package/geologicalbodyanalysis/style/geologicalbodyanalysis.css +1 -64
  22. package/gpuspatialquery/index.js +0 -10
  23. package/gpuspatialquery/style/gpuspatialquery.css +1 -88
  24. package/hawkeye/index.js +2 -2
  25. package/index.js +1969 -535
  26. package/isolineanalysis/style/isolineanalysis.css +1 -113
  27. package/light/index.js +169 -170
  28. package/light/style/light.css +1 -104
  29. package/limitheightanalysis/index.js +125 -126
  30. package/limitheightanalysis/style/limitheightanalysis.css +1 -88
  31. package/measure/index.js +141 -24
  32. package/measure/style/measure.css +1 -84
  33. package/modelFlat/index.js +0 -10
  34. package/modelFlat/style/modelFlat.css +1 -66
  35. package/modelexcavate/index.js +98 -60
  36. package/modelexcavate/style/modelexcavate.css +1 -66
  37. package/modelfilter/index.js +0 -10
  38. package/modelfilter/style/modelfilter.css +1 -66
  39. package/modelprofileanalysis/index.js +164 -165
  40. package/modelprofileanalysis/style/modelprofileanalysis.css +1 -94
  41. package/modelselect/index.js +0 -10
  42. package/modelselect/style/modelselect.css +1 -28
  43. package/package.json +1 -1
  44. package/particleeffect/index.js +0 -10
  45. package/particleeffect/style/particleeffect.css +1 -94
  46. package/planeclip/index.js +0 -10
  47. package/planeclip/style/planeclip.css +1 -94
  48. package/resetview/index.js +2 -2
  49. package/roller/index.js +170 -171
  50. package/roller/style/roller.css +1 -59
  51. package/scaneffect/index.js +0 -10
  52. package/scaneffect/style/scaneffect.css +1 -101
  53. package/sceneset/index.js +1 -10
  54. package/sceneset/style/sceneset.css +1 -86
  55. package/sceneview/index.js +2029 -567
  56. package/sceneview/style/sceneview.css +1 -127
  57. package/screenshot/index.js +158 -159
  58. package/screenshot/style/screenshot.css +1 -53
  59. package/shadowanalysis/style/shadowanalysis.css +1 -141
  60. package/sightlineanalysis/index.js +5 -7
  61. package/sightlineanalysis/style/divpoint.css +1 -22
  62. package/sightlineanalysis/style/sightlineanalysis.css +1 -85
  63. package/skylineanalysis/style/skylineanalysis.css +1 -100
  64. package/slopeanalysis/index.js +16 -11
  65. package/slopeanalysis/style/slopeanalysis.css +1 -101
  66. package/slopeaspectanalysis/index.js +1512 -0
  67. package/slopeaspectanalysis/style/index.js +3 -0
  68. package/slopeaspectanalysis/style/slopeaspectanalysis.css +1 -0
  69. package/statusbar/index.js +3 -12
  70. package/style.css +1 -3817
  71. package/terrainoperation/index.js +0 -10
  72. package/terrainoperation/style/terrainoperation.css +1 -66
  73. package/terrainprofileanalysis/index.js +0 -10
  74. package/terrainprofileanalysis/style/terrainprofileanalysis.css +1 -83
  75. package/underground/index.js +3 -3
  76. package/underground/style/underground.css +1 -19
  77. package/videofusion/index.js +5 -35
  78. package/videofusion/style/videofusion.css +1 -104
  79. package/videoproject/index.js +5 -35
  80. package/videoproject/style/videoproject.css +1 -104
  81. package/viewshedanalysis/style/viewshedanalysis.css +1 -88
  82. package/weathereffect/style/weathereffect.css +1 -95
  83. package/wireframesketch/index.js +0 -10
  84. package/wireframesketch/style/wireframesketch.css +1 -12
@@ -1,84 +1 @@
1
- .kq-measure3d {
2
- z-index: 999;
3
- border-radius: var(--kq-border-radius-base);
4
- padding: 16px;
5
- pointer-events: auto;
6
- cursor: default;
7
- background-color: var(--kq-bg-color);
8
- }
9
- .kq-measure3d .kq-measure3d-box {
10
- width: 370px;
11
- }
12
- .kq-measure3d p {
13
- margin: 0;
14
- }
15
- .kq-measure3d .kq-measure3d-mode .panel {
16
- width: 100%;
17
- }
18
- .kq-measure3d .kq-measure3d-mode .panel .title {
19
- color: var(--kq-text-color-regular);
20
- margin: 0 0 8px 0;
21
- font-size: 14px;
22
- }
23
- .kq-measure3d .kq-measure3d-mode .panel .kq-select {
24
- width: 100%;
25
- }
26
- .kq-measure3d .kq-measure3d-btns {
27
- margin-top: 12px;
28
- }
29
- .kq-measure3d .kq-measure3d-btns .kq-button {
30
- width: 48px;
31
- height: 48px;
32
- }
33
- .kq-measure3d .kq-measure3d-btns .kq-button .kq-icon {
34
- color: var(--kq-color-primary);
35
- }
36
- .kq-measure3d .kq-measure3d-btns .kq-button .icon-delete {
37
- color: var(--kq-color-danger);
38
- }
39
- .kq-measure3d .kq-measure3d-btns .kq-button:hover .icon-delete, .kq-measure3d .kq-measure3d-btns .kq-button:active .icon-delete, .kq-measure3d .kq-measure3d-btns .kq-button:focus .icon-delete {
40
- color: var(--kq-color-white) !important;
41
- }
42
- .kq-measure3d .kq-measure3d-btns .kq-button + .kq-button {
43
- margin-left: 16px;
44
- }
45
- .kq-measure3d .kq-measure3d-tip {
46
- color: var(--kq-text-color-regular);
47
- font-size: 13px;
48
- }
49
- .kq-measure3d .kq-measure3d-tip .kq-divider {
50
- margin: 16px 0;
51
- }
52
- .kq-measure3d .kq-measure3d-tip > p {
53
- margin: 0;
54
- }
55
- .kq-measure3d .kq-measure3d-result .kq-divider {
56
- margin: 16px 0;
57
- }
58
- .kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel {
59
- padding-bottom: 16px;
60
- }
61
- .kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel:last-child {
62
- padding: 0;
63
- }
64
- .kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .title {
65
- color: var(--kq-text-color-regular);
66
- margin: 0 0 8px 0;
67
- font-size: 14px;
68
- }
69
- .kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .kq-select {
70
- width: 100%;
71
- }
72
- .kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .result {
73
- padding: 8px;
74
- background: var(--kq-sub-bg-color);
75
- border-radius: var(--kq-border-radius-base);
76
- color: var(--kq-text-color-regular);
77
- font-size: 14px;
78
- }
79
- .kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .result .tit {
80
- padding-bottom: 8px;
81
- }
82
- .kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .result .res + .tit {
83
- padding-top: 12px;
84
- }
1
+ .kq-measure3d{z-index:999;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}.kq-measure3d .kq-measure3d-box{width:370px}.kq-measure3d p{margin:0}.kq-measure3d .kq-measure3d-mode .panel{width:100%}.kq-measure3d .kq-measure3d-mode .panel .title{color:var(--kq-text-color-regular);margin:0 0 8px;font-size:14px}.kq-measure3d .kq-measure3d-mode .panel .kq-select{width:100%}.kq-measure3d .kq-measure3d-btns{margin-top:12px}.kq-measure3d .kq-measure3d-btns .kq-button{width:48px;height:48px}.kq-measure3d .kq-measure3d-btns .kq-button .kq-icon{color:var(--kq-color-primary)}.kq-measure3d .kq-measure3d-btns .kq-button .icon-delete{color:var(--kq-color-danger)}.kq-measure3d .kq-measure3d-btns .kq-button:active .icon-delete,.kq-measure3d .kq-measure3d-btns .kq-button:focus .icon-delete,.kq-measure3d .kq-measure3d-btns .kq-button:hover .icon-delete{color:var(--kq-color-white)!important}.kq-measure3d .kq-measure3d-btns .kq-button+.kq-button{margin-left:16px}.kq-measure3d .kq-measure3d-tip{color:var(--kq-text-color-regular);font-size:13px}.kq-measure3d .kq-measure3d-tip .kq-divider{margin:16px 0}.kq-measure3d .kq-measure3d-tip>p{margin:0}.kq-measure3d .kq-measure3d-result .kq-divider{margin:16px 0}.kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel{padding-bottom:16px}.kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel:last-child{padding:0}.kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .title{color:var(--kq-text-color-regular);margin:0 0 8px;font-size:14px}.kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .kq-select{width:100%}.kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .result{padding:8px;background:var(--kq-sub-bg-color);border-radius:var(--kq-border-radius-base);color:var(--kq-text-color-regular);font-size:14px}.kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .result .tit{padding-bottom:8px}.kq-measure3d .kq-measure3d-result .kq-measure3d-result-panel .panel .result .res+.tit{padding-top:12px}
@@ -46,13 +46,6 @@ module.exports = require("@kq_npm/client_icons_vue");
46
46
 
47
47
  /***/ }),
48
48
 
49
- /***/ 2118:
50
- /***/ (function(module) {
51
-
52
- module.exports = require("core-js/modules/es.array.push.js");
53
-
54
- /***/ }),
55
-
56
49
  /***/ 7080:
57
50
  /***/ (function(module) {
58
51
 
@@ -197,13 +190,10 @@ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
197
190
  var gis_utils_ = __webpack_require__(7135);
198
191
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
199
192
  var defineProperty = __webpack_require__(8270);
200
- // EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
201
- var es_array_push_js_ = __webpack_require__(2118);
202
193
  // EXTERNAL MODULE: ./src/common/_ui/message/index.js + 1 modules
203
194
  var message = __webpack_require__(3694);
204
195
  ;// CONCATENATED MODULE: ./src/webgl/modelFlat/ModelFlatViewModel.js
205
196
 
206
-
207
197
  //模型拾取逻辑类
208
198
 
209
199
  class ModelFlatViewModel {
@@ -1,66 +1 @@
1
- .kq3d-model-flat {
2
- z-index: 999;
3
- border-radius: var(--kq-border-radius-base);
4
- padding: 16px;
5
- pointer-events: auto;
6
- cursor: default;
7
- background-color: var(--kq-bg-color);
8
- }
9
- .kq3d-model-flat .kq3d-model-flat-box {
10
- width: 350px;
11
- }
12
- .kq3d-model-flat .kq-row {
13
- margin-bottom: 8px;
14
- }
15
- .kq3d-model-flat .kq-form-item {
16
- margin-bottom: 8px;
17
- }
18
- .kq3d-model-flat .kq3d-model-flat-span {
19
- color: var(--kq-text-color-regular);
20
- line-height: 32px;
21
- font-size: var(--kq-font-size-base);
22
- }
23
- .kq3d-model-flat .kq3d-model-flat-tip {
24
- color: var(--kq-text-color-regular);
25
- font-size: var(--kq-font-size-base);
26
- }
27
- .kq3d-model-flat .kq3d-model-flat-tip p {
28
- margin: 0px;
29
- display: -webkit-box;
30
- display: -ms-flexbox;
31
- display: flex;
32
- -webkit-box-align: center;
33
- -ms-flex-align: center;
34
- align-items: center;
35
- -webkit-font-feature-settings: "tnum" on, "lnum" on;
36
- font-feature-settings: "tnum" on, "lnum" on;
37
- font-family: "Noto Sans SC";
38
- font-style: normal;
39
- font-weight: 400;
40
- }
41
- .kq3d-model-flat .kq-slider {
42
- width: 100%;
43
- }
44
- .kq3d-model-flat .kq-slider .kq-slider__button {
45
- width: 14px;
46
- height: 14px;
47
- }
48
- .kq3d-model-flat .kq-input-number.is-controls-right {
49
- width: 65px;
50
- }
51
- .kq3d-model-flat .kq-input-number.is-controls-right .kq-input-number__increase,
52
- .kq3d-model-flat .kq-input-number.is-controls-right .kq-input-number__decrease {
53
- width: 20px;
54
- }
55
- .kq3d-model-flat .kq-input-number.is-controls-right .kq-input__wrapper {
56
- padding-left: 0px;
57
- padding-right: 20px;
58
- }
59
- .kq3d-model-flat .kq-col-8 .kq-input-number .kq-input__wrapper {
60
- padding-left: 0px;
61
- padding-right: 20px;
62
- }
63
- .kq3d-model-flat .kq3d-model-flat-footer {
64
- text-align: right;
65
- padding: 8px 0px 0px;
66
- }
1
+ .kq3d-model-flat{z-index:999;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}.kq3d-model-flat .kq3d-model-flat-box{width:350px}.kq3d-model-flat .kq-form-item,.kq3d-model-flat .kq-row{margin-bottom:8px}.kq3d-model-flat .kq3d-model-flat-span{line-height:32px}.kq3d-model-flat .kq3d-model-flat-span,.kq3d-model-flat .kq3d-model-flat-tip{color:var(--kq-text-color-regular);font-size:var(--kq-font-size-base)}.kq3d-model-flat .kq3d-model-flat-tip p{margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-font-feature-settings:"tnum" on,"lnum" on;font-feature-settings:"tnum" on,"lnum" on;font-family:Noto Sans SC;font-style:normal;font-weight:400}.kq3d-model-flat .kq-slider{width:100%}.kq3d-model-flat .kq-slider .kq-slider__button{width:14px;height:14px}.kq3d-model-flat .kq-input-number.is-controls-right{width:65px}.kq3d-model-flat .kq-input-number.is-controls-right .kq-input-number__decrease,.kq3d-model-flat .kq-input-number.is-controls-right .kq-input-number__increase{width:20px}.kq3d-model-flat .kq-col-8 .kq-input-number .kq-input__wrapper,.kq3d-model-flat .kq-input-number.is-controls-right .kq-input__wrapper{padding-left:0;padding-right:20px}.kq3d-model-flat .kq3d-model-flat-footer{text-align:right;padding:8px 0 0}
@@ -46,13 +46,6 @@ module.exports = require("@kq_npm/client_icons_vue");
46
46
 
47
47
  /***/ }),
48
48
 
49
- /***/ 2118:
50
- /***/ (function(module) {
51
-
52
- module.exports = require("core-js/modules/es.array.push.js");
53
-
54
- /***/ }),
55
-
56
49
  /***/ 7080:
57
50
  /***/ (function(module) {
58
51
 
@@ -197,13 +190,10 @@ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
197
190
  var gis_utils_ = __webpack_require__(7135);
198
191
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
199
192
  var defineProperty = __webpack_require__(8270);
200
- // EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
201
- var es_array_push_js_ = __webpack_require__(2118);
202
193
  // EXTERNAL MODULE: ./src/common/_ui/message/index.js + 1 modules
203
194
  var message = __webpack_require__(3694);
204
195
  ;// CONCATENATED MODULE: ./src/webgl/modelexcavate/ModelExcavateViewModel.js
205
196
 
206
-
207
197
  //模型开挖逻辑类
208
198
 
209
199
  class ModelExcavateViewModel {
@@ -247,6 +237,8 @@ class ModelExcavateViewModel {
247
237
 
248
238
  (0,defineProperty/* default */.Z)(this, "intervalId", null);
249
239
 
240
+ (0,defineProperty/* default */.Z)(this, "tileset1", null);
241
+
250
242
  (0,defineProperty/* default */.Z)(this, "g_flattenedPolygonTexture", null);
251
243
 
252
244
  this._viewer = scenceView._viewer;
@@ -255,12 +247,43 @@ class ModelExcavateViewModel {
255
247
  this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
256
248
 
257
249
  let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
258
- this.g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture();
250
+ this.g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture(); // this.tileset1 = this._viewer.scene.primitives.add(new Cesium.Cesium3DTileset({
251
+ // url: "http://support.kqgeo.com:18700/SampleData/3DTiles/Oblique/tileset.json"
252
+ // }));
253
+ // this.tileset1.readyPromise.then(function (tileset) {
254
+ // that._viewer.zoomTo(tileset);
255
+ // }).otherwise(function (error) {
256
+ // console.log(error);
257
+ // });
258
+ // this.tileset1.enableFlattenning = true;
259
+ // this.tileset1.flattenDiscard = true;
260
+ // this.g_flattenedPolygonTexture.attachTileset(this.tileset1);
261
+
259
262
  var that = this;
263
+ var models = this._viewer.scene.primitives._primitives;
264
+
265
+ for (let i = 0; i < models.length; i++) {
266
+ if (models[1] instanceof Cesium.Cesium3DTileset && models[i]._url) {
267
+ models[i].enableFlattenning = true;
268
+ models[i].flattenDiscard = true;
269
+ models[i].readyPromise.then(function (tileset) {
270
+ that.g_flattenedPolygonTexture.attachTileset(tileset);
271
+ });
272
+ }
273
+ }
274
+
260
275
  this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
261
276
  if (shape) {
262
277
  that._options.positions = shape._controlPoints;
263
- that.createDynamicExcavationEffect();
278
+
279
+ if (shape._controlPoints && shape._controlPoints.length > 3 || shape._controlPoints && shape._controlPoints.length == 3 && shape._controlPoints[2] != shape._controlPoints[0]) {
280
+ that.createDynamicExcavationEffect();
281
+ } else {
282
+ (0,message/* default */.Z)({
283
+ message: "请至少绘制3个点!",
284
+ type: "warning"
285
+ });
286
+ }
264
287
 
265
288
  that._drawManager.clear();
266
289
  }
@@ -269,12 +292,20 @@ class ModelExcavateViewModel {
269
292
 
270
293
 
271
294
  createDynamicExcavationEffect() {
295
+ this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
272
296
  this._Kq3dTerrainExcavation = new window.Cesium.Kq3dTerrainExcavation({
273
297
  viewer: this._viewer,
274
298
  height: this._options.height,
275
299
  positions: this._options.positions,
276
300
  hasWall: false
277
301
  });
302
+
303
+ if (this._wallPrimitive) {
304
+ this._viewer.scene.primitives.remove(this._wallPrimitive);
305
+
306
+ this._wallPrimitive = undefined;
307
+ }
308
+
278
309
  this._wallPrimitive = new window.Cesium.Kq3dWallPrimitive({
279
310
  viewer: this._viewer,
280
311
  height: this._options.height,
@@ -291,43 +322,40 @@ class ModelExcavateViewModel {
291
322
  return;
292
323
  }
293
324
 
294
- that.intervalId = setInterval(function () {
295
- if (that.ii > 100) {
296
- if (that.entity0) {
297
- that._viewer.scene.primitives.remove(that.entity0);
298
-
299
- that.entity0 = undefined;
300
- }
301
-
302
- if (that.wall) {
303
- that._viewer.scene.primitives.remove(that.wall);
304
-
305
- that.wall = undefined;
306
- }
307
-
308
- clearInterval(that.intervalId);
309
- that.ii = 0;
310
- return;
311
- }
312
-
313
- var carto2 = window.Cesium.Cartesian3.lerp(that._options.positions[0], that._options.positions[3], that.ratio * that.ii, that.scratchCartesian2);
314
- var carto3 = window.Cesium.Cartesian3.lerp(that._options.positions[1], that._options.positions[2], that.ratio * that.ii, that.scratchCartesian3);
315
-
316
- if (that.entity0) {
317
- that._viewer.scene.primitives.remove(that.entity0);
318
-
319
- that.entity0 = undefined;
320
- }
321
-
322
- that.entity0 = that.createPolyline([carto2, carto3]);
323
- that.ii++;
324
- that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
325
- var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
326
- positions: [that._options.positions[0], that._options.positions[1], carto3, carto2],
327
- height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
328
- });
329
- that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon);
330
- }, 100);
325
+ that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
326
+ var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
327
+ positions: that._options.positions,
328
+ height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
329
+ });
330
+ that.g_flattenedPolygonTexture && that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon); // that.intervalId = setInterval(function () {
331
+ // if (that.ii > 100) {
332
+ // if (that.entity0) {
333
+ // that._viewer.scene.primitives.remove(that.entity0);
334
+ // that.entity0 = undefined;
335
+ // }
336
+ // if (that.wall) {
337
+ // that._viewer.scene.primitives.remove(that.wall);
338
+ // that.wall = undefined;
339
+ // }
340
+ // clearInterval(that.intervalId);
341
+ // that.ii = 0;
342
+ // return;
343
+ // }
344
+ // var carto2 = window.Cesium.Cartesian3.lerp(that._options.positions[0], that._options.positions[3], that.ratio * that.ii, that.scratchCartesian2);
345
+ // var carto3 = window.Cesium.Cartesian3.lerp(that._options.positions[1], that._options.positions[2], that.ratio * that.ii, that.scratchCartesian3);
346
+ // if (that.entity0) {
347
+ // that._viewer.scene.primitives.remove(that.entity0);
348
+ // that.entity0 = undefined;
349
+ // }
350
+ // that.entity0 = that.createPolyline([carto2, carto3]);
351
+ // that.ii++;
352
+ // that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
353
+ // var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
354
+ // positions: [that._options.positions[0], that._options.positions[1], carto3, carto2],
355
+ // height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
356
+ // });
357
+ // that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon);
358
+ // }, 100);
331
359
  });
332
360
  }
333
361
 
@@ -379,19 +407,22 @@ class ModelExcavateViewModel {
379
407
  start() {
380
408
  // 判断是否添加了模型
381
409
  var flag = false;
410
+ var that = this;
382
411
  var models = this._viewer.scene.primitives._primitives;
383
412
 
384
413
  for (let i = 0; i < models.length; i++) {
385
- if (models[i]._url) {
386
- models[i].enableFlattenning = true;
387
- models[i].flattenDiscard = true;
388
- this.g_flattenedPolygonTexture.attachTileset(models[i]);
414
+ if (models[i] instanceof Cesium.Cesium3DTileset && models[i]._url) {
415
+ // models[i].enableFlattenning = true;
416
+ // models[i].flattenDiscard = true;
417
+ // models[i].readyPromise.then(function (tileset) {
418
+ // that.g_flattenedPolygonTexture.attachTileset(tileset);
419
+ // });
389
420
  flag = true;
390
421
  }
391
422
  }
392
423
 
393
424
  if (flag) {
394
- this.clear();
425
+ this.remove();
395
426
 
396
427
  this._drawManager.startDraw("polygon", {
397
428
  clampToGround: true
@@ -407,13 +438,10 @@ class ModelExcavateViewModel {
407
438
 
408
439
  setHeight(val) {
409
440
  this._options.height = Number(val);
410
- } // 清除
411
-
412
-
413
- clear() {
414
- this._drawManager.stopDraw(); // 销毁地形开挖
415
-
441
+ }
416
442
 
443
+ remove() {
444
+ // 销毁地形开挖
417
445
  if (this.intervalId) {
418
446
  clearInterval(this.intervalId);
419
447
  this.ii = 0;
@@ -439,11 +467,20 @@ class ModelExcavateViewModel {
439
467
 
440
468
  this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
441
469
  this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
470
+ } // 清除
471
+
472
+
473
+ clear() {
474
+ this._drawManager.stopDraw();
475
+
476
+ this.remove();
442
477
  } //销毁
443
478
 
444
479
 
445
480
  destroy() {
446
481
  this.clear();
482
+ this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.detachAllTileset();
483
+ this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.destroy();
447
484
  }
448
485
 
449
486
  }
@@ -565,6 +602,7 @@ const __default__ = {
565
602
  viewModel = new ModelExcavateViewModel(scenceView, {
566
603
  height: formItem.excavationDepth
567
604
  });
605
+ window.scenceView = scenceView;
568
606
  }
569
607
  });
570
608
  });
@@ -1,66 +1 @@
1
- .kq3d-model-excavate {
2
- z-index: 999;
3
- border-radius: var(--kq-border-radius-base);
4
- padding: 16px;
5
- pointer-events: auto;
6
- cursor: default;
7
- background-color: var(--kq-bg-color);
8
- }
9
- .kq3d-model-excavate .kq3d-model-excavate-box {
10
- width: 350px;
11
- }
12
- .kq3d-model-excavate .kq-row {
13
- margin-bottom: 8px;
14
- }
15
- .kq3d-model-excavate .kq-form-item {
16
- margin-bottom: 8px;
17
- }
18
- .kq3d-model-excavate .kq3d-model-excavate-span {
19
- color: var(--kq-text-color-regular);
20
- line-height: 32px;
21
- font-size: var(--kq-font-size-base);
22
- }
23
- .kq3d-model-excavate .kq3d-model-excavate-tip {
24
- color: var(--kq-text-color-regular);
25
- font-size: var(--kq-font-size-base);
26
- }
27
- .kq3d-model-excavate .kq3d-model-excavate-tip p {
28
- margin: 0px;
29
- display: -webkit-box;
30
- display: -ms-flexbox;
31
- display: flex;
32
- -webkit-box-align: center;
33
- -ms-flex-align: center;
34
- align-items: center;
35
- -webkit-font-feature-settings: "tnum" on, "lnum" on;
36
- font-feature-settings: "tnum" on, "lnum" on;
37
- font-family: "Noto Sans SC";
38
- font-style: normal;
39
- font-weight: 400;
40
- }
41
- .kq3d-model-excavate .kq-slider {
42
- width: 100%;
43
- }
44
- .kq3d-model-excavate .kq-slider .kq-slider__button {
45
- width: 14px;
46
- height: 14px;
47
- }
48
- .kq3d-model-excavate .kq-input-number.is-controls-right {
49
- width: 65px;
50
- }
51
- .kq3d-model-excavate .kq-input-number.is-controls-right .kq-input-number__increase,
52
- .kq3d-model-excavate .kq-input-number.is-controls-right .kq-input-number__decrease {
53
- width: 20px;
54
- }
55
- .kq3d-model-excavate .kq-input-number.is-controls-right .kq-input__wrapper {
56
- padding-left: 0px;
57
- padding-right: 20px;
58
- }
59
- .kq3d-model-excavate .kq-col-8 .kq-input-number .kq-input__wrapper {
60
- padding-left: 0px;
61
- padding-right: 20px;
62
- }
63
- .kq3d-model-excavate .kq3d-model-excavate-footer {
64
- text-align: right;
65
- padding: 8px 0px 0px;
66
- }
1
+ .kq3d-model-excavate{z-index:999;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}.kq3d-model-excavate .kq3d-model-excavate-box{width:350px}.kq3d-model-excavate .kq-form-item,.kq3d-model-excavate .kq-row{margin-bottom:8px}.kq3d-model-excavate .kq3d-model-excavate-span{line-height:32px}.kq3d-model-excavate .kq3d-model-excavate-span,.kq3d-model-excavate .kq3d-model-excavate-tip{color:var(--kq-text-color-regular);font-size:var(--kq-font-size-base)}.kq3d-model-excavate .kq3d-model-excavate-tip p{margin:0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-font-feature-settings:"tnum" on,"lnum" on;font-feature-settings:"tnum" on,"lnum" on;font-family:Noto Sans SC;font-style:normal;font-weight:400}.kq3d-model-excavate .kq-slider{width:100%}.kq3d-model-excavate .kq-slider .kq-slider__button{width:14px;height:14px}.kq3d-model-excavate .kq-input-number.is-controls-right{width:65px}.kq3d-model-excavate .kq-input-number.is-controls-right .kq-input-number__decrease,.kq3d-model-excavate .kq-input-number.is-controls-right .kq-input-number__increase{width:20px}.kq3d-model-excavate .kq-col-8 .kq-input-number .kq-input__wrapper,.kq3d-model-excavate .kq-input-number.is-controls-right .kq-input__wrapper{padding-left:0;padding-right:20px}.kq3d-model-excavate .kq3d-model-excavate-footer{text-align:right;padding:8px 0 0}
@@ -43,13 +43,6 @@ module.exports = require("@kq_npm/client_icons_vue");
43
43
 
44
44
  /***/ }),
45
45
 
46
- /***/ 2118:
47
- /***/ (function(module) {
48
-
49
- module.exports = require("core-js/modules/es.array.push.js");
50
-
51
- /***/ }),
52
-
53
46
  /***/ 7080:
54
47
  /***/ (function(module) {
55
48
 
@@ -201,13 +194,10 @@ var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(
201
194
  var gis_utils_ = __webpack_require__(7135);
202
195
  // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
203
196
  var defineProperty = __webpack_require__(8270);
204
- // EXTERNAL MODULE: external "core-js/modules/es.array.push.js"
205
- var es_array_push_js_ = __webpack_require__(2118);
206
197
  // EXTERNAL MODULE: ./src/common/_ui/message/index.js + 1 modules
207
198
  var message = __webpack_require__(3694);
208
199
  ;// CONCATENATED MODULE: ./src/webgl/modelfilter/ModelFilterViewModel.js
209
200
 
210
-
211
201
  //模型滤镜逻辑类
212
202
 
213
203
  class ModelFilterViewModel {
@@ -1,66 +1 @@
1
- .kq3d-model-filter {
2
- z-index: 999;
3
- border-radius: var(--kq-border-radius-base);
4
- padding: 16px;
5
- pointer-events: auto;
6
- cursor: default;
7
- background-color: var(--kq-bg-color);
8
- }
9
- .kq3d-model-filter .kq3d-model-filter-box {
10
- width: 350px;
11
- }
12
- .kq3d-model-filter .kq-row {
13
- margin-bottom: 8px;
14
- }
15
- .kq3d-model-filter .kq-form-item {
16
- margin-bottom: 8px;
17
- }
18
- .kq3d-model-filter .kq3d-model-filter-span {
19
- color: var(--kq-text-color-regular);
20
- line-height: 32px;
21
- font-size: var(--kq-font-size-base);
22
- }
23
- .kq3d-model-filter .kq3d-model-filter-tip {
24
- color: var(--kq-text-color-regular);
25
- font-size: var(--kq-font-size-base);
26
- }
27
- .kq3d-model-filter .kq3d-model-filter-tip p {
28
- margin: 8px 0px 0px;
29
- display: -webkit-box;
30
- display: -ms-flexbox;
31
- display: flex;
32
- -webkit-box-align: center;
33
- -ms-flex-align: center;
34
- align-items: center;
35
- -webkit-font-feature-settings: "tnum" on, "lnum" on;
36
- font-feature-settings: "tnum" on, "lnum" on;
37
- font-family: "Noto Sans SC";
38
- font-style: normal;
39
- font-weight: 400;
40
- }
41
- .kq3d-model-filter .kq-slider {
42
- width: 100%;
43
- }
44
- .kq3d-model-filter .kq-slider .kq-slider__button {
45
- width: 14px;
46
- height: 14px;
47
- }
48
- .kq3d-model-filter .kq-input-number.is-controls-right {
49
- width: 65px;
50
- }
51
- .kq3d-model-filter .kq-input-number.is-controls-right .kq-input-number__increase,
52
- .kq3d-model-filter .kq-input-number.is-controls-right .kq-input-number__decrease {
53
- width: 20px;
54
- }
55
- .kq3d-model-filter .kq-input-number.is-controls-right .kq-input__wrapper {
56
- padding-left: 0px;
57
- padding-right: 20px;
58
- }
59
- .kq3d-model-filter .kq-col-8 .kq-input-number .kq-input__wrapper {
60
- padding-left: 0px;
61
- padding-right: 20px;
62
- }
63
- .kq3d-model-filter .kq3d-model-filter-footer {
64
- text-align: right;
65
- padding: 8px 0px 0px;
66
- }
1
+ .kq3d-model-filter{z-index:999;border-radius:var(--kq-border-radius-base);padding:16px;pointer-events:auto;cursor:default;background-color:var(--kq-bg-color)}.kq3d-model-filter .kq3d-model-filter-box{width:350px}.kq3d-model-filter .kq-form-item,.kq3d-model-filter .kq-row{margin-bottom:8px}.kq3d-model-filter .kq3d-model-filter-span{line-height:32px}.kq3d-model-filter .kq3d-model-filter-span,.kq3d-model-filter .kq3d-model-filter-tip{color:var(--kq-text-color-regular);font-size:var(--kq-font-size-base)}.kq3d-model-filter .kq3d-model-filter-tip p{margin:8px 0 0;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-font-feature-settings:"tnum" on,"lnum" on;font-feature-settings:"tnum" on,"lnum" on;font-family:Noto Sans SC;font-style:normal;font-weight:400}.kq3d-model-filter .kq-slider{width:100%}.kq3d-model-filter .kq-slider .kq-slider__button{width:14px;height:14px}.kq3d-model-filter .kq-input-number.is-controls-right{width:65px}.kq3d-model-filter .kq-input-number.is-controls-right .kq-input-number__decrease,.kq3d-model-filter .kq-input-number.is-controls-right .kq-input-number__increase{width:20px}.kq3d-model-filter .kq-col-8 .kq-input-number .kq-input__wrapper,.kq3d-model-filter .kq-input-number.is-controls-right .kq-input__wrapper{padding-left:0;padding-right:20px}.kq3d-model-filter .kq3d-model-filter-footer{text-align:right;padding:8px 0 0}