@kq_npm/client3d_webgl_vue 4.5.29-beta → 4.5.31

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 (68) hide show
  1. package/adddata/index.js +519 -263
  2. package/adddata/style/adddata.css +1 -1
  3. package/aspectanalysis/index.js +201 -123
  4. package/baseterraingallery/index.js +123 -94
  5. package/baseterraingallery/style/baseterraingallery.css +1 -1
  6. package/boxclip/index.js +442 -249
  7. package/clientPrint/index.js +20228 -7467
  8. package/clientPrint/style/clientPrint.css +1 -1
  9. package/comparemap/index.js +243 -213
  10. package/compass/index.js +68 -74
  11. package/excavatefillanalysis/index.js +225 -143
  12. package/fixedzoomin/index.js +82 -72
  13. package/fixedzoomout/index.js +80 -71
  14. package/flight/index.js +371 -257
  15. package/flight/style/flight.css +1 -1
  16. package/floodanalysis/index.js +347 -199
  17. package/geologicalbodyanalysis/index.js +260 -166
  18. package/gpuspatialquery/index.js +359 -198
  19. package/hawkeye/index.js +100 -131
  20. package/headertemp/index.js +25 -14
  21. package/heatmap3d/index.js +678 -366
  22. package/heatmap3d/style/heatmap3d.css +1 -1
  23. package/index.js +19746 -6806
  24. package/isolineanalysis/index.js +1202 -504
  25. package/light/index.js +494 -349
  26. package/limitheightanalysis/index.js +223 -159
  27. package/measure/index.js +353 -198
  28. package/modelFlat/index.js +204 -167
  29. package/modelexcavate/index.js +191 -130
  30. package/modelfilter/index.js +271 -179
  31. package/modelprofileanalysis/index.js +316 -206
  32. package/modelselect/index.js +147 -142
  33. package/package.json +1 -1
  34. package/particleeffect/index.js +403 -225
  35. package/planeclip/index.js +300 -198
  36. package/resetview/index.js +52 -66
  37. package/roller/index.js +372 -304
  38. package/scaneffect/index.js +537 -230
  39. package/sceneadvancedtoimage/index.js +358 -205
  40. package/sceneadvancedtoimage/style/sceneadvancedtoimage.css +1 -1
  41. package/sceneapp/index.js +20228 -7467
  42. package/sceneset/index.js +864 -350
  43. package/scenetohdimage/index.js +297 -159
  44. package/scenetohdimage/style/scenetohdimage.css +1 -1
  45. package/sceneview/index.js +20228 -7467
  46. package/sceneview/style/sceneview.css +1 -1
  47. package/screenshot/index.js +301 -257
  48. package/shadowanalysis/index.js +405 -217
  49. package/sightlineanalysis/index.js +271 -183
  50. package/sightlineanalysis/style/divpoint.css +1 -1
  51. package/skylineanalysis/index.js +308 -160
  52. package/slopeanalysis/index.js +397 -227
  53. package/slopeaspectanalysis/index.js +485 -259
  54. package/statusbar/index.js +65 -88
  55. package/style.css +1 -1
  56. package/terrainoperation/index.js +237 -176
  57. package/terrainprofileanalysis/index.js +138 -120
  58. package/typhoontrac/index.js +1004 -234
  59. package/typhoontrac/style/typhoontrac.css +1 -1
  60. package/underground/index.js +61 -70
  61. package/videofusion/index.js +488 -265
  62. package/videoproject/index.js +490 -271
  63. package/viewshedanalysis/index.js +255 -151
  64. package/weathereffect/index.js +317 -166
  65. package/windyslicing/index.js +2198 -0
  66. package/windyslicing/style/index.js +3 -0
  67. package/windyslicing/style/windyslicing.css +1 -0
  68. package/wireframesketch/index.js +142 -110
@@ -2,11 +2,11 @@
2
2
  if(typeof exports === 'object' && typeof module === 'object')
3
3
  module.exports = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"), require("@kq_npm/client_common_vue/_utils/util"));
4
4
  else if(typeof define === 'function' && define.amd)
