@kq_npm/client3d_webgl_vue 0.5.9-beta → 0.6.0-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.
package/boxclip/index.js CHANGED
@@ -78,12 +78,18 @@ function _defineProperty(obj, key, value) {
78
78
 
79
79
  //Box裁剪逻辑类
80
80
  class BoxClipViewModel {
81
+ //三维viewer对象
82
+ //Box裁剪存储参数对象
83
+ //Box裁剪三维对象
84
+ //绘制管理对象
85
+ //绘制完成监听事件
81
86
  constructor(scenceView, options) {
82
87
  _defineProperty(this, "_viewer", null);
83
88
 
84
89
  _defineProperty(this, "_options", {});
85
90
 
86
91
  _defineProperty(this, "_defaultOptions", {
92
+ //默认参数对象
87
93
  clipTyp: 1,
88
94
  boxColor: Cesium.Color.fromCssColorString("#316882").withAlpha(0.4),
89
95
  clipEdgeWidth: 6.0,
@@ -110,8 +116,8 @@ class BoxClipViewModel {
110
116
  _defineProperty(this, "_removeEventListener", null);
111
117
 
112
118
  this._options = Object.assign({}, options, this._defaultOptions);
113
- this._viewer = scenceView._viewer;
114
- this._viewer.enabledFXAA = true;
119
+ this._viewer = scenceView._viewer; // this._viewer.enabledFXAA = true;
120
+
115
121
  this._options.viewer = this._viewer;
116
122
  this._drawManager = scenceView._drawManager;
117
123
  let that = this;
@@ -192,13 +198,8 @@ class BoxClipViewModel {
192
198
 
193
199
 
194
200
  setLayer(layerId) {
195
- this._options.tileset = this.findLayerById(layerId);
196
201
  this.clear();
197
-
198
- if (this._boxclipAnalysis) {
199
- this._boxclipAnalysis = new Cesium.Kq3dBoxClip(this._options);
200
- } //if (this._boxclipAnalysis) this._boxclipAnalysis.tileset = layer;
201
-
202
+ this._options.tileset = this.findLayerById(layerId);
202
203
  } // 设置裁剪方式,为true时,则为外部裁剪,否则为内部裁剪
203
204
 
204
205
 
@@ -408,8 +409,6 @@ const __default__ = {
408
409
 
409
410
 
410
411
  function clip() {
411
- // this.clearResult();
412
- viewModel && viewModel.clear();
413
412
  viewModel && viewModel.start();
414
413
  } // 清除
415
414
 
@@ -423,6 +422,8 @@ const __default__ = {
423
422
  viewModel && viewModel.destroy();
424
423
  });
425
424
  expose({
425
+ paramsChanged,
426
+ clip,
426
427
  clearResult
427
428
  });
428
429
  return (_ctx, _cache) => {
@@ -86,7 +86,7 @@ window.turf = turf_namespaceObject; //填挖方分析逻辑类
86
86
  class ExcavateFillAnalysisViewModel {
87
87
  //填挖方分析三维对象
88
88
  //绘制管理对象
89
- //填挖方分析参数对象
89
+ //填挖方分析存储参数对象
90
90
  //绘制完成监听事件
91
91
  constructor(scenceView, options, callback) {
92
92
  _defineProperty(this, "_excavateFillAnalysis", null);
package/index.js CHANGED
@@ -10113,7 +10113,7 @@ window.turf = turf_namespaceObject; //填挖方分析逻辑类
10113
10113
  class ExcavateFillAnalysisViewModel {
10114
10114
  //填挖方分析三维对象
10115
10115
  //绘制管理对象
10116
- //填挖方分析参数对象
10116
+ //填挖方分析存储参数对象
10117
10117
  //绘制完成监听事件
10118
10118
  constructor(scenceView, options, callback) {
10119
10119
  _defineProperty(this, "_excavateFillAnalysis", null);
@@ -12433,6 +12433,12 @@ SlopeAnalysis.install = (Vue, opts) => {
12433
12433
 
12434
12434
  class IsolineAnalysisViewModel {
12435
12435
  //等值线分析三维对象
12436
+ //等高面高度区间
12437
+ //等高面区间颜色数组
12438
+ //等高面渐变纹理图片
12439
+ //绘制管理对象
12440
+ //绘制完成监听事件
12441
+ //等值线分析存储参数对象
12436
12442
  constructor(scenceView, options) {
12437
12443
  _defineProperty(this, "_elevation", null);
12438
12444
 
@@ -12442,17 +12448,12 @@ class IsolineAnalysisViewModel {
12442
12448
 
12443
12449
  _defineProperty(this, "_surfaceColorImage", null);
12444
12450
 
12445
- _defineProperty(this, "_surfaceLineColorImage", null);
12446
-
12447
12451
  _defineProperty(this, "_drawManager", null);
12448
12452
 
12449
12453
  _defineProperty(this, "_removeEventListener", null);
12450
12454
 
12451
- _defineProperty(this, "_surfaceLineColorTableValue", [0.0, 0.1, 0.2, 0.3, 0.4]);
12452
-
12453
- _defineProperty(this, "_surfaceLineColorTable", ["#2a2828", "#2747E0", "#D33B7D", "#D33038", "#FF9742"]);
12454
-
12455
- _defineProperty(this, "_colorImages", [{
12455
+ _defineProperty(this, "_colorImages", [//渐变纹理编号和图片地址对象
12456
+ {
12456
12457
  value: 0,
12457
12458
  src: const_image_namespaceObject.RED_TO_PURPLE_URL
12458
12459
  }, {
@@ -12628,9 +12629,7 @@ class IsolineAnalysisViewModel {
12628
12629
  this._options.type = Cesium.Kq3dContourAnalysisType.SUFACE_LINE;
12629
12630
 
12630
12631
  if (this._elevation) {
12631
- this._elevation.type = Cesium.Kq3dContourAnalysisType.SUFACE_LINE; // this._surfaceLineColorImage = this.setColorLine(value)
12632
- // this._elevation.colorImage = this._surfaceLineColorImage;
12633
-
12632
+ this._elevation.type = Cesium.Kq3dContourAnalysisType.SUFACE_LINE;
12634
12633
  this._elevation.colorImage = this._surfaceColorImage;
12635
12634
  }
12636
12635
 
@@ -14873,12 +14872,18 @@ IsolineAnalysis.install = (Vue, opts) => {
14873
14872
 
14874
14873
  //Box裁剪逻辑类
14875
14874
  class BoxClipViewModel {
14875
+ //三维viewer对象
14876
+ //Box裁剪存储参数对象
14877
+ //Box裁剪三维对象
14878
+ //绘制管理对象
14879
+ //绘制完成监听事件
14876
14880
  constructor(scenceView, options) {
14877
14881
  _defineProperty(this, "_viewer", null);
14878
14882
 
14879
14883
  _defineProperty(this, "_options", {});
14880
14884
 
14881
14885
  _defineProperty(this, "_defaultOptions", {
14886
+ //默认参数对象
14882
14887
  clipTyp: 1,
14883
14888
  boxColor: Cesium.Color.fromCssColorString("#316882").withAlpha(0.4),
14884
14889
  clipEdgeWidth: 6.0,
@@ -14905,8 +14910,8 @@ class BoxClipViewModel {
14905
14910
  _defineProperty(this, "_removeEventListener", null);
14906
14911
 
14907
14912
  this._options = Object.assign({}, options, this._defaultOptions);
14908
- this._viewer = scenceView._viewer;
14909
- this._viewer.enabledFXAA = true;
14913
+ this._viewer = scenceView._viewer; // this._viewer.enabledFXAA = true;
14914
+
14910
14915
  this._options.viewer = this._viewer;
14911
14916
  this._drawManager = scenceView._drawManager;
14912
14917
  let that = this;
@@ -14987,13 +14992,8 @@ class BoxClipViewModel {
14987
14992
 
14988
14993
 
14989
14994
  setLayer(layerId) {
14990
- this._options.tileset = this.findLayerById(layerId);
14991
14995
  this.clear();
14992
-
14993
- if (this._boxclipAnalysis) {
14994
- this._boxclipAnalysis = new Cesium.Kq3dBoxClip(this._options);
14995
- } //if (this._boxclipAnalysis) this._boxclipAnalysis.tileset = layer;
14996
-
14996
+ this._options.tileset = this.findLayerById(layerId);
14997
14997
  } // 设置裁剪方式,为true时,则为外部裁剪,否则为内部裁剪
14998
14998
 
14999
14999
 
@@ -15203,8 +15203,6 @@ const BoxClipvue_type_script_setup_true_lang_js_default_ = {
15203
15203
 
15204
15204
 
15205
15205
  function clip() {
15206
- // this.clearResult();
15207
- viewModel && viewModel.clear();
15208
15206
  viewModel && viewModel.start();
15209
15207
  } // 清除
15210
15208
 
@@ -15218,6 +15216,8 @@ const BoxClipvue_type_script_setup_true_lang_js_default_ = {
15218
15216
  viewModel && viewModel.destroy();
15219
15217
  });
15220
15218
  expose({
15219
+ paramsChanged,
15220
+ clip,
15221
15221
  clearResult
15222
15222
  });
15223
15223
  return (_ctx, _cache) => {
@@ -15881,17 +15881,20 @@ BoxClip.install = (Vue, opts) => {
15881
15881
 
15882
15882
  ;// CONCATENATED MODULE: ./src/webgl/planeclip/PlaneClipViewModel.js
15883
15883
 
15884
- //Box裁剪逻辑类
15884
+ //平面裁剪逻辑类
15885
15885
  class PlaneClipViewModel {
15886
+ //三维viewer对象
15887
+ //平面裁剪存储参数对象
15888
+ //平面裁剪三维逻辑类
15889
+ //绘制管理对象
15890
+ //绘制完成事件监听
15886
15891
  constructor(scenceView, options) {
15887
15892
  _defineProperty(this, "_viewer", null);
15888
15893
 
15889
15894
  _defineProperty(this, "_options", {});
15890
15895
 
15891
15896
  _defineProperty(this, "_defaultOptions", {
15892
- axisX: 0,
15893
- axisY: 0,
15894
- axisZ: 0,
15897
+ //默认参数对象
15895
15898
  x: 0,
15896
15899
  y: 0,
15897
15900
  z: 0,
@@ -15922,21 +15925,16 @@ class PlaneClipViewModel {
15922
15925
  _defineProperty(this, "_removeEventListener", null);
15923
15926
 
15924
15927
  this._options = Object.assign({}, options, this._defaultOptions);
15925
- this._viewer = scenceView._viewer;
15926
- this._viewer.enabledFXAA = true;
15928
+ this._viewer = scenceView._viewer; // this._viewer.enabledFXAA = true;
15929
+
15927
15930
  this._options.viewer = this._viewer;
15928
15931
  this._drawManager = scenceView._drawManager;
15929
15932
  let that = this;
15930
15933
  this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
15931
15934
  if (shape) {
15932
- that._options.position = shape.position;
15935
+ that._options.position = shape.position; // 实例化分析对象
15933
15936
 
15934
- if (that._planeclipAnalysis) {
15935
- that._planeclipAnalysis.position = that._options.position;
15936
- } else {
15937
- // 实例化分析对象
15938
- that._planeclipAnalysis = new Cesium.Kq3dBoxClip(that._options);
15939
- }
15937
+ that._planeclipAnalysis = new Cesium.Kq3dBoxClip(that._options);
15940
15938
 
15941
15939
  that._drawManager.clear();
15942
15940
  }
@@ -16185,6 +16183,8 @@ const PlaneClipvue_type_script_setup_true_lang_js_default_ = {
16185
16183
  viewModel && viewModel.destroy();
16186
16184
  });
16187
16185
  expose({
16186
+ paramsChanged,
16187
+ clip,
16188
16188
  clearResult
16189
16189
  });
16190
16190
  return (_ctx, _cache) => {
@@ -17860,7 +17860,13 @@ let _gravityScratch = null;
17860
17860
  let _gravity = 1.0; //粒子特效逻辑类
17861
17861
 
17862
17862
  class ParticleEffectViewModel {
17863
+ //三维球场景视图对象
17863
17864
  //粒子特效集合
17865
+ //绘制管理对象
17866
+ //绘制完成监听事件
17867
+ //粒子特效存储参数对象
17868
+ //火焰图片url地址
17869
+ //烟雾图片url地址
17864
17870
  constructor(scenceView) {
17865
17871
  _defineProperty(this, "_scene", null);
17866
17872
 
@@ -18225,6 +18231,9 @@ const ParticleEffectvue_type_script_setup_true_lang_js_default_ = {
18225
18231
  viewModel && viewModel.destroy();
18226
18232
  });
18227
18233
  expose({
18234
+ changeMode,
18235
+ paramsChanged,
18236
+ add,
18228
18237
  clear
18229
18238
  });
18230
18239
  return (_ctx, _cache) => {
@@ -18870,6 +18879,13 @@ let _gravityEnd = -1.0; //天气特效逻辑类
18870
18879
 
18871
18880
 
18872
18881
  class WeatherEffectViewModel {
18882
+ //三维球场景视图对象
18883
+ //粒子系统三维对象
18884
+ //绘制管理对象
18885
+ //绘制完成监听事件
18886
+ //天气特效存储参数对象
18887
+ //雨图片url地址
18888
+ //雪图片url地址
18873
18889
  constructor(scenceView) {
18874
18890
  _defineProperty(this, "_scene", null);
18875
18891
 
@@ -19156,6 +19172,9 @@ const WeatherEffectvue_type_script_setup_true_lang_js_default_ = {
19156
19172
  viewModel && viewModel.destroy();
19157
19173
  });
19158
19174
  expose({
19175
+ changeMode,
19176
+ paramsChanged,
19177
+ add,
19159
19178
  clear
19160
19179
  });
19161
19180
  return (_ctx, _cache) => {
@@ -20025,10 +20044,10 @@ CompareMap.install = (Vue, opts) => {
20025
20044
 
20026
20045
  ;// CONCATENATED MODULE: ./src/webgl/screenshot/ScreenshotViewModel.js
20027
20046
 
20028
- //Box裁剪逻辑类
20047
+ //截图逻辑类
20029
20048
  class ScreenshotViewModel {
20030
20049
  //三维viewer对象
20031
- //参数对象
20050
+ //截图存储参数对象
20032
20051
  //截图三维对象
20033
20052
  constructor(viewer, options) {
20034
20053
  _defineProperty(this, "_viewer", null);
@@ -82,6 +82,12 @@ var const_image_namespaceObject = require("@kq_npm/client_common_vue/_utils/cons
82
82
 
83
83
  class IsolineAnalysisViewModel {
84
84
  //等值线分析三维对象
85
+ //等高面高度区间
86
+ //等高面区间颜色数组
87
+ //等高面渐变纹理图片
88
+ //绘制管理对象
89
+ //绘制完成监听事件
90
+ //等值线分析存储参数对象
85
91
  constructor(scenceView, options) {
86
92
  _defineProperty(this, "_elevation", null);
87
93
 
@@ -91,17 +97,12 @@ class IsolineAnalysisViewModel {
91
97
 
92
98
  _defineProperty(this, "_surfaceColorImage", null);
93
99
 
94
- _defineProperty(this, "_surfaceLineColorImage", null);
95
-
96
100
  _defineProperty(this, "_drawManager", null);
97
101
 
98
102
  _defineProperty(this, "_removeEventListener", null);
99
103
 
100
- _defineProperty(this, "_surfaceLineColorTableValue", [0.0, 0.1, 0.2, 0.3, 0.4]);
101
-
102
- _defineProperty(this, "_surfaceLineColorTable", ["#2a2828", "#2747E0", "#D33B7D", "#D33038", "#FF9742"]);
103
-
104
- _defineProperty(this, "_colorImages", [{
104
+ _defineProperty(this, "_colorImages", [//渐变纹理编号和图片地址对象
105
+ {
105
106
  value: 0,
106
107
  src: const_image_namespaceObject.RED_TO_PURPLE_URL
107
108
  }, {
@@ -277,9 +278,7 @@ class IsolineAnalysisViewModel {
277
278
  this._options.type = Cesium.Kq3dContourAnalysisType.SUFACE_LINE;
278
279
 
279
280
  if (this._elevation) {
280
- this._elevation.type = Cesium.Kq3dContourAnalysisType.SUFACE_LINE; // this._surfaceLineColorImage = this.setColorLine(value)
281
- // this._elevation.colorImage = this._surfaceLineColorImage;
282
-
281
+ this._elevation.type = Cesium.Kq3dContourAnalysisType.SUFACE_LINE;
283
282
  this._elevation.colorImage = this._surfaceColorImage;
284
283
  }
285
284
 
package/package.json CHANGED
@@ -1 +1 @@
1
- {"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"0.5.9-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","dependencies":{"colorcolor":"^1.1.1","echarts":"^5.3.3","js-cookie":"^3.0.1","omit.js":"^2.0.2","save":"^2.5.0","tinycolor2":"^1.4.2","vue-i18n":"^9.2.0-beta.36","xlsx":"^0.18.5","@turf/turf":"^6.5.0","css-vars-ponyfill":"^2.4.8","xe-utils":"^3.5.4"}}
1
+ {"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"0.6.0-beta","homepage":"","keywords":["KQGIS","webGL","Vue"],"browserslist":["> 1%","last 2 versions","not dead","not ie 11"],"author":"KQWEB GROUP","license":"Apache-2.0","dependencies":{"colorcolor":"^1.1.1","echarts":"^5.3.3","js-cookie":"^3.0.1","omit.js":"^2.0.2","save":"^2.5.0","tinycolor2":"^1.4.2","vue-i18n":"^9.2.0-beta.36","xlsx":"^0.18.5","@turf/turf":"^6.5.0","css-vars-ponyfill":"^2.4.8","xe-utils":"^3.5.4"}}
@@ -85,7 +85,13 @@ let _gravityScratch = null;
85
85
  let _gravity = 1.0; //粒子特效逻辑类
86
86
 
87
87
  class ParticleEffectViewModel {
88
+ //三维球场景视图对象
88
89
  //粒子特效集合
90
+ //绘制管理对象
91
+ //绘制完成监听事件
92
+ //粒子特效存储参数对象
93
+ //火焰图片url地址
94
+ //烟雾图片url地址
89
95
  constructor(scenceView) {
90
96
  _defineProperty(this, "_scene", null);
91
97
 
@@ -450,6 +456,9 @@ const __default__ = {
450
456
  viewModel && viewModel.destroy();
451
457
  });
452
458
  expose({
459
+ changeMode,
460
+ paramsChanged,
461
+ add,
453
462
  clear
454
463
  });
455
464
  return (_ctx, _cache) => {
@@ -76,17 +76,20 @@ function _defineProperty(obj, key, value) {
76
76
  }
77
77
  ;// CONCATENATED MODULE: ./src/webgl/planeclip/PlaneClipViewModel.js
78
78
 
79
- //Box裁剪逻辑类
79
+ //平面裁剪逻辑类
80
80
  class PlaneClipViewModel {
81
+ //三维viewer对象
82
+ //平面裁剪存储参数对象
83
+ //平面裁剪三维逻辑类
84
+ //绘制管理对象
85
+ //绘制完成事件监听
81
86
  constructor(scenceView, options) {
82
87
  _defineProperty(this, "_viewer", null);
83
88
 
84
89
  _defineProperty(this, "_options", {});
85
90
 
86
91
  _defineProperty(this, "_defaultOptions", {
87
- axisX: 0,
88
- axisY: 0,
89
- axisZ: 0,
92
+ //默认参数对象
90
93
  x: 0,
91
94
  y: 0,
92
95
  z: 0,
@@ -117,21 +120,16 @@ class PlaneClipViewModel {
117
120
  _defineProperty(this, "_removeEventListener", null);
118
121
 
119
122
  this._options = Object.assign({}, options, this._defaultOptions);
120
- this._viewer = scenceView._viewer;
121
- this._viewer.enabledFXAA = true;
123
+ this._viewer = scenceView._viewer; // this._viewer.enabledFXAA = true;
124
+
122
125
  this._options.viewer = this._viewer;
123
126
  this._drawManager = scenceView._drawManager;
124
127
  let that = this;
125
128
  this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
126
129
  if (shape) {
127
- that._options.position = shape.position;
130
+ that._options.position = shape.position; // 实例化分析对象
128
131
 
129
- if (that._planeclipAnalysis) {
130
- that._planeclipAnalysis.position = that._options.position;
131
- } else {
132
- // 实例化分析对象
133
- that._planeclipAnalysis = new Cesium.Kq3dBoxClip(that._options);
134
- }
132
+ that._planeclipAnalysis = new Cesium.Kq3dBoxClip(that._options);
135
133
 
136
134
  that._drawManager.clear();
137
135
  }
@@ -380,6 +378,8 @@ const __default__ = {
380
378
  viewModel && viewModel.destroy();
381
379
  });
382
380
  expose({
381
+ paramsChanged,
382
+ clip,
383
383
  clearResult
384
384
  });
385
385
  return (_ctx, _cache) => {
@@ -76,10 +76,10 @@ function _defineProperty(obj, key, value) {
76
76
  }
77
77
  ;// CONCATENATED MODULE: ./src/webgl/screenshot/ScreenshotViewModel.js
78
78
 
79
- //Box裁剪逻辑类
79
+ //截图逻辑类
80
80
  class ScreenshotViewModel {
81
81
  //三维viewer对象
82
- //参数对象
82
+ //截图存储参数对象
83
83
  //截图三维对象
84
84
  constructor(viewer, options) {
85
85
  _defineProperty(this, "_viewer", null);
@@ -88,6 +88,13 @@ let _gravityEnd = -1.0; //天气特效逻辑类
88
88
 
89
89
 
90
90
  class WeatherEffectViewModel {
91
+ //三维球场景视图对象
92
+ //粒子系统三维对象
93
+ //绘制管理对象
94
+ //绘制完成监听事件
95
+ //天气特效存储参数对象
96
+ //雨图片url地址
97
+ //雪图片url地址
91
98
  constructor(scenceView) {
92
99
  _defineProperty(this, "_scene", null);
93
100
 
@@ -374,6 +381,9 @@ const __default__ = {
374
381
  viewModel && viewModel.destroy();
375
382
  });
376
383
  expose({
384
+ changeMode,
385
+ paramsChanged,
386
+ add,
377
387
  clear
378
388
  });
379
389
  return (_ctx, _cache) => {