@kq_npm/client3d_webgl_vue 4.1.1-beta → 4.1.3-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.
@@ -16519,6 +16519,20 @@ class MeasureViewModel {
16519
16519
  this._viewer.scene.globe.depthTestAgainstTerrain = true;
16520
16520
 
16521
16521
  this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.Coordinate);
16522
+ } //地形坡度测量
16523
+
16524
+
16525
+ terrainSlopeMeasure() {
16526
+ this._viewer.scene.globe.depthTestAgainstTerrain = true;
16527
+
16528
+ this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.TerrainSlope);
16529
+ } //场景坡度测量
16530
+
16531
+
16532
+ sceneSlopeMeasure() {
16533
+ this._viewer.scene.globe.depthTestAgainstTerrain = true;
16534
+
16535
+ this._measureHandler.startMeasure(Cesium.Kq3dMeasureMode.SceneSlope);
16522
16536
  } //结束测量
16523
16537
 
16524
16538
 
@@ -16870,12 +16884,18 @@ const __default__ = {
16870
16884
  spaceDistance: res.distance ? res.distance.toFixed(2) : 0,
16871
16885
  horizontalDistance: res.hDistance ? res.hDistance.toFixed(2) : 0,
16872
16886
  verticalDistance: res.vDistance ? res.vDistance.toFixed(2) : 0,
16873
- angle: res.angle ? res.angle.toFixed(2) : 0
16887
+ angle: res.angle ? res.angle.toFixed(2).replace(/\.?0+$/, '') : 0
16874
16888
  };
16875
16889
  } else if (measureType.value === "area") {
16876
16890
  if (res && res.area) result.value = formatArea(res.area);
16877
- } else if (measureType.value === "azimuth") {
16878
- if (res && res.azimuth) result.value = formatAzimuth(res.azimuth);
16891
+ } else if (measureType.value === "azimuth" && res) {
16892
+ if (res.positions && res.positions.length > 0) {
16893
+ result.value = res.azimuth.toFixed(4) + " °";
16894
+ } else result.value = 0;
16895
+ } else if (measureType.value === "slope" && res) {
16896
+ if (res.positions && res.positions.length > 0) {
16897
+ result.value = res.slopeAngle.toFixed(2).replace(/\.?0+$/, '') + " °";
16898
+ } else result.value = 0;
16879
16899
  } else if (measureType.value === "coordinate") {
16880
16900
  if (res && res.coordinate) {
16881
16901
  result.value = {
@@ -16895,8 +16915,9 @@ const __default__ = {
16895
16915
  });
16896
16916
  viewModel.activeEvent.addEventListener(function (active) {
16897
16917
  if (!active) {
16898
- if (measureType.value === "height" && result.value.angle === 0) return;
16899
16918
  isActive.value = null;
16919
+ if (measureType.value === "height" && result.value.angle === 0) return;
16920
+ if (measureType.value === "azimuth" && result.value === 0) return;
16900
16921
  isResult.value = true;
16901
16922
  }
16902
16923
  });
@@ -16949,11 +16970,6 @@ const __default__ = {
16949
16970
 
16950
16971
  return area.toFixed(2) + " " + unit;
16951
16972
  }
16952
-
16953
- function formatAzimuth(azimuth) {
16954
- var unit = "°";
16955
- return azimuth.toFixed(4) + " " + unit;
16956
- }
16957
16973
  /**
16958
16974
  * @description 监听单位变化操作
16959
16975
  * @param {string} unit - 单位
@@ -17043,6 +17059,19 @@ const __default__ = {
17043
17059
  viewModel.coordinateMeasure();
17044
17060
  break;
17045
17061
 
17062
+ case "azimuth":
17063
+ viewModel.azimuthMeasure();
17064
+ break;
17065
+
17066
+ case "slope":
17067
+ if (mode.value === "ground") {
17068
+ viewModel.terrainSlopeMeasure();
17069
+ } else if (mode.value === "model") {
17070
+ viewModel.sceneSlopeMeasure();
17071
+ }
17072
+
17073
+ break;
17074
+
17046
17075
  default:
17047
17076
  break;
17048
17077
  }
@@ -17063,7 +17092,6 @@ const __default__ = {
17063
17092
  loadModeData,
17064
17093
  formatDistance,
17065
17094
  formatArea,
17066
- formatAzimuth,
17067
17095
  startMeasure,
17068
17096
  clearMeasure
17069
17097
  });
@@ -17168,7 +17196,25 @@ const __default__ = {
17168
17196
  }, 8
17169
17197
  /* PROPS */
17170
17198
  , ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) == 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
17171
- onClick: _cache[4] || (_cache[4] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('coordinate'), ["stop"])),
17199
+ onClick: _cache[4] || (_cache[4] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('azimuth'), ["stop"])),
17200
+ class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'azimuth' ? 'is-active' : null),
17201
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).azimuth
17202
+ }, {
17203
+ 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, {
17204
+ size: 24
17205
+ }, {
17206
+ 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_.IconAzimuthMeasure))]),
17207
+ _: 1
17208
+ /* STABLE */
17209
+
17210
+ })]),
17211
+ _: 1
17212
+ /* STABLE */
17213
+
17214
+ }, 8
17215
+ /* PROPS */
17216
+ , ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) == 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
17217
+ onClick: _cache[5] || (_cache[5] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('coordinate'), ["stop"])),
17172
17218
  class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'coordinate' ? 'is-active' : null),