5
- define(["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js", "@kq_npm/client_common_vue/_utils/util"], factory);
6
- else {
7
- var a = typeof exports === 'object' ? factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"), require("@kq_npm/client_common_vue/_utils/util")) : factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/init.js"], root["@kq_npm/client_common_vue/_utils/util"]);
8
- for(var i in a) (typeof exports === 'object' ? exports : root)[i] = a[i];
9
- }
5
+ define("@kq_npm/client3d_webgl_vue", ["vue", "@kq_npm/client_common_vue/_utils/gis-utils", "@kq_npm/client_common_vue/init.js", "@kq_npm/client_common_vue/_utils/util"], factory);
6
+ else if(typeof exports === 'object')
7
+ exports["@kq_npm/client3d_webgl_vue"] = factory(require("vue"), require("@kq_npm/client_common_vue/_utils/gis-utils"), require("@kq_npm/client_common_vue/init.js"), require("@kq_npm/client_common_vue/_utils/util"));
8
+ else
9
+ root["@kq_npm/client3d_webgl_vue"] = factory(root["Vue"], root["@kq_npm/client_common_vue/_utils/gis-utils"], root["@kq_npm/client_common_vue/init.js"], root["@kq_npm/client_common_vue/_utils/util"]);
10
10
  })(this, function(__WEBPACK_EXTERNAL_MODULE__1895__, __WEBPACK_EXTERNAL_MODULE__7135__, __WEBPACK_EXTERNAL_MODULE__7997__, __WEBPACK_EXTERNAL_MODULE__3458__) {
11
11
  return /******/ (function() { // webpackBootstrap
12
12
  /******/ "use strict";
@@ -25,10 +25,12 @@ return /******/ (function() { // webpackBootstrap
25
25
  */
26
26
 
27
27
 
28
+
28
29
  element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage.install = (Vue, opts) => {
29
30
  _init__WEBPACK_IMPORTED_MODULE_1___default()(Vue, opts);
30
31
  Vue.component("KqMessage", element_plus_dist_index_full_js__WEBPACK_IMPORTED_MODULE_0__.ElMessage);
31
32
  };
33
+
32
34
  /* unused harmony default export */ var __WEBPACK_DEFAULT_EXPORT__ = ((/* unused pure expression or super */ null && (KqMessage)));
33
35
 
34
36
  /***/ }),
@@ -40,27 +42,6 @@ module.exports = require("@kq_npm/client_icons_vue");
40
42
 
41
43
  /***/ }),
42
44
 
43
- /***/ 4360:
44
- /***/ (function(module) {
45
-
46
- module.exports = require("core-js/modules/web.url-search-params.delete.js");
47
-
48
- /***/ }),
49
-
50
- /***/ 8824:
51
- /***/ (function(module) {
52
-
53
- module.exports = require("core-js/modules/web.url-search-params.has.js");
54
-
55
- /***/ }),
56
-
57
- /***/ 2936:
58
- /***/ (function(module) {
59
-
60
- module.exports = require("core-js/modules/web.url-search-params.size.js");
61
-
62
- /***/ }),
63
-
64
45
  /***/ 9389:
65
46
  /***/ (function(module) {
66
47
 
@@ -103,59 +84,27 @@ module.exports = __WEBPACK_EXTERNAL_MODULE__1895__;
103
84
 
104
85
  /***/ }),
105
86
 
106
- /***/ 5301:
87
+ /***/ 8270:
107
88
  /***/ (function(__unused_webpack___webpack_module__, __webpack_exports__, __webpack_require__) {
108
89
 
109
-
110
- // EXPORTS
111
- __webpack_require__.d(__webpack_exports__, {
112
- "Z": function() { return /* binding */ _defineProperty; }
113
- });
114
-
115
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/typeof.js
116
- function _typeof(o) {
117
- "@babel/helpers - typeof";
118
-
119
- return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) {
120
- return typeof o;
121
- } : function (o) {
122
- return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o;
123
- }, _typeof(o);
124
- }
125
-
126
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPrimitive.js
127
-
128
- function toPrimitive(t, r) {
129
- if ("object" != _typeof(t) || !t) return t;
130
- var e = t[Symbol.toPrimitive];
131
- if (void 0 !== e) {
132
- var i = e.call(t, r || "default");
133
- if ("object" != _typeof(i)) return i;
134
- throw new TypeError("@@toPrimitive must return a primitive value.");
90
+ /* harmony export */ __webpack_require__.d(__webpack_exports__, {
91
+ /* harmony export */ "Z": function() { return /* binding */ _defineProperty; }
92
+ /* harmony export */ });
93
+ function _defineProperty(obj, key, value) {
94
+ if (key in obj) {
95
+ Object.defineProperty(obj, key, {
96
+ value: value,
97
+ enumerable: true,
98
+ configurable: true,
99
+ writable: true
100
+ });
101
+ } else {
102
+ obj[key] = value;
135
103
  }
136
- return ("string" === r ? String : Number)(t);
137
- }
138
-
139
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/toPropertyKey.js
140
-
141
-
142
- function toPropertyKey(t) {
143
- var i = toPrimitive(t, "string");
144
- return "symbol" == _typeof(i) ? i : i + "";
145
- }
146
-
147
- ;// CONCATENATED MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
148
104
 
149
- function _defineProperty(e, r, t) {
150
- return (r = toPropertyKey(r)) in e ? Object.defineProperty(e, r, {
151
- value: t,
152
- enumerable: !0,
153
- configurable: !0,
154
- writable: !0
155
- }) : e[r] = t, e;
105
+ return obj;
156
106
  }
157
107
 
158
-
159
108
  /***/ })
160
109
 
161
110
  /******/ });
@@ -238,22 +187,17 @@ __webpack_require__.d(__webpack_exports__, {
238
187
  "default": function() { return /* reexport */ TyphoonTrac; }
239
188
  });
240
189
 
241
- // EXTERNAL MODULE: external "core-js/modules/web.url-search-params.delete.js"
242
- var web_url_search_params_delete_js_ = __webpack_require__(4360);
243
- // EXTERNAL MODULE: external "core-js/modules/web.url-search-params.has.js"
244
- var web_url_search_params_has_js_ = __webpack_require__(8824);
245
- // EXTERNAL MODULE: external "core-js/modules/web.url-search-params.size.js"
246
- var web_url_search_params_size_js_ = __webpack_require__(2936);
247
190
  // EXTERNAL MODULE: external {"root":"Vue","commonjs":"vue","commonjs2":"vue","amd":"vue"}
248
191
  var external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_ = __webpack_require__(1895);
249
192
  // EXTERNAL MODULE: external "@kq_npm/client_common_vue/_utils/gis-utils"
250
193
  var gis_utils_ = __webpack_require__(7135);
251
- // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js + 3 modules
252
- var defineProperty = __webpack_require__(5301);
194
+ // EXTERNAL MODULE: ./node_modules/@babel/runtime/helpers/esm/defineProperty.js
195
+ var defineProperty = __webpack_require__(8270);
253
196
  // EXTERNAL MODULE: ./src/common/_ui/message/index.js
254
197
  var message = __webpack_require__(1349);
255
198
  ;// CONCATENATED MODULE: ./src/webgl/typhoontrac/TyphoonTracViewModel.js
256
199
 
200
+
257
201
  /*
258
202
  * Copyright (C) 2019 KQ GEO Technologies Co., Ltd.
259
203
  * All rights reserved.
@@ -261,16 +205,431 @@ var message = __webpack_require__(1349);
261
205
 
262
206
  class TyphoonTracViewModel {
263
207
  // 三维viewer对象
264
- constructor(scenceView, option) {
208
+ constructor(scenceView) {
265
209
  (0,defineProperty/* default */.Z)(this, "_viewer", null);
210
+
211
+ (0,defineProperty/* default */.Z)(this, "_language", null);
212
+
213
+ (0,defineProperty/* default */.Z)(this, "_curTyphoon", []);
214
+
215
+ (0,defineProperty/* default */.Z)(this, "currentRow", null);
216
+
217
+ (0,defineProperty/* default */.Z)(this, "divPoint", null);
218
+
219
+ (0,defineProperty/* default */.Z)(this, "eventListener", null);
220
+
221
+ (0,defineProperty/* default */.Z)(this, "eventListener2", null);
222
+
266
223
  this._viewer = scenceView._viewer;
