Skip to content

Commit

Permalink
fix typescript
Browse files Browse the repository at this point in the history
  • Loading branch information
gfwilliams committed Nov 17, 2023
1 parent 27a08f7 commit 948f880
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/graphics/jswrap_graphics.c
Original file line number Diff line number Diff line change
Expand Up @@ -2316,7 +2316,7 @@ JsVarInt jswrap_graphics_stringWidth(JsVar *parent, JsVar *var) {
["str","JsVar","The string"]
],
"return" : ["JsVar","An object containing `{width,height,etc}` for the string - see below"],
"typescript" : "stringMetrics(str: string): { width: number, height: number, unknownChars: boolean, imageCount : number, maxImageHeight : number };"
"typescript" : "stringMetrics(str: string): { width: number, height: number, unrenderableChars: boolean, imageCount : number, maxImageHeight : number };"
}
Return the width and height in pixels of a string of text in the current font. The object returned contains:
Expand Down

0 comments on commit 948f880

Please sign in to comment.