@kq_npm/client3d_webgl_vue 4.5.29-beta → 4.5.30

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 +518 -262
  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 +27088 -14116
  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 +20310 -7159
  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 +27088 -14116
  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 +27088 -14116
  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 +970 -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 +1947 -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,397 @@ 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, "warningLine_24", null);
220
+
221
+ (0,defineProperty/* default */.Z)(this, "warningLine_48", null);
222
+
223
+ (0,defineProperty/* default */.Z)(this, "eventListener", null);
224
+
225
+ (0,defineProperty/* default */.Z)(this, "eventListener2", null);
226
+
266
227
  this._viewer = scenceView._viewer;
228
+ this._language = scenceView._language;
229
+ this._viewer.postProcessStages.fxaa.enabled = true; // 开启深度检测
230
+
231
+ this._viewer.scene.globe.depthTestAgainstTerrain = true;
232
+ } // 更新语言
233
+
234
+
235
+ changeLanguage(val) {
236
+ this._language = val;
237
+ } // 控制台风显示
238
+
239
+
240
+ createTyphoonPath(row, play = false) {
241
+ let that = this;
242
+
243
+ if (this._curTyphoon[row.tfid]) {
244
+ this._curTyphoon[row.tfid].setVisible(row.show);
245
+
246
+ row.show && this._curTyphoon[row.tfid].flyTo();
247
+ } else {
248
+ let res = Object.assign({}, row);
249
+ this._curTyphoon[row.tfid] = new Cesium.Kq3dTyphoon(this._viewer, {
250
+ data: res
251
+ });
252
+
253
+ this._curTyphoon[row.tfid].flyTo();
254
+
255
+ this.eventListener = function (res) {
256
+ if (res && res.data) {
257
+ if (that._curTyphoon[row.tfid].divPoint) {
258
+ that._curTyphoon[row.tfid].divPoint.destroy();
259
+
260
+ that._curTyphoon[row.tfid].divPoint = null;
261
+ }
262
+
263
+ that.createInfoDivPoint(that.getDivPointData(res.data));
264
+ } else {
265
+ //清除信息
266
+ if (that.divPoint) {
267
+ that.divPoint.destroy();
268
+ that.divPoint = null;
269
+ }
270
+ }
271
+ };
272
+
273
+ this.eventListener2 = function (res) {
274
+ if (res && res.data) {
275
+ if (that._curTyphoon[row.tfid] && !that._curTyphoon[row.tfid].isPlaying) {
276
+ that.createInfoPlayDivPoint(that.getDivPointData(res.data));
277
+ row.showPlayVis = false;
278
+ } else {
279
+ if (that._curTyphoon[row.tfid].divPoint) {
280
+ that._curTyphoon[row.tfid].divPoint.destroy();
281
+
282
+ that._curTyphoon[row.tfid].divPoint = null;
283
+ }
284
+ }
285
+ }
286
+ };
287
+
288
+ let hoverEvent = this._curTyphoon[row.tfid].getHoverEvent();
289
+
290
+ let playEvent = this._curTyphoon[row.tfid].getPlayEvent();
291
+
292
+ if (hoverEvent) {
293
+ hoverEvent.addEventListener(this.eventListener);
294
+ }
295
+
296
+ if (playEvent) {
297
+ playEvent.addEventListener(this.eventListener2);
298
+ }
299
+ }
300
+
301
+ if (row.show) {
302
+ if (play) {
303
+ if (this.currentRow && this.currentRow.tfid && this._curTyphoon[this.currentRow.tfid] && this._curTyphoon[this.currentRow.tfid].stop) {
304
+ this._curTyphoon[this.currentRow.tfid].stop();
305
+ }
306
+
307
+ this._curTyphoon[row.tfid].start();
308
+ }
309
+ }
310
+
311
+ this.currentRow = row;
312
+ } // 获取
313
+
314
+
315
+ getDivPointData(pointInfo) {
316
+ if (pointInfo.radius7) pointInfo.radius7Arr = pointInfo.radius7.split('|');
317
+ if (pointInfo.radius10) pointInfo.radius10Arr = pointInfo.radius10.split('|');
318
+ if (pointInfo.radius12) pointInfo.radius12Arr = pointInfo.radius12.split('|');
319
+ return pointInfo;
320
+ }
321
+
322
+ // 创建台风属性弹框
323
+ createInfoPlayDivPoint(data) {
324
+ data = Object.assign(data, this.currentRow);
325
+
326
+ if (this._curTyphoon[data.tfid].divPoint) {
327
+ this._curTyphoon[data.tfid].divPoint.destroy();
328
+
329
+ this._curTyphoon[data.tfid].divPoint = null;
330
+ }
331
+
332
+ let htmlObj = this.createHtml(data);
333
+ this._curTyphoon[data.tfid].divPoint = new Cesium.Kq3dHtmlTag(this._viewer, {
334
+ html: htmlObj.html,
335
+ position: Cesium.Cartesian3.fromDegrees(Number(data.fLongitude), Number(data.fLatitude)),
336
+ anchor: [-140, htmlObj.anchorY],
337
+ noEvent: false
338
+ });
339
+ }
340
+
341
+ //点击展示详细信息
342
+ rowClickPath(index, row) {
343
+ if (!this._curTyphoon[row.tfid]) {
344
+ row.show = true;
345
+ this.createTyphoonPath(row);
346
+ }
347
+
348
+ setTimeout(() => {
349
+ this._curTyphoon[row.tfid].showPoint(index);
350
+
351
+ this._curTyphoon[row.tfid].flyToPoint(index);
352
+
353
+ this.createInfoDivPoint(this.getDivPointData(this._curTyphoon[row.tfid].positions[index]));
354
+ }, 500);
355
+ }
356
+
357
+ // 创建浮动弹框属性
358
+ createInfoDivPoint(data) {
359
+ if (this.divPoint) {
360
+ this.divPoint.destroy();
361
+ this.divPoint = null;
362
+ }
363
+
364
+ this._curTyphoon.forEach(element => {
365
+ if (element._data && data.name === element._data.name) {
366
+ data = Object.assign(data, {
367
+ tfid: element._data.tfid
368
+ });
369
+ return;
370
+ }
371
+ });
372
+
373
+ if (!data.fLongitude || !data.fLatitude) return;
374
+ let htmlObj = this.createHtml(data);
375
+ this.divPoint = new Cesium.Kq3dHtmlTag(this._viewer, {
376
+ html: htmlObj.html,
377
+ position: Cesium.Cartesian3.fromDegrees(Number(data.fLongitude), Number(data.fLatitude)),
378
+ anchor: [-140, htmlObj.anchorY]
379
+ });
380
+ }
381
+
382
+ // 创建html弹框内容
383
+ createHtml(data) {
384
+ let anchorY = -215;
385
+ let html = `<div class='kq3d-typhoon-trac-Info'>
386
+ <div style='background-color:var(--kq-bg-color); border-radius: 8px;'>
387
+ <div class='Info-title'>
388
+ <span class='Info-title-text'>${data.tfid + data.name}(${data.enname})</span>
389
+ </div>
390
+ <a class='infoClose' href='javascript:void(0)' onclick='document.getElementsByClassName("kq3d-typhoon-trac-Info")[0].style.display="none"'><span>×</span></a>
391
+ </div><ul>
392
+ <li><span>${this._language.centralPosition}</span><span>${data.fLongitude}°&nbsp;/&nbsp;${data.fLatitude}°</span></li>
393
+ <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>
394
+ <li><span>${this._language.centralPressure}</span><span>${data.pressure}&nbsp;${this._language.atmosphericPressureUnit}</span></li>
395
+ <li><span>${this._language.movementSpeedTowards}</span><span>${(data.movespeed || '-') + this._language.movingDirectionUnit},${data.movedirection || '-'}</span></li>
396
+ <li><span>${this._language.currentTime}</span><span>${this.formatDate(data.time)}</span></li>
397
+ <table><tr>
398
+ <th class='head'>${this._language['windRadius']}</th>
399
+ <th class='head'>${this._language.northeast}</th>
400
+ <th class='head'>${this._language.southeast}</th>
401
+ <th class='head'>${this._language.southwest}</th>
402
+ <th class='head'>${this._language.northwest}</th>
403
+ </tr>`;
404
+
405
+ if (data.radius7Arr) {
406
+ html += `<tr>
407
+ <th>${this._language.sevenLevels}</th>
408
+ <th class='flnumber'>${data.radius7Arr[0]}</th>
409
+ <th class='flnumber'>${data.radius7Arr[1]}</th>
410
+ <th class='flnumber'>${data.radius7Arr[2]}</th>
411
+ <th class='flnumber'>${data.radius7Arr[3]}</th>
412
+ </tr>`;
413
+ anchorY -= 23;
414
+ }
415
+
416
+ if (data.radius10Arr) {
417
+ html += `<tr>
418
+ <th>${this._language.tenLevels}</th>
419
+ <th class='flnumber'>${data.radius10Arr[0]}</th>
420
+ <th class='flnumber'>${data.radius10Arr[1]}</th>
421
+ <th class='flnumber'>${data.radius10Arr[2]}</th>
422
+ <th class='flnumber'>${data.radius10Arr[3]}</th>
423
+ </tr>`;
424
+ anchorY -= 23;
425
+ }
426
+
427
+ if (data.radius12Arr) {
428
+ html += `<tr>
429
+ <th>${this._language.twelveLevels}</th>
430
+ <th class='flnumber'>${data.radius12Arr[0]}</th>
431
+ <th class='flnumber'>${data.radius12Arr[1]}</th>
432
+ <th class='flnumber'>${data.radius12Arr[2]}</th>
433
+ <th class='flnumber'>${data.radius12Arr[3]}</th>
434
+ </tr>`;
435
+ anchorY -= 32;
436
+ }
437
+
438
+ html += `</table></ul><div class='triangle'><div></div></div></div>`;
439
+ return {
440
+ html: this.sanitize(html),
441
+ anchorY: anchorY
442
+ };
443
+ } // 动态插入时进行字符过滤
444
+
445
+
446
+ sanitize(text) {
447
+ return text.replace(/[\u200B-\u200D\uFEFF]/g, "") // 清除零宽字符
448
+ .replace(/[“”]/g, ""); // 主动过滤引号
449
+ } // 日期矫正
450
+
451
+
452
+ formatDate(date = new Date(), format = 'datetime', isPad = true) {
453
+ if (!(date instanceof Date)) {
454
+ date = new Date(date);
455
+ }
456
+
457
+ if (format === 'date') {
458
+ format = 'YYYY-MM-DD';
459
+ } else if (format === 'datetime') {
460
+ format = 'YYYY-MM-DD hh:mm:ss';
461
+ }
462
+
463
+ const weeks = ['日', '一', '二', '三', '四', '五', '六'];
464
+ const dateFormats = {
465
+ YYYY: date.getFullYear(),
466
+ MM: (date.getMonth() + 1).toString().padStart(isPad && 2, '0'),
467
+ DD: date.getDate().toString().padStart(isPad && 2, '0'),
468
+ hh: date.getHours().toString().padStart(isPad && 2, '0'),
469
+ mm: date.getMinutes().toString().padStart(isPad && 2, '0'),
470
+ ss: date.getSeconds().toString().padStart(isPad && 2, '0'),
471
+ W: weeks[date.getDay()]
472
+ };
473
+ return Object.keys(dateFormats).reduce((result, item) => result.replaceAll(item, dateFormats[item]), format);
474
+ }
475
+
476
+ // 停止播放
477
+ stopPlayTyphoonTrac(row) {
478
+ if (this._curTyphoon[row.tfid]) this._curTyphoon[row.tfid].stop();
479
+ } // 暂停播放
480
+
481
+
482
+ pausePlayTyphoonTrac(val) {
483
+ if (this._curTyphoon[this.currentRow.tfid]) this._curTyphoon[this.currentRow.tfid].flyTo();
484
+
485
+ if (val) {
486
+ this._viewer.clock.shouldAnimate = true;
487
+ } else {
488
+ this._viewer.clock.shouldAnimate = false;
489
+ }
490
+ } // 设置时间流速
491
+
492
+
493
+ setMultiplier(val) {
494
+ window.viewer.clock.multiplier = val || 1;
495
+ } //警戒线
496
+
497
+
498
+ createWarningLine() {
499
+ //24小时警戒线
500
+ this.warningLine_24 = this._viewer.entities.add({
501
+ position: Cesium.Cartesian3.fromDegrees(127, 34),
502
+ polyline: {
503
+ positions: Cesium.Cartesian3.fromDegreesArray([127, 34, 127, 22, 119, 18, 119, 11, 113, 4.5, 105, 0]),
504
+ width: 2,
505
+ material: Cesium.Color.fromCssColorString('#828314'),
506
+ clampToGround: true
507
+ },
508
+ label: {
509
+ text: '24小时警戒线',
510
+ color: Cesium.Color.fromCssColorString('#828314'),
511
+ horizontalOrigin: Cesium.HorizontalOrigin.CENTER,
512
+ verticalOrigin: Cesium.VerticalOrigin.TOP,
513
+ scaleByDistance: new Cesium.NearFarScalar(0, 1, 12000, 1),
514
+ distanceDisplayCondition: new Cesium.DistanceDisplayCondition(0, 100000),
515
+ heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
516
+ disableDepthTestDistance: Number.POSITIVE_INFINITY
517
+ }
518
+ }); // 48小时警戒线
519
+
520
+ this.warningLine_48 = this._viewer.entities.add({
521
+ polyline: {
522
+ positions: Cesium.Cartesian3.fromDegreesArray([132, 34, 132, 22, 119, 0, 105, 0]),
523
+ width: 2,
524
+ material: new Cesium.PolylineDashMaterialProperty({
525
+ color: new Cesium.Color(0, 0, 0, 0),
526
+ gapColor: Cesium.Color.fromCssColorString('#4dba3d'),
527
+ dashLength: 16,
528
+ dashPattern: 255
529
+ }),
530
+ clampToGround: true
531
+ }
532
+ });
533
+ }
534
+
535
+ remove(tfid) {
536
+ if (this._curTyphoon[tfid] && this._curTyphoon[tfid].getHoverEvent) {
537
+ let hishoverEvent = this._curTyphoon[tfid].getHoverEvent();
538
+
539
+ hishoverEvent && hishoverEvent.removeEventListener(this.eventListener);
540
+ }
541
+
542
+ if (this._curTyphoon[tfid] && this._curTyphoon[tfid].getPlayEvent) {
543
+ let hisplayEvent = this._curTyphoon[tfid].getPlayEvent();
544
+
545
+ hisplayEvent && hisplayEvent.removeEventListener(this.eventListener2);
546
+ }
547
+
548
+ if (this._curTyphoon[tfid] && this._curTyphoon[tfid].divPoint) {
549
+ this._curTyphoon[tfid].divPoint.destroy();
550
+
551
+ this._curTyphoon[tfid].divPoint = null;
552
+ }
553
+
554
+ if (this._curTyphoon[tfid] && this._curTyphoon[tfid].stop) {
555
+ this._curTyphoon[tfid].stop();
556
+ }
557
+
558
+ if (this._curTyphoon[tfid] && this._curTyphoon[tfid].destroy) {
559
+ this._curTyphoon[tfid].destroy();
560
+ }
561
+
562
+ this._curTyphoon[tfid] = null;
563
+ }
564
+
565
+ clearDivPoint(tfid) {
566
+ if (this._curTyphoon[tfid] && this._curTyphoon[tfid].divPoint) {
567
+ this._curTyphoon[tfid].divPoint.destroy();
568
+
569
+ this._curTyphoon[tfid].divPoint = null;
570
+ }
571
+
572
+ if (this.divPoint) {
573
+ this.divPoint.destroy();
574
+ this.divPoint = null;
575
+ }
576
+ } //清除
577
+
578
+
579
+ clear() {
580
+ if (this.divPoint) {
581
+ this.divPoint.destroy();
582
+ this.divPoint = null;
583
+ }
584
+
585
+ for (let tfid in this._curTyphoon) {
586
+ this.remove(tfid);
587
+ }
588
+ } //销毁
589
+
590
+
591
+ destroy() {
592
+ this._viewer.entities.remove(this.warningLine_48);
593
+
594
+ this._viewer.entities.remove(this.warningLine_24);
595
+
596
+ this.clear();
267
597
  }
