@kq_npm/client3d_webgl_vue 3.7.7-beta → 3.9.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/adddata/index.js +134 -110
- package/adddata/style/adddata.css +1 -1
- package/aspectanalysis/index.js +22 -3
- package/baseterraingallery/index.js +24 -6
- package/boxclip/index.js +22 -3
- package/clientPrint/index.js +308 -257
- package/clientPrint/style/clientPrint.css +1 -1
- package/comparemap/index.js +29 -4
- package/compass/index.js +19 -2
- package/excavatefillanalysis/index.js +22 -3
- package/fixedzoomin/index.js +19 -2
- package/fixedzoomout/index.js +19 -2
- package/flight/index.js +22 -3
- package/floodanalysis/index.js +24 -17
- package/gpuspatialquery/index.js +22 -3
- package/index.js +1089 -569
- package/isolineanalysis/index.js +22 -3
- package/measure/index.js +28 -11
- package/modelselect/index.js +30 -17
- package/package.json +1 -1
- package/particleeffect/index.js +22 -3
- package/planeclip/index.js +22 -3
- package/profileanalysis/index.js +29 -3
- package/resetview/index.js +19 -2
- package/roller/index.js +22 -3
- package/scenceview/index.js +1178 -597
- package/screenshot/index.js +22 -3
- package/shadowanalysis/index.js +23 -5
- package/sightlineanalysis/index.js +22 -3
- package/skylineanalysis/index.js +110 -14
- package/slopeanalysis/index.js +22 -3
- package/statusbar/index.js +102 -8
- package/style.css +1 -1
- package/terrainoperation/index.js +22 -3
- package/underground/index.js +20 -5
- package/viewshedanalysis/index.js +166 -108
- package/weathereffect/index.js +22 -3
|
@@ -2,116 +2,24 @@
|
|
|
2
2
|
/******/ "use strict";
|
|
3
3
|
/******/ var __webpack_modules__ = ({
|
|
4
4
|
|
|
5
|
-
/***/
|
|
6
|
-
/***/ (function(
|
|
7
|
-
|
|
8
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
9
|
-
/* harmony export */ "Z": function() { return /* binding */ ViewshedAnalysisViewModel; }
|
|
10
|
-
/* harmony export */ });
|
|
11
|
-
/* harmony import */ var _Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8270);
|
|
12
|
-
|
|
13
|
-
//可视域分析逻辑类
|
|
14
|
-
class ViewshedAnalysisViewModel {
|
|
15
|
-
//可视域分析三维对象
|
|
16
|
-
//三维场景对象
|
|
17
|
-
//可视域分析存储参数对象
|
|
18
|
-
constructor(scenceView, options) {
|
|
19
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_viewshedAnalysis", null);
|
|
20
|
-
|
|
21
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_scene", null);
|
|
22
|
-
|
|
23
|
-
(0,_Users_zpc_Documents_KQGEOSpace_KQGISClientForVue_node_modules_babel_runtime_helpers_esm_defineProperty_js__WEBPACK_IMPORTED_MODULE_0__/* ["default"] */ .Z)(this, "_options", null);
|
|
24
|
-
|
|
25
|
-
this._scene = scenceView._viewer.scene;
|
|
26
|
-
this._scene.globe.depthTestAgainstTerrain = true;
|
|
27
|
-
this._options = options;
|
|
28
|
-
|
|
29
|
-
if (this._options.visibleColor) {
|
|
30
|
-
this._options.visibleColor = Cesium.Color.fromCssColorString(this._options.visibleColor);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
if (this._options.visibleColor) {
|
|
34
|
-
this._options.invisibleColor = Cesium.Color.fromCssColorString(this._options.invisibleColor);
|
|
35
|
-
}
|
|
36
|
-
|
|
37
|
-
this._viewshedAnalysis = new Cesium.Kq3dViewshedInteractive(this._scene, this._options);
|
|
38
|
-
} //开始分析
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
start() {
|
|
42
|
-
if (this._viewshedAnalysis) {
|
|
43
|
-
this._viewshedAnalysis.start();
|
|
44
|
-
} else {
|
|
45
|
-
this._viewshedAnalysis = new Cesium.Kq3dViewshedInteractive(this._scene, this._options);
|
|
46
|
-
|
|
47
|
-
this._viewshedAnalysis.start();
|
|
48
|
-
} // if (!this._viewshedAnalysis.isRunning()) {
|
|
49
|
-
// // 绘制完成后,需要释放绘制事件
|
|
50
|
-
// }
|
|
51
|
-
|
|
52
|
-
} //清除全部结果
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
clear() {
|
|
56
|
-
this._viewshedAnalysis && this._viewshedAnalysis.pause();
|
|
57
|
-
this._viewshedAnalysis && this._viewshedAnalysis.destroy();
|
|
58
|
-
this._viewshedAnalysis = null;
|
|
59
|
-
} //销毁
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
destroy() {
|
|
63
|
-
this._viewshedAnalysis && this._viewshedAnalysis.destroy();
|
|
64
|
-
this._viewshedAnalysis = null;
|
|
65
|
-
} //设置偏移高度
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
setOffsetHeight(offsetHeight) {
|
|
69
|
-
this._options.offsetHeight = offsetHeight;
|
|
70
|
-
this._viewshedAnalysis.attachedViewshed.offsetHeight = Number(offsetHeight);
|
|
71
|
-
} //设置水平角
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
setFovH(fovH) {
|
|
75
|
-
this._options.fovH = fovH;
|
|
76
|
-
this._viewshedAnalysis.attachedViewshed.fovH = Number(fovH);
|
|
77
|
-
} //设置竖直角
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
setFovV(fovV) {
|
|
81
|
-
this._options.fovV = fovV;
|
|
82
|
-
this._viewshedAnalysis.attachedViewshed.fovV = Number(fovV);
|
|
83
|
-
} //设置可视颜色
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
setVisibleColor(visibleColor) {
|
|
87
|
-
this._options.visibleColor = visibleColor;
|
|
88
|
-
this._viewshedAnalysis.attachedViewshed.visibleColor = Cesium.Color.fromCssColorString(visibleColor);
|
|
89
|
-
} //设置不可视颜色
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
setInvisibleColor(invisibleColor) {
|
|
93
|
-
this._options.invisibleColor = invisibleColor;
|
|
94
|
-
this._viewshedAnalysis.attachedViewshed.invisibleColor = Cesium.Color.fromCssColorString(invisibleColor);
|
|
95
|
-
} //设置网格线颜色
|
|
96
|
-
|
|
5
|
+
/***/ 348:
|
|
6
|
+
/***/ (function(module) {
|
|
97
7
|
|
|
98
|
-
|
|
99
|
-
this._viewshedAnalysis.attachedViewshed.lineColor = Cesium.Color.fromCssColorString(lineColor);
|
|
100
|
-
} //显示/隐藏网格线
|
|
8
|
+
module.exports = require("@kq_npm/client_icons_vue");
|
|
101
9
|
|
|
10
|
+
/***/ }),
|
|
102
11
|
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
}
|
|
12
|
+
/***/ 7080:
|
|
13
|
+
/***/ (function(module) {
|
|
106
14
|
|
|
107
|
-
|
|
15
|
+
module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
|
|
108
16
|
|
|
109
17
|
/***/ }),
|
|
110
18
|
|
|
111
|
-
/***/
|
|
19
|
+
/***/ 9702:
|
|
112
20
|
/***/ (function(module) {
|
|
113
21
|
|
|
114
|
-
module.exports = require("@kq_npm/
|
|
22
|
+
module.exports = require("@kq_npm/client_common_vue/_utils/const-image");
|
|
115
23
|
|
|
116
24
|
/***/ }),
|
|
117
25
|
|
|
@@ -242,7 +150,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
242
150
|
|
|
243
151
|
// EXPORTS
|
|
244
152
|
__webpack_require__.d(__webpack_exports__, {
|
|
245
|
-
"ViewshedAnalysisViewModel": function() { return /* reexport */ ViewshedAnalysisViewModel
|
|
153
|
+
"ViewshedAnalysisViewModel": function() { return /* reexport */ ViewshedAnalysisViewModel; },
|
|
246
154
|
"default": function() { return /* reexport */ ViewshedAnalysis; }
|
|
247
155
|
});
|
|
248
156
|
|
|
@@ -250,12 +158,152 @@ __webpack_require__.d(__webpack_exports__, {
|
|
|
250
158
|
var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(637);
|
|
251
159
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
|
|
252
160
|
var gis_utils_ = __webpack_require__(826);
|
|
253
|
-
// EXTERNAL MODULE: ./
|
|
254
|
-
var
|
|
161
|
+
// EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
|
|
162
|
+
var defineProperty = __webpack_require__(8270);
|
|
163
|
+
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/const-image"
|
|
164
|
+
var const_image_ = __webpack_require__(9702);
|
|
165
|
+
;// CONCATENATED MODULE: ./src/webgl/viewshedanalysis/ViewshedAnalysisViewModel.js
|
|
166
|
+
|
|
167
|
+
//可视域分析逻辑类
|
|
168
|
+
|
|
169
|
+
class ViewshedAnalysisViewModel {
|
|
170
|
+
//可视域分析三维对象
|
|
171
|
+
//三维场景对象
|
|
172
|
+
//可视域分析存储参数对象
|
|
173
|
+
//可视域分析初始点图标
|
|
174
|
+
//可视域分析初始点坐标
|
|
175
|
+
constructor(scenceView, options) {
|
|
176
|
+
(0,defineProperty/* default */.Z)(this, "_viewshedAnalysis", null);
|
|
177
|
+
|
|
178
|
+
(0,defineProperty/* default */.Z)(this, "_viewer", null);
|
|
179
|
+
|
|
180
|
+
(0,defineProperty/* default */.Z)(this, "_scene", null);
|
|
181
|
+
|
|
182
|
+
(0,defineProperty/* default */.Z)(this, "_options", null);
|
|
183
|
+
|
|
184
|
+
(0,defineProperty/* default */.Z)(this, "_marker", null);
|
|
185
|
+
|
|
186
|
+
(0,defineProperty/* default */.Z)(this, "_position", null);
|
|
187
|
+
|
|
188
|
+
this._viewer = scenceView._viewer;
|
|
189
|
+
this._scene = scenceView._viewer.scene;
|
|
190
|
+
this._scene.globe.depthTestAgainstTerrain = true;
|
|
191
|
+
this._options = options;
|
|
192
|
+
|
|
193
|
+
if (this._options.visibleColor) {
|
|
194
|
+
this._options.visibleColor = Cesium.Color.fromCssColorString(this._options.visibleColor);
|
|
195
|
+
}
|
|
196
|
+
|
|
197
|
+
if (this._options.visibleColor) {
|
|
198
|
+
this._options.invisibleColor = Cesium.Color.fromCssColorString(this._options.invisibleColor);
|
|
199
|
+
}
|
|
200
|
+
} //开始分析
|
|
201
|
+
|
|
202
|
+
|
|
203
|
+
start() {
|
|
204
|
+
this.clear();
|
|
205
|
+
this._viewshedAnalysis = new Cesium.Kq3dViewshedInteractive(this._scene, this._options);
|
|
206
|
+
let that = this;
|
|
207
|
+
|
|
208
|
+
this._viewshedAnalysis.event.addEventListener((p1, p2) => {
|
|
209
|
+
if (p1 && p2 == undefined) {
|
|
210
|
+
that._position = p1;
|
|
211
|
+
let cartographic = Cesium.Cartographic.fromCartesian(p1);
|
|
212
|
+
let newPos = Cesium.Cartesian3.fromRadians(cartographic.longitude, cartographic.latitude, cartographic.height + that._options.offsetHeight);
|
|
213
|
+
|
|
214
|
+
if (that._marker) {
|
|
215
|
+
that._marker.position = newPos;
|
|
216
|
+
} else {
|
|
217
|
+
that._marker = that._viewer.entities.add({
|
|
218
|
+
position: newPos,
|
|
219
|
+
billboard: {
|
|
220
|
+
image: const_image_.OBSERVATION_POINT,
|
|
221
|
+
verticalOrigin: Cesium.VerticalOrigin.CENTER,
|
|
222
|
+
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
223
|
+
}
|
|
224
|
+
});
|
|
225
|
+
}
|
|
226
|
+
}
|
|
227
|
+
});
|
|
228
|
+
|
|
229
|
+
this._viewshedAnalysis.start(); // if (!this._viewshedAnalysis.isRunning()) {
|
|
230
|
+
// // 绘制完成后,需要释放绘制事件
|
|
231
|
+
// }
|
|
232
|
+
|
|
233
|
+
} //清除全部结果
|
|
234
|
+
|
|
235
|
+
|
|
236
|
+
clear() {
|
|
237
|
+
// this._viewshedAnalysis && this._viewshedAnalysis.pause();
|
|
238
|
+
this.destroy();
|
|
239
|
+
} //销毁
|
|
240
|
+
|
|
241
|
+
|
|
242
|
+
destroy() {
|
|
243
|
+
this._viewshedAnalysis && this._viewshedAnalysis.destroy();
|
|
244
|
+
this._viewshedAnalysis = null;
|
|
245
|
+
|
|
246
|
+
if (this._marker) {
|
|
247
|
+
this._viewer.entities.remove(this._marker);
|
|
248
|
+
|
|
249
|
+
this._marker = null;
|
|
250
|
+
}
|
|
251
|
+
} //设置偏移高度
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
setOffsetHeight(offsetHeight) {
|
|
255
|
+
this._options.offsetHeight = Number(offsetHeight);
|
|
256
|
+
if (this._viewshedAnalysis) this._viewshedAnalysis.attachedViewshed.offsetHeight = this._options.offsetHeight;
|
|
257
|
+
|
|
258
|
+
if (this._marker) {
|
|
259
|
+
let cartographic = Cesium.Cartographic.fromCartesian(this._position);
|
|
260
|
+
this._marker.position = Cesium.Cartesian3.fromRadians(cartographic.longitude, cartographic.latitude, cartographic.height + this._options.offsetHeight);
|
|
261
|
+
}
|
|
262
|
+
} //设置水平角
|
|
263
|
+
|
|
264
|
+
|
|
265
|
+
setFovH(fovH) {
|
|
266
|
+
this._options.fovH = Number(fovH);
|
|
267
|
+
if (this._viewshedAnalysis) this._viewshedAnalysis.attachedViewshed.fovH = this._options.fovH;
|
|
268
|
+
} //设置竖直角
|
|
269
|
+
|
|
270
|
+
|
|
271
|
+
setFovV(fovV) {
|
|
272
|
+
this._options.fovV = Number(fovV);
|
|
273
|
+
if (this._viewshedAnalysis) this._viewshedAnalysis.attachedViewshed.fovV = this._options.fovV;
|
|
274
|
+
} //设置可视颜色
|
|
275
|
+
|
|
276
|
+
|
|
277
|
+
setVisibleColor(visibleColor) {
|
|
278
|
+
this._options.visibleColor = Cesium.Color.fromCssColorString(visibleColor);
|
|
279
|
+
if (this._viewshedAnalysis) this._viewshedAnalysis.attachedViewshed.visibleColor = this._options.visibleColor;
|
|
280
|
+
} //设置不可视颜色
|
|
281
|
+
|
|
282
|
+
|
|
283
|
+
setInvisibleColor(invisibleColor) {
|
|
284
|
+
this._options.invisibleColor = Cesium.Color.fromCssColorString(invisibleColor);
|
|
285
|
+
if (this._viewshedAnalysis) this._viewshedAnalysis.attachedViewshed.invisibleColor = this._options.invisibleColor;
|
|
286
|
+
} //设置网格线颜色
|
|
287
|
+
|
|
288
|
+
|
|
289
|
+
setLineColor(lineColor) {
|
|
290
|
+
this._options.lineColor = lineColor;
|
|
291
|
+
if (this._viewshedAnalysis) this._viewshedAnalysis.attachedViewshed.lineColor = Cesium.Color.fromCssColorString(lineColor);
|
|
292
|
+
} //显示/隐藏网格线
|
|
293
|
+
|
|
294
|
+
|
|
295
|
+
setShowGridLine(showGridLine) {
|
|
296
|
+
this._options.showGridLine = showGridLine;
|
|
297
|
+
if (this._viewshedAnalysis) this._viewshedAnalysis.attachedViewshed.showGridLine = showGridLine;
|
|
298
|
+
}
|
|
299
|
+
|
|
300
|
+
}
|
|
255
301
|
// EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
|
|
256
302
|
var client_icons_vue_ = __webpack_require__(348);
|
|
257
303
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
258
304
|
var util_ = __webpack_require__(9519);
|
|
305
|
+
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
306
|
+
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
259
307
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/viewshedanalysis/ViewshedAnalysis.vue?vue&type=script&setup=true&lang=js
|
|
260
308
|
|
|
261
309
|
const _hoisted_1 = {
|
|
@@ -269,6 +317,7 @@ const _hoisted_2 = {
|
|
|
269
317
|
|
|
270
318
|
|
|
271
319
|
|
|
320
|
+
|
|
272
321
|
const __default__ = {
|
|
273
322
|
name: "Kq3dViewshedAnalysis"
|
|
274
323
|
};
|
|
@@ -355,7 +404,17 @@ const __default__ = {
|
|
|
355
404
|
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
356
405
|
|
|
357
406
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
358
|
-
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
407
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
|
|
408
|
+
|
|
409
|
+
let {
|
|
410
|
+
locale,
|
|
411
|
+
messages
|
|
412
|
+
} = (0,vue_i18n_cjs_js_.useI18n)();
|
|
413
|
+
let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
414
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
415
|
+
language.value = messages.value[newVal]["webgl"];
|
|
416
|
+
headerTempTitle.value = language.value.viewshedAnalysis;
|
|
417
|
+
});
|
|
359
418
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
360
419
|
(0,util_.updatePosition)(boxRef.value, props);
|
|
361
420
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
@@ -369,8 +428,7 @@ const __default__ = {
|
|
|
369
428
|
|
|
370
429
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
371
430
|
if (scenceView) {
|
|
372
|
-
|
|
373
|
-
viewModel = new ViewshedAnalysisViewModel/* default */.Z(scenceView, {
|
|
431
|
+
viewModel = new ViewshedAnalysisViewModel(scenceView, {
|
|
374
432
|
offsetHeight: formItem.offsetHeight,
|
|
375
433
|
fovV: formItem.fovV,
|
|
376
434
|
fovH: formItem.fovH,
|
|
@@ -388,7 +446,7 @@ const __default__ = {
|
|
|
388
446
|
const watchCreateHeaderTemp = () => {
|
|
389
447
|
if (props.showHeaderTemp) {
|
|
390
448
|
// 生成headerTemp
|
|
391
|
-
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
449
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
392
450
|
}
|
|
393
451
|
};
|
|
394
452
|
|
package/weathereffect/index.js
CHANGED
|
@@ -9,6 +9,13 @@ module.exports = require("@kq_npm/client_icons_vue");
|
|
|
9
9
|
|
|
10
10
|
/***/ }),
|
|
11
11
|
|
|
12
|
+
/***/ 7080:
|
|
13
|
+
/***/ (function(module) {
|
|
14
|
+
|
|
15
|
+
module.exports = require("vue-i18n/dist/vue-i18n.cjs.js");
|
|
16
|
+
|
|
17
|
+
/***/ }),
|
|
18
|
+
|
|
12
19
|
/***/ 9702:
|
|
13
20
|
/***/ (function(module) {
|
|
14
21
|
|
|
@@ -329,6 +336,8 @@ class WeatherEffectViewModel {
|
|
|
329
336
|
}
|
|
330
337
|
// EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/util"
|
|
331
338
|
var util_ = __webpack_require__(9519);
|
|
339
|
+
// EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
|
|
340
|
+
var vue_i18n_cjs_js_ = __webpack_require__(7080);
|
|
332
341
|
;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/weathereffect/WeatherEffect.vue?vue&type=script&setup=true&lang=js
|
|
333
342
|
|
|
334
343
|
const _hoisted_1 = {
|
|
@@ -342,6 +351,7 @@ const _hoisted_2 = {
|
|
|
342
351
|
|
|
343
352
|
|
|
344
353
|
|
|
354
|
+
|
|
345
355
|
const __default__ = {
|
|
346
356
|
name: "Kq3dWeatherEffect"
|
|
347
357
|
};
|
|
@@ -413,7 +423,17 @@ const __default__ = {
|
|
|
413
423
|
let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
|
|
414
424
|
|
|
415
425
|
let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
416
|
-
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
|
|
426
|
+
let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 国际化
|
|
427
|
+
|
|
428
|
+
let {
|
|
429
|
+
locale,
|
|
430
|
+
messages
|
|
431
|
+
} = (0,vue_i18n_cjs_js_.useI18n)();
|
|
432
|
+
let headerTempTitle = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
|
|
433
|
+
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => locale.value, (newVal, oldVal) => {
|
|
434
|
+
language.value = messages.value[newVal]["webgl"];
|
|
435
|
+
headerTempTitle.value = language.value.weatherEffect;
|
|
436
|
+
});
|
|
417
437
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onMounted)(() => {
|
|
418
438
|
(0,util_.updatePosition)(boxRef.value, props);
|
|
419
439
|
(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.watch)(() => props.position, (newVal, oldVal) => {
|
|
@@ -427,7 +447,6 @@ const __default__ = {
|
|
|
427
447
|
|
|
428
448
|
gis_utils_.utils.getWebMap(null, scenceView => {
|
|
429
449
|
if (scenceView) {
|
|
430
|
-
language.value = scenceView._language;
|
|
431
450
|
viewModel = new WeatherEffectViewModel(scenceView);
|
|
432
451
|
}
|
|
433
452
|
});
|
|
@@ -439,7 +458,7 @@ const __default__ = {
|
|
|
439
458
|
const watchCreateHeaderTemp = () => {
|
|
440
459
|
if (props.showHeaderTemp) {
|
|
441
460
|
// 生成headerTemp
|
|
442
|
-
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef);
|
|
461
|
+
headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
|
|
443
462
|
}
|
|
444
463
|
}; //切换雨雪天气特效
|
|
445
464
|
|