@kq_npm/client3d_webgl_vue 0.5.9-beta → 0.6.1-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 +11 -10
- package/excavatefillanalysis/index.js +1 -1
- package/flight/index.js +3 -0
- package/index.js +62 -36
- package/isolineanalysis/index.js +9 -10
- package/measure/index.js +4 -0
- package/package.json +1 -1
- package/particleeffect/index.js +9 -0
- package/planeclip/index.js +13 -13
- package/screenshot/index.js +2 -2
- package/weathereffect/index.js +10 -0
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
|
-
|
|
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/flight/index.js
CHANGED
package/index.js
CHANGED
|
@@ -3837,6 +3837,10 @@ const Measurevue_type_script_setup_true_lang_js_default_ = {
|
|
|
3837
3837
|
}
|
|
3838
3838
|
|
|
3839
3839
|
expose({
|
|
3840
|
+
loadModeData,
|
|
3841
|
+
formatDistance,
|
|
3842
|
+
formatArea,
|
|
3843
|
+
formatAzimuth,
|
|
3840
3844
|
startMeasure,
|
|
3841
3845
|
clearMeasure
|
|
3842
3846
|
});
|
|
@@ -4463,6 +4467,9 @@ const Flightvue_type_script_setup_true_lang_js_default_ = {
|
|
|
4463
4467
|
}
|
|
4464
4468
|
|
|
4465
4469
|
expose({
|
|
4470
|
+
convertAnimationPathKeys,
|
|
4471
|
+
showDropDownMenu,
|
|
4472
|
+
hideDropDownMenu,
|
|
4466
4473
|
save,
|
|
4467
4474
|
cancel,
|
|
4468
4475
|
addPath,
|
|
@@ -10113,7 +10120,7 @@ window.turf = turf_namespaceObject; //填挖方分析逻辑类
|
|
|
10113
10120
|
class ExcavateFillAnalysisViewModel {
|
|
10114
10121
|
//填挖方分析三维对象
|
|
10115
10122
|
//绘制管理对象
|
|
10116
|
-
|
|
10123
|
+
//填挖方分析存储参数对象
|
|
10117
10124
|
//绘制完成监听事件
|
|
10118
10125
|
constructor(scenceView, options, callback) {
|
|
10119
10126
|
_defineProperty(this, "_excavateFillAnalysis", null);
|
|
@@ -12433,6 +12440,12 @@ SlopeAnalysis.install = (Vue, opts) => {
|
|
|
12433
12440
|
|
|
12434
12441
|
class IsolineAnalysisViewModel {
|
|
12435
12442
|
//等值线分析三维对象
|
|
12443
|
+
//等高面高度区间
|
|
12444
|
+
//等高面区间颜色数组
|
|
12445
|
+
//等高面渐变纹理图片
|
|
12446
|
+
//绘制管理对象
|
|
12447
|
+
//绘制完成监听事件
|
|
12448
|
+
//等值线分析存储参数对象
|
|
12436
12449
|
constructor(scenceView, options) {
|
|
12437
12450
|
_defineProperty(this, "_elevation", null);
|
|
12438
12451
|
|
|
@@ -12442,17 +12455,12 @@ class IsolineAnalysisViewModel {
|
|
|
12442
12455
|
|
|
12443
12456
|
_defineProperty(this, "_surfaceColorImage", null);
|
|
12444
12457
|
|
|
12445
|
-
_defineProperty(this, "_surfaceLineColorImage", null);
|
|
12446
|
-
|
|
12447
12458
|
_defineProperty(this, "_drawManager", null);
|
|
12448
12459
|
|
|
12449
12460
|
_defineProperty(this, "_removeEventListener", null);
|
|
12450
12461
|
|
|
12451
|
-
_defineProperty(this, "
|
|
12452
|
-
|
|
12453
|
-
_defineProperty(this, "_surfaceLineColorTable", ["#2a2828", "#2747E0", "#D33B7D", "#D33038", "#FF9742"]);
|
|
12454
|
-
|
|
12455
|
-
_defineProperty(this, "_colorImages", [{
|
|
12462
|
+
_defineProperty(this, "_colorImages", [//渐变纹理编号和图片地址对象
|
|
12463
|
+
{
|
|
12456
12464
|
value: 0,
|
|
12457
12465
|
src: const_image_namespaceObject.RED_TO_PURPLE_URL
|
|
12458
12466
|
}, {
|
|
@@ -12628,9 +12636,7 @@ class IsolineAnalysisViewModel {
|
|
|
12628
12636
|
this._options.type = Cesium.Kq3dContourAnalysisType.SUFACE_LINE;
|
|
12629
12637
|
|
|
12630
12638
|
if (this._elevation) {
|
|
12631
|
-
this._elevation.type = Cesium.Kq3dContourAnalysisType.SUFACE_LINE;
|
|
12632
|
-
// this._elevation.colorImage = this._surfaceLineColorImage;
|
|
12633
|
-
|
|
12639
|
+
this._elevation.type = Cesium.Kq3dContourAnalysisType.SUFACE_LINE;
|
|
12634
12640
|
this._elevation.colorImage = this._surfaceColorImage;
|
|
12635
12641
|
}
|
|
12636
12642
|
|
|
@@ -14873,12 +14879,18 @@ IsolineAnalysis.install = (Vue, opts) => {
|
|
|
14873
14879
|
|
|
14874
14880
|
//Box裁剪逻辑类
|
|
14875
14881
|
class BoxClipViewModel {
|
|
14882
|
+
//三维viewer对象
|
|
14883
|
+
//Box裁剪存储参数对象
|
|
14884
|
+
//Box裁剪三维对象
|
|
14885
|
+
//绘制管理对象
|
|
14886
|
+
//绘制完成监听事件
|
|
14876
14887
|
constructor(scenceView, options) {
|
|
14877
14888
|
_defineProperty(this, "_viewer", null);
|
|
14878
14889
|
|
|
14879
14890
|
_defineProperty(this, "_options", {});
|
|
14880
14891
|
|
|
14881
14892
|
_defineProperty(this, "_defaultOptions", {
|
|
14893
|
+
//默认参数对象
|
|
14882
14894
|
clipTyp: 1,
|
|
14883
14895
|
boxColor: Cesium.Color.fromCssColorString("#316882").withAlpha(0.4),
|
|
14884
14896
|
clipEdgeWidth: 6.0,
|
|
@@ -14905,8 +14917,8 @@ class BoxClipViewModel {
|
|
|
14905
14917
|
_defineProperty(this, "_removeEventListener", null);
|
|
14906
14918
|
|
|
14907
14919
|
this._options = Object.assign({}, options, this._defaultOptions);
|
|
14908
|
-
this._viewer = scenceView._viewer;
|
|
14909
|
-
|
|
14920
|
+
this._viewer = scenceView._viewer; // this._viewer.enabledFXAA = true;
|
|
14921
|
+
|
|
14910
14922
|
this._options.viewer = this._viewer;
|
|
14911
14923
|
this._drawManager = scenceView._drawManager;
|
|
14912
14924
|
let that = this;
|
|
@@ -14987,13 +14999,8 @@ class BoxClipViewModel {
|
|
|
14987
14999
|
|
|
14988
15000
|
|
|
14989
15001
|
setLayer(layerId) {
|
|
14990
|
-
this._options.tileset = this.findLayerById(layerId);
|
|
14991
15002
|
this.clear();
|
|
14992
|
-
|
|
14993
|
-
if (this._boxclipAnalysis) {
|
|
14994
|
-
this._boxclipAnalysis = new Cesium.Kq3dBoxClip(this._options);
|
|
14995
|
-
} //if (this._boxclipAnalysis) this._boxclipAnalysis.tileset = layer;
|
|
14996
|
-
|
|
15003
|
+
this._options.tileset = this.findLayerById(layerId);
|
|
14997
15004
|
} // 设置裁剪方式,为true时,则为外部裁剪,否则为内部裁剪
|
|
14998
15005
|
|
|
14999
15006
|
|
|
@@ -15203,8 +15210,6 @@ const BoxClipvue_type_script_setup_true_lang_js_default_ = {
|
|
|
15203
15210
|
|
|
15204
15211
|
|
|
15205
15212
|
function clip() {
|
|
15206
|
-
// this.clearResult();
|
|
15207
|
-
viewModel && viewModel.clear();
|
|
15208
15213
|
viewModel && viewModel.start();
|
|
15209
15214
|
} // 清除
|
|
15210
15215
|
|
|
@@ -15218,6 +15223,8 @@ const BoxClipvue_type_script_setup_true_lang_js_default_ = {
|
|
|
15218
15223
|
viewModel && viewModel.destroy();
|
|
15219
15224
|
});
|
|
15220
15225
|
expose({
|
|
15226
|
+
paramsChanged,
|
|
15227
|
+
clip,
|
|
15221
15228
|
clearResult
|
|
15222
15229
|
});
|
|
15223
15230
|
return (_ctx, _cache) => {
|
|
@@ -15881,17 +15888,20 @@ BoxClip.install = (Vue, opts) => {
|
|
|
15881
15888
|
|
|
15882
15889
|
;// CONCATENATED MODULE: ./src/webgl/planeclip/PlaneClipViewModel.js
|
|
15883
15890
|
|
|
15884
|
-
|
|
15891
|
+
//平面裁剪逻辑类
|
|
15885
15892
|
class PlaneClipViewModel {
|
|
15893
|
+
//三维viewer对象
|
|
15894
|
+
//平面裁剪存储参数对象
|
|
15895
|
+
//平面裁剪三维逻辑类
|
|
15896
|
+
//绘制管理对象
|
|
15897
|
+
//绘制完成事件监听
|
|
15886
15898
|
constructor(scenceView, options) {
|
|
15887
15899
|
_defineProperty(this, "_viewer", null);
|
|
15888
15900
|
|
|
15889
15901
|
_defineProperty(this, "_options", {});
|
|
15890
15902
|
|
|
15891
15903
|
_defineProperty(this, "_defaultOptions", {
|
|
15892
|
-
|
|
15893
|
-
axisY: 0,
|
|
15894
|
-
axisZ: 0,
|
|
15904
|
+
//默认参数对象
|
|
15895
15905
|
x: 0,
|
|
15896
15906
|
y: 0,
|
|
15897
15907
|
z: 0,
|
|
@@ -15922,21 +15932,16 @@ class PlaneClipViewModel {
|
|
|
15922
15932
|
_defineProperty(this, "_removeEventListener", null);
|
|
15923
15933
|
|
|
15924
15934
|
this._options = Object.assign({}, options, this._defaultOptions);
|
|
15925
|
-
this._viewer = scenceView._viewer;
|
|
15926
|
-
|
|
15935
|
+
this._viewer = scenceView._viewer; // this._viewer.enabledFXAA = true;
|
|
15936
|
+
|
|
15927
15937
|
this._options.viewer = this._viewer;
|
|
15928
15938
|
this._drawManager = scenceView._drawManager;
|
|
15929
15939
|
let that = this;
|
|
15930
15940
|
this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
15931
15941
|
if (shape) {
|
|
15932
|
-
that._options.position = shape.position;
|
|
15942
|
+
that._options.position = shape.position; // 实例化分析对象
|
|
15933
15943
|
|
|
15934
|
-
|
|
15935
|
-
that._planeclipAnalysis.position = that._options.position;
|
|
15936
|
-
} else {
|
|
15937
|
-
// 实例化分析对象
|
|
15938
|
-
that._planeclipAnalysis = new Cesium.Kq3dBoxClip(that._options);
|
|
15939
|
-
}
|
|
15944
|
+
that._planeclipAnalysis = new Cesium.Kq3dBoxClip(that._options);
|
|
15940
15945
|
|
|
15941
15946
|
that._drawManager.clear();
|
|
15942
15947
|
}
|
|
@@ -16185,6 +16190,8 @@ const PlaneClipvue_type_script_setup_true_lang_js_default_ = {
|
|
|
16185
16190
|
viewModel && viewModel.destroy();
|
|
16186
16191
|
});
|
|
16187
16192
|
expose({
|
|
16193
|
+
paramsChanged,
|
|
16194
|
+
clip,
|
|
16188
16195
|
clearResult
|
|
16189
16196
|
});
|
|
16190
16197
|
return (_ctx, _cache) => {
|
|
@@ -17860,7 +17867,13 @@ let _gravityScratch = null;
|
|
|
17860
17867
|
let _gravity = 1.0; //粒子特效逻辑类
|
|
17861
17868
|
|
|
17862
17869
|
class ParticleEffectViewModel {
|
|
17870
|
+
//三维球场景视图对象
|
|
17863
17871
|
//粒子特效集合
|
|
17872
|
+
//绘制管理对象
|
|
17873
|
+
//绘制完成监听事件
|
|
17874
|
+
//粒子特效存储参数对象
|
|
17875
|
+
//火焰图片url地址
|
|
17876
|
+
//烟雾图片url地址
|
|
17864
17877
|
constructor(scenceView) {
|
|
17865
17878
|
_defineProperty(this, "_scene", null);
|
|
17866
17879
|
|
|
@@ -18225,6 +18238,9 @@ const ParticleEffectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
18225
18238
|
viewModel && viewModel.destroy();
|
|
18226
18239
|
});
|
|
18227
18240
|
expose({
|
|
18241
|
+
changeMode,
|
|
18242
|
+
paramsChanged,
|
|
18243
|
+
add,
|
|
18228
18244
|
clear
|
|
18229
18245
|
});
|
|
18230
18246
|
return (_ctx, _cache) => {
|
|
@@ -18870,6 +18886,13 @@ let _gravityEnd = -1.0; //天气特效逻辑类
|
|
|
18870
18886
|
|
|
18871
18887
|
|
|
18872
18888
|
class WeatherEffectViewModel {
|
|
18889
|
+
//三维球场景视图对象
|
|
18890
|
+
//粒子系统三维对象
|
|
18891
|
+
//绘制管理对象
|
|
18892
|
+
//绘制完成监听事件
|
|
18893
|
+
//天气特效存储参数对象
|
|
18894
|
+
//雨图片url地址
|
|
18895
|
+
//雪图片url地址
|
|
18873
18896
|
constructor(scenceView) {
|
|
18874
18897
|
_defineProperty(this, "_scene", null);
|
|
18875
18898
|
|
|
@@ -19156,6 +19179,9 @@ const WeatherEffectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
19156
19179
|
viewModel && viewModel.destroy();
|
|
19157
19180
|
});
|
|
19158
19181
|
expose({
|
|
19182
|
+
changeMode,
|
|
19183
|
+
paramsChanged,
|
|
19184
|
+
add,
|
|
19159
19185
|
clear
|
|
19160
19186
|
});
|
|
19161
19187
|
return (_ctx, _cache) => {
|
|
@@ -20025,10 +20051,10 @@ CompareMap.install = (Vue, opts) => {
|
|
|
20025
20051
|
|
|
20026
20052
|
;// CONCATENATED MODULE: ./src/webgl/screenshot/ScreenshotViewModel.js
|
|
20027
20053
|
|
|
20028
|
-
|
|
20054
|
+
//截图逻辑类
|
|
20029
20055
|
class ScreenshotViewModel {
|
|
20030
20056
|
//三维viewer对象
|
|
20031
|
-
|
|
20057
|
+
//截图存储参数对象
|
|
20032
20058
|
//截图三维对象
|
|
20033
20059
|
constructor(viewer, options) {
|
|
20034
20060
|
_defineProperty(this, "_viewer", null);
|
package/isolineanalysis/index.js
CHANGED
|
@@ -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, "
|
|
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;
|
|
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/measure/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"0.
|
|
1
|
+
{"name":"@kq_npm/client3d_webgl_vue","description":"KQGIS Client3D for Vue.js","version":"0.6.1-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"}}
|
package/particleeffect/index.js
CHANGED
|
@@ -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) => {
|
package/planeclip/index.js
CHANGED
|
@@ -76,17 +76,20 @@ function _defineProperty(obj, key, value) {
|
|
|
76
76
|
}
|
|
77
77
|
;// CONCATENATED MODULE: ./src/webgl/planeclip/PlaneClipViewModel.js
|
|
78
78
|
|
|
79
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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
|
-
|
|
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) => {
|
package/screenshot/index.js
CHANGED
|
@@ -76,10 +76,10 @@ function _defineProperty(obj, key, value) {
|
|
|
76
76
|
}
|
|
77
77
|
;// CONCATENATED MODULE: ./src/webgl/screenshot/ScreenshotViewModel.js
|
|
78
78
|
|
|
79
|
-
|
|
79
|
+
//截图逻辑类
|
|
80
80
|
class ScreenshotViewModel {
|
|
81
81
|
//三维viewer对象
|
|
82
|
-
|
|
82
|
+
//截图存储参数对象
|
|
83
83
|
//截图三维对象
|
|
84
84
|
constructor(viewer, options) {
|
|
85
85
|
_defineProperty(this, "_viewer", null);
|
package/weathereffect/index.js
CHANGED
|
@@ -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) => {
|