268
- start() {}
269
- //清除
270
- clear() {}
271
598
 
272
- //销毁
273
- destroy() {}
274
599
  }
275
600
  // EXTERNAL MODULE: external "@kq_npm/client_icons_vue"
276
601
  var client_icons_vue_ = __webpack_require__(348);
@@ -278,16 +603,16 @@ var client_icons_vue_ = __webpack_require__(348);
278
603
  var util_ = __webpack_require__(3458);
279
604
  // EXTERNAL MODULE: external "vue-i18n/dist/vue-i18n.cjs.js"
280
605
  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
-
606
+ ;// 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
607
 
286
608
  const _hoisted_1 = {
287
609
  class: "kq3d-typhoon-trac-box"
288
610
  };
289
611
  const _hoisted_2 = {
290
- class: "kq3d-typhoon-trac-span"
612
+ class: "flex"
613
+ };
614
+ const _hoisted_3 = {
615
+ class: "flex"
291
616
  };
292
617
 
293
618
 
@@ -306,11 +631,20 @@ const __default__ = {
306
631
  control: "object",
307
632
  description: "设置参数"
308
633
  },
634
+ // 外部接口获取台风轨迹列表
635
+ getTyphoonTracListByApi: {
636
+ type: Function
637
+ },
638
+ // 外部接口获取台风轨迹详情
639
+ getDataInfoByApi: {
640
+ type: Function
641
+ },
309
642
  // 是否显示阴影效果
