@kq_npm/client3d_webgl_vue 0.5.8-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 +11 -10
- package/excavatefillanalysis/index.js +1 -1
- package/index.js +64 -42
- package/isolineanalysis/index.js +10 -14
- package/package.json +1 -1
- package/particleeffect/index.js +9 -0
- package/planeclip/index.js +13 -13
- package/scenceview/index.js +6 -0
- package/screenshot/index.js +2 -2
- package/slopeanalysis/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/index.js
CHANGED
|
@@ -1115,6 +1115,7 @@ class LayerManager {
|
|
|
1115
1115
|
}
|
|
1116
1116
|
|
|
1117
1117
|
source.mapServerInfo = (0,util_namespaceObject.formatKQMapInfo)(mapInfo.result, serverUrl, serverName, token, null, true);
|
|
1118
|
+
this._layerListData_old = this._layerListData_old.concat(source.mapServerInfo.layers_old);
|
|
1118
1119
|
});
|
|
1119
1120
|
sourcePromises.push(sourcePromise);
|
|
1120
1121
|
}
|
|
@@ -1160,6 +1161,10 @@ class LayerManager {
|
|
|
1160
1161
|
layerData.sourceLayers = source.mapServerInfo.layers_show;
|
|
1161
1162
|
} else {
|
|
1162
1163
|
layerData.url += "/" + layerData.renderType;
|
|
1164
|
+
|
|
1165
|
+
if (source.token) {
|
|
1166
|
+
layerData.url += "?ua_token=" + source.token;
|
|
1167
|
+
}
|
|
1163
1168
|
}
|
|
1164
1169
|
} else if (layerData.sourceType === "arcserver") {
|
|
1165
1170
|
if (!layerData.renderType || layerData.renderType === "rest") {
|
|
@@ -1662,6 +1667,7 @@ class LayerManager {
|
|
|
1662
1667
|
showLayers.reverse();
|
|
1663
1668
|
that._layerListData = that._layerListData.concat(showLayers); // console.log(that._layerTreeData);
|
|
1664
1669
|
// console.log(that._layerListData);
|
|
1670
|
+
// console.log(that._layerListData_old);
|
|
1665
1671
|
|
|
1666
1672
|
that.addMapServerLayers(showLayers, mapInfo.rect84);
|
|
1667
1673
|
}, error => {
|
|
@@ -10107,7 +10113,7 @@ window.turf = turf_namespaceObject; //填挖方分析逻辑类
|
|
|
10107
10113
|
class ExcavateFillAnalysisViewModel {
|
|
10108
10114
|
//填挖方分析三维对象
|
|
10109
10115
|
//绘制管理对象
|
|
10110
|
-
|
|
10116
|
+
//填挖方分析存储参数对象
|
|
10111
10117
|
//绘制完成监听事件
|
|
10112
10118
|
constructor(scenceView, options, callback) {
|
|
10113
10119
|
_defineProperty(this, "_excavateFillAnalysis", null);
|
|
@@ -11678,8 +11684,8 @@ class SlopeAnalysisViewModel {
|
|
|
11678
11684
|
|
|
11679
11685
|
destroy() {
|
|
11680
11686
|
// 移除监听事件
|
|
11681
|
-
this._drawFinishedEventListener && this._drawFinishedEventListener();
|
|
11682
|
-
this._drawFinishedEventListener = null;
|
|
11687
|
+
this._globaOptions._drawFinishedEventListener && this._globaOptions._drawFinishedEventListener();
|
|
11688
|
+
this._globaOptions._drawFinishedEventListener = null;
|
|
11683
11689
|
this._slopeAnalysis && this._slopeAnalysis.destroy();
|
|
11684
11690
|
this._slopeAnalysis = null;
|
|
11685
11691
|
}
|
|
@@ -12427,6 +12433,12 @@ SlopeAnalysis.install = (Vue, opts) => {
|
|
|
12427
12433
|
|
|
12428
12434
|
class IsolineAnalysisViewModel {
|
|
12429
12435
|
//等值线分析三维对象
|
|
12436
|
+
//等高面高度区间
|
|
12437
|
+
//等高面区间颜色数组
|
|
12438
|
+
//等高面渐变纹理图片
|
|
12439
|
+
//绘制管理对象
|
|
12440
|
+
//绘制完成监听事件
|
|
12441
|
+
//等值线分析存储参数对象
|
|
12430
12442
|
constructor(scenceView, options) {
|
|
12431
12443
|
_defineProperty(this, "_elevation", null);
|
|
12432
12444
|
|
|
@@ -12436,17 +12448,12 @@ class IsolineAnalysisViewModel {
|
|
|
12436
12448
|
|
|
12437
12449
|
_defineProperty(this, "_surfaceColorImage", null);
|
|
12438
12450
|
|
|
12439
|
-
_defineProperty(this, "_surfaceLineColorImage", null);
|
|
12440
|
-
|
|
12441
12451
|
_defineProperty(this, "_drawManager", null);
|
|
12442
12452
|
|
|
12443
12453
|
_defineProperty(this, "_removeEventListener", null);
|
|
12444
12454
|
|
|
12445
|
-
_defineProperty(this, "
|
|
12446
|
-
|
|
12447
|
-
_defineProperty(this, "_surfaceLineColorTable", ["#2a2828", "#2747E0", "#D33B7D", "#D33038", "#FF9742"]);
|
|
12448
|
-
|
|
12449
|
-
_defineProperty(this, "_colorImages", [{
|
|
12455
|
+
_defineProperty(this, "_colorImages", [//渐变纹理编号和图片地址对象
|
|
12456
|
+
{
|
|
12450
12457
|
value: 0,
|
|
12451
12458
|
src: const_image_namespaceObject.RED_TO_PURPLE_URL
|
|
12452
12459
|
}, {
|
|
@@ -12622,9 +12629,7 @@ class IsolineAnalysisViewModel {
|
|
|
12622
12629
|
this._options.type = Cesium.Kq3dContourAnalysisType.SUFACE_LINE;
|
|
12623
12630
|
|
|
12624
12631
|
if (this._elevation) {
|
|
12625
|
-
this._elevation.type = Cesium.Kq3dContourAnalysisType.SUFACE_LINE;
|
|
12626
|
-
// this._elevation.colorImage = this._surfaceLineColorImage;
|
|
12627
|
-
|
|
12632
|
+
this._elevation.type = Cesium.Kq3dContourAnalysisType.SUFACE_LINE;
|
|
12628
12633
|
this._elevation.colorImage = this._surfaceColorImage;
|
|
12629
12634
|
}
|
|
12630
12635
|
|
|
@@ -12649,10 +12654,7 @@ class IsolineAnalysisViewModel {
|
|
|
12649
12654
|
clear() {
|
|
12650
12655
|
this._drawManager && this._drawManager.stopDraw();
|
|
12651
12656
|
this._elevation && this._elevation.destroy();
|
|
12652
|
-
this._elevation = null;
|
|
12653
|
-
|
|
12654
|
-
this._removeEventListener && this._removeEventListener();
|
|
12655
|
-
this._removeEventListener = null;
|
|
12657
|
+
this._elevation = null;
|
|
12656
12658
|
} //销毁
|
|
12657
12659
|
|
|
12658
12660
|
|
|
@@ -14870,12 +14872,18 @@ IsolineAnalysis.install = (Vue, opts) => {
|
|
|
14870
14872
|
|
|
14871
14873
|
//Box裁剪逻辑类
|
|
14872
14874
|
class BoxClipViewModel {
|
|
14875
|
+
//三维viewer对象
|
|
14876
|
+
//Box裁剪存储参数对象
|
|
14877
|
+
//Box裁剪三维对象
|
|
14878
|
+
//绘制管理对象
|
|
14879
|
+
//绘制完成监听事件
|
|
14873
14880
|
constructor(scenceView, options) {
|
|
14874
14881
|
_defineProperty(this, "_viewer", null);
|
|
14875
14882
|
|
|
14876
14883
|
_defineProperty(this, "_options", {});
|
|
14877
14884
|
|
|
14878
14885
|
_defineProperty(this, "_defaultOptions", {
|
|
14886
|
+
//默认参数对象
|
|
14879
14887
|
clipTyp: 1,
|
|
14880
14888
|
boxColor: Cesium.Color.fromCssColorString("#316882").withAlpha(0.4),
|
|
14881
14889
|
clipEdgeWidth: 6.0,
|
|
@@ -14902,8 +14910,8 @@ class BoxClipViewModel {
|
|
|
14902
14910
|
_defineProperty(this, "_removeEventListener", null);
|
|
14903
14911
|
|
|
14904
14912
|
this._options = Object.assign({}, options, this._defaultOptions);
|
|
14905
|
-
this._viewer = scenceView._viewer;
|
|
14906
|
-
|
|
14913
|
+
this._viewer = scenceView._viewer; // this._viewer.enabledFXAA = true;
|
|
14914
|
+
|
|
14907
14915
|
this._options.viewer = this._viewer;
|
|
14908
14916
|
this._drawManager = scenceView._drawManager;
|
|
14909
14917
|
let that = this;
|
|
@@ -14984,13 +14992,8 @@ class BoxClipViewModel {
|
|
|
14984
14992
|
|
|
14985
14993
|
|
|
14986
14994
|
setLayer(layerId) {
|
|
14987
|
-
this._options.tileset = this.findLayerById(layerId);
|
|
14988
14995
|
this.clear();
|
|
14989
|
-
|
|
14990
|
-
if (this._boxclipAnalysis) {
|
|
14991
|
-
this._boxclipAnalysis = new Cesium.Kq3dBoxClip(this._options);
|
|
14992
|
-
} //if (this._boxclipAnalysis) this._boxclipAnalysis.tileset = layer;
|
|
14993
|
-
|
|
14996
|
+
this._options.tileset = this.findLayerById(layerId);
|
|
14994
14997
|
} // 设置裁剪方式,为true时,则为外部裁剪,否则为内部裁剪
|
|
14995
14998
|
|
|
14996
14999
|
|
|
@@ -15200,8 +15203,6 @@ const BoxClipvue_type_script_setup_true_lang_js_default_ = {
|
|
|
15200
15203
|
|
|
15201
15204
|
|
|
15202
15205
|
function clip() {
|
|
15203
|
-
// this.clearResult();
|
|
15204
|
-
viewModel && viewModel.clear();
|
|
15205
15206
|
viewModel && viewModel.start();
|
|
15206
15207
|
} // 清除
|
|
15207
15208
|
|
|
@@ -15215,6 +15216,8 @@ const BoxClipvue_type_script_setup_true_lang_js_default_ = {
|
|
|
15215
15216
|
viewModel && viewModel.destroy();
|
|
15216
15217
|
});
|
|
15217
15218
|
expose({
|
|
15219
|
+
paramsChanged,
|
|
15220
|
+
clip,
|
|
15218
15221
|
clearResult
|
|
15219
15222
|
});
|
|
15220
15223
|
return (_ctx, _cache) => {
|
|
@@ -15878,17 +15881,20 @@ BoxClip.install = (Vue, opts) => {
|
|
|
15878
15881
|
|
|
15879
15882
|
;// CONCATENATED MODULE: ./src/webgl/planeclip/PlaneClipViewModel.js
|
|
15880
15883
|
|
|
15881
|
-
|
|
15884
|
+
//平面裁剪逻辑类
|
|
15882
15885
|
class PlaneClipViewModel {
|
|
15886
|
+
//三维viewer对象
|
|
15887
|
+
//平面裁剪存储参数对象
|
|
15888
|
+
//平面裁剪三维逻辑类
|
|
15889
|
+
//绘制管理对象
|
|
15890
|
+
//绘制完成事件监听
|
|
15883
15891
|
constructor(scenceView, options) {
|
|
15884
15892
|
_defineProperty(this, "_viewer", null);
|
|
15885
15893
|
|
|
15886
15894
|
_defineProperty(this, "_options", {});
|
|
15887
15895
|
|
|
15888
15896
|
_defineProperty(this, "_defaultOptions", {
|
|
15889
|
-
|
|
15890
|
-
axisY: 0,
|
|
15891
|
-
axisZ: 0,
|
|
15897
|
+
//默认参数对象
|
|
15892
15898
|
x: 0,
|
|
15893
15899
|
y: 0,
|
|
15894
15900
|
z: 0,
|
|
@@ -15919,21 +15925,16 @@ class PlaneClipViewModel {
|
|
|
15919
15925
|
_defineProperty(this, "_removeEventListener", null);
|
|
15920
15926
|
|
|
15921
15927
|
this._options = Object.assign({}, options, this._defaultOptions);
|
|
15922
|
-
this._viewer = scenceView._viewer;
|
|
15923
|
-
|
|
15928
|
+
this._viewer = scenceView._viewer; // this._viewer.enabledFXAA = true;
|
|
15929
|
+
|
|
15924
15930
|
this._options.viewer = this._viewer;
|
|
15925
15931
|
this._drawManager = scenceView._drawManager;
|
|
15926
15932
|
let that = this;
|
|
15927
15933
|
this._removeEventListener = this._drawManager.drawFinishedEvent.addEventListener(shape => {
|
|
15928
15934
|
if (shape) {
|
|
15929
|
-
that._options.position = shape.position;
|
|
15935
|
+
that._options.position = shape.position; // 实例化分析对象
|
|
15930
15936
|
|
|
15931
|
-
|
|
15932
|
-
that._planeclipAnalysis.position = that._options.position;
|
|
15933
|
-
} else {
|
|
15934
|
-
// 实例化分析对象
|
|
15935
|
-
that._planeclipAnalysis = new Cesium.Kq3dBoxClip(that._options);
|
|
15936
|
-
}
|
|
15937
|
+
that._planeclipAnalysis = new Cesium.Kq3dBoxClip(that._options);
|
|
15937
15938
|
|
|
15938
15939
|
that._drawManager.clear();
|
|
15939
15940
|
}
|
|
@@ -16182,6 +16183,8 @@ const PlaneClipvue_type_script_setup_true_lang_js_default_ = {
|
|
|
16182
16183
|
viewModel && viewModel.destroy();
|
|
16183
16184
|
});
|
|
16184
16185
|
expose({
|
|
16186
|
+
paramsChanged,
|
|
16187
|
+
clip,
|
|
16185
16188
|
clearResult
|
|
16186
16189
|
});
|
|
16187
16190
|
return (_ctx, _cache) => {
|
|
@@ -17857,7 +17860,13 @@ let _gravityScratch = null;
|
|
|
17857
17860
|
let _gravity = 1.0; //粒子特效逻辑类
|
|
17858
17861
|
|
|
17859
17862
|
class ParticleEffectViewModel {
|
|
17863
|
+
//三维球场景视图对象
|
|
17860
17864
|
//粒子特效集合
|
|
17865
|
+
//绘制管理对象
|
|
17866
|
+
//绘制完成监听事件
|
|
17867
|
+
//粒子特效存储参数对象
|
|
17868
|
+
//火焰图片url地址
|
|
17869
|
+
//烟雾图片url地址
|
|
17861
17870
|
constructor(scenceView) {
|
|
17862
17871
|
_defineProperty(this, "_scene", null);
|
|
17863
17872
|
|
|
@@ -18222,6 +18231,9 @@ const ParticleEffectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
18222
18231
|
viewModel && viewModel.destroy();
|
|
18223
18232
|
});
|
|
18224
18233
|
expose({
|
|
18234
|
+
changeMode,
|
|
18235
|
+
paramsChanged,
|
|
18236
|
+
add,
|
|
18225
18237
|
clear
|
|
18226
18238
|
});
|
|
18227
18239
|
return (_ctx, _cache) => {
|
|
@@ -18867,6 +18879,13 @@ let _gravityEnd = -1.0; //天气特效逻辑类
|
|
|
18867
18879
|
|
|
18868
18880
|
|
|
18869
18881
|
class WeatherEffectViewModel {
|
|
18882
|
+
//三维球场景视图对象
|
|
18883
|
+
//粒子系统三维对象
|
|
18884
|
+
//绘制管理对象
|
|
18885
|
+
//绘制完成监听事件
|
|
18886
|
+
//天气特效存储参数对象
|
|
18887
|
+
//雨图片url地址
|
|
18888
|
+
//雪图片url地址
|
|
18870
18889
|
constructor(scenceView) {
|
|
18871
18890
|
_defineProperty(this, "_scene", null);
|
|
18872
18891
|
|
|
@@ -19153,6 +19172,9 @@ const WeatherEffectvue_type_script_setup_true_lang_js_default_ = {
|
|
|
19153
19172
|
viewModel && viewModel.destroy();
|
|
19154
19173
|
});
|
|
19155
19174
|
expose({
|
|
19175
|
+
changeMode,
|
|
19176
|
+
paramsChanged,
|
|
19177
|
+
add,
|
|
19156
19178
|
clear
|
|
19157
19179
|
});
|
|
19158
19180
|
return (_ctx, _cache) => {
|
|
@@ -20022,10 +20044,10 @@ CompareMap.install = (Vue, opts) => {
|
|
|
20022
20044
|
|
|
20023
20045
|
;// CONCATENATED MODULE: ./src/webgl/screenshot/ScreenshotViewModel.js
|
|
20024
20046
|
|
|
20025
|
-
|
|
20047
|
+
//截图逻辑类
|
|
20026
20048
|
class ScreenshotViewModel {
|
|
20027
20049
|
//三维viewer对象
|
|
20028
|
-
|
|
20050
|
+
//截图存储参数对象
|
|
20029
20051
|
//截图三维对象
|
|
20030
20052
|
constructor(viewer, options) {
|
|
20031
20053
|
_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
|
|
|
@@ -304,10 +303,7 @@ class IsolineAnalysisViewModel {
|
|
|
304
303
|
clear() {
|
|
305
304
|
this._drawManager && this._drawManager.stopDraw();
|
|
306
305
|
this._elevation && this._elevation.destroy();
|
|
307
|
-
this._elevation = null;
|
|
308
|
-
|
|
309
|
-
this._removeEventListener && this._removeEventListener();
|
|
310
|
-
this._removeEventListener = null;
|
|
306
|
+
this._elevation = null;
|
|
311
307
|
} //销毁
|
|
312
308
|
|
|
313
309
|
|
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.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"}}
|
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/scenceview/index.js
CHANGED
|
@@ -662,6 +662,7 @@ class LayerManager {
|
|
|
662
662
|
}
|
|
663
663
|
|
|
664
664
|
source.mapServerInfo = (0,util_namespaceObject.formatKQMapInfo)(mapInfo.result, serverUrl, serverName, token, null, true);
|
|
665
|
+
this._layerListData_old = this._layerListData_old.concat(source.mapServerInfo.layers_old);
|
|
665
666
|
});
|
|
666
667
|
sourcePromises.push(sourcePromise);
|
|
667
668
|
}
|
|
@@ -707,6 +708,10 @@ class LayerManager {
|
|
|
707
708
|
layerData.sourceLayers = source.mapServerInfo.layers_show;
|
|
708
709
|
} else {
|
|
709
710
|
layerData.url += "/" + layerData.renderType;
|
|
711
|
+
|
|
712
|
+
if (source.token) {
|
|
713
|
+
layerData.url += "?ua_token=" + source.token;
|
|
714
|
+
}
|
|
710
715
|
}
|
|
711
716
|
} else if (layerData.sourceType === "arcserver") {
|
|
712
717
|
if (!layerData.renderType || layerData.renderType === "rest") {
|
|
@@ -1209,6 +1214,7 @@ class LayerManager {
|
|
|
1209
1214
|
showLayers.reverse();
|
|
1210
1215
|
that._layerListData = that._layerListData.concat(showLayers); // console.log(that._layerTreeData);
|
|
1211
1216
|
// console.log(that._layerListData);
|
|
1217
|
+
// console.log(that._layerListData_old);
|
|
1212
1218
|
|
|
1213
1219
|
that.addMapServerLayers(showLayers, mapInfo.rect84);
|
|
1214
1220
|
}, error => {
|
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/slopeanalysis/index.js
CHANGED
|
@@ -326,8 +326,8 @@ class SlopeAnalysisViewModel {
|
|
|
326
326
|
|
|
327
327
|
destroy() {
|
|
328
328
|
// 移除监听事件
|
|
329
|
-
this._drawFinishedEventListener && this._drawFinishedEventListener();
|
|
330
|
-
this._drawFinishedEventListener = null;
|
|
329
|
+
this._globaOptions._drawFinishedEventListener && this._globaOptions._drawFinishedEventListener();
|
|
330
|
+
this._globaOptions._drawFinishedEventListener = null;
|
|
331
331
|
this._slopeAnalysis && this._slopeAnalysis.destroy();
|
|
332
332
|
this._slopeAnalysis = null;
|
|
333
333
|
}
|
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) => {
|