224
+ this._language = scenceView._language;
225
+ this._viewer.postProcessStages.fxaa.enabled = true; // 开启深度检测
226
+
227
+ this._viewer.scene.globe.depthTestAgainstTerrain = true;
228
+ } // 更新语言
229
+
230
+
231
+ changeLanguage(val) {
232
+ this._language = val;
233
+ } // 控制台风显示
234
+
235
+
236
+ createTyphoonPath(row, play = false) {
237
+ let that = this;
238
+
239
+ if (this._curTyphoon[row.tfid]) {
240
+ this._curTyphoon[row.tfid].setVisible(row.show);
241
+
242
+ row.show && this._curTyphoon[row.tfid].flyTo();
243
+ } else {
244
+ let res = Object.assign({}, row);
245
+ this._curTyphoon[row.tfid] = new Cesium.Kq3dTyphoon(this._viewer, {
246
+ data: res
247
+ });
248
+
249
+ this._curTyphoon[row.tfid].flyTo();
250
+
251
+ this.eventListener = function (res) {
252
+ if (res && res.data) {
253
+ if (that._curTyphoon[row.tfid].divPoint) {
254
+ that._curTyphoon[row.tfid].divPoint.destroy();
255
+
256
+ that._curTyphoon[row.tfid].divPoint = null;
257
+ }
258
+
259
+ that.createInfoDivPoint(that.getDivPointData(res.data));
260
+ } else {
261
+ //清除信息
262
+ if (that.divPoint) {
263
+ that.divPoint.destroy();
264
+ that.divPoint = null;
265
+ }
266
+ }
267
+ };
268
+
269
+ this.eventListener2 = function (res) {
270
+ if (res && res.data) {
271
+ if (that._curTyphoon[row.tfid] && !that._curTyphoon[row.tfid].isPlaying) {
272
+ that.createInfoPlayDivPoint(that.getDivPointData(res.data));
273
+ row.showPlayVis = false;
274
+ } else {
275
+ if (that._curTyphoon[row.tfid].divPoint) {
276
+ that._curTyphoon[row.tfid].divPoint.destroy();
277
+
278
+ that._curTyphoon[row.tfid].divPoint = null;
279
+ }
280
+ }
281
+ }
282
+ };
283
+
284
+ let hoverEvent = this._curTyphoon[row.tfid].getHoverEvent();
285
+
286
+ let playEvent = this._curTyphoon[row.tfid].getPlayEvent();
287
+
288
+ if (hoverEvent) {
289
+ hoverEvent.addEventListener(this.eventListener);
290
+ }
291
+
292
+ if (playEvent) {
293
+ playEvent.addEventListener(this.eventListener2);
294
+ }
295
+ }
296
+
297
+ if (row.show) {
298
+ if (play) {
299
+ if (this.currentRow && this.currentRow.tfid && this._curTyphoon[this.currentRow.tfid] && this._curTyphoon[this.currentRow.tfid].stop) {
300
+ this._curTyphoon[this.currentRow.tfid].stop();
301
+ }
302
+
303
+ this._curTyphoon[row.tfid].start();
304
+ }
305
+ }
306
+
307
+ this.currentRow = row;
308
+ } // 获取
309
+
310
+
311
+ getDivPointData(pointInfo) {
312
+ if (pointInfo.radius7) pointInfo.radius7Arr = pointInfo.radius7.split('|');
313
+ if (pointInfo.radius10) pointInfo.radius10Arr = pointInfo.radius10.split('|');
314
+ if (pointInfo.radius12) pointInfo.radius12Arr = pointInfo.radius12.split('|');
315
+ return pointInfo;
316
+ }
317
+
318
+ // 创建台风属性弹框
319
+ createInfoPlayDivPoint(data) {
320
+ data = Object.assign(data, this.currentRow);
321
+
322
+ if (this._curTyphoon[data.tfid].divPoint) {
323
+ this._curTyphoon[data.tfid].divPoint.destroy();
324
+
325
+ this._curTyphoon[data.tfid].divPoint = null;
326
+ }
327
+
328
+ let htmlObj = this.createHtml(data);
329
+ this._curTyphoon[data.tfid].divPoint = new Cesium.Kq3dHtmlTag(this._viewer, {
330
+ html: htmlObj.html,
331
+ position: Cesium.Cartesian3.fromDegrees(Number(data.fLongitude), Number(data.fLatitude)),
332
+ anchor: [-140, htmlObj.anchorY],
333
+ noEvent: false
334
+ });
335
+ }
336
+
337
+ //点击展示详细信息
338
+ rowClickPath(index, row) {
339
+ if (!this._curTyphoon[row.tfid]) {
340
+ row.show = true;
341
+ this.createTyphoonPath(row);
342
+ }
343
+
344
+ setTimeout(() => {
345
+ this._curTyphoon[row.tfid].showPoint(index);
346
+
347
+ this._curTyphoon[row.tfid].flyToPoint(index);
348
+
349
+ this.createInfoDivPoint(this.getDivPointData(this._curTyphoon[row.tfid].positions[index]));
350
+ }, 500);
351
+ }
352
+
353
+ // 创建浮动弹框属性
354
+ createInfoDivPoint(data) {
355
+ if (this.divPoint) {
356
+ this.divPoint.destroy();
357
+ this.divPoint = null;
358
+ }
359
+
360
+ this._curTyphoon.forEach(element => {
361
+ if (element._data && data.name === element._data.name) {
362
+ data = Object.assign(data, {
363
+ tfid: element._data.tfid
364
+ });
365
+ return;
366
+ }
367
+ });
368
+
369
+ if (!data.fLongitude || !data.fLatitude) return;
370
+ let htmlObj = this.createHtml(data);
371
+ this.divPoint = new Cesium.Kq3dHtmlTag(this._viewer, {
372
+ html: htmlObj.html,
373
+ position: Cesium.Cartesian3.fromDegrees(Number(data.fLongitude), Number(data.fLatitude)),
374
+ anchor: [-140, htmlObj.anchorY]
375
+ });
376
+ }
377
+
378
+ // 创建html弹框内容
379
+ createHtml(data) {
380
+ let anchorY = -215;
381
+ let html = `<div class='kq3d-typhoon-trac-Info'>
382
+ <div style='background-color:var(--kq-bg-color); border-radius: 8px;'>
383
+ <div class='Info-title'>
384
+ <span class='Info-title-text'>${data.tfid + data.name}(${data.enname})</span>
385
+ </div>
386
+ <a class='infoClose' href='javascript:void(0)' onclick='document.getElementsByClassName("kq3d-typhoon-trac-Info")[0].style.display="none"'><span>×</span></a>
387
+ </div><ul>
388
+ <li><span>${this._language.centralPosition}</span><span>${data.fLongitude}°&nbsp;/&nbsp;${data.fLatitude}°</span></li>
389
+ <li><span>${this._language.windSpeedLabel}</span><span>${data.speed || '-'}&nbsp;${this._language.windSpeedUnit},</span><span class='strong'>${data.power + this._language.windForceUnit}(${data.strong})</span></li>
390
+ <li><span>${this._language.centralPressure}</span><span>${data.pressure}&nbsp;${this._language.atmosphericPressureUnit}</span></li>
391
+ <li><span>${this._language.movementSpeedTowards}</span><span>${(data.movespeed || '-') + this._language.movingDirectionUnit},${data.movedirection || '-'}</span></li>
392
+ <li><span>${this._language.currentTime}</span><span>${this.formatDate(data.time)}</span></li>
393
+ <table><tr>
394
+ <th class='head'>${this._language['windRadius']}</th>
395
+ <th class='head'>${this._language.northeast}</th>
396
+ <th class='head'>${this._language.southeast}</th>
397
+ <th class='head'>${this._language.southwest}</th>
398
+ <th class='head'>${this._language.northwest}</th>
399
+ </tr>`;
400
+
401
+ if (data.radius7Arr) {
402
+ html += `<tr>
403
+ <th>${this._language.sevenLevels}</th>
404
+ <th class='flnumber'>${data.radius7Arr[0]}</th>
405
+ <th class='flnumber'>${data.radius7Arr[1]}</th>
406
+ <th class='flnumber'>${data.radius7Arr[2]}</th>
407
+ <th class='flnumber'>${data.radius7Arr[3]}</th>
408
+ </tr>`;
409
+ anchorY -= 23;
410
+ }
411
+
412
+ if (data.radius10Arr) {
413
+ html += `<tr>
414
+ <th>${this._language.tenLevels}</th>
415
+ <th class='flnumber'>${data.radius10Arr[0]}</th>
416
+ <th class='flnumber'>${data.radius10Arr[1]}</th>
417
+ <th class='flnumber'>${data.radius10Arr[2]}</th>
418
+ <th class='flnumber'>${data.radius10Arr[3]}</th>
419
+ </tr>`;
420
+ anchorY -= 23;
421
+ }
422
+
423
+ if (data.radius12Arr) {
424
+ html += `<tr>
425
+ <th>${this._language.twelveLevels}</th>
426
+ <th class='flnumber'>${data.radius12Arr[0]}</th>
427
+ <th class='flnumber'>${data.radius12Arr[1]}</th>
428
+ <th class='flnumber'>${data.radius12Arr[2]}</th>
429
+ <th class='flnumber'>${data.radius12Arr[3]}</th>
430
+ </tr>`;
431
+ anchorY -= 32;
432
+ }
433
+
434
+ html += `</table></ul><div class='triangle'><div></div></div></div>`;
435
+ return {
436
+ html: this.sanitize(html),
437
+ anchorY: anchorY
438
+ };
439
+ } // 动态插入时进行字符过滤
440
+
441
+
442
+ sanitize(text) {
443
+ return text.replace(/[\u200B-\u200D\uFEFF]/g, "") // 清除零宽字符
444
+ .replace(/[“”]/g, ""); // 主动过滤引号
445
+ } // 日期矫正
446
+
447
+
448
+ formatDate(date = new Date(), format = 'datetime', isPad = true) {
449
+ if (!(date instanceof Date)) {
450
+ date = new Date(date);
451
+ }
452
+
453
+ if (format === 'date') {
454
+ format = 'YYYY-MM-DD';
455
+ } else if (format === 'datetime') {
456
+ format = 'YYYY-MM-DD hh:mm:ss';
457
+ }
458
+
459
+ const weeks = ['日', '一', '二', '三', '四', '五', '六'];
460
+ const dateFormats = {
461
+ YYYY: date.getFullYear(),
462
+ MM: (date.getMonth() + 1).toString().padStart(isPad && 2, '0'),
463
+ DD: date.getDate().toString().padStart(isPad && 2, '0'),
464
+ hh: date.getHours().toString().padStart(isPad && 2, '0'),
465
+ mm: date.getMinutes().toString().padStart(isPad && 2, '0'),
466
+ ss: date.getSeconds().toString().padStart(isPad && 2, '0'),
467
+ W: weeks[date.getDay()]
468
+ };
469
+ return Object.keys(dateFormats).reduce((result, item) => result.replaceAll(item, dateFormats[item]), format);
470
+ }
471
+
472
+ // 停止播放
473
+ stopPlayTyphoonTrac(row) {
474
+ if (this._curTyphoon[row.tfid]) this._curTyphoon[row.tfid].stop();
475
+ } // 暂停播放
476
+
477
+
478
+ pausePlayTyphoonTrac(val) {
479
+ if (this._curTyphoon[this.currentRow.tfid]) this._curTyphoon[this.currentRow.tfid].flyTo();
480
+
481
+ if (val) {
482
+ this._viewer.clock.shouldAnimate = true;
483
+ } else {
484
+ this._viewer.clock.shouldAnimate = false;
485
+ }
486
+ } // 设置时间流速
487
+
488
+
489
+ setMultiplier(val) {
490
+ window.viewer.clock.multiplier = val || 1;
491
+ } //警戒线
492
+
493
+
494
+ createWarningLine() {
495
+ //24小时警戒线
496
+ this.warningLine_24 = this._viewer.entities.add({
497
+ position: Cesium.Cartesian3.fromDegrees(127, 34),
498
+ polyline: {
499
+ positions: Cesium.Cartesian3.fromDegreesArray([127, 34, 127, 22, 119, 18, 119, 11, 113, 4.5, 105, 0]),
500
+ width: 2,
501
+ material: Cesium.Color.fromCssColorString('#828314'),
502
+ clampToGround: true
503
+ },
504
+ label: {
505
+ text: '24小时警戒线',
506
+ color: Cesium.Color.fromCssColorString('#828314'),
507
+ horizontalOrigin: Cesium.HorizontalOrigin.CENTER,
508
+ verticalOrigin: Cesium.VerticalOrigin.TOP,
509
+ scaleByDistance: new Cesium.NearFarScalar(0, 1, 12000, 1),
510
+ distanceDisplayCondition: new Cesium.DistanceDisplayCondition(0, 100000),
511
+ heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
512
+ disableDepthTestDistance: Number.POSITIVE_INFINITY
513
+ }
514
+ });
515
+ this.warningText_24 = this._viewer.entities.add({
516
+ rectangle: {
517
+ coordinates: Cesium.Rectangle.fromDegrees(124.81268223770111, 28.97726827231024, 129.27365416588438, 29.506550516414443),
518
+ classificationType: Cesium.ClassificationType.BOTH,
519
+ material: new Cesium.Kq3dTextMaterial({
520
+ text: '24小时警戒线',
521
+ textStyles: {
522
+ font: "80px sans-serif",
523
+ fill: true,
524
+ fillColor: Cesium.Color.fromCssColorString('#828314'),
525
+ stroke: false,
526
+ backgroundColor: new Cesium.Color(0, 0, 0, 0),
527
+ padding: 5
528
+ }
529
+ }),
530
+ rotation: Cesium.Math.toRadians(90),
531
+ stRotation: Cesium.Math.toRadians(90)
532
+ }
533
+ }); // 48小时警戒线
534
+
535
+ this.warningLine_48 = this._viewer.entities.add({
536
+ polyline: {
537
+ positions: Cesium.Cartesian3.fromDegreesArray([132, 34, 132, 22, 119, 0, 105, 0]),
538
+ width: 2,
539
+ material: new Cesium.PolylineDashMaterialProperty({
540
+ color: new Cesium.Color(0, 0, 0, 0),
541
+ gapColor: Cesium.Color.fromCssColorString('#4dba3d'),
542
+ dashLength: 16,
543
+ dashPattern: 255
544
+ }),
545
+ clampToGround: true
546
+ }
547
+ });
548
+ this.warningText_48 = this._viewer.entities.add({
549
+ rectangle: {
550
+ coordinates: Cesium.Rectangle.fromDegrees(130.11221856757763, 29.95719074491648, 134.07046985436628, 30.639828156283777),
551
+ classificationType: Cesium.ClassificationType.BOTH,
552
+ material: new Cesium.Kq3dTextMaterial({
553
+ text: '48小时警戒线',
554
+ textStyles: {
555
+ font: "60px sans-serif",
556
+ fill: true,
557
+ fillColor: Cesium.Color.fromCssColorString('#4dba3d'),
558
+ stroke: false,
559
+ backgroundColor: new Cesium.Color(0, 0, 0, 0),
560
+ padding: 5
561
+ }
562
+ }),
563
+ rotation: Cesium.Math.toRadians(90),
564
+ stRotation: Cesium.Math.toRadians(90)
565
+ }
566
+ });
567
+ }
568
+
569
+ remove(tfid) {
570
+ if (this._curTyphoon[tfid] && this._curTyphoon[tfid].getHoverEvent) {
571
+ let hishoverEvent = this._curTyphoon[tfid].getHoverEvent();
572
+
573
+ hishoverEvent && hishoverEvent.removeEventListener(this.eventListener);
574
+ }
575
+
576
+ if (this._curTyphoon[tfid] && this._curTyphoon[tfid].getPlayEvent) {
577
+ let hisplayEvent = this._curTyphoon[tfid].getPlayEvent();
578
+
579
+ hisplayEvent && hisplayEvent.removeEventListener(this.eventListener2);
580
+ }
581
+
582
+ if (this._curTyphoon[tfid] && this._curTyphoon[tfid].divPoint) {
583
+ this._curTyphoon[tfid].divPoint.destroy();
584
+
585
+ this._curTyphoon[tfid].divPoint = null;
586
+ }
587
+
588
+ if (this._curTyphoon[tfid] && this._curTyphoon[tfid].stop) {
589
+ this._curTyphoon[tfid].stop();
590
+ }
591
+
592
+ if (this._curTyphoon[tfid] && this._curTyphoon[tfid].destroy) {
593
+ this._curTyphoon[tfid].destroy();
594
+ }
595
+
596
+ this._curTyphoon[tfid] = null;
597
+ }
598
+
599
+ clearDivPoint(tfid) {
600
+ if (this._curTyphoon[tfid] && this._curTyphoon[tfid].divPoint) {
601
+ this._curTyphoon[tfid].divPoint.destroy();
602
+
603
+ this._curTyphoon[tfid].divPoint = null;
604
+ }
605
+
606
+ if (this.divPoint) {
607
+ this.divPoint.destroy();
608
+ this.divPoint = null;
609
+ }
610
+ } //清除
611
+
612
+
613
+ clear() {
614
+ if (this.divPoint) {
615
+ this.divPoint.destroy();
616
+ this.divPoint = null;
617
+ }
618
+
619
+ for (let tfid in this._curTyphoon) {
620
+ this.remove(tfid);
621
+ }
622
+ } //销毁
623
+
624
+
625
+ destroy() {
626
+ this.warningLine_48 && this._viewer.entities.remove(this.warningLine_48);
627
+ this.warningText_48 && this._viewer.entities.remove(this.warningText_48);
628
+ this.warningLine_24 && this._viewer.entities.remove(this.warningLine_24);
629
+ this.warningText_24 && this._viewer.entities.remove(this.warningText_24);
630
+ this.clear();
267
631
  }