310
643
  showShadow: {
311
644
  type: Boolean,
312
645
  default: true
313
646
  },
647
+
314
648
  /**
315
649
  * 例:"center","topLeft","topRight","bottomLeft","bottomRight", "topCenter", "bottomCenter" {top:'16px',left:'16px'}, {top:16,left:16}
316
650
  */
@@ -332,7 +666,7 @@ const __default__ = {
332
666
  // HeaderTemp图标
333
667
  headerTempIcon: {
334
668
  type: [Object, String],
335
- default: client_icons_vue_.IconProfileAnalysis
669
+ default: client_icons_vue_.IconTyphoonTrack
336
670
  },
337
671
  // HeaderTemp Title&Icon的位置
338
672
  isRight: {
@@ -340,30 +674,34 @@ const __default__ = {
340
674
  default: true
341
675
  }
342
676
  },
677
+
343
678
  setup(__props, {
344
679
  expose: __expose
345
680
  }) {
346
681
  const props = __props;
347
682
  const {
348
683
  proxy
349
- } = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)();
350
- //语言
684
+ } = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.getCurrentInstance)(); //语言
685
+
351
686
  let language = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(proxy.$i18n.global.messages[proxy.$i18n.global.locale]["webgl"]);
352
687
  let currentLang = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)("");
