@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.
- 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
|
@@ -298,29 +298,31 @@ class TerrainOperationViewModel {
|
|
|
298
298
|
if (this._globaOptions.viewer.terrainProvider.availability) {
|
|
299
299
|
if (this._globaOptions.viewer.terrainProvider && !this._globaOptions.viewer.terrainProvider._heightmapStructure) {
|
|
300
300
|
this.clear();
|
|
301
|
-
this._drawManager
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
306
|
-
that.
|
|
307
|
-
|
|
308
|
-
that.
|
|
309
|
-
} else {
|
|
310
|
-
that.createTerrainExcavation(() => {
|
|
301
|
+
if(this._drawManager) {
|
|
302
|
+
this._drawManager.startDraw("polygon", { clampToGround: true }, (feature, { shape }) => {
|
|
303
|
+
if (!shape.groupName || shape.groupName !== "TerrainOperationDraw") return;
|
|
304
|
+
if (shape) {
|
|
305
|
+
that._globaOptions.positions = shape._controlPoints;
|
|
306
|
+
if (that._terrainStyle === 1) {
|
|
307
|
+
that._positions.push(shape._controlPoints);
|
|
308
|
+
if (that._terrainexcavationext) {
|
|
311
309
|
that.setTerrainExcavationAddPolygon();
|
|
312
|
-
}
|
|
313
|
-
|
|
314
|
-
|
|
315
|
-
|
|
316
|
-
|
|
317
|
-
} else {
|
|
318
|
-
that.
|
|
310
|
+
} else {
|
|
311
|
+
that.createTerrainExcavation(() => {
|
|
312
|
+
that.setTerrainExcavationAddPolygon();
|
|
313
|
+
});
|
|
314
|
+
}
|
|
315
|
+
} else if (that._terrainStyle === 2) {
|
|
316
|
+
if (that._terrainmodification) {
|
|
317
|
+
that.setTerrainModification();
|
|
318
|
+
} else {
|
|
319
|
+
that.createTerrainModification();
|
|
320
|
+
}
|
|
319
321
|
}
|
|
320
322
|
}
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
}
|
|
323
|
+
that._drawManager.clearDrawGroup("TerrainOperationDraw");
|
|
324
|
+
}, "TerrainOperationDraw");
|
|
325
|
+
}
|
|
324
326
|
} else {
|
|
325
327
|
(0,message/* default */.A)({
|
|
326
328
|
message: this._language["stkTerrainAnalysisTips"],
|
|
@@ -363,7 +365,8 @@ class TerrainOperationViewModel {
|
|
|
363
365
|
}
|
|
364
366
|
//清除全部结果
|
|
365
367
|
clear() {
|
|
366
|
-
this._drawManager
|
|
368
|
+
this._drawManager?.clearDrawGroup("TerrainOperationDraw");
|
|
369
|
+
this._drawManager?.stopDraw();
|
|
367
370
|
// 销毁地形开挖
|
|
368
371
|
if (this._terrainexcavationext) {
|
|
369
372
|
this._terrainexcavationext.destroy();
|
|
@@ -334,12 +334,12 @@ class TerrainProfileAnalysisViewModel {
|
|
|
334
334
|
if (this._viewer.terrainProvider.availability) {
|
|
335
335
|
if (this._viewer.terrainProvider && !this._viewer.terrainProvider._heightmapStructure) {
|
|
336
336
|
this.clear();
|
|
337
|
-
this._drawManager
|
|
337
|
+
this._drawManager?.startDraw("polyline", { clampToGround: true }, (feature, { shape }) => {
|
|
338
338
|
if (!shape.groupName || shape.groupName !== "TerrainProfileAnalysisDraw") return;
|
|
339
339
|
if (shape) {
|
|
340
340
|
that._terrainSlopeAnalyse.positions = shape._controlPoints;
|
|
341
341
|
}
|
|
342
|
-
that._drawManager
|
|
342
|
+
that._drawManager.clearDrawGroup("TerrainProfileAnalysisDraw");
|
|
343
343
|
}, "TerrainProfileAnalysisDraw");
|
|
344
344
|
} else {
|
|
345
345
|
(0,message/* default */.A)({
|
|
@@ -356,6 +356,7 @@ class TerrainProfileAnalysisViewModel {
|
|
|
356
356
|
}
|
|
357
357
|
//清除
|
|
358
358
|
clear() {
|
|
359
|
+
this._drawManager?.clearDrawGroup("TerrainProfileAnalysisDraw");
|
|
359
360
|
this._drawManager && this._drawManager.stopDraw();
|
|
360
361
|
this._terrainSlopeAnalyse && this._terrainSlopeAnalyse.clear();
|
|
361
362
|
for (let index = 0; index < this.divPointArr.length; index++) {
|
package/weathereffect/index.js
CHANGED
|
@@ -164,7 +164,7 @@ class WeatherEffectViewModel {
|
|
|
164
164
|
_options = null; //天气特效存储参数对象
|
|
165
165
|
_rainImage = const_image_.RAIN_URL; //雨图片url地址
|
|
166
166
|
_snowImage = const_image_.SNOW_URL; //雪图片url地址
|
|
167
|
-
|
|
167
|
+
_language = null;
|
|
168
168
|
constructor(scenceView) {
|
|
169
169
|
scenceView._viewer.clock.shouldAnimate = true;
|
|
170
170
|
scenceView._viewer.clock.multiplier = 0.6;
|
|
@@ -172,6 +172,7 @@ class WeatherEffectViewModel {
|
|
|
172
172
|
this._scene = scenceView._viewer.scene;
|
|
173
173
|
this._drawManager = scenceView._drawManager;
|
|
174
174
|
_gravityScratch = new Cesium.Cartesian3();
|
|
175
|
+
this._language = scenceView._language;
|
|
175
176
|
}
|
|
176
177
|
|
|
177
178
|
applyGravity(particle, dt) {
|
|
@@ -194,7 +195,7 @@ class WeatherEffectViewModel {
|
|
|
194
195
|
}
|
|
195
196
|
if (options.gravity) this.setGravity(options.gravity);
|
|
196
197
|
this._options = options;
|
|
197
|
-
this._drawManager
|
|
198
|
+
this._drawManager?.startDraw("marker", { image: null }, (feature, { shape }) => {
|
|
198
199
|
if (!shape.groupName || shape.groupName !== "WeatherEffectDraw") return;
|
|
199
200
|
if (shape && shape.type === "marker") {
|
|
200
201
|
let position = shape.position;
|
|
@@ -230,14 +231,14 @@ class WeatherEffectViewModel {
|
|
|
230
231
|
}
|
|
231
232
|
}
|
|
232
233
|
}
|
|
233
|
-
that._drawManager
|
|
234
|
+
that._drawManager?.clearDrawGroup("WeatherEffectDraw");
|
|
234
235
|
}, "WeatherEffectDraw");
|
|
235
236
|
}
|
|
236
237
|
|
|
237
238
|
//清除天气特效
|
|
238
239
|
clear() {
|
|
239
|
-
this._drawManager
|
|
240
|
-
this._drawManager
|
|
240
|
+
this._drawManager?.stopDraw();
|
|
241
|
+
this._drawManager?.clearDrawGroup("WeatherEffectDraw");
|
|
241
242
|
this._particleSystem && this._scene.primitives.remove(this._particleSystem);
|
|
242
243
|
this._particleSystem = null;
|
|
243
244
|
}
|