@kq_npm/client3d_webgl_vue 4.5.38 → 4.5.40

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 (56) hide show
  1. package/adddata/index.js +285 -193
  2. package/adddata/style/adddata.css +1 -1
  3. package/aspectanalysis/index.js +45 -14
  4. package/boxclip/index.js +52 -19
  5. package/clientPrint/index.js +3539 -1291
  6. package/clientPrint/style/clientPrint.css +1 -1
  7. package/comparemap/index.js +699 -14
  8. package/excavatefillanalysis/index.js +48 -18
  9. package/flight/index.js +45 -4
  10. package/flight/style/flight.css +1 -1
  11. package/floodanalysis/index.js +39 -5
  12. package/geologicalbodyanalysis/index.js +37 -3
  13. package/gpuspatialquery/index.js +50 -24
  14. package/heatmap3d/index.js +37 -3
  15. package/heatmap3d/style/heatmap3d.css +1 -1
  16. package/index.js +3357 -1160
  17. package/isolineanalysis/index.js +56 -28
  18. package/light/index.js +19 -22
  19. package/limitheightanalysis/index.js +46 -16
  20. package/measure/index.js +56 -14
  21. package/modelFlat/index.js +37 -3
  22. package/modelexcavate/index.js +37 -3
  23. package/modelfilter/index.js +37 -3
  24. package/modelprofileanalysis/index.js +37 -3
  25. package/modelselect/index.js +37 -3
  26. package/package.json +1 -1
  27. package/particleeffect/index.js +26 -33
  28. package/planeclip/index.js +47 -18
  29. package/radarscananalysis/index.js +863 -0
  30. package/radarscananalysis/style/index.js +3 -0
  31. package/radarscananalysis/style/radarscananalysis.css +1 -0
  32. package/scaneffect/index.js +48 -20
  33. package/scaneffect/style/scaneffect.css +1 -1
  34. package/sceneadvancedtoimage/index.js +46 -16
  35. package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -1
  36. package/sceneapp/index.js +3538 -1290
  37. package/scenetohdimage/style/scenetohdimage.css +1 -1
  38. package/sceneview/index.js +3533 -1285
  39. package/sceneview/style/sceneview.css +1 -1
  40. package/shadowanalysis/index.js +49 -19
  41. package/sightlineanalysis/index.js +41 -31
  42. package/sightlineanalysis/style/divpoint.css +1 -1
  43. package/skylineanalysis/index.js +37 -3
  44. package/slopeanalysis/index.js +85 -54
  45. package/slopeaspectanalysis/index.js +520 -135
  46. package/style.css +1 -1
  47. package/terrainoperation/index.js +61 -31
  48. package/terrainprofileanalysis/index.js +45 -14
  49. package/typhoontrac/index.js +71 -11
  50. package/typhoontrac/style/typhoontrac.css +1 -1
  51. package/videofusion/index.js +37 -3
  52. package/videoproject/index.js +37 -3
  53. package/weathereffect/index.js +30 -34
  54. package/windyslicing/index.js +670 -306
  55. package/windyslicing/style/windyslicing.css +1 -1
  56. package/wireframesketch/index.js +37 -3
@@ -150,10 +150,10 @@ var client_icons_vue_ = __webpack_require__(348);
150
150
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
151
151
  var const_image_ = __webpack_require__(6277);
152
152
  ;// CONCATENATED MODULE: ./src/webgl/weathereffect/WeatherEffectViewModel.js
153
- /*
154
- * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
155
- * All rights reserved.
156
- */
153
+ /*
154
+ * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
155
+ * All rights reserved.
156
+ */
157
157
 
158
158
  let _gravityScratch = null;
159
159
  let _gravityStart = 0.0;
