@kq_npm/client3d_webgl_vue 4.5.43 → 4.5.45
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.
- package/aspectanalysis/index.js +2 -1
- package/boxclip/index.js +2 -0
- package/clientPrint/index.js +22379 -22095
- package/clientPrint/style/clientPrint.css +1 -1
- package/compass/index.js +7694 -15
- package/excavatefillanalysis/index.js +21 -18
- package/fixedzoomin/index.js +7694 -15
- package/fixedzoomout/index.js +144 -98
- package/floodanalysis/index.js +10 -0
- package/geologicalbodyanalysis/index.js +10 -0
- package/gpuspatialquery/index.js +15 -12
- package/index.js +801 -540
- package/isolineanalysis/index.js +29 -23
- package/light/index.js +7 -1
- package/limitheightanalysis/index.js +2 -1
- package/measure/index.js +51 -5
- package/modelFlat/index.js +10 -2
- package/modelexcavate/index.js +10 -0
- package/modelprofileanalysis/index.js +12 -16
- package/package.json +1 -1
- package/particleeffect/index.js +2 -1
- package/planeclip/index.js +2 -1
- package/radarscananalysis/index.js +4 -1
- package/resetview/index.js +7699 -10
- package/scaneffect/index.js +5 -2
- package/sceneadvancedtoimage/index.js +4 -3
- package/sceneapp/index.js +22365 -22081
- package/sceneview/index.js +22365 -22081
- package/shadowanalysis/index.js +1 -0
- package/sightlineanalysis/index.js +9 -6
- package/slopeanalysis/index.js +3 -1
- package/slopeaspectanalysis/index.js +14 -7
- package/style.css +1 -1
- package/terrainoperation/index.js +24 -21
- package/terrainprofileanalysis/index.js +3 -2
- package/weathereffect/index.js +6 -5
- package/webgl.es.js +169635 -167976
- package/windyslicing/index.js +18 -5
|
@@ -251,25 +251,27 @@ class ExcavateFillAnalysisViewModel {
|
|
|
251
251
|
// 判断是否添加了地形
|
|
252
252
|
if (this._options.viewer.terrainProvider.availability) {
|
|
253
253
|
if (this._options.viewer.terrainProvider && !this._options.viewer.terrainProvider._heightmapStructure) {
|
|
254
|
-
this._drawManager
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
if
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
(
|
|
262
|
-
message
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
254
|
+
if(this._drawManager) {
|
|
255
|
+
this._drawManager.startDraw("polygon", { clampToGround: true }, (feature, { shape }) => {
|
|
256
|
+
if (!shape.groupName || shape.groupName !== "ExcavateFillAnalysisDraw") return;
|
|
257
|
+
that._drawManager.clearDrawGroup("ExcavateFillAnalysisDraw");
|
|
258
|
+
if (shape) {
|
|
259
|
+
if(typeof that._restrictedArea === 'number' && !isNaN(that._restrictedArea) && isFinite(that._restrictedArea)){
|
|
260
|
+
const area = that._scenceView.computePolygonArea(shape._controlPoints);
|
|
261
|
+
if((area / 1000000) > Number(that._restrictedArea)){
|
|
262
|
+
(0,message/* default */.A)({
|
|
263
|
+
message: this._language["restrictedAreaTips"],
|
|
264
|
+
type: "warning"
|
|
265
|
+
});
|
|
266
|
+
return;
|
|
267
|
+
}
|
|
266
268
|
}
|
|
269
|
+
that._options.positions = that.coordinateTransform(shape._controlPoints);
|
|
270
|
+
that._excavateFillAnalysis = new Cesium.Kq3dCutFill(that._options);
|
|
271
|
+
that.callback && that.callback();
|
|
267
272
|
}
|
|
268
|
-
|
|
269
|
-
|
|
270
|
-
that.callback && that.callback();
|
|
271
|
-
}
|
|
272
|
-
}, "ExcavateFillAnalysisDraw");
|
|
273
|
+
}, "ExcavateFillAnalysisDraw");
|
|
274
|
+
}
|
|
273
275
|
} else {
|
|
274
276
|
(0,message/* default */.A)({
|
|
275
277
|
message: this._language["stkTerrainAnalysisTips"],
|
|
@@ -286,7 +288,8 @@ class ExcavateFillAnalysisViewModel {
|
|
|
286
288
|
|
|
287
289
|
//清除全部结果
|
|
288
290
|
clear() {
|
|
289
|
-
this._drawManager
|
|
291
|
+
this._drawManager?.clearDrawGroup("ExcavateFillAnalysisDraw");
|
|
292
|
+
this._drawManager?.stopDraw();
|
|
290
293
|
this._excavateFillAnalysis && this._excavateFillAnalysis.removeAll();
|
|
291
294
|
}
|
|
292
295
|
|