268
- start() {}
269
- //清除
270
- clear() {}
271
632
 
272
- //销毁
273
- destroy() {}
274
633
  }
275
634
  // EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
276
635
  var client_icons_vue_ = __webpack_require__(348);
@@ -278,16 +637,16 @@ var client_icons_vue_ = __webpack_require__(348);
278
637
  var util_ = __webpack_require__(3458);
279
638
  // EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
280
639
  var vue_i18n_cjs_js_ = __webpack_require__(7080);
281
- ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0]!./src/webgl/typhoontrac/TyphoonTrac.vue?vue&type=script&setup=true&lang=js
282
-
283
-
284
-
640
+ ;// CONCATENATED MODULE: ./node_modules/babel-loader/lib/index.js!./node_modules/vue-loader/dist/index.js??ruleSet[0].use[0]!./src/webgl/typhoontrac/TyphoonTrac.vue?vue&type=script&setup=true&lang=js
285
641
 
286
642
  const _hoisted_1 = {
287
643
  class: "kq3d-typhoon-trac-box"
288
644
  };
289
645
  const _hoisted_2 = {
290
- class: "kq3d-typhoon-trac-span"
646
+ class: "flex"
647
+ };
648
+ const _hoisted_3 = {
649
+ class: "flex"
291
650
  };