17173
17219
  title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).coordinate
17174
17220
  }, {
@@ -17185,7 +17231,25 @@ const __default__ = {
17185
17231
 
17186
17232
  }, 8
17187
17233
  /* PROPS */
17188
- , ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) == 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
17234
+ , ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) == 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withDirectives)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
17235
+ onClick: _cache[6] || (_cache[6] = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)($event => startMeasure('slope'), ["stop"])),
17236
+ class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) == 'slope' ? 'is-active' : null),
17237
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).slope
17238
+ }, {
17239
+ 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, {
17240
+ size: 24
17241
+ }, {
17242
+ 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_.IconSlopeMeasure))]),
17243
+ _: 1
17244
+ /* STABLE */
17245
+
17246
+ })]),
17247
+ _: 1
17248
+ /* STABLE */
17249
+
17250
+ }, 8
17251
+ /* PROPS */
17252
+ , ["class", "title"]), [[external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.vShow, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(mode) != 'space']]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
17189
17253
  type: "danger",
17190
17254
  plain: "",
17191
17255
  onClick: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withModifiers)(clearMeasure, ["stop"]),
@@ -17205,7 +17269,7 @@ const __default__ = {
17205
17269
 
17206
17270
  }, 8
17207
17271
  /* PROPS */
17208
- , ["onClick", "title"])]), !!(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_6, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_divider), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'height' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("p", _hoisted_7, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).measureTips1), 1
17272
+ , ["onClick", "title"])]), !!(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(isActive) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("div", _hoisted_6, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_divider), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'height' || (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(measureType) === 'azimuth' ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("p", _hoisted_7, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).measureTips1), 1
17209
17273
  /* TEXT */
17210
17274
  )) : ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("p", _hoisted_8, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).measureTips), 1
17211
17275
  /* TEXT */
