gis-cesium-helper 4.1.1 → 4.1.3
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/gis-cesium-helper.es.js +59 -31
- 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 +3 -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 +3 -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);
|
|
@@ -16,6 +16,10 @@ class BaseGraphic {
|
|
|
16
16
|
}
|
|
17
17
|
removeHook(e) {
|
|
18
18
|
}
|
|
19
|
+
setStyle(style) {
|
|
20
|
+
}
|
|
21
|
+
setVisible(visible) {
|
|
22
|
+
}
|
|
19
23
|
initializeOptions(options) {
|
|
20
24
|
const defaultOptions = {
|
|
21
25
|
id: Util.guid()
|
|
@@ -23,13 +27,12 @@ class BaseGraphic {
|
|
|
23
27
|
return Object.assign({}, defaultOptions, options);
|
|
24
28
|
}
|
|
25
29
|
addTo(e) {
|
|
26
|
-
e.addGraphic(this);
|
|
30
|
+
e._instance.addGraphic(this);
|
|
27
31
|
}
|
|
28
32
|
remove() {
|
|
29
33
|
if (this._layer) {
|
|
30
34
|
this._layer.removeGraphic(this);
|
|
31
35
|
}
|
|
32
|
-
this._layer = void 0;
|
|
33
36
|
}
|
|
34
37
|
}
|
|
35
38
|
class BaseLayer extends EventDispatcher {
|
|
@@ -87,7 +90,6 @@ class BaseLayer extends EventDispatcher {
|
|
|
87
90
|
}
|
|
88
91
|
removeGraphic(graphic) {
|
|
89
92
|
this._graphicMap.delete(graphic._uid);
|
|
90
|
-
graphic._layer = void 0;
|
|
91
93
|
if (graphic instanceof BaseGraphic) {
|
|
92
94
|
graphic.removeHook(this);
|
|
93
95
|
return graphic._instance && this._instance.removeGraphic(graphic._instance);
|
|
@@ -692,6 +694,12 @@ const _BaseGlobe = class _BaseGlobe extends EventDispatcher {
|
|
|
692
694
|
get hasTerrain() {
|
|
693
695
|
return !!this._instance.hasTerrain;
|
|
694
696
|
}
|
|
697
|
+
get scene() {
|
|
698
|
+
return this._instance.scene;
|
|
699
|
+
}
|
|
700
|
+
get graphicLayer() {
|
|
701
|
+
return this._instance.graphicLayer;
|
|
702
|
+
}
|
|
695
703
|
addLayer(layer) {
|
|
696
704
|
this._layerMap.set(layer.options.id, layer);
|
|
697
705
|
return this._instance.addLayer(layer._instance);
|
|
@@ -1034,6 +1042,13 @@ ToolBarItem.MeasureArea = MeasureArea;
|
|
|
1034
1042
|
ToolBarItem.Clear = Clear;
|
|
1035
1043
|
ToolBarItem.Home = Home;
|
|
1036
1044
|
ToolBarItem.Keyboard = Keyboard;
|
|
1045
|
+
var CircleMaterialType = /* @__PURE__ */ ((CircleMaterialType2) => {
|
|
1046
|
+
CircleMaterialType2[CircleMaterialType2["Wave"] = 0] = "Wave";
|
|
1047
|
+
CircleMaterialType2[CircleMaterialType2["Scan"] = 1] = "Scan";
|
|
1048
|
+
CircleMaterialType2[CircleMaterialType2["Breath"] = 2] = "Breath";
|
|
1049
|
+
CircleMaterialType2[CircleMaterialType2["Whirl"] = 3] = "Whirl";
|
|
1050
|
+
return CircleMaterialType2;
|
|
1051
|
+
})(CircleMaterialType || {});
|
|
1037
1052
|
const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
1038
1053
|
constructor(options) {
|
|
1039
1054
|
super(ObjectUtil.deepAssign({}, _RadarCircle.DEFAULT_OPTIONS, options));
|
|
@@ -1055,12 +1070,11 @@ const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
|
1055
1070
|
this.initializeMaterial();
|
|
1056
1071
|
}
|
|
1057
1072
|
initializeCircle() {
|
|
1058
|
-
var _a, _b, _c;
|
|
1059
1073
|
this.circleEntity = new gis3d.graphic.CircleEntity({
|
|
1060
1074
|
position: Cesium.Cartesian3.fromDegrees(...this.position),
|
|
1061
1075
|
style: this.getCircleStyle()
|
|
1062
1076
|
});
|
|
1063
|
-
|
|
1077
|
+
this._layer._instance.addGraphic(this.circleEntity);
|
|
1064
1078
|
const east = this.circleEntity["outlineCoordinates"].min((d) => d[0]);
|
|
1065
1079
|
const west = this.circleEntity["outlineCoordinates"].max((d) => d[0]);
|
|
1066
1080
|
const south = this.circleEntity["outlineCoordinates"].min((d) => d[1]);
|
|
@@ -1071,7 +1085,7 @@ const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
|
1071
1085
|
color: this.options.axis.color,
|
|
1072
1086
|
depthFail: true
|
|
1073
1087
|
},
|
|
1074
|
-
show: !!this.options.axis
|
|
1088
|
+
show: !!this.options.axis.show
|
|
1075
1089
|
});
|
|
1076
1090
|
this.axisEntity[1] = new gis3d.graphic.PolylineEntity({
|
|
1077
1091
|
positions: [Cesium.Cartesian3.fromDegrees(this.position[0], south[1]), Cesium.Cartesian3.fromDegrees(this.position[0], north[1])],
|
|
@@ -1079,14 +1093,14 @@ const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
|
1079
1093
|
color: this.options.axis.color,
|
|
1080
1094
|
depthFail: true
|
|
1081
1095
|
},
|
|
1082
|
-
show: !!this.options.axis
|
|
1096
|
+
show: !!this.options.axis.show
|
|
1083
1097
|
});
|
|
1084
|
-
|
|
1085
|
-
|
|
1098
|
+
this._layer._instance.addGraphic(this.axisEntity[0]);
|
|
1099
|
+
this._layer._instance.addGraphic(this.axisEntity[1]);
|
|
1086
1100
|
}
|
|
1087
1101
|
initializeScale() {
|
|
1088
|
-
var _a, _b;
|
|
1089
1102
|
this.scaleCircleEntity.forEach((entity) => entity.remove());
|
|
1103
|
+
this.labelCircleEntity.forEach((entity) => entity.remove());
|
|
1090
1104
|
for (let i = 1, l = this.options.scale.splitNum; i <= l; i++) {
|
|
1091
1105
|
const radius = this.options.radius * i / l;
|
|
1092
1106
|
if (radius) {
|
|
@@ -1098,9 +1112,9 @@ const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
|
1098
1112
|
outline: true,
|
|
1099
1113
|
outlineColor: this.options.scale.lineColor
|
|
1100
1114
|
},
|
|
1101
|
-
show: !!this.options.scale
|
|
1115
|
+
show: !!this.options.scale.show
|
|
1102
1116
|
});
|
|
1103
|
-
|
|
1117
|
+
this._layer._instance.addGraphic(this.scaleCircleEntity[i - 1]);
|
|
1104
1118
|
const east = this.scaleCircleEntity[i - 1].outlineCoordinates.max((d) => d[0]);
|
|
1105
1119
|
this.labelCircleEntity[i - 1] = new gis3d.graphic.LabelEntity({
|
|
1106
1120
|
position: Cesium.Cartesian3.fromDegrees(east[0], this.position[1]),
|
|
@@ -1116,14 +1130,14 @@ const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
|
1116
1130
|
distanceDisplayCondition_near: this.options.scale.minDistance,
|
|
1117
1131
|
distanceDisplayCondition_far: this.options.scale.maxDistance
|
|
1118
1132
|
},
|
|
1119
|
-
show: !!this.options.scale
|
|
1133
|
+
show: !!this.options.scale.show
|
|
1120
1134
|
});
|
|
1121
|
-
|
|
1135
|
+
this._layer._instance.addGraphic(this.labelCircleEntity[i - 1]);
|
|
1122
1136
|
}
|
|
1123
1137
|
}
|
|
1124
1138
|
}
|
|
1125
1139
|
initializeMaterial() {
|
|
1126
|
-
var _a
|
|
1140
|
+
var _a;
|
|
1127
1141
|
(_a = this.materialEntity) == null ? void 0 : _a.remove();
|
|
1128
1142
|
switch (this.options.material.type) {
|
|
1129
1143
|
case 0:
|
|
@@ -1137,7 +1151,7 @@ const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
|
1137
1151
|
speed: this.options.material.speed
|
|
1138
1152
|
}
|
|
1139
1153
|
},
|
|
1140
|
-
show: !!this.options.material
|
|
1154
|
+
show: !!this.options.material.show
|
|
1141
1155
|
});
|
|
1142
1156
|
break;
|
|
1143
1157
|
case 1:
|
|
@@ -1158,7 +1172,8 @@ const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
|
1158
1172
|
this.options.material.clockwise ? _rotation += this.options.material.speed : _rotation -= this.options.material.speed;
|
|
1159
1173
|
return MathUtil.deg2Rad(_rotation);
|
|
1160
1174
|
}, false)
|
|
1161
|
-
}
|
|
1175
|
+
},
|
|
1176
|
+
show: this.options.material.show
|
|
1162
1177
|
});
|
|
1163
1178
|
break;
|
|
1164
1179
|
case 3:
|
|
@@ -1177,7 +1192,7 @@ const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
|
1177
1192
|
return MathUtil.deg2Rad(__rotation);
|
|
1178
1193
|
}, false)
|
|
1179
1194
|
},
|
|
1180
|
-
show: !!this.options.material
|
|
1195
|
+
show: !!this.options.material.show
|
|
1181
1196
|
});
|
|
1182
1197
|
break;
|
|
1183
1198
|
case 2:
|
|
@@ -1207,11 +1222,11 @@ const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
|
1207
1222
|
count: 1
|
|
1208
1223
|
}
|
|
1209
1224
|
},
|
|
1210
|
-
show: !!this.options.material
|
|
1225
|
+
show: !!this.options.material.show
|
|
1211
1226
|
});
|
|
1212
1227
|
break;
|
|
1213
1228
|
}
|
|
1214
|
-
|
|
1229
|
+
this._layer._instance.addGraphic(this.materialEntity);
|
|
1215
1230
|
}
|
|
1216
1231
|
getCircleStyle() {
|
|
1217
1232
|
return {
|
|
@@ -1226,12 +1241,13 @@ const _RadarCircle = class _RadarCircle extends BaseGraphic {
|
|
|
1226
1241
|
setStyle(style = {}) {
|
|
1227
1242
|
ObjectUtil.deepAssign(this.options, style);
|
|
1228
1243
|
this.circleEntity.setStyle(this.getCircleStyle());
|
|
1229
|
-
this.axisEntity.forEach(
|
|
1230
|
-
|
|
1244
|
+
this.axisEntity.forEach((entity) => {
|
|
1245
|
+
entity.setStyle({
|
|
1231
1246
|
color: this.options.axis.color,
|
|
1232
1247
|
depthFail: true
|
|
1233
|
-
})
|
|
1234
|
-
|
|
1248
|
+
});
|
|
1249
|
+
entity.show = !!this.options.axis.show;
|
|
1250
|
+
});
|
|
1235
1251
|
this.initializeScale();
|
|
1236
1252
|
this.initializeMaterial();
|
|
1237
1253
|
}
|
|
@@ -1248,14 +1264,17 @@ __publicField(_RadarCircle, "DEFAULT_OPTIONS", {
|
|
|
1248
1264
|
color: "#fff",
|
|
1249
1265
|
diffHeight: 0,
|
|
1250
1266
|
axis: {
|
|
1267
|
+
show: false,
|
|
1251
1268
|
color: "#000"
|
|
1252
1269
|
},
|
|
1253
1270
|
scale: {
|
|
1271
|
+
show: false,
|
|
1254
1272
|
splitNum: 5,
|
|
1255
1273
|
lineColor: "#000",
|
|
1256
1274
|
labelColor: "#000"
|
|
1257
1275
|
},
|
|
1258
1276
|
material: {
|
|
1277
|
+
show: false,
|
|
1259
1278
|
type: 0,
|
|
1260
1279
|
color: "#0ff",
|
|
1261
1280
|
speed: 10,
|
|
@@ -1263,6 +1282,11 @@ __publicField(_RadarCircle, "DEFAULT_OPTIONS", {
|
|
|
1263
1282
|
}
|
|
1264
1283
|
});
|
|
1265
1284
|
let RadarCircle = _RadarCircle;
|
|
1285
|
+
var SectorMaterialType = /* @__PURE__ */ ((SectorMaterialType2) => {
|
|
1286
|
+
SectorMaterialType2[SectorMaterialType2["ScanSwing"] = 0] = "ScanSwing";
|
|
1287
|
+
SectorMaterialType2[SectorMaterialType2["Strike"] = 1] = "Strike";
|
|
1288
|
+
return SectorMaterialType2;
|
|
1289
|
+
})(SectorMaterialType || {});
|
|
1266
1290
|
const _RadarSector = class _RadarSector extends BaseGraphic {
|
|
1267
1291
|
constructor(options) {
|
|
1268
1292
|
super(ObjectUtil.deepAssign({}, _RadarSector.DEFAULT_OPTIONS, options));
|
|
@@ -1283,15 +1307,14 @@ const _RadarSector = class _RadarSector extends BaseGraphic {
|
|
|
1283
1307
|
this.initializeMaterial();
|
|
1284
1308
|
}
|
|
1285
1309
|
initializeSector() {
|
|
1286
|
-
var _a;
|
|
1287
1310
|
this.sectorEntity = new gis3d.graphic.Sector({
|
|
1288
1311
|
position: Cesium.Cartesian3.fromDegrees(...this.position),
|
|
1289
1312
|
style: this.getSectorStyle()
|
|
1290
1313
|
});
|
|
1291
|
-
|
|
1314
|
+
this._layer._instance.addGraphic(this.sectorEntity);
|
|
1292
1315
|
}
|
|
1293
1316
|
initializeMaterial() {
|
|
1294
|
-
var _a
|
|
1317
|
+
var _a;
|
|
1295
1318
|
(_a = this.materialEntity) == null ? void 0 : _a.remove();
|
|
1296
1319
|
const { startAngle, endAngle, radius } = this.options;
|
|
1297
1320
|
switch (this.options.material.type) {
|
|
@@ -1333,7 +1356,8 @@ const _RadarSector = class _RadarSector extends BaseGraphic {
|
|
|
1333
1356
|
}
|
|
1334
1357
|
return MathUtil.deg2Rad(_rotation + 270);
|
|
1335
1358
|
}, false)
|
|
1336
|
-
}
|
|
1359
|
+
},
|
|
1360
|
+
show: this.options.material.show
|
|
1337
1361
|
});
|
|
1338
1362
|
break;
|
|
1339
1363
|
case 1:
|
|
@@ -1351,11 +1375,12 @@ const _RadarSector = class _RadarSector extends BaseGraphic {
|
|
|
1351
1375
|
});
|
|
1352
1376
|
return _radius;
|
|
1353
1377
|
}, false)
|
|
1354
|
-
}
|
|
1378
|
+
},
|
|
1379
|
+
show: this.options.material.show
|
|
1355
1380
|
});
|
|
1356
1381
|
break;
|
|
1357
1382
|
}
|
|
1358
|
-
|
|
1383
|
+
this._layer._instance.addGraphic(this.materialEntity);
|
|
1359
1384
|
}
|
|
1360
1385
|
getSectorStyle() {
|
|
1361
1386
|
return {
|
|
@@ -1391,6 +1416,7 @@ __publicField(_RadarSector, "DEFAULT_OPTIONS", {
|
|
|
1391
1416
|
fillColor: "#ff0",
|
|
1392
1417
|
color: "#fff",
|
|
1393
1418
|
material: {
|
|
1419
|
+
show: true,
|
|
1394
1420
|
type: 0,
|
|
1395
1421
|
color: "#0ff",
|
|
1396
1422
|
speed: 10,
|
|
@@ -1410,9 +1436,11 @@ export {
|
|
|
1410
1436
|
BaseGraphic,
|
|
1411
1437
|
BaseLayer,
|
|
1412
1438
|
BaseToolBar,
|
|
1439
|
+
CircleMaterialType,
|
|
1413
1440
|
GlobeUtil,
|
|
1414
1441
|
RadarCircle,
|
|
1415
1442
|
RadarEllipsoid,
|
|
1416
1443
|
RadarSector,
|
|
1444
|
+
SectorMaterialType,
|
|
1417
1445
|
ToolBarItem
|
|
1418
1446
|
};
|