292
651
 
293
652
 
@@ -306,11 +665,20 @@ const __default__ = {
306
665
  control: "object",
307
666
  description: "设置参数"
308
667
  },
668
+ // 外部接口获取台风轨迹列表
669
+ getTyphoonTracListByApi: {
670
+ type: Function
671
+ },
672
+ // 外部接口获取台风轨迹详情
673
+ getDataInfoByApi: {
674
+ type: Function
675
+ },
309
676
  // 是否显示阴影效果
310
677
  showShadow: {
311
678
  type: Boolean,
312
679
  default: true
313
680
  },
681
+
314
682
  /**
315
683
  * 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
316
684
  */
@@ -332,7 +700,7 @@ const __default__ = {
332
700
  // HeaderTemp图标
333
701
  headerTempIcon: {
334
702
  type: [Object, String],
335
- default: client_icons_vue_.IconProfileAnalysis
703
+ default: client_icons_vue_.IconTyphoonTrack
336
704
  },
337
705
  // HeaderTemp Title&Icon的位置
338
706
  isRight: {
@@ -340,30 +708,34 @@ const __default__ = {
340
708
  default: true
341
709
  }
342
710
  },
711
+
343
712
  setup(__props, {
344
713
  expose: __expose
345
714
  }) {
346
715
  const props = __props;
347
716
  const {
348
717
  proxy
349
- } = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
350
- //语言
718
+ } = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)(); //语言
719
+
351
720
  let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
352
721
  let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
353
722
  let viewModel = null;
354
723
  let ref_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
355
-
356
- // 获取组件传参
357
-
724
+ let currentRow = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
725
+ let currentPlay = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
726
+ let showInfo = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
727
+ let loading = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false); // 获取组件传参
358
728
  // 组件容器Ref
359
- let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
360
729
 
361
- // 生成组件默认header
730
+ let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
731
+
362
732
  let headerTemp = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
363
- let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
364
- // 属性值
365
- let tableData = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]);
366
- // 表格头样式
733
+ let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 属性值
734
+
735
+ let tableData = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]); // 路径信息
736
+
737
+ let typhoonTracData = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]); // 表格头样式
738
+
367
739
  let headClass = args => {
368
740
  return {
369
741
  "background-color": "var(--kq-fill-color-light)",
@@ -371,11 +743,53 @@ const __default__ = {
371
743
  "font-size": "14px"
372
744
  };
373
745
  };
746
+
374
747
  let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
375
- typhoonTracPath: props.settingParams && props.settingParams.typhoonTracPath || ""
748
+ collapseValue: props.settingParams?.collapseValue ?? "list",
749
+ // 折叠组件是否折叠,list:台风列表
750
+ showUpload: props.settingParams?.showUpload ?? true,
751
+ // 是否显示离线数据功能
752
+ typhoonTracPath: props.settingParams?.typhoonTracPath ?? "",
753
+ // 离线数据文件路径
754
+ showWarningLine: props.settingParams?.showWarningLine ?? true //
755
+
376
756
  });
757
+ const strongType = [{
758
+ name: language.value.tropicalPressure,
759
+ color: "#08F6A0, #00CF63"
760
+ }, {
761
+ name: language.value.tropicalStorm,
762
+ color: "#30AEFF, #007AEC"
763
+ }, {
764
+ name: language.value.severeTropicalStorm,
765
+ color: "#F3F81E, #E8CC00 "
766
+ }, {
767
+ name: language.value.typhoonName,
768
+ color: "#FFBE00, #FC8C00"
769
+ }, {
770
+ name: language.value.severeTyphoon,
771
+ color: "#FF84F9, #FF3EFF"
772
+ }, {
773
+ name: language.value.superTyphoon,
774
+ color: "#FF636F, #FF0016"
775
+ }];
776
+ const lineList = [{
777
+ name: language.value.chinaTitle,
778
+ color: "#ff3c4e"
779
+ }, {
780
+ name: language.value.chinaHKTitle,
781
+ color: "#febd00"
782
+ }, {
783
+ name: language.value.chinaTaiwanTitle,
784
+ color: "#ff00fe"
785
+ }, {
786
+ name: language.value.americaTtile,
787
+ color: "#04faf7"
788
+ }, {
789
+ name: language.value.japanTitle,
790
+ color: "#24bc00"
791
+ }]; // 国际化
377
792
 
378
- // 国际化
379
793
  let {
380
794
  locale,
381
795
  messages
@@ -400,68 +814,254 @@ const __default__ = {
400
814
  });
401
815
  currentLang.value = proxy.$i18n.locale; // 获取当前语言
402
816
  //父组件ScenceView初始化完成后执行
403
- gis_utils_.utils.getWebMap(null, scenceView => {
404
- if (scenceView) {
405
- viewModel = new TyphoonTracViewModel(scenceView);
406
- viewModel._language = language.value;
407
- }
817
+
818
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
819
+ gis_utils_.utils.getWebMap(props.mapTarget, scenceView => {
820
+ if (scenceView) {
821
+ viewModel = new TyphoonTracViewModel(scenceView);
822
+ viewModel._language = language.value;
823
+ formItem.typhoonTracPath && getDataByPath();
824
+
825
+ if (props.getTyphoonTracListByApi) {
826
+ loading.value = true;
827
+ props.getTyphoonTracListByApi(data => {
828
+ loading.value = false;
829
+ clear();
830
+ tableData.value = data;
831
+ });
832
+ }
833
+ }
834
+ });
408
835
  });
409
836
  });
410
-
411
837
  /**
412
838
  * @description 监听header生成
413
839
  */