@@ -17213,7 +17277,7 @@ const __default__ = {
17213
17277
  /* TEXT */
17214
17278
  ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_select, {
17215
17279
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(distanceUnit),
17216
- "onUpdate:modelValue": _cache[5] || (_cache[5] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(distanceUnit) ? distanceUnit.value = $event : distanceUnit = $event),
17280
+ "onUpdate:modelValue": _cache[7] || (_cache[7] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.isRef)(distanceUnit) ? distanceUnit.value = $event : distanceUnit = $event),
17217
17281
  onChange: onChangeUnit
17218
17282
  }, {
17219
17283
  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)(distanceUnits), item => {
@@ -17327,6 +17391,7 @@ class ModelExcavateViewModel {
17327
17391
  //Box裁剪存储参数对象
17328
17392
  //绘制管理对象
17329
17393
  //绘制完成监听事件
17394
+ //Kq3dWallPrimitive
17330
17395
  constructor(scenceView, options) {
17331
17396
  (0,defineProperty/* default */.Z)(this, "_viewer", null);
17332
17397
 
@@ -17338,28 +17403,165 @@ class ModelExcavateViewModel {
17338
17403
 
17339
17404
  (0,defineProperty/* default */.Z)(this, "_removeEventListener", null);
17340
17405
 
17406
+ (0,defineProperty/* default */.Z)(this, "_wallPrimitive", void 0);
17407
+
17408
+ (0,defineProperty/* default */.Z)(this, "entity0", null);
17409
+
17410
+ (0,defineProperty/* default */.Z)(this, "wall", null);
17411
+
17412
+ (0,defineProperty/* default */.Z)(this, "ratio", 0.01);
17413
+
17414
+ (0,defineProperty/* default */.Z)(this, "ii", 1);
17415
+
17416
+ (0,defineProperty/* default */.Z)(this, "scratchCartesian2", new window.Cesium.Cartesian3());
17417
+
17418
+ (0,defineProperty/* default */.Z)(this, "scratchCartesian3", new window.Cesium.Cartesian3());
17419
+
17420
+ (0,defineProperty/* default */.Z)(this, "scratchCartesian4", new window.Cesium.Cartesian3());
17421
+
17422
+ (0,defineProperty/* default */.Z)(this, "scratchCartesian5", new window.Cesium.Cartesian3());
17423
+
17424
+ (0,defineProperty/* default */.Z)(this, "scratchCartesian6", new window.Cesium.Cartesian3());
17425
+
17426
+ (0,defineProperty/* default */.Z)(this, "scratchCartesian7", new window.Cesium.Cartesian3());
17427
+
17428
+ (0,defineProperty/* default */.Z)(this, "intervalId", null);
17429
+
17430
+ (0,defineProperty/* default */.Z)(this, "g_flattenedPolygonTexture", null);
17431
+
17341
17432
  this._viewer = scenceView._viewer;
17342
17433
  this._options = options;
17343
17434
  this._drawManager = scenceView._drawManager;
17344
17435
  this._viewer.scene.globe.depthTestAgainstTerrain = true; //开启深度检测
17345
- // var kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
17346
- // var g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture();
17347
17436
 
17437
+ let kq3dFlattenning = new window.Cesium.Kq3dFlattenning(this._viewer, {});
17438
+ this.g_flattenedPolygonTexture = kq3dFlattenning.createFlattenedPolygonTexture();
17348
17439
  var that = this;
17349
17440
  this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
17350
17441
  if (shape) {
17351
17442
  that._options.positions = shape._controlPoints;
17352
- this._Kq3dTerrainExcavation = this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
17353
- this._Kq3dTerrainExcavation = new window.Cesium.Kq3dTerrainExcavation({
17354
- viewer: this.viewer,
17355
- height: this._options.height,
17356
- positions: that._options.positions,
17357
- hasWall: false
17358
- });
17443
+ that.createDynamicExcavationEffect();
17359
17444
 
17360
17445
  that._drawManager.clear();
17361
17446
  }
17362
17447
  });
17448
+ } // 创建开挖模型
17449
+
17450
+
17451
+ createDynamicExcavationEffect() {
17452
+ this._Kq3dTerrainExcavation && this._Kq3dTerrainExcavation.destroy();
17453
+ this._Kq3dTerrainExcavation = new window.Cesium.Kq3dTerrainExcavation({
17454
+ viewer: this._viewer,
17455
+ height: this._options.height,
17456
+ positions: this._options.positions,
17457
+ hasWall: false
17458
+ });
17459
+
17460
+ if (this._wallPrimitive) {
17461
+ this._viewer.scene.primitives.remove(this._wallPrimitive);
17462
+
17463
+ this._wallPrimitive = undefined;
17464
+ }
17465
+
17466
+ this._wallPrimitive = new window.Cesium.Kq3dWallPrimitive({
17467
+ viewer: this._viewer,
17468
+ height: this._options.height,
17469
+ positions: this._options.positions,
17470
+ elevationOnTerrain: false
17471
+ });
17472
+
17473
+ this._viewer.scene.primitives.add(this._wallPrimitive);
17474
+
17475
+ let that = this;
17476
+
17477
+ this._wallPrimitive._readyEvent.addEventListener(function (eventType) {
17478
+ if (eventType != "Ready") {
17479
+ return;
17480
+ }
17481
+
17482
+ that.intervalId = setInterval(function () {
17483
+ if (that.ii > 100) {
17484
+ if (that.entity0) {
17485
+ that._viewer.scene.primitives.remove(that.entity0);
17486
+
17487
+ that.entity0 = undefined;
17488
+ }
17489
+
17490
+ if (that.wall) {
17491
+ that._viewer.scene.primitives.remove(that.wall);
17492
+
17493
+ that.wall = undefined;
17494
+ }
17495
+
17496
+ clearInterval(that.intervalId);
17497
+ that.ii = 0;
17498
+ return;
17499
+ }
17500
+
17501
+ var carto2 = window.Cesium.Cartesian3.lerp(that._options.positions[0], that._options.positions[3], that.ratio * that.ii, that.scratchCartesian2);
17502
+ var carto3 = window.Cesium.Cartesian3.lerp(that._options.positions[1], that._options.positions[2], that.ratio * that.ii, that.scratchCartesian3);
17503
+
17504
+ if (that.entity0) {
17505
+ that._viewer.scene.primitives.remove(that.entity0);
17506
+
17507
+ that.entity0 = undefined;
17508
+ }
17509
+
17510
+ that.entity0 = that.createPolyline([carto2, carto3]);
17511
+ that.ii++;
17512
+ that.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
17513
+ var myPolygon = window.Cesium.PolygonGeometry.fromPositions({
17514
+ positions: [that._options.positions[0], that._options.positions[1], carto3, carto2],
17515
+ height: window.Cesium.Cartographic.fromCartesian(that._options.positions[0]).height
17516
+ });
17517
+ that.g_flattenedPolygonTexture.addFlattenedPolygon(myPolygon);
17518
+ }, 100);
17519
+ });
17520
+ }
17521
+
17522
+ createPolyline(positions) {
17523
+ var material = window.Cesium.Material.fromType("Kq3dLightningMaterial", {});
17524
+
17525
+ if (this.wall) {
17526
+ this._viewer.scene.primitives.remove(this.wall);
17527
+
17528
+ this.wall = undefined;
17529
+ }
17530
+
17531
+ var geometryInstances = [];
17532
+ geometryInstances.push(new window.Cesium.GeometryInstance({
17533
+ geometry: new window.Cesium.WallGeometry({
17534
+ positions: positions,
17535
+ maximumHeights: [10, 10],
17536
+ minimumHeights: [-10, -10],
17537
+ vertexFormat: window.Cesium.VertexFormat.POSITION_NORMAL_AND_ST
17538
+ })
17539
+ }));
17540
+ this.wall = new window.Cesium.Primitive({
17541
+ geometryInstances: geometryInstances,
17542
+ appearance: new window.Cesium.MaterialAppearance({
17543
+ material: material
17544
+ })
17545
+ });
17546
+
17547
+ this._viewer.scene.primitives.add(this.wall);
17548
+
17549
+ var geo = new window.Cesium.GroundPolylineGeometry({
17550
+ positions: positions,
17551
+ width: 40.0,
17552
+ vertexFormat: window.Cesium.PolylineMaterialAppearance.VERTEX_FORMAT
17553
+ });
17554
+ var primitive = new window.Cesium.GroundPolylinePrimitive({
17555
+ asynchronous: false,
17556
+ classificationType: window.Cesium.ClassificationType.BOTH,
17557
+ geometryInstances: new window.Cesium.GeometryInstance({
17558
+ geometry: geo
17559
+ }),
17560
+ appearance: new window.Cesium.PolylineMaterialAppearance({
17561
+ material: material
17562
+ })
17563
+ });
17564
+ return this._viewer.scene.primitives.add(primitive);
17363
17565
  }
17364
17566
 
17365
17567
  start() {
@@ -17369,6 +17571,9 @@ class ModelExcavateViewModel {
17369
17571
 
17370
17572
  for (let i = 0; i < models.length; i++) {
17371
17573
  if (models[i]._url) {
17574
+ models[i].enableFlattenning = true;
17575
+ models[i].flattenDiscard = true;
17576
+ this.g_flattenedPolygonTexture.attachTileset(models[i]);
17372
17577
  flag = true;
17373
17578
  }
17374
17579
  }
@@ -17381,16 +17586,41 @@ class ModelExcavateViewModel {
17381
17586
  });
17382
17587
  } else {
17383
17588
  (0,message/* default */.Z)({
17384
- message: "请添加模型后拾取!",
17589
+ message: "请添加模型后绘制!",
17385
17590
  type: "warning"
17386
17591
  });
17387
17592
  }
17388
- } //清除
17593
+ } // qi切换高度重新计算
17594
+
17595
+
17596
+ setHeight(val) {
17597
+ this._options.height = Number(val);
17598
+ } // 清除
17389
17599
 