353
688
  let viewModel = null;
354
689
  let ref_box = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)();
355
-
356
- // 获取组件传参
357
-
690
+ let currentRow = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
691
+ let currentPlay = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)({});
692
+ let showInfo = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false);
693
+ let loading = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(false); // 获取组件传参
358
694
  // 组件容器Ref
359
- let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null);
360
695
 
361
- // 生成组件默认header
696
+ let boxRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(null); // 生成组件默认header
697
+
362
698
  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
- // 表格头样式
699
+ let headerTempRef = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)(); // 属性值
700
+
701
+ let tableData = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]); // 路径信息
702
+
703
+ let typhoonTracData = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.ref)([]); // 表格头样式
704
+
367
705
  let headClass = args => {
368
706
  return {
369
707
  "background-color": "var(--kq-fill-color-light)",
@@ -371,11 +709,53 @@ const __default__ = {
371
709
  "font-size": "14px"
372
710
  };
373
711
  };
712
+
374
713
  let formItem = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.reactive)({
375
- typhoonTracPath: props.settingParams && props.settingParams.typhoonTracPath || ""
714
+ collapseValue: props.settingParams?.collapseValue ?? "list",
715
+ // 折叠组件是否折叠,list:台风列表
716
+ showUpload: props.settingParams?.showUpload ?? true,
717
+ // 是否显示离线数据功能
718
+ typhoonTracPath: props.settingParams?.typhoonTracPath ?? "",
719
+ // 离线数据文件路径
720
+ showWarningLine: props.settingParams?.showWarningLine ?? true //
721
+
376
722
  });