840
+
414
841
  const watchCreateHeaderTemp = () => {
415
842
  if (props.showHeaderTemp) {
416
843
  // 生成headerTemp
417
844
  headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
418
845
  }
419
- };
420
- // 开始分析
421
- function startAnalysis() {
422
- viewModel && viewModel.start();
423
- }
424
- // 输入地址
846
+ }; // 输入地址
847
+
848
+
425
849
  function selectTyphoonTracPath() {
426
- viewModel && viewModel.selectTyphoonTracPath(formItem.typhoonTracPath);
427
- }
428
- // 选择文件
850
+ getDataByPath();
851
+ } // 选择文件
852
+
853
+
429
854
  function selectData(file) {
430
855
  let url = URL.createObjectURL(file.raw);
431
856
  formItem.typhoonTracPath = url;
432
- viewModel && viewModel.selectTyphoonTracPath(formItem.typhoonTracPath);
857
+ getDataByPath();
858
+ currentRow.value = {};
859
+ currentPlay.value = {};
860
+ formItem.collapseValue = "list";
861
+ }
862
+
863
+ function formatterFun(row) {
864
+ return formatDate(row.time);
865
+ } // 显示台风
866
+
867
+
868
+ async function showTyphoon(index, row) {
869
+ try {
870
+ await getDataInfoByApi(row); // 等待回调完成
871
+
872
+ row.show = !row.show;
873
+
874
+ if (!row.show) {
875
+ viewModel && viewModel.clearDivPoint(row.tfid);
876
+ setTracStop(index, row);
877
+ }
878
+
879
+ viewModel && viewModel.createTyphoonPath(row, false);
880
+ } catch (error) {
881
+ console.log("Failed to set data info:", error); // 可以添加错误处理逻辑,例如显示错误提示
882
+ }
883
+ }
884
+
885
+ async function setDatainfo(index, row) {
886
+ try {
887
+ await getDataInfoByApi(row);
888
+ row.showInfo = true;
889
+ formItem.collapseValue = "info";
890
+ currentRow.value = row;
891
+ typhoonTracData.value = row.points || [];
892
+ } catch (error) {
893
+ console.log("Failed to set data info:", error); // 可以添加错误处理逻辑,例如显示错误提示
894
+ }
895
+ }
896
+
897
+ async function getDataInfoByApi(row) {
898
+ // 条件判断提前返回
899
+ if (!props.getDataInfoByApi || row.getInfoVis) {
900
+ return;
901
+ }
902
+
903
+ loading.value = true;
904
+
905
+ try {
906
+ // 将回调函数转换为 Promise
907
+ await new Promise((resolve, reject) => {
908
+ props.getDataInfoByApi(row, data => {
909
+ try {
910
+ Object.assign(row, data);
911
+ row.getInfoVis = true;
912
+ resolve();
913
+ } catch (error) {
914
+ reject(error);
915
+ }
916
+ });
917
+ });
918
+ } finally {
919
+ loading.value = false;
920
+ }
433
921
  }
434
- // 定位
435
- function location(index, row) {}
436
- // 查看详情
437
- function getDatainfo(index, row) {}
438
- // 播放
439
- function setTracPlay(index, row) {}
440
- // 停止播放
441
- function setTracStop(index, row) {}
442
- // 清除
922
+ /**
923
+ * 日期格式化
924
+ * @param {Date | string | number} date 日期
925
+ * @param {string | 'date' | 'datetime'} format 格式(YYYY-MM-DD hh:mm:ss)
926
+ * @param {boolean} isPad 是否填补 0
927
+ * @example
928
+ */
929
+
930
+
931
+ function formatDate(date = new Date(), format = "datetime", isPad = true) {
932
+ if (!(date instanceof Date)) {
933
+ date = new Date(date);
934
+ }
935
+
936
+ if (format === "date") {
937
+ format = "YYYY-MM-DD";
938
+ } else if (format === "datetime") {
939
+ format = "YYYY-MM-DD hh:mm:ss";
940
+ }
941
+
942
+ const dateFormats = {
943
+ MM: (date.getMonth() + 1).toString().padStart(isPad && 2, "0"),
944
+ DD: date.getDate().toString().padStart(isPad && 2, "0"),
945
+ hh: date.getHours().toString().padStart(isPad && 2, "0"),
946
+ mm: date.getMinutes().toString().padStart(isPad && 2, "0"),
947
+ ss: date.getSeconds().toString().padStart(isPad && 2, "0")
948
+ };
949
+ return dateFormats.MM + "-" + dateFormats.DD + " " + dateFormats.hh + "时";
950
+ }
951
+
952
+ function tableCellClassName({
953
+ row,
954
+ column,
955
+ rowIndex,
956
+ columnIndex
957
+ }) {
958
+ //注意这里是解构
959
+ //利用单元格的 className 的回调方法,给行列索引赋值
960
+ row.index = rowIndex;
961
+ column.index = columnIndex;
962
+ }
963
+
964
+ function rowClickPath(row) {
965
+ viewModel && viewModel.clearDivPoint(currentRow.value.tfid);
966
+ if (!currentRow.value.show) currentRow.value.show = true;
967
+ if (currentRow.value.showPlayVis) setTracStop(row.index, currentRow.value);
968
+ viewModel && viewModel.rowClickPath(row.index, currentRow.value);
969
+ } // 播放
970
+
971
+
972
+ async function setTracPlay(index, row) {
973
+ try {
974
+ await getDataInfoByApi(row); // 等待回调完成
975
+
976
+ row.showPlayVis = true;
977
+ row.show = true;
978
+ currentPlay.value = row;
979
+ viewModel && viewModel.createTyphoonPath(row, true);
980
+ } catch (error) {
981
+ console.log("Failed to set data info:", error); // 可以添加错误处理逻辑,例如显示错误提示
982
+ }
983
+ } // 停止播放
984
+
985
+
986
+ function setTracStop(index, row) {
987
+ row.showPlayVis = false;
988
+ viewModel && viewModel.stopPlayTyphoonTrac(row);
989
+ } // 获取路径数据
990
+
991
+
992
+ function getDataByPath() {
993
+ if (formItem && formItem.typhoonTracPath) {
994
+ Cesium.Resource.fetchJson(formItem.typhoonTracPath).then(res => {
995
+ if (res) {
996
+ if (res.length === 0) {
997
+ KqMessage({
998
+ message: "features " + language.value.noDataMessage + "!",
999
+ type: "warning",
1000
+ duration: 2000
1001
+ });
1002
+ return;
1003
+ }
1004
+
1005
+ tableData.value = res;
1006
+ formItem.showWarningLine && viewModel && viewModel.createWarningLine();
1007
+ clear();
1008
+ }
1009
+ });
1010
+ } else {
1011
+ KqMessage({
1012
+ message: language.value.fileTypeMessage + "!",
1013
+ type: "warning",
1014
+ duration: 2000
1015
+ });
1016
+ return;
1017
+ }
1018
+ } // 更新台风数据
1019
+
1020
+
1021
+ function setTyphoonTracData(data) {
1022
+ if (data && data.length && data.length > 0) {
1023
+ clear();
1024
+ tableData.value = data;
1025
+ }
1026
+ }
1027
+
443
1028
  function clear() {
444
1029
  viewModel && viewModel.clear();
445
- }
1030
+ } // 销毁
1031
+
446
1032
 
447
- // 销毁
448
1033
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
449
1034
  viewModel && viewModel.destroy();
450
1035
  });
1036
+
451
1037
  __expose({
452
- startAnalysis,
453
- clear
1038
+ getDataByPath,
1039
+ setTyphoonTracData
454
1040
  });