17390
17600
 
17391
17601
  clear() {
17392
17602
  this._drawManager.stopDraw(); // 销毁地形开挖
17393
17603
 
17604
+
17605
+ if (this.intervalId) {
17606
+ clearInterval(this.intervalId);
17607
+ this.ii = 0;
17608
+
17609
+ if (this.entity0) {
17610
+ this._viewer.scene.primitives.remove(this.entity0);
17611
+
17612
+ this.entity0 = undefined;
17613
+ }
17614
+
17615
+ if (this.wall) {
17616
+ this._viewer.scene.primitives.remove(this.wall);
17617
+
17618
+ this.wall = undefined;
17619
+ }
17620
+ }
17621
+
17622
+ this.Kq3dTerrainExcavation && this.Kq3dTerrainExcavation.destroy();
17623
+ this.g_flattenedPolygonTexture && this.g_flattenedPolygonTexture.removeAllFlattenedPolygon();
17394
17624
  } //销毁
17395
17625
 
17396
17626
 
@@ -17515,7 +17745,7 @@ const __default__ = {
17515
17745
  gis_utils_.utils.getWebMap(null, scenceView => {
17516
17746
  if (scenceView) {
17517
17747
  viewModel = new ModelExcavateViewModel(scenceView, {
17518
- excavationDepth: formItem.excavationDepth
17748
+ height: formItem.excavationDepth
17519
17749
  });
17520
17750
  }
17521
17751
  });
@@ -17596,7 +17826,7 @@ const __default__ = {
17596
17826
  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, {
17597
17827
  modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth,
17598
17828
  "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).excavationDepth = $event),
17599
- step: 100,
17829
+ step: 1,
17600
17830
  min: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).minExcavationDepth,
17601
17831
  max: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).maxExcavationDepth,
17602
17832
  onChange: _cache[1] || (_cache[1] = $event => changeHeight()),
@@ -17636,9 +17866,9 @@ const __default__ = {
17636
17866
  }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
17637
17867
  class: "kq3d-model-excavate-tip"
17638
17868
  }, {
17639
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).skylineTips), 1
17869
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("p", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).skylineTips + '(' + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).reverseDrawPolygon + ')'), 1
17640
17870
  /* TEXT */
17641
- ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)(" <p v-if=\"formItem.terrainStyle === 2\">{{ \"(\" + language.reverseDrawPolygon + \")\" }}</p> ")]),
17871
+ )]),
17642
17872
  _: 1
17643
17873
  /* STABLE */
17644
17874
 
@@ -24158,7 +24388,7 @@ class SceneSetViewModel {
24158
24388
  break;
24159
24389
 
24160
24390
  case "fps":
24161
- open = this._viewer.scene.debugShowFramesPerSecound;
24391
+ open = this._viewer.scene.debugShowFramesPerSecond;
24162
24392
  break;
24163
24393
 
24164
24394
  case "deep":
package/sceneset/index.js CHANGED
@@ -620,7 +620,7 @@ class SceneSetViewModel {
620
620
  break;
621
621
 
622
622
  case "fps":
623
- open = this._viewer.scene.debugShowFramesPerSecound;
623
+ open = this._viewer.scene.debugShowFramesPerSecond;
624
624
  break;
625
625
 
626
626
  case "deep":