@@ -163,7 +163,6 @@ class WeatherEffectViewModel {
163
163
  _scene = null; //三维球场景视图对象
164
164
  _particleSystem = null; //粒子系统三维对象
165
165
  _drawManager = null; //绘制管理对象
166
- _removeEventListener = null; //绘制完成监听事件
167
166
  _options = null; //天气特效存储参数对象
168
167
  _rainImage = const_image_.RAIN_URL; //雨图片url地址
169
168
  _snowImage = const_image_.SNOW_URL; //雪图片url地址
@@ -175,10 +174,31 @@ class WeatherEffectViewModel {
175
174
  this._scene = scenceView._viewer.scene;
176
175
  this._drawManager = scenceView._drawManager;
177
176
  _gravityScratch = new Cesium.Cartesian3();
177
+ }
178
+
179
+ applyGravity(particle, dt) {
180
+ _gravityScratch = Cesium.Cartesian3.normalize(particle.position, _gravityScratch);
181
+ Cesium.Cartesian3.multiplyByScalar(
182
+ _gravityScratch,
183
+ Cesium.Math.randomBetween(_gravityStart, _gravityEnd),
184
+ _gravityScratch
185
+ );
186
+ particle.velocity = Cesium.Cartesian3.add(particle.velocity, _gravityScratch, particle.velocity);
187
+ }
188
+
189
+ //添加天气特效
190
+ addWeatherEffect(options) {
178
191
  var that = this;
179
- that._removeEventListener = that._drawManager.drawFinishedEvent.addEventListener(shape => {
192
+ let mode = options.mode;
193
+ if (mode !== "rain" && mode !== "snow") {
194
+ console.log("This mode is not supported.");
195
+ return;
196
+ }
197
+ if (options.gravity) this.setGravity(options.gravity);
198
+ this._options = options;
199
+ this._drawManager.startDraw("marker", { image: null }, (feature, { shape }) => {
200
+ if (!shape.groupName || shape.groupName !== "WeatherEffectDraw") return;
180
201
  if (shape && shape.type === "marker") {
181
- that._drawManager.clear();
182
202
  let position = shape.position;
183
203
  if (position) {
184
204
  let matrix = new Cesium.Matrix4.fromTranslation(position);
@@ -212,35 +232,14 @@ class WeatherEffectViewModel {
212
232
  }
213
233
  }
214
234
  }
215
- });
216
- }
217
-
218
- applyGravity(particle, dt) {
219
- _gravityScratch = Cesium.Cartesian3.normalize(particle.position, _gravityScratch);
220
- Cesium.Cartesian3.multiplyByScalar(
221
- _gravityScratch,
222
- Cesium.Math.randomBetween(_gravityStart, _gravityEnd),
223
- _gravityScratch
224
- );
225
- particle.velocity = Cesium.Cartesian3.add(particle.velocity, _gravityScratch, particle.velocity);
226
- }
227
-
228
- //添加天气特效
229
- addWeatherEffect(options) {
230
- let mode = options.mode;
231
- if (mode !== "rain" && mode !== "snow") {
232
- console.log("This mode is not supported.");
233
- return;
234
- }
235
- if (options.gravity) this.setGravity(options.gravity);
236
- this._options = options;
237
- this._drawManager.startDraw("marker", { image: null });
235
+ that._drawManager && that._drawManager.clearDrawGroup("WeatherEffectDraw");
236
+ }, "WeatherEffectDraw");
238
237
  }
239
238
 
240
239
  //清除天气特效
241
240
  clear() {
242
241
  this._drawManager.stopDraw();
243
- this._drawManager.clear();
242
+ this._drawManager && this._drawManager.clearDrawGroup("WeatherEffectDraw");
244
243
  this._particleSystem && this._scene.primitives.remove(this._particleSystem);
245
244
  this._particleSystem = null;
246
245
  }
@@ -248,9 +247,6 @@ class WeatherEffectViewModel {
248
247
  //销毁
249
248
  destroy() {
250
249
  this.clear();
251
- //移除监听事件
252
- this._removeEventListener && this._removeEventListener();
253
- this._removeEventListener = null;
254
250
  }
255
251
 
256
252
  //设置范围半径