From 8a00e1bd3d970535957e1ffa48de826da96d1737 Mon Sep 17 00:00:00 2001 From: binh-dam-ibigroup <56846598+binh-dam-ibigroup@users.noreply.github.com> Date: Mon, 2 Oct 2023 20:19:09 -0400 Subject: [PATCH] docs(core-utils): Fix typo --- packages/core-utils/src/itinerary.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/core-utils/src/itinerary.ts b/packages/core-utils/src/itinerary.ts index 6db453f9c..670177407 100644 --- a/packages/core-utils/src/itinerary.ts +++ b/packages/core-utils/src/itinerary.ts @@ -372,7 +372,7 @@ export function getTextWidth(text: string, font = "22px Arial"): number { // Create custom type for function including reused canvas object type GetTextWidth = typeof getTextWidth & { canvas: HTMLCanvasElement }; - // re-use canvas object for better performance + // reuse canvas object for better performance const canvas = (getTextWidth as GetTextWidth).canvas || ((getTextWidth as GetTextWidth).canvas = document.createElement("canvas"));