1041
+
455
1042
  return (_ctx, _cache) => {
456
- const _component_kq_col = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-col");
457
- const _component_IconFolder2 = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("IconFolder2");
458
1043
  const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
1044
+
459
1045
  const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
1046
+
460
1047
  const _component_kq_upload = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-upload");
1048
+
461
1049
  const _component_kq_input = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input");
1050
+
462
1051
  const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
1052
+
1053
+ const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
1054
+
1055
+ const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
1056
+
463
1057
  const _component_kq_table_column = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-table-column");
1058
+
464
1059
  const _component_kq_table = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-table");
1060
+
1061
+ const _component_kq_collapse_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse-item");
1062
+
1063
+ const _component_kq_collapse = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse");
1064
+
465
1065
  return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)("section", {
466
1066
  class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-typhoon-trac", {
467
1067
  'kq-box-shadow': __props.showShadow
@@ -472,136 +1072,304 @@ const __default__ = {
472
1072
  key: 0,
473
1073
  ref_key: "headerTempRef",
474
1074
  ref: headerTempRef
475
- }, null, 512 /* NEED_PATCH */)) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
476
- class: "rowClass"
1075
+ }, null, 512
1076
+ /* NEED_PATCH */
1077
+ )) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", _hoisted_1, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).showUpload ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_row, {
1078
+ key: 0
477
1079
  }, {
478
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
479
- span: 7,
480
- class: "colClass"
1080
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form, {
1081
+ "label-width": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === '100px',
1082
+ "label-position": "left"
481
1083
  }, {
482
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", _hoisted_2, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).dataPath), 1 /* TEXT */)]),
483
- _: 1 /* STABLE */
484
- }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, {
485
- span: 17
486
- }, {
487
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_input, {
488
- modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).typhoonTracPath,
489
- "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).typhoonTracPath = $event),
490
- onChange: _cache[1] || (_cache[1] = $event => selectTyphoonTracPath()),
491
- placeholder: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).videoPathPlace
492
- }, {
493
- append: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_upload, {
494
- "on-change": selectData,
495
- "auto-upload": false,
496
- "show-file-list": false,
497
- accept: ".json"
1084
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
1085
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_form_item, {
1086
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).dataPath
498
1087
  }, {
499
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, null, {
500
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
501
- size: 16
1088
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
1089
+ style: {
1090
+ "display": "flex"
1091
+ }
1092
+ }, {
1093
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_input, {
1094
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).typhoonTracPath,
1095
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).typhoonTracPath = $event),
1096
+ onChange: _cache[1] || (_cache[1] = $event => selectTyphoonTracPath()),
1097
+ placeholder: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).videoPathPlace
502
1098
  }, {
503
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_IconFolder2)]),
504
- _: 1 /* STABLE */
505
- })]),
506
- _: 1 /* STABLE */
1099
+ append: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_upload, {
1100
+ "on-change": selectData,
1101
+ "auto-upload": false,
1102
+ "show-file-list": false,
1103
+ accept: ".json"
1104
+ }, {
1105
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, null, {
1106
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
1107
+ size: 16
1108
+ }, {
1109
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconFolder2))]),
1110
+ _: 1
1111
+ /* STABLE */
1112
+
1113
+ })]),
1114
+ _: 1
1115
+ /* STABLE */
1116
+
1117
+ })]),
1118
+ _: 1
1119
+ /* STABLE */
1120
+
1121
+ })]),
1122
+ _: 1
1123
+ /* STABLE */
1124
+
1125
+ }, 8
1126
+ /* PROPS */
1127
+ , ["modelValue", "placeholder"])]),
1128
+ _: 1
1129
+ /* STABLE */
1130
+
507
1131
  })]),
508
- _: 1 /* STABLE */
509
- })]),
510
- _: 1 /* STABLE */
511
- }, 8 /* PROPS */, ["modelValue", "placeholder"])]),
512
- _: 1 /* STABLE */
513
- })]),
514
- _: 1 /* STABLE */
515
- }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
516
- class: "rowClass"
1132
+ _: 1
1133
+ /* STABLE */
1134
+
1135
+ }, 8
1136
+ /* PROPS */
1137
+ , ["label"])]),
1138
+ _: 1
1139
+ /* STABLE */
1140
+
1141
+ })]),
1142
+ _: 1
1143
+ /* STABLE */
1144
+
1145
+ }, 8
1146
+ /* PROPS */
1147
+ , ["label-width"])]),
1148
+ _: 1
1149
+ /* STABLE */
1150
+
1151
+ })) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse, {
1152
+ "model-value": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).collapseValue
517
1153
  }, {
518
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_col, null, {
1154
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_collapse_item, {
1155
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonList,
1156
+ name: "list"
1157
+ }, {
519
1158
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table, {
520
1159
  border: "",
521
1160
  stripe: "",
1161
+ class: "listTable",
522
1162
  data: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(tableData),
523
- style: {
524
- "width": "100%",
525
- "height": "100%"
526
- },
527
- "cell-style": {
528
- padding: '8px 0'
529
- },
1163
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)([{
1164
+ "width": "100%"
1165
+ }, `height: ${(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(tableData).length === 0 ? 120 : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(tableData).length < 4 ? 40 + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(tableData).length * 40 : 200}px`]),
530
1166
  "header-cell-style": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headClass)
531
1167
  }, {
532
1168
  default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
533
1169
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonNumber,
534
1170
  prop: "tfid",
535
1171
  align: "center"
536
- }, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
1172
+ }, null, 8
1173
+ /* PROPS */
1174
+ , ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
537
1175
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonNameZh,
538
1176
  prop: "name",
539
1177
  align: "center"
540
- }, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
1178
+ }, null, 8
1179
+ /* PROPS */
1180
+ , ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
541
1181
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonNameEn,
542
1182
  prop: "enname",
543
1183
  align: "center"
544
- }, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
1184
+ }, null, 8
1185
+ /* PROPS */
1186
+ , ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
545
1187
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).operation,
546
1188
  align: "center"
