From 948f88078df6a95c1df018c338dc772c72abc933 Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Fri, 17 Nov 2023 13:57:54 +0000 Subject: [PATCH] fix typescript --- libs/graphics/jswrap_graphics.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/graphics/jswrap_graphics.c b/libs/graphics/jswrap_graphics.c index a8b0aedfbd..2452249b3c 100644 --- a/libs/graphics/jswrap_graphics.c +++ b/libs/graphics/jswrap_graphics.c @@ -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: