From d3a02c827f4892332e7800d44f96bc3bc4c829fe Mon Sep 17 00:00:00 2001 From: Shuhei Iitsuka Date: Sun, 20 Jun 2021 14:33:58 +0900 Subject: [PATCH] Make a Path's commands accessible Making a path's commands accessible would be useful for users to apply some transformation to the path (e.g. move the entire path horizontally by adding offsets to `args`). --- fontkit.d.ts | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/fontkit.d.ts b/fontkit.d.ts index 06bdcb1d..06be4a10 100644 --- a/fontkit.d.ts +++ b/fontkit.d.ts @@ -35,6 +35,11 @@ export interface Path { */ cbox: BoundingBox; + /** + * This property represents the commands to draw an SVG path. + */ + commands: { args: number[], command: string }[]; + /** * Moves the virtual pen to the given x, y coordinates. */