-
Notifications
You must be signed in to change notification settings - Fork 3.5k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
84 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./Cesium.js"; | ||
export * from "./Cesium.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
12 changes: 10 additions & 2 deletions
12
packages/engine/Specs/types/Core/TerrainProvider.test-d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,18 @@ | ||
import { expectAssignable } from "tsd"; | ||
|
||
import { ArcGISTiledElevationTerrainProvider, CesiumTerrainProvider, EllipsoidTerrainProvider, GoogleEarthEnterpriseTerrainProvider, Terrain, TerrainProvider, VRTheWorldTerrainProvider } from "@cesium/engine"; | ||
import { | ||
ArcGISTiledElevationTerrainProvider, | ||
CesiumTerrainProvider, | ||
EllipsoidTerrainProvider, | ||
GoogleEarthEnterpriseTerrainProvider, | ||
Terrain, | ||
TerrainProvider, | ||
VRTheWorldTerrainProvider, | ||
} from "@cesium/engine"; | ||
|
||
// Verify TerrainProvider instances conform to the expected interface | ||
expectAssignable<TerrainProvider>(new ArcGISTiledElevationTerrainProvider()); | ||
expectAssignable<TerrainProvider>(new CesiumTerrainProvider()); | ||
expectAssignable<TerrainProvider>(new EllipsoidTerrainProvider()); | ||
expectAssignable<TerrainProvider>(new VRTheWorldTerrainProvider()); | ||
expectAssignable<TerrainProvider>(new GoogleEarthEnterpriseTerrainProvider()); | ||
expectAssignable<TerrainProvider>(new GoogleEarthEnterpriseTerrainProvider()); |
80 changes: 57 additions & 23 deletions
80
packages/engine/Specs/types/Scene/ImageryProvider.test-d.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,68 @@ | ||
import { expectAssignable } from "tsd"; | ||
import { ArcGisMapServerImageryProvider, BingMapsImageryProvider, Color, GoogleEarthEnterpriseImageryProvider, GoogleEarthEnterpriseMapsProvider, GridImageryProvider, ImageryProvider, IonImageryProvider, MapboxImageryProvider, MapboxStyleImageryProvider, OpenStreetMapImageryProvider, SingleTileImageryProvider, TileCoordinatesImageryProvider, TileMapServiceImageryProvider, UrlTemplateImageryProvider, WebMapServiceImageryProvider, WebMapTileServiceImageryProvider } from "@cesium/engine" | ||
import { | ||
ArcGisMapServerImageryProvider, | ||
BingMapsImageryProvider, | ||
Color, | ||
GoogleEarthEnterpriseImageryProvider, | ||
GoogleEarthEnterpriseMapsProvider, | ||
GridImageryProvider, | ||
ImageryProvider, | ||
IonImageryProvider, | ||
MapboxImageryProvider, | ||
MapboxStyleImageryProvider, | ||
OpenStreetMapImageryProvider, | ||
SingleTileImageryProvider, | ||
TileCoordinatesImageryProvider, | ||
TileMapServiceImageryProvider, | ||
UrlTemplateImageryProvider, | ||
WebMapServiceImageryProvider, | ||
WebMapTileServiceImageryProvider, | ||
} from "@cesium/engine"; | ||
|
||
// Verify ImageryProvider instances conform to the expected interface | ||
expectAssignable<ImageryProvider>(new WebMapServiceImageryProvider({ url: "", layers: "0" })); | ||
expectAssignable<ImageryProvider>( | ||
new WebMapServiceImageryProvider({ url: "", layers: "0" }), | ||
); | ||
expectAssignable<ImageryProvider>(new ArcGisMapServerImageryProvider()); | ||
expectAssignable<ImageryProvider>(new BingMapsImageryProvider({ key: "" })); | ||
expectAssignable<ImageryProvider>(new OpenStreetMapImageryProvider({ url: "" })); | ||
expectAssignable<ImageryProvider>( | ||
new OpenStreetMapImageryProvider({ url: "" }), | ||
); | ||
expectAssignable<ImageryProvider>(new TileMapServiceImageryProvider()); | ||
expectAssignable<ImageryProvider>(new GridImageryProvider({ | ||
tileWidth: 256, | ||
tileHeight: 256, | ||
color: new Color(1.0, 1.0, 1.0, 0.4), | ||
})); | ||
expectAssignable<ImageryProvider>( | ||
new GridImageryProvider({ | ||
tileWidth: 256, | ||
tileHeight: 256, | ||
color: new Color(1.0, 1.0, 1.0, 0.4), | ||
}), | ||
); | ||
expectAssignable<ImageryProvider>(new IonImageryProvider()); | ||
expectAssignable<ImageryProvider>(new MapboxImageryProvider({ mapId: "", accessToken: "" })); | ||
expectAssignable<ImageryProvider>(new MapboxStyleImageryProvider({ | ||
styleId: "", | ||
accessToken: "", | ||
})); | ||
expectAssignable<ImageryProvider>( | ||
new MapboxImageryProvider({ mapId: "", accessToken: "" }), | ||
); | ||
expectAssignable<ImageryProvider>( | ||
new MapboxStyleImageryProvider({ | ||
styleId: "", | ||
accessToken: "", | ||
}), | ||
); | ||
expectAssignable<ImageryProvider>(new SingleTileImageryProvider({ url: "" })); | ||
expectAssignable<ImageryProvider>(new TileCoordinatesImageryProvider()); | ||
expectAssignable<ImageryProvider>(new UrlTemplateImageryProvider({ url: "" })); | ||
expectAssignable<ImageryProvider>(new WebMapServiceImageryProvider({ url: "", layers: "" })); | ||
expectAssignable<ImageryProvider>( | ||
new WebMapServiceImageryProvider({ url: "", layers: "" }), | ||
); | ||
expectAssignable<ImageryProvider>(new GoogleEarthEnterpriseImageryProvider()); | ||
expectAssignable<ImageryProvider>(new GoogleEarthEnterpriseMapsProvider({ | ||
channel: 1, | ||
})); | ||
expectAssignable<ImageryProvider>(new WebMapTileServiceImageryProvider({ | ||
url: "", | ||
layer: "", | ||
style: "", | ||
tileMatrixSetID: "", | ||
})); | ||
expectAssignable<ImageryProvider>( | ||
new GoogleEarthEnterpriseMapsProvider({ | ||
channel: 1, | ||
}), | ||
); | ||
expectAssignable<ImageryProvider>( | ||
new WebMapTileServiceImageryProvider({ | ||
url: "", | ||
layer: "", | ||
style: "", | ||
tileMatrixSetID: "", | ||
}), | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./index.js"; | ||
export * from "./index.js"; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,7 +1,5 @@ | ||
import { expectType } from "tsd"; | ||
|
||
import { | ||
Viewer | ||
} from "@cesium/widgets"; | ||
import { Viewer } from "@cesium/widgets"; | ||
|
||
expectType<Viewer>(new Viewer("test")); | ||
expectType<Viewer>(new Viewer("test")); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
export * from "./index.js"; | ||
export * from "./index.js"; |