gis-cesium-helper 4.1.1 → 4.1.2
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/dist/Cesium/Assets/approximateTerrainHeights.json +1 -1
- package/dist/Cesium/Cesium.d.ts +46350 -0
- package/dist/Cesium/Cesium.js +16062 -15091
- package/dist/Cesium/Core/Check.d.ts +127 -0
- package/dist/Cesium/ThirdParty/Workers/z-worker-pako.js +1 -1
- package/dist/Cesium/ThirdParty/draco_decoder.wasm +0 -0
- package/dist/Cesium/Widgets/CesiumWidget/CesiumWidget.css +0 -5
- package/dist/Cesium/Widgets/I3SBuildingSceneLayerExplorer/I3SBuildingSceneLayerExplorer.css +27 -0
- package/dist/Cesium/Widgets/Timeline/Timeline.css +8 -1
- package/dist/Cesium/Widgets/Timeline/lighter.css +6 -1
- package/dist/Cesium/Widgets/lighter.css +6 -1
- package/dist/Cesium/Widgets/widgets.css +36 -5
- package/dist/Cesium/Workers/{chunk-FAMH7QPQ.js → chunk-23HMYUSJ.js} +2 -2
- package/dist/Cesium/Workers/{chunk-XUP5J7GQ.js → chunk-34X2ZL32.js} +2 -2
- package/dist/Cesium/Workers/{chunk-ZD25UQM7.js → chunk-3FCK4U2N.js} +2 -2
- package/dist/Cesium/Workers/{chunk-ZBFGV7QI.js → chunk-3MV3BMN5.js} +2 -2
- package/dist/Cesium/Workers/{chunk-LXL44TDT.js → chunk-5JSDDVN4.js} +2 -2
- package/dist/Cesium/Workers/chunk-5XCWZRKD.js +26 -0
- package/dist/Cesium/Workers/{chunk-4DWHRTTP.js → chunk-6IQGHKR5.js} +2 -2
- package/dist/Cesium/Workers/chunk-6V3AGY4C.js +26 -0
- package/dist/Cesium/Workers/{chunk-KLK65KFE.js → chunk-763AHQX3.js} +2 -2
- package/dist/Cesium/Workers/{chunk-JJYRRIWN.js → chunk-7K5QPZEL.js} +2 -2
- package/dist/Cesium/Workers/chunk-BVGVBIA4.js +26 -0
- package/dist/Cesium/Workers/{chunk-T4QAV6EX.js → chunk-CDIJULSW.js} +1 -1
- package/dist/Cesium/Workers/{chunk-F2VBKMFQ.js → chunk-CZPBEN7H.js} +2 -2
- package/dist/Cesium/Workers/{chunk-STB6TCFY.js → chunk-D3CSG3S2.js} +1 -1
- package/dist/Cesium/Workers/{chunk-I2A6O4RG.js → chunk-D776FCVJ.js} +2 -2
- package/dist/Cesium/Workers/{chunk-ECIWWYM6.js → chunk-DG7CB3DY.js} +2 -2
- package/dist/Cesium/Workers/{chunk-D3TZ2KW7.js → chunk-EARE55VU.js} +2 -2
- package/dist/Cesium/Workers/chunk-EBGE3XTZ.js +28 -0
- package/dist/Cesium/Workers/{chunk-UYEV4TJN.js → chunk-ECDOQM3R.js} +2 -2
- package/dist/Cesium/Workers/chunk-ED5MX6OB.js +26 -0
- package/dist/Cesium/Workers/{chunk-BLQIHQVM.js → chunk-FFJN4UXE.js} +2 -2
- package/dist/Cesium/Workers/chunk-HIKVO3YB.js +26 -0
- package/dist/Cesium/Workers/{chunk-W2RVA34K.js → chunk-IY53UJII.js} +2 -2
- package/dist/Cesium/Workers/{chunk-5APIVAIA.js → chunk-J4YKEZKQ.js} +2 -2
- package/dist/Cesium/Workers/{chunk-Y6JLAJTJ.js → chunk-J63AP2GZ.js} +2 -2
- package/dist/Cesium/Workers/{chunk-7GPSWUNQ.js → chunk-J63NMQMY.js} +2 -2
- package/dist/Cesium/Workers/{chunk-PXJWIUYV.js → chunk-KCWT4TOH.js} +2 -2
- package/dist/Cesium/Workers/{chunk-SOPLNYSA.js → chunk-LPL3F3FU.js} +1 -1
- package/dist/Cesium/Workers/chunk-MNKVHNSN.js +26 -0
- package/dist/Cesium/Workers/{chunk-C4OMKOTM.js → chunk-NW4BJ3IZ.js} +2 -2
- package/dist/Cesium/Workers/chunk-OE6BOPXI.js +26 -0
- package/dist/Cesium/Workers/chunk-P2A4LTBW.js +26 -0
- package/dist/Cesium/Workers/{chunk-HXIAOT7H.js → chunk-PQF7YB7C.js} +1 -1
- package/dist/Cesium/Workers/{chunk-NVQN2WQZ.js → chunk-QC664SDS.js} +2 -2
- package/dist/Cesium/Workers/chunk-QLA567VU.js +66 -0
- package/dist/Cesium/Workers/{chunk-HBEVV6IK.js → chunk-QMNXCAC6.js} +2 -2
- package/dist/Cesium/Workers/chunk-S5WJXCZO.js +26 -0
- package/dist/Cesium/Workers/{chunk-4RJDMIO4.js → chunk-TAU7Y5S5.js} +2 -2
- package/dist/Cesium/Workers/{chunk-E2BL2RZG.js → chunk-TBESXZ5I.js} +2 -2
- package/dist/Cesium/Workers/chunk-TICQDDS3.js +26 -0
- package/dist/Cesium/Workers/chunk-U6VPCTVK.js +26 -0
- package/dist/Cesium/Workers/{chunk-BYGMMPBC.js → chunk-VEDHIHCJ.js} +2 -2
- package/dist/Cesium/Workers/chunk-VUWKCLE2.js +26 -0
- package/dist/Cesium/Workers/chunk-VV7VOBQF.js +26 -0
- package/dist/Cesium/Workers/{chunk-5HTTNN4T.js → chunk-W5OYQDXN.js} +2 -2
- package/dist/Cesium/Workers/{chunk-TQL3YWK4.js → chunk-WUKOSFF5.js} +2 -2
- package/dist/Cesium/Workers/chunk-XAZPIEZX.js +26 -0
- package/dist/Cesium/Workers/chunk-XKCVKWJ5.js +26 -0
- package/dist/Cesium/Workers/{chunk-HKVMSEEW.js → chunk-YXBVEKWI.js} +1 -1
- package/dist/Cesium/Workers/chunk-YXTGMGCC.js +26 -0
- package/dist/Cesium/Workers/chunk-Z7K6WT6T.js +26 -0
- package/dist/Cesium/Workers/{chunk-YJTMGLB7.js → chunk-ZHH5JPWV.js} +2 -2
- package/dist/Cesium/Workers/combineGeometry.js +2 -2
- package/dist/Cesium/Workers/createBoxGeometry.js +2 -2
- package/dist/Cesium/Workers/createBoxOutlineGeometry.js +2 -2
- package/dist/Cesium/Workers/createCircleGeometry.js +2 -2
- package/dist/Cesium/Workers/createCircleOutlineGeometry.js +2 -2
- package/dist/Cesium/Workers/createCoplanarPolygonGeometry.js +2 -2
- package/dist/Cesium/Workers/createCoplanarPolygonOutlineGeometry.js +2 -2
- package/dist/Cesium/Workers/createCorridorGeometry.js +2 -2
- package/dist/Cesium/Workers/createCorridorOutlineGeometry.js +2 -2
- package/dist/Cesium/Workers/createCylinderGeometry.js +2 -2
- package/dist/Cesium/Workers/createCylinderOutlineGeometry.js +2 -2
- package/dist/Cesium/Workers/createEllipseGeometry.js +2 -2
- package/dist/Cesium/Workers/createEllipseOutlineGeometry.js +2 -2
- package/dist/Cesium/Workers/createEllipsoidGeometry.js +2 -2
- package/dist/Cesium/Workers/createEllipsoidOutlineGeometry.js +2 -2
- package/dist/Cesium/Workers/createFrustumGeometry.js +2 -2
- package/dist/Cesium/Workers/createFrustumOutlineGeometry.js +2 -2
- package/dist/Cesium/Workers/createGeometry.js +2 -2
- package/dist/Cesium/Workers/createGroundPolylineGeometry.js +2 -2
- package/dist/Cesium/Workers/createPlaneGeometry.js +2 -2
- package/dist/Cesium/Workers/createPlaneOutlineGeometry.js +2 -2
- package/dist/Cesium/Workers/createPolygonGeometry.js +2 -2
- package/dist/Cesium/Workers/createPolygonOutlineGeometry.js +2 -2
- package/dist/Cesium/Workers/createPolylineGeometry.js +2 -2
- package/dist/Cesium/Workers/createPolylineVolumeGeometry.js +2 -2
- package/dist/Cesium/Workers/createPolylineVolumeOutlineGeometry.js +2 -2
- package/dist/Cesium/Workers/createRectangleGeometry.js +2 -2
- package/dist/Cesium/Workers/createRectangleOutlineGeometry.js +2 -2
- package/dist/Cesium/Workers/createSimplePolylineGeometry.js +2 -2
- package/dist/Cesium/Workers/createSphereGeometry.js +2 -2
- package/dist/Cesium/Workers/createSphereOutlineGeometry.js +2 -2
- package/dist/Cesium/Workers/createTaskProcessorWorker.js +2 -2
- package/dist/Cesium/Workers/createVectorTileClampedPolylines.js +2 -2
- package/dist/Cesium/Workers/createVectorTileGeometries.js +2 -2
- package/dist/Cesium/Workers/createVectorTilePoints.js +2 -2
- package/dist/Cesium/Workers/createVectorTilePolygons.js +2 -2
- package/dist/Cesium/Workers/createVectorTilePolylines.js +2 -2
- package/dist/Cesium/Workers/createVerticesFromGoogleEarthEnterpriseBuffer.js +2 -2
- package/dist/Cesium/Workers/createVerticesFromHeightmap.js +2 -2
- package/dist/Cesium/Workers/createVerticesFromQuantizedTerrainMesh.js +2 -2
- package/dist/Cesium/Workers/createWallGeometry.js +2 -2
- package/dist/Cesium/Workers/createWallOutlineGeometry.js +2 -2
- package/dist/Cesium/Workers/decodeDraco.js +2 -2
- package/dist/Cesium/Workers/decodeGoogleEarthEnterprisePacket.js +2 -2
- package/dist/Cesium/Workers/decodeI3S.js +2 -2
- package/dist/Cesium/Workers/transcodeKTX2.js +21 -21
- package/dist/Cesium/Workers/transferTypedArrayTest.js +1 -1
- package/dist/Cesium/Workers/upsampleQuantizedTerrainMesh.js +2 -2
- package/dist/Cesium/index.cjs +16085 -0
- package/dist/Cesium/index.js +16085 -0
- package/dist/gis-cesium-helper.es.js +43 -23
- package/dist/gis-cesium-helper.umd.js +2 -2
- package/dist/gis3d/gis3d.css +62 -2
- package/dist/gis3d/gis3d.js +1 -1
- package/dist/index.d.ts +3 -2
- package/dist/src/BaseGlobe.d.ts +2 -0
- package/dist/src/feature/radar/RadarCircle.d.ts +1 -0
- package/dist/src/feature/radar/RadarSector.d.ts +1 -0
- package/dist/src/feature/radar/index.d.ts +5 -3
- package/dist/src/manager/BaseGraphic.d.ts +1 -1
- package/package.json +1 -1
- package/dist/Cesium/ThirdParty/Workers/draco_decoder_nodejs.js +0 -1
- package/dist/Cesium/Workers/chunk-2BUTAXOJ.js +0 -26
- package/dist/Cesium/Workers/chunk-4Y673DAX.js +0 -26
- package/dist/Cesium/Workers/chunk-6JIR5UA6.js +0 -26
- package/dist/Cesium/Workers/chunk-7JE52M2E.js +0 -26
- package/dist/Cesium/Workers/chunk-A2GTHHER.js +0 -26
- package/dist/Cesium/Workers/chunk-EH5BIXGS.js +0 -26
- package/dist/Cesium/Workers/chunk-EJ4M7ZWT.js +0 -26
- package/dist/Cesium/Workers/chunk-FRIKFALT.js +0 -26
- package/dist/Cesium/Workers/chunk-GCHOMXEL.js +0 -26
- package/dist/Cesium/Workers/chunk-H4IFK52P.js +0 -26
- package/dist/Cesium/Workers/chunk-HQCE7D5L.js +0 -26
- package/dist/Cesium/Workers/chunk-IYA25EHI.js +0 -26
- package/dist/Cesium/Workers/chunk-LJJKLY2N.js +0 -26
- package/dist/Cesium/Workers/chunk-LO4XCY55.js +0 -26
- package/dist/Cesium/Workers/chunk-OPGPRG5D.js +0 -26
- package/dist/Cesium/Workers/chunk-PEHZZEN4.js +0 -26
- package/dist/Cesium/Workers/chunk-PTGCDCSG.js +0 -26
- package/dist/Cesium/Workers/chunk-Q3IJMJJ2.js +0 -62
- package/dist/Cesium/Workers/chunk-X7PMFMCX.js +0 -30
- package/dist/Cesium/Workers/chunk-YGFN6UZV.js +0 -26
- package/dist/Cesium/Workers/chunk-ZGGJSLK5.js +0 -28
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
!function(){"use strict";try{if("undefined"!=typeof document){var
|
|
1
|
+
!function(){"use strict";try{if("undefined"!=typeof document){var t=document.createElement("style");t.appendChild(document.createTextNode("*{margin:0;padding:0;list-style-type:none;box-sizing:border-box;outline:none}html{font-size:14px;height:100%;box-sizing:border-box}body{height:100%;-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;text-rendering:optimizeLegibility;font-family:Microsoft YaHei,Arial,sans-serif}a{text-decoration:none;cursor:pointer}i{font-style:normal}.gis3d-popup-content{margin:13px 24px 13px 20px!important}.topleft{left:10px;top:10px}.topright{right:10px;top:10px}.bottomleft{left:10px;bottom:10px}.bottomright{right:10px;bottom:10px}.cesium-button{background-color:#3f4854;color:#e6e6e6;fill:#e6e6e6;box-shadow:0 1px 4px #0000004d;line-height:32px}.cesium-baseLayerPicker-dropDown{bottom:0;left:40px;max-height:700px;margin-bottom:5px}.cesium-sceneModePicker-wrapper{width:auto}.cesium-sceneModePicker-wrapper .cesium-sceneModePicker-dropDown-icon{float:right;margin:0 3px}.gis3d-toolbar{position:absolute;display:flex;align-items:center;z-index:1000;border-radius:4px;font-size:16px}.gis3d-toolbar-item{color:var(--v3-map-widget-color);text-align:center;width:32px;height:16px;cursor:pointer;margin:5px 0;display:inline-flex;justify-content:center;align-items:center;border-right:1px solid #adafaf}.gis3d-toolbar-item svg{fill:#fff}.gis3d-toolbar-item:last-child{border-right:none}.gis3d-toolbar-item.active{color:#dd2}.gis3d-toolbar-item.active>svg{fill:#dd2}.gis3d-toolbar-item:hover{color:#dd2}.gis3d-toolbar-item:hover>svg{fill:#dd2}.gis3d-toolbar-item>i{line-height:30px!important}.gis3d-toolbar-item>img{width:100%;height:100%;object-fit:scale-down}.keyboard-3d{width:465px;position:absolute;height:200px;padding:10px;background-color:#272c36;display:none}.keyboard-3d img{width:100%;height:100%}.gis3d-locationbar{display:inline-flex;right:unset!important;border-radius:4px;width:fit-content}.gis3d-locationbar>div+div{margin-left:15px}")),document.head.appendChild(t)}}catch(i){console.error("vite-plugin-css-injected-by-js",i)}}();
|
|
2
2
|
var __defProp = Object.defineProperty;
|
|
3
3
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
4
4
|
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
@@ -23,13 +23,12 @@ class BaseGraphic {
|
|
|
23
23
|
return Object.assign({}, defaultOptions, options);
|
|
24
24
|
}
|
|
25
25
|
addTo(e) {
|
|
26
|
-
e.addGraphic(this);
|
|
26
|
+
e._instance.addGraphic(this);
|
|
27
27
|
}
|
|
28
28
|
remove() {
|
|
29
29
|
if (this._layer) {
|
|
30
30
|
this._layer.removeGraphic(this);
|
|
31
31
|
}
|
|
32
|
-
this._layer = void 0;
|
|
33
32
|
}
|
|
34
33
|
}
|
|
35
34
|
class BaseLayer extends EventDispatcher {
|
|
@@ -87,7 +86,6 @@ class BaseLayer extends EventDispatcher {
|
|
|
87
86
|
}
|
|
88
87
|
removeGraphic(graphic) {
|
|
89
88
|
this._graphicMap.delete(graphic._uid);
|
|
90
|
-
graphic._layer = void 0;
|
|
91
89
|
if (graphic instanceof BaseGraphic) {
|
|
92
90
|
graphic.removeHook(this);
|
|
93
91
|
return graphic._instance && this._instance.removeGraphic(graphic._instance);
|
|
@@ -692,6 +690,12 @@ const _BaseGlobe = class _BaseGlobe extends EventDispatcher {
|
|
|
692
690
|
get hasTerrain() {
|
|
693
691
|
return !!this._instance.hasTerrain;
|
|
694
692
|
}
|
|
693
|
+
get scene() {
|
|
694
|
+
return this._instance.scene;
|
|
695
|
+
}
|
|
696
|
+
get graphicLayer() {
|
|
697
|
+
return this._instance.graphicLayer;
|
|
698
|
+
}
|
|
695
699
|
addLayer(layer) {
|
|
696
700
|
this._layerMap.set(layer.options.id, layer);
|
|
697
701
|
return this._instance.addLayer(layer._instance);
|
|
@@ -1034,6 +1038,13 @@ ToolBarItem.MeasureArea = MeasureArea;
|
|
|
1034
1038
|
ToolBarItem.Clear = Clear;
|
|
1035
1039
|
ToolBarItem.Home = Home;
|
|
1036
1040
|
ToolBarItem.Keyboard = Keyboard;
|
|
1041
|
+
var CircleMaterialType = /* @__PURE__ */ ((CircleMaterialType2) => {
|
|
1042
|
+
CircleMaterialType2[CircleMaterialType2["Wave"] = 0] = "Wave";
|
|
1043
|
+
CircleMaterialType2[CircleMaterialType2["Scan"] = 1] = "Scan";
|
|
1044
|
+
CircleMaterialType2[CircleMaterialType2["Breath"] = 2] = "Breath";
|
|
1045
|
+
CircleMaterialType2[CircleMaterialType2["Whirl"] = 3] = "Whirl";
|
|
1046
|
+
return CircleMaterialType2;
|
|
1047
|
+
})(CircleMaterialType || {});
|
|
1037
1048
|
const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
1038
1049
|
constructor(options) {
|
|
1039
1050
|
super(ObjectUtil.deepAssign({}, _RadarCircle.DEFAULT_OPTIONS, options));
|
|
@@ -1055,12 +1066,11 @@ const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
|
1055
1066
|
this.initializeMaterial();
|
|
1056
1067
|
}
|
|
1057
1068
|
initializeCircle() {
|
|
1058
|
-
var _a, _b, _c;
|
|
1059
1069
|
this.circleEntity = new gis3d.graphic.CircleEntity({
|
|
1060
1070
|
position: Cesium.Cartesian3.fromDegrees(...this.position),
|
|
1061
1071
|
style: this.getCircleStyle()
|
|
1062
1072
|
});
|
|
1063
|
-
|
|
1073
|
+
this._layer._instance.addGraphic(this.circleEntity);
|
|
1064
1074
|
const east = this.circleEntity["outlineCoordinates"].min((d) => d[0]);
|
|
1065
1075
|
const west = this.circleEntity["outlineCoordinates"].max((d) => d[0]);
|
|
1066
1076
|
const south = this.circleEntity["outlineCoordinates"].min((d) => d[1]);
|
|
@@ -1081,11 +1091,10 @@ const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
|
1081
1091
|
},
|
|
1082
1092
|
show: !!this.options.axis
|
|
1083
1093
|
});
|
|
1084
|
-
|
|
1085
|
-
|
|
1094
|
+
this._layer._instance.addGraphic(this.axisEntity[0]);
|
|
1095
|
+
this._layer._instance.addGraphic(this.axisEntity[1]);
|
|
1086
1096
|
}
|
|
1087
1097
|
initializeScale() {
|
|
1088
|
-
var _a, _b;
|
|
1089
1098
|
this.scaleCircleEntity.forEach((entity) => entity.remove());
|
|
1090
1099
|
for (let i = 1, l = this.options.scale.splitNum; i <= l; i++) {
|
|
1091
1100
|
const radius = this.options.radius * i / l;
|
|
@@ -1100,7 +1109,7 @@ const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
|
1100
1109
|
},
|
|
1101
1110
|
show: !!this.options.scale
|
|
1102
1111
|
});
|
|
1103
|
-
|
|
1112
|
+
this._layer._instance.addGraphic(this.scaleCircleEntity[i - 1]);
|
|
1104
1113
|
const east = this.scaleCircleEntity[i - 1].outlineCoordinates.max((d) => d[0]);
|
|
1105
1114
|
this.labelCircleEntity[i - 1] = new gis3d.graphic.LabelEntity({
|
|
1106
1115
|
position: Cesium.Cartesian3.fromDegrees(east[0], this.position[1]),
|
|
@@ -1118,12 +1127,12 @@ const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
|
1118
1127
|
},
|
|
1119
1128
|
show: !!this.options.scale
|
|
1120
1129
|
});
|
|
1121
|
-
|
|
1130
|
+
this._layer._instance.addGraphic(this.labelCircleEntity[i - 1]);
|
|
1122
1131
|
}
|
|
1123
1132
|
}
|
|
1124
1133
|
}
|
|
1125
1134
|
initializeMaterial() {
|
|
1126
|
-
var _a
|
|
1135
|
+
var _a;
|
|
1127
1136
|
(_a = this.materialEntity) == null ? void 0 : _a.remove();
|
|
1128
1137
|
switch (this.options.material.type) {
|
|
1129
1138
|
case 0:
|
|
@@ -1137,7 +1146,7 @@ const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
|
1137
1146
|
speed: this.options.material.speed
|
|
1138
1147
|
}
|
|
1139
1148
|
},
|
|
1140
|
-
show: !!this.options.material
|
|
1149
|
+
show: !!this.options.material.show
|
|
1141
1150
|
});
|
|
1142
1151
|
break;
|
|
1143
1152
|
case 1:
|
|
@@ -1158,7 +1167,8 @@ const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
|
1158
1167
|
this.options.material.clockwise ? _rotation += this.options.material.speed : _rotation -= this.options.material.speed;
|
|
1159
1168
|
return MathUtil.deg2Rad(_rotation);
|
|
1160
1169
|
}, false)
|
|
1161
|
-
}
|
|
1170
|
+
},
|
|
1171
|
+
show: this.options.material.show
|
|
1162
1172
|
});
|
|
1163
1173
|
break;
|
|
1164
1174
|
case 3:
|
|
@@ -1177,7 +1187,7 @@ const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
|
1177
1187
|
return MathUtil.deg2Rad(__rotation);
|
|
1178
1188
|
}, false)
|
|
1179
1189
|
},
|
|
1180
|
-
show: !!this.options.material
|
|
1190
|
+
show: !!this.options.material.show
|
|
1181
1191
|
});
|
|
1182
1192
|
break;
|
|
1183
1193
|
case 2:
|
|
@@ -1207,11 +1217,11 @@ const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
|
1207
1217
|
count: 1
|
|
1208
1218
|
}
|
|
1209
1219
|
},
|
|
1210
|
-
show: !!this.options.material
|
|
1220
|
+
show: !!this.options.material.show
|
|
1211
1221
|
});
|
|
1212
1222
|
break;
|
|
1213
1223
|
}
|
|
1214
|
-
|
|
1224
|
+
this._layer._instance.addGraphic(this.materialEntity);
|
|
1215
1225
|
}
|
|
1216
1226
|
getCircleStyle() {
|
|
1217
1227
|
return {
|
|
@@ -1256,6 +1266,7 @@ __publicField(_RadarCircle, "DEFAULT_OPTIONS", {
|
|
|
1256
1266
|
labelColor: "#000"
|
|
1257
1267
|
},
|
|
1258
1268
|
material: {
|
|
1269
|
+
show: true,
|
|
1259
1270
|
type: 0,
|
|
1260
1271
|
color: "#0ff",
|
|
1261
1272
|
speed: 10,
|
|
@@ -1263,6 +1274,11 @@ __publicField(_RadarCircle, "DEFAULT_OPTIONS", {
|
|
|
1263
1274
|
}
|
|
1264
1275
|
});
|
|
1265
1276
|
let RadarCircle = _RadarCircle;
|
|
1277
|
+
var SectorMaterialType = /* @__PURE__ */ ((SectorMaterialType2) => {
|
|
1278
|
+
SectorMaterialType2[SectorMaterialType2["ScanSwing"] = 0] = "ScanSwing";
|
|
1279
|
+
SectorMaterialType2[SectorMaterialType2["Strike"] = 1] = "Strike";
|
|
1280
|
+
return SectorMaterialType2;
|
|
1281
|
+
})(SectorMaterialType || {});
|
|
1266
1282
|
const _RadarSector = class _RadarSector extends BaseGraphic {
|
|
1267
1283
|
constructor(options) {
|
|
1268
1284
|
super(ObjectUtil.deepAssign({}, _RadarSector.DEFAULT_OPTIONS, options));
|
|
@@ -1283,15 +1299,14 @@ const _RadarSector = class _RadarSector extends BaseGraphic {
|
|
|
1283
1299
|
this.initializeMaterial();
|
|
1284
1300
|
}
|
|
1285
1301
|
initializeSector() {
|
|
1286
|
-
var _a;
|
|
1287
1302
|
this.sectorEntity = new gis3d.graphic.Sector({
|
|
1288
1303
|
position: Cesium.Cartesian3.fromDegrees(...this.position),
|
|
1289
1304
|
style: this.getSectorStyle()
|
|
1290
1305
|
});
|
|
1291
|
-
|
|
1306
|
+
this._layer._instance.addGraphic(this.sectorEntity);
|
|
1292
1307
|
}
|
|
1293
1308
|
initializeMaterial() {
|
|
1294
|
-
var _a
|
|
1309
|
+
var _a;
|
|
1295
1310
|
(_a = this.materialEntity) == null ? void 0 : _a.remove();
|
|
1296
1311
|
const { startAngle, endAngle, radius } = this.options;
|
|
1297
1312
|
switch (this.options.material.type) {
|
|
@@ -1333,7 +1348,8 @@ const _RadarSector = class _RadarSector extends BaseGraphic {
|
|
|
1333
1348
|
}
|
|
1334
1349
|
return MathUtil.deg2Rad(_rotation + 270);
|
|
1335
1350
|
}, false)
|
|
1336
|
-
}
|
|
1351
|
+
},
|
|
1352
|
+
show: this.options.material.show
|
|
1337
1353
|
});
|
|
1338
1354
|
break;
|
|
1339
1355
|
case 1:
|
|
@@ -1351,11 +1367,12 @@ const _RadarSector = class _RadarSector extends BaseGraphic {
|
|
|
1351
1367
|
});
|
|
1352
1368
|
return _radius;
|
|
1353
1369
|
}, false)
|
|
1354
|
-
}
|
|
1370
|
+
},
|
|
1371
|
+
show: this.options.material.show
|
|
1355
1372
|
});
|
|
1356
1373
|
break;
|
|
1357
1374
|
}
|
|
1358
|
-
|
|
1375
|
+
this._layer._instance.addGraphic(this.materialEntity);
|
|
1359
1376
|
}
|
|
1360
1377
|
getSectorStyle() {
|
|
1361
1378
|
return {
|
|
@@ -1391,6 +1408,7 @@ __publicField(_RadarSector, "DEFAULT_OPTIONS", {
|
|
|
1391
1408
|
fillColor: "#ff0",
|
|
1392
1409
|
color: "#fff",
|
|
1393
1410
|
material: {
|
|
1411
|
+
show: true,
|
|
1394
1412
|
type: 0,
|
|
1395
1413
|
color: "#0ff",
|
|
1396
1414
|
speed: 10,
|
|
@@ -1410,9 +1428,11 @@ export {
|
|
|
1410
1428
|
BaseGraphic,
|
|
1411
1429
|
BaseLayer,
|
|
1412
1430
|
BaseToolBar,
|
|
1431
|
+
CircleMaterialType,
|
|
1413
1432
|
GlobeUtil,
|
|
1414
1433
|
RadarCircle,
|
|
1415
1434
|
RadarEllipsoid,
|
|
1416
1435
|
RadarSector,
|
|
1436
|
+
SectorMaterialType,
|
|
1417
1437
|
ToolBarItem
|
|
1418
1438
|
};
|