723
+ const strongType = [{
724
+ name: language.value.tropicalPressure,
725
+ color: "#08F6A0, #00CF63"
726
+ }, {
727
+ name: language.value.tropicalStorm,
728
+ color: "#30AEFF, #007AEC"
729
+ }, {
730
+ name: language.value.severeTropicalStorm,
731
+ color: "#F3F81E, #E8CC00 "
732
+ }, {
733
+ name: language.value.typhoonName,
734
+ color: "#FFBE00, #FC8C00"
735
+ }, {
736
+ name: language.value.severeTyphoon,
737
+ color: "#FF84F9, #FF3EFF"
738
+ }, {
739
+ name: language.value.superTyphoon,
740
+ color: "#FF636F, #FF0016"
741
+ }];
742
+ const lineList = [{
743
+ name: language.value.chinaTitle,
744
+ color: "#ff3c4e"
745
+ }, {
746
+ name: language.value.chinaHKTitle,
747
+ color: "#febd00"
748
+ }, {
749
+ name: language.value.chinaTaiwanTitle,
750
+ color: "#ff00fe"
751
+ }, {
752
+ name: language.value.americaTtile,
753
+ color: "#04faf7"
754
+ }, {
755
+ name: language.value.japanTitle,
756
+ color: "#24bc00"
757
+ }]; // 国际化
377
758
 
378
- // 国际化
379
759
  let {
380
760
  locale,
381
761
  messages
@@ -400,68 +780,254 @@ const __default__ = {
400
780
  });
401
781
  currentLang.value = proxy.$i18n.locale; // 获取当前语言
402
782
  //父组件ScenceView初始化完成后执行
403
- gis_utils_.utils.getWebMap(null, scenceView => {
404
- if (scenceView) {
405
- viewModel = new TyphoonTracViewModel(scenceView);
406
- viewModel._language = language.value;
407
- }
783
+
784
+ (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.nextTick)(() => {
785
+ gis_utils_.utils.getWebMap(props.mapTarget, scenceView => {
786
+ if (scenceView) {
787
+ viewModel = new TyphoonTracViewModel(scenceView);
788
+ viewModel._language = language.value;
789
+ formItem.showWarningLine && viewModel && viewModel.createWarningLine();
790
+ formItem.typhoonTracPath && getDataByPath();
791
+
792
+ if (props.getTyphoonTracListByApi) {
793
+ loading.value = true;
794
+ props.getTyphoonTracListByApi(data => {
795
+ loading.value = false;
796
+ clear();
797
+ tableData.value = data;
798
+ });
799
+ }
800
+ }
801
+ });
408
802
  });
409
803
  });
410
-
411
804
  /**
412
805
  * @description 监听header生成
413
806
  */