547
1189
  }, {
548
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(scope => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
549
- onClick: $event => location(scope.$index, scope.row),
550
- title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).location
1190
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(scope => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
1191
+ size: 16,
1192
+ onClick: $event => showTyphoon(scope.$index, scope.row),
1193
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).location,
1194
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)(scope.row.show ? 'color:var(--kq-color-primary)' : ''),
1195
+ class: "iconClass",
1196
+ loading: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(loading)
551
1197
  }, {
552
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
553
- size: 16
554
- }, {
555
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconLocation))]),
556
- _: 1 /* STABLE */
557
- })]),
558
- _: 2 /* DYNAMIC */
559
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
560
- onClick: $event => getDatainfo(scope.$index, scope.row),
561
- title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonDetails
1198
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconLocation))]),
1199
+ _: 2
1200
+ /* DYNAMIC */
1201
+
1202
+ }, 1032
1203
+ /* PROPS, DYNAMIC_SLOTS */
1204
+ , ["onClick", "title", "style", "loading"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
1205
+ size: 16,
1206
+ onClick: $event => setDatainfo(scope.$index, scope.row),
1207
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonDetails,
1208
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)(scope.row.tfid === (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentRow).tfid ? 'color:var(--kq-color-primary)' : ''),
1209
+ class: "iconClass",
1210
+ loading: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(loading)
562
1211
  }, {
563
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
564
- size: 16
565
- }, {
566
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconDetails))]),
567
- _: 1 /* STABLE */
568
- })]),
569
- _: 2 /* DYNAMIC */
570
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
1212
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconDetails))]),
1213
+ _: 2
1214
+ /* DYNAMIC */
1215
+
1216
+ }, 1032
1217
+ /* PROPS, DYNAMIC_SLOTS */
1218
+ , ["onClick", "title", "style", "loading"]), !(scope.row.tfid === (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentPlay).tfid && scope.row.showPlayVis) ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_icon, {
1219
+ key: 0,
1220
+ size: 16,
571
1221
  onClick: $event => setTracPlay(scope.$index, scope.row),
572
- title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).play
1222
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).play,
1223
+ class: "iconClass",
1224
+ loading: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(loading)
573
1225
  }, {
574
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
575
- size: 16
576
- }, {
577
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconVideoPlay))]),
578
- _: 1 /* STABLE */
579
- })]),
580
- _: 2 /* DYNAMIC */
581
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_button, {
1226
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconVideoPlay))]),
1227
+ _: 2
1228
+ /* DYNAMIC */
1229
+
1230
+ }, 1032
1231
+ /* PROPS, DYNAMIC_SLOTS */
1232
+ , ["onClick", "title", "loading"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true), scope.row.tfid === (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentPlay).tfid && scope.row.showPlayVis ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_icon, {
1233
+ key: 1,
1234
+ size: 16,
582
1235
  onClick: $event => setTracStop(scope.$index, scope.row),
583
- title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).stop
1236
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).stop,
1237
+ style: {
1238
+ "color": "var(--kq-color-primary)"
1239
+ },
1240
+ class: "iconClass"
584
1241
  }, {
585
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
586
- size: 16
587
- }, {
588
- default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconVideoPlay))]),
589
- _: 1 /* STABLE */
590
- })]),
591
- _: 2 /* DYNAMIC */
592
- }, 1032 /* PROPS, DYNAMIC_SLOTS */, ["onClick", "title"])]),
593
- _: 1 /* STABLE */
594
- }, 8 /* PROPS */, ["label"])]),
595
- _: 1 /* STABLE */
596
- }, 8 /* PROPS */, ["data", "header-cell-style"])]),
597
- _: 1 /* STABLE */
598
- })]),
599
- _: 1 /* STABLE */
600
- }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, {
601
- class: "rowClass"
602
- })])], 2 /* CLASS */);
1242
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(client_icons_vue_.IconVideoPause))]),
1243
+ _: 2
1244
+ /* DYNAMIC */
1245
+
1246
+ }, 1032
1247
+ /* PROPS, DYNAMIC_SLOTS */
1248
+ , ["onClick", "title"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)]),
1249
+ _: 1
1250
+ /* STABLE */
1251
+
1252
+ }, 8
1253
+ /* PROPS */
1254
+ , ["label"])]),
1255
+ _: 1
1256
+ /* STABLE */
1257
+
1258
+ }, 8
1259
+ /* PROPS */
1260
+ , ["data", "style", "header-cell-style"])]),
1261
+ _: 1
1262
+ /* STABLE */
1263
+
1264
+ }, 8
1265
+ /* PROPS */
1266
+ , ["title"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentRow).showInfo ? ((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createBlock)(_component_kq_collapse_item, {
1267
+ key: 0,
1268
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentRow).tfid + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentRow).name + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonPath,
1269
+ name: "info",
1270
+ style: {
1271
+ "margin-top": "8px"
1272
+ }
1273
+ }, {
1274
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table, {
1275
+ border: "",
1276
+ stripe: "",
1277
+ class: "listTablePath",
1278
+ data: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(typhoonTracData),
1279
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)([{
1280
+ "width": "100%"
1281
+ }, `height: ${(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(typhoonTracData).length === 0 ? 120 : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(typhoonTracData).length < 4 ? 40 + (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(typhoonTracData).length * 40 : 200}px`]),
1282
+ onRowClick: rowClickPath,
1283
+ "cell-class-name": tableCellClassName,
1284
+ "header-cell-style": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headClass)
1285
+ }, {
1286
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
1287
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).time,
1288
+ prop: "time",
1289
+ align: "center",
1290
+ formatter: formatterFun
1291
+ }, null, 8
1292
+ /* PROPS */
1293
+ , ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
1294
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).windSpeed,
1295
+ prop: "speed",
1296
+ align: "center"
1297
+ }, null, 8
1298
+ /* PROPS */
1299
+ , ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
1300
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).movingDirection,
1301
+ prop: "movedirection",
1302
+ align: "center"
1303
+ }, null, 8
1304
+ /* PROPS */
1305
+ , ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
1306
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).strength,
1307
+ prop: "strong",
1308
+ align: "center"
1309
+ }, null, 8
1310
+ /* PROPS */
1311
+ , ["label"])]),
1312
+ _: 1
1313
+ /* STABLE */
1314
+
1315
+ }, 8
1316
+ /* PROPS */
1317
+ , ["data", "style", "header-cell-style"])]),
1318
+ _: 1
1319
+ /* STABLE */
1320
+
1321
+ }, 8
1322
+ /* PROPS */
1323
+ , ["title"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)]),
1324
+ _: 1
1325
+ /* STABLE */
1326
+
1327
+ }, 8
1328
+ /* PROPS */
1329
+ , ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
1330
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("ul", _hoisted_2, [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)(lineList, item => {
1331
+ return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("li", {
1332
+ key: item.name,
1333
+ class: "flex items-center mr-2"
1334
+ }, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
1335
+ class: "card mr-1",
1336
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)(`border-top: 2px dashed ${item.color}`)
1337
+ }, null, 4
1338
+ /* STYLE */
1339
+ ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(item.name), 1
1340
+ /* TEXT */
1341
+ )]);
1342
+ }), 64
1343
+ /* STABLE_FRAGMENT */
1344
+ ))])]),
1345
+ _: 1
1346
+ /* STABLE */
1347
+
1348
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
1349
+ default: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.withCtx)(() => [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("ul", _hoisted_3, [((0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.openBlock)(), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementBlock)(external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.Fragment, null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.renderList)(strongType, item => {
1350
+ return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("li", {
1351
+ key: item.name,
1352
+ class: "flex items-center mr-3"
1353
+ }, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
1354
+ class: "circle mr-1",
1355
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)(`background: linear-gradient(180deg, ${item.color})`)
1356
+ }, null, 4
1357
+ /* STYLE */
1358
+ ), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("span", null, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toDisplayString)(item.name), 1
1359
+ /* TEXT */
1360
+ )]);
1361
+ }), 64
1362
+ /* STABLE_FRAGMENT */
1363
+ ))])]),
1364
+ _: 1
1365
+ /* STABLE */
1366
+
1367
+ })])], 2
1368
+ /* CLASS */
1369
+ );
603
1370
  };
604
1371
  }
1372
+
605
1373
  }));
606
1374
  ;// CONCATENATED MODULE: ./src/webgl/typhoontrac/TyphoonTrac.vue?vue&type=script&setup=true&lang=js
607
1375
 
@@ -623,11 +1391,13 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
623
1391
 
624
1392
 
625
1393
 
1394
+
626
1395
  TyphoonTrac.install = (Vue, opts) => {
627
1396
  init_js_default()(Vue, opts);
628
1397
  Vue.component(TyphoonTrac.name, TyphoonTrac);
629
1398
  };
630
1399
 
1400
+
631
1401
  }();
632
1402
  /******/ return __webpack_exports__;
633
1403
  /******/ })()