From 77cb65e57764803479134efca2c73765426c2413 Mon Sep 17 00:00:00 2001 From: Triston Armstrong Date: Sun, 6 Oct 2024 12:28:58 -0400 Subject: [PATCH 1/2] add missing text svg properties --- packages/lib/src/types.dom.ts | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/packages/lib/src/types.dom.ts b/packages/lib/src/types.dom.ts index 4c473ee..b745f86 100644 --- a/packages/lib/src/types.dom.ts +++ b/packages/lib/src/types.dom.ts @@ -855,6 +855,13 @@ interface SvgElementAttributes { y?: string | number } text: SvgStrokeAttributes & { + x: string + y: string + dx: string + dy: string + rotate: "none" | (string & {}) + textLength: string + lengthAdjust: "spacing" | "spacingAndGlyphs" mask?: string opacity?: string | number } From 42ae5b8e5c5d91dc78c1c4bf4937659fcaa56f5d Mon Sep 17 00:00:00 2001 From: Triston Armstrong Date: Sun, 6 Oct 2024 21:55:28 -0400 Subject: [PATCH 2/2] make x,y,dx,dy,texlength properties string-number union type --- packages/lib/src/types.dom.ts | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/packages/lib/src/types.dom.ts b/packages/lib/src/types.dom.ts index b745f86..94bb147 100644 --- a/packages/lib/src/types.dom.ts +++ b/packages/lib/src/types.dom.ts @@ -855,13 +855,13 @@ interface SvgElementAttributes { y?: string | number } text: SvgStrokeAttributes & { - x: string - y: string - dx: string - dy: string - rotate: "none" | (string & {}) - textLength: string - lengthAdjust: "spacing" | "spacingAndGlyphs" + x?: string | number + y?: string | number + dx?: string | number + dy?: string | number + rotate?: "none" | (string & {}) + textLength?: string | number + lengthAdjust?: "spacing" | "spacingAndGlyphs" mask?: string opacity?: string | number }