807
+
414
808
  const watchCreateHeaderTemp = () => {
415
809
  if (props.showHeaderTemp) {
416
810
  // 生成headerTemp
417
811
  headerTemp.value = (0,util_.createHeaderTemp)(boxRef.value, (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.toRefs)(props), headerTempRef, headerTempTitle);
418
812
  }
419
- };
420
- // 开始分析
421
- function startAnalysis() {
422
- viewModel && viewModel.start();
423
- }
424
- // 输入地址
813
+ }; // 输入地址
814
+
815
+
425
816
  function selectTyphoonTracPath() {
426
- viewModel && viewModel.selectTyphoonTracPath(formItem.typhoonTracPath);
427
- }
428
- // 选择文件
817
+ getDataByPath();
818
+ } // 选择文件
819
+
820
+
429
821
  function selectData(file) {
430
822
  let url = URL.createObjectURL(file.raw);
431
823
  formItem.typhoonTracPath = url;
432
- viewModel && viewModel.selectTyphoonTracPath(formItem.typhoonTracPath);
824
+ getDataByPath();
825
+ currentRow.value = {};
826
+ currentPlay.value = {};
827
+ formItem.collapseValue = "list";
828
+ }
829
+
830
+ function formatterFun(row) {
831
+ return formatDate(row.time);
832
+ } // 显示台风
833
+
834
+
835
+ async function showTyphoon(index, row) {
836
+ try {
837
+ await getDataInfoByApi(row); // 等待回调完成
838
+
839
+ row.show = !row.show;
840
+
841
+ if (!row.show) {
842
+ viewModel && viewModel.clearDivPoint(row.tfid);
843
+ setTracStop(index, row);
844
+ }
845
+
846
+ viewModel && viewModel.createTyphoonPath(row, false);
847
+ } catch (error) {
848
+ console.log("Failed to set data info:", error); // 可以添加错误处理逻辑,例如显示错误提示
849
+ }
850
+ }
851
+
852
+ async function setDatainfo(index, row) {
853
+ try {
854
+ await getDataInfoByApi(row);
855
+ row.showInfo = true;
856
+ formItem.collapseValue = "info";
857
+ currentRow.value = row;
858
+ typhoonTracData.value = row.points || [];
859
+ } catch (error) {
860
+ console.log("Failed to set data info:", error); // 可以添加错误处理逻辑,例如显示错误提示
861
+ }
862
+ }
863
+
864
+ async function getDataInfoByApi(row) {
865
+ // 条件判断提前返回
866
+ if (!props.getDataInfoByApi || row.getInfoVis) {
867
+ return;
868
+ }
869
+
870
+ loading.value = true;
871
+
872
+ try {
873
+ // 将回调函数转换为 Promise
874
+ await new Promise((resolve, reject) => {
875
+ props.getDataInfoByApi(row, data => {
876
+ try {
877
+ Object.assign(row, data);
878
+ row.getInfoVis = true;
879
+ resolve();
880
+ } catch (error) {
881
+ reject(error);
882
+ }
883
+ });
884
+ });
885
+ } finally {
886
+ loading.value = false;
887
+ }
433
888
  }
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
- // 清除
889
+ /**
890
+ * 日期格式化
891
+ * @param {Date | string | number} date 日期
892
+ * @param {string | 'date' | 'datetime'} format 格式(YYYY-MM-DD hh:mm:ss)
893
+ * @param {boolean} isPad 是否填补 0
894
+ * @example
895
+ */
896
+
897
+
898
+ function formatDate(date = new Date(), format = "datetime", isPad = true) {
899
+ if (!(date instanceof Date)) {
900
+ date = new Date(date);
901
+ }
902
+
903
+ if (format === "date") {
904
+ format = "YYYY-MM-DD";
905
+ } else if (format === "datetime") {
906
+ format = "YYYY-MM-DD hh:mm:ss";
907
+ }
908
+
909
+ const dateFormats = {
910
+ MM: (date.getMonth() + 1).toString().padStart(isPad && 2, "0"),
911
+ DD: date.getDate().toString().padStart(isPad && 2, "0"),
912
+ hh: date.getHours().toString().padStart(isPad && 2, "0"),
913
+ mm: date.getMinutes().toString().padStart(isPad && 2, "0"),
914
+ ss: date.getSeconds().toString().padStart(isPad && 2, "0")
915
+ };
916
+ return dateFormats.MM + "-" + dateFormats.DD + " " + dateFormats.hh + "时";
917
+ }
918
+
919
+ function tableCellClassName({
920
+ row,
921
+ column,
922
+ rowIndex,
923
+ columnIndex
924
+ }) {
925
+ //注意这里是解构
926
+ //利用单元格的 className 的回调方法,给行列索引赋值
927
+ row.index = rowIndex;
928
+ column.index = columnIndex;
929
+ }
930
+
931
+ function rowClickPath(row) {
932
+ viewModel && viewModel.clearDivPoint(currentRow.value.tfid);
933
+ if (!currentRow.value.show) currentRow.value.show = true;
934
+ if (currentRow.value.showPlayVis) setTracStop(row.index, currentRow.value);
935
+ viewModel && viewModel.rowClickPath(row.index, currentRow.value);
936
+ } // 播放
937
+
938
+
939
+ async function setTracPlay(index, row) {
940
+ try {
941
+ await getDataInfoByApi(row); // 等待回调完成
942
+
943
+ row.showPlayVis = true;
944
+ row.show = true;
945
+ currentPlay.value = row;
946
+ viewModel && viewModel.createTyphoonPath(row, true);
947
+ } catch (error) {
948
+ console.log("Failed to set data info:", error); // 可以添加错误处理逻辑,例如显示错误提示
949
+ }
950
+ } // 停止播放
951
+
952
+
953
+ function setTracStop(index, row) {
954
+ row.showPlayVis = false;
955
+ viewModel && viewModel.stopPlayTyphoonTrac(row);
956
+ } // 获取路径数据
957
+
958
+
959
+ function getDataByPath() {
960
+ if (formItem && formItem.typhoonTracPath) {
961
+ Cesium.Resource.fetchJson(formItem.typhoonTracPath).then(res => {
962
+ if (res) {
963
+ if (res.length === 0) {
964
+ KqMessage({
965
+ message: "features " + language.value.noDataMessage + "!",
966
+ type: "warning",
967
+ duration: 2000
968
+ });
969
+ return;
970
+ }
971
+
972
+ tableData.value = res;
973
+ clear();
974
+ }
975
+ });
976
+ } else {
977
+ KqMessage({
978
+ message: language.value.fileTypeMessage + "!",
979
+ type: "warning",
980
+ duration: 2000
981
+ });
982
+ return;
983
+ }
984
+ } // 更新台风数据
985
+
986
+
987
+ function setTyphoonTracData(data) {
988
+ if (data && data.length && data.length > 0) {
989
+ clear();
990
+ tableData.value = data;
991
+ }
992
+ }
993
+
443
994
  function clear() {
444
995
  viewModel && viewModel.clear();
445
- }
996
+ } // 销毁
997
+
446
998
 
447
- // 销毁
448
999
  (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.onBeforeUnmount)(() => {
449
1000
  viewModel && viewModel.destroy();
450
1001
  });
1002
+
451
1003
  __expose({
452
- startAnalysis,
453
- clear
1004
+ getDataByPath,
1005
+ setTyphoonTracData
454
1006
  });
1007
+
455
1008
  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
1009
  const _component_kq_icon = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-icon");
1010
+
459
1011
  const _component_kq_button = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-button");
1012
+
460
1013
  const _component_kq_upload = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-upload");
1014
+
461
1015
  const _component_kq_input = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-input");
1016
+
462
1017
  const _component_kq_row = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-row");
1018
+
1019
+ const _component_kq_form_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form-item");
1020
+
1021
+ const _component_kq_form = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-form");
1022
+
463
1023
  const _component_kq_table_column = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-table-column");
1024
+
464
1025
  const _component_kq_table = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-table");
1026
+
1027
+ const _component_kq_collapse_item = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse-item");
1028
+
1029
+ const _component_kq_collapse = (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.resolveComponent)("kq-collapse");
1030
+
465
1031
  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
