Skip to content

Commit

Permalink
Add TS test and update CHANGES
Browse files Browse the repository at this point in the history
  • Loading branch information
Omar Shehata committed Nov 1, 2020
1 parent 641991c commit e3b55f3
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Change Log

### 1.75 - 2020-11-02

- Fixed JSDoc and TypeScript type definitions for `writeTextToCanvas` which listed incorrect return type. [#9196](https://github.com/CesiumGS/cesium/pull/9196)

### 1.74 - 2020-10-01

##### Additions :tada:
Expand Down
5 changes: 4 additions & 1 deletion Specs/TypeScript/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@ import {
CheckerboardMaterialProperty,
CircleGeometry,
CircleOutlineGeometry,
ColorMaterialProperty,
Color,
ColorMaterialProperty,
CompositeMaterialProperty,
CompositePositionProperty,
CompositeProperty,
Expand Down Expand Up @@ -97,6 +97,7 @@ import {
WallOutlineGeometry,
WebMapServiceImageryProvider,
WebMapTileServiceImageryProvider,
writeTextToCanvas,
} from "cesium";

// Verify ImageryProvider instances conform to the expected interface
Expand Down Expand Up @@ -384,3 +385,5 @@ geometryInstance = new GeometryInstance({
positions: [],
}),
});

const canvas: HTMLCanvasElement | undefined = writeTextToCanvas("test");

0 comments on commit e3b55f3

Please sign in to comment.