@kq_npm/client3d_webgl_vue 4.5.30 → 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.
- package/adddata/index.js +1 -1
- package/clientPrint/index.js +461 -672
- package/index.js +461 -672
- package/package.json +1 -1
- package/sceneapp/index.js +461 -672
- package/sceneview/index.js +461 -672
- package/typhoontrac/index.js +43 -9
- package/windyslicing/index.js +366 -115
package/typhoontrac/index.js
CHANGED
|
@@ -216,10 +216,6 @@ class TyphoonTracViewModel {
|
|
|
216
216
|
|
|
217
217
|
(0,defineProperty/* default */.Z)(this, "divPoint", null);
|
|
218
218
|
|
|
219
|
-
(0,defineProperty/* default */.Z)(this, "warningLine_24", null);
|
|
220
|
-
|
|
221
|
-
(0,defineProperty/* default */.Z)(this, "warningLine_48", null);
|
|
222
|
-
|
|
223
219
|
(0,defineProperty/* default */.Z)(this, "eventListener", null);
|
|
224
220
|
|
|
225
221
|
(0,defineProperty/* default */.Z)(this, "eventListener2", null);
|
|
@@ -515,6 +511,25 @@ class TyphoonTracViewModel {
|
|
|
515
511
|
heightReference: Cesium.HeightReference.CLAMP_TO_GROUND,
|
|
516
512
|
disableDepthTestDistance: Number.POSITIVE_INFINITY
|
|
517
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
|
+
}
|
|
518
533
|
}); // 48小时警戒线
|
|
519
534
|
|
|
520
535
|
this.warningLine_48 = this._viewer.entities.add({
|
|
@@ -530,6 +545,25 @@ class TyphoonTracViewModel {
|
|
|
530
545
|
clampToGround: true
|
|
531
546
|
}
|
|
532
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
|
+
});
|
|
533
567
|
}
|
|
534
568
|
|
|
535
569
|
remove(tfid) {
|
|
@@ -589,10 +623,10 @@ class TyphoonTracViewModel {
|
|
|
589
623
|
|
|
590
624
|
|
|
591
625
|
destroy() {
|
|
592
|
-
this._viewer.entities.remove(this.warningLine_48);
|
|
593
|
-
|
|
594
|
-
this._viewer.entities.remove(this.warningLine_24);
|
|
595
|
-
|
|
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);
|
|
596
630
|
this.clear();
|
|
597
631
|
}
|
|
598
632
|
|
|
@@ -786,7 +820,6 @@ const __default__ = {
|
|
|
786
820
|
if (scenceView) {
|
|
787
821
|
viewModel = new TyphoonTracViewModel(scenceView);
|
|
788
822
|
viewModel._language = language.value;
|
|
789
|
-
formItem.showWarningLine && viewModel && viewModel.createWarningLine();
|
|
790
823
|
formItem.typhoonTracPath && getDataByPath();
|
|
791
824
|
|
|
792
825
|
if (props.getTyphoonTracListByApi) {
|
|
@@ -970,6 +1003,7 @@ const __default__ = {
|
|
|
970
1003
|
}
|
|
971
1004
|
|
|
972
1005
|
tableData.value = res;
|
|
1006
|
+
formItem.showWarningLine && viewModel && viewModel.createWarningLine();
|
|
973
1007
|
clear();
|
|
974
1008
|
}
|
|
975
1009
|
});
|