@kq_npm/client3d_webgl_vue 4.5.43 → 4.5.44

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.
@@ -247,7 +247,7 @@ class AspectAnalysisViewModel {
247
247
  if (this._globaOptions.viewer.terrainProvider && !this._globaOptions.viewer.terrainProvider._heightmapStructure) {
248
248
  if (this._globaOptions._drawManager) {
249
249
  this.clear();
250
- this._globaOptions._drawManager.startDraw("polygon", { clampToGround: true }, (feature, { shape }) => {
250
+ this._globaOptions?._drawManager?.startDraw?.("polygon", { clampToGround: true }, (feature, { shape }) => {
251
251
  if (!shape.groupName || shape.groupName !== "AspectAnalysisDraw") return;
252
252
  that._globaOptions._drawManager.clearDrawGroup("AspectAnalysisDraw");
253
253
  if (shape) {
@@ -292,6 +292,7 @@ class AspectAnalysisViewModel {
292
292
  }
293
293
  // 清除全部结果
294
294
  clear() {
295
+ this._globaOptions?._drawManager?.clearDrawGroup("AspectAnalysisDraw");
295
296
  this._globaOptions._drawManager && this._globaOptions._drawManager.stopDraw();
296
297
  this._aspectAnalysis && this._aspectAnalysis.clear();
297
298
  }
package/boxclip/index.js CHANGED
@@ -320,6 +320,8 @@ class BoxClipViewModel {
320
320
  clear() {
321
321
  if (this._boxclipAnalysis) this._boxclipAnalysis.boxEnable = false;
322
322
  this._boxclipAnalysis && this._boxclipAnalysis.remove();
323
+ this._drawManager?.stopDraw();
324
+ this._drawManager?.clearDrawGroup("BoxClipDraw");
323
325
  // this._boxclipAnalysis = null;
324
326
  }
325
327