1032
  class: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeClass)(["kq3d-typhoon-trac", {
467
1033
  'kq-box-shadow': __props.showShadow
@@ -472,136 +1038,304 @@ const __default__ = {
472
1038
  key: 0,
473
1039
  ref_key: "headerTempRef",
474
1040
  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"
1041
+ }, null, 512
1042
+ /* NEED_PATCH */
1043
+ )) : (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, {
1044
+ key: 0
477
1045
  }, {
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"
1046
+ 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, {
1047
+ "label-width": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(currentLang) === '100px',
1048
+ "label-position": "left"
481
1049
  }, {
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"
1050
+ 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, {
1051
+ 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, {
1052
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).dataPath
498
1053
  }, {
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
1054
+ 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, {
1055
+ style: {
1056
+ "display": "flex"
1057
+ }
1058
+ }, {
1059
+ 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, {
1060
+ modelValue: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).typhoonTracPath,
1061
+ "onUpdate:modelValue": _cache[0] || (_cache[0] = $event => (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).typhoonTracPath = $event),
1062
+ onChange: _cache[1] || (_cache[1] = $event => selectTyphoonTracPath()),
1063
+ placeholder: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).videoPathPlace
502
1064
  }, {
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 */
1065
+ 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, {
1066
+ "on-change": selectData,
1067
+ "auto-upload": false,
1068
+ "show-file-list": false,
1069
+ accept: ".json"
1070
+ }, {
1071
+ 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, {
1072
+ 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, {
1073
+ size: 16
1074
+ }, {
1075
+ 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))]),
1076
+ _: 1
1077
+ /* STABLE */
1078
+
1079
+ })]),
1080
+ _: 1
1081
+ /* STABLE */
1082
+
1083
+ })]),
1084
+ _: 1
1085
+ /* STABLE */
1086
+
1087
+ })]),
1088
+ _: 1
1089
+ /* STABLE */
1090
+
1091
+ }, 8
1092
+ /* PROPS */
1093
+ , ["modelValue", "placeholder"])]),
1094
+ _: 1
1095
+ /* STABLE */
1096
+
507
1097
  })]),
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"
1098
+ _: 1
1099
+ /* STABLE */
1100
+
1101
+ }, 8
1102
+ /* PROPS */
1103
+ , ["label"])]),
1104
+ _: 1
1105
+ /* STABLE */
1106
+
1107
+ })]),
1108
+ _: 1
1109
+ /* STABLE */
1110
+
1111
+ }, 8
1112
+ /* PROPS */
1113
+ , ["label-width"])]),
1114
+ _: 1
1115
+ /* STABLE */
1116
+
1117
+ })) : (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, {
1118
+ "model-value": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(formItem).collapseValue
517
1119
  }, {
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, {
1120
+ 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, {
1121
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonList,
1122
+ name: "list"
1123
+ }, {
519
1124
  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
1125
  border: "",
521
1126
  stripe: "",
1127
+ class: "listTable",
522
1128
  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
- },
1129
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)([{
1130
+ "width": "100%"
1131
+ }, `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
1132
  "header-cell-style": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headClass)
531
1133
  }, {
532
1134
  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
1135
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonNumber,
534
1136
  prop: "tfid",
535
1137
  align: "center"
536
- }, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
1138
+ }, null, 8
1139
+ /* PROPS */
1140
+ , ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
537
1141
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonNameZh,
538
1142
  prop: "name",
539
1143
  align: "center"
540
- }, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
1144
+ }, null, 8
1145
+ /* PROPS */
1146
+ , ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
541
1147
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonNameEn,
542
1148
  prop: "enname",
543
1149
  align: "center"
544
- }, null, 8 /* PROPS */, ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
1150
+ }, null, 8
1151
+ /* PROPS */
1152
+ , ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
545
1153
  label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).operation,
546
1154
  align: "center"
547
1155
  }, {
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
1156
+ 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, {
1157
+ size: 16,
1158
+ onClick: $event => showTyphoon(scope.$index, scope.row),
1159
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).location,
1160
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)(scope.row.show ? 'color:var(--kq-color-primary)' : ''),
1161
+ class: "iconClass",
1162
+ loading: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(loading)
551
1163
  }, {
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
1164
+ 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))]),
1165
+ _: 2
1166
+ /* DYNAMIC */
1167
+
1168
+ }, 1032
1169
+ /* PROPS, DYNAMIC_SLOTS */
1170
+ , ["onClick", "title", "style", "loading"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_icon, {
1171
+ size: 16,
1172
+ onClick: $event => setDatainfo(scope.$index, scope.row),
1173
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).typhoonDetails,
1174
+ 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)' : ''),
1175
+ class: "iconClass",
1176
+ loading: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(loading)
562
1177
  }, {
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, {
1178
+ 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))]),
1179
+ _: 2
1180
+ /* DYNAMIC */
1181
+
1182
+ }, 1032
1183
+ /* PROPS, DYNAMIC_SLOTS */
1184
+ , ["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, {
1185
+ key: 0,
1186
+ size: 16,
571
1187
  onClick: $event => setTracPlay(scope.$index, scope.row),
572
- title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).play
1188
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).play,
1189
+ class: "iconClass",
1190
+ loading: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(loading)
573
1191
  }, {
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, {
1192
+ 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))]),
1193
+ _: 2
1194
+ /* DYNAMIC */
1195
+
1196
+ }, 1032
1197
+ /* PROPS, DYNAMIC_SLOTS */
1198
+ , ["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, {
1199
+ key: 1,
1200
+ size: 16,
582
1201
  onClick: $event => setTracStop(scope.$index, scope.row),
583
- title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).stop
1202
+ title: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).stop,
1203
+ style: {
1204
+ "color": "var(--kq-color-primary)"
1205
+ },
1206
+ class: "iconClass"
584
1207
  }, {
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 */);
1208
+ 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))]),
1209
+ _: 2
1210
+ /* DYNAMIC */
1211
+
1212
+ }, 1032
1213
+ /* PROPS, DYNAMIC_SLOTS */
1214
+ , ["onClick", "title"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)]),
1215
+ _: 1
1216
+ /* STABLE */
1217
+
1218
+ }, 8
1219
+ /* PROPS */
1220
+ , ["label"])]),
1221
+ _: 1
1222
+ /* STABLE */
1223
+
1224
+ }, 8
1225
+ /* PROPS */
1226
+ , ["data", "style", "header-cell-style"])]),
1227
+ _: 1
1228
+ /* STABLE */
1229
+
1230
+ }, 8
1231
+ /* PROPS */
1232
+ , ["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, {
1233
+ key: 0,
1234
+ 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,
1235
+ name: "info",
1236
+ style: {
1237
+ "margin-top": "8px"
1238
+ }
1239
+ }, {
1240
+ 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, {
1241
+ border: "",
1242
+ stripe: "",
1243
+ class: "listTablePath",
1244
+ data: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(typhoonTracData),
1245
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)([{
1246
+ "width": "100%"
1247
+ }, `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`]),
1248
+ onRowClick: rowClickPath,
1249
+ "cell-class-name": tableCellClassName,
1250
+ "header-cell-style": (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(headClass)
1251
+ }, {
1252
+ 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, {
1253
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).time,
1254
+ prop: "time",
1255
+ align: "center",
1256
+ formatter: formatterFun
1257
+ }, null, 8
1258
+ /* PROPS */
1259
+ , ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
1260
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).windSpeed,
1261
+ prop: "speed",
1262
+ align: "center"
1263
+ }, null, 8
1264
+ /* PROPS */
1265
+ , ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
1266
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).movingDirection,
1267
+ prop: "movedirection",
1268
+ align: "center"
1269
+ }, null, 8
1270
+ /* PROPS */
1271
+ , ["label"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_table_column, {
1272
+ label: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.unref)(language).strength,
1273
+ prop: "strong",
1274
+ align: "center"
1275
+ }, null, 8
1276
+ /* PROPS */
1277
+ , ["label"])]),
1278
+ _: 1
1279
+ /* STABLE */
1280
+
1281
+ }, 8
1282
+ /* PROPS */
1283
+ , ["data", "style", "header-cell-style"])]),
1284
+ _: 1
1285
+ /* STABLE */
1286
+
1287
+ }, 8
1288
+ /* PROPS */
1289
+ , ["title"])) : (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createCommentVNode)("v-if", true)]),
1290
+ _: 1
1291
+ /* STABLE */
1292
+
1293
+ }, 8
1294
+ /* PROPS */
1295
+ , ["model-value"]), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
1296
+ 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 => {
1297
+ return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("li", {
1298
+ key: item.name,
1299
+ class: "flex items-center mr-2"
1300
+ }, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
1301
+ class: "card mr-1",
1302
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)(`border-top: 2px dashed ${item.color}`)
1303
+ }, null, 4
1304
+ /* STYLE */
1305
+ ), (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
1306
+ /* TEXT */
1307
+ )]);
1308
+ }), 64
1309
+ /* STABLE_FRAGMENT */
1310
+ ))])]),
1311
+ _: 1
1312
+ /* STABLE */
1313
+
1314
+ }), (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createVNode)(_component_kq_row, null, {
1315
+ 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 => {
1316
+ return (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("li", {
1317
+ key: item.name,
1318
+ class: "flex items-center mr-3"
1319
+ }, [(0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.createElementVNode)("div", {
1320
+ class: "circle mr-1",
1321
+ style: (0,external_root_Vue_commonjs_vue_commonjs2_vue_amd_vue_.normalizeStyle)(`background: linear-gradient(180deg, ${item.color})`)
1322
+ }, null, 4
1323
+ /* STYLE */
1324
+ ), (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
1325
+ /* TEXT */
1326
+ )]);
1327
+ }), 64
1328
+ /* STABLE_FRAGMENT */
1329
+ ))])]),
1330
+ _: 1
1331
+ /* STABLE */
1332
+
1333
+ })])], 2
1334
+ /* CLASS */
1335
+ );
603
1336
  };
604
1337
  }
1338
+
605
1339
  }));
606
1340
  ;// CONCATENATED MODULE: ./src/webgl/typhoontrac/TyphoonTrac.vue?vue&type=script&setup=true&lang=js
607
1341
 
@@ -623,11 +1357,13 @@ var init_js_default = /*#__PURE__*/__webpack_require__.n(init_js_);
623
1357
 
624
1358
 
625
1359
 
1360
+
626
1361
  TyphoonTrac.install = (Vue, opts) => {
627
1362
  init_js_default()(Vue, opts);
628
1363
  Vue.component(TyphoonTrac.name, TyphoonTrac);
629
1364
  };
630
1365
 
1366
+
631
1367
  }();
632
1368
  /******/ return __webpack_exports__;
633
1369
  /******/ })()