]> source.dussan.org Git - svg.js.git/commitdiff
Allow strings to be passed as transform origin on TS 1168/head
authorDani <melon3r@protonmail.com>
Mon, 16 Nov 2020 09:34:20 +0000 (10:34 +0100)
committerGitHub <noreply@github.com>
Mon, 16 Nov 2020 09:34:20 +0000 (10:34 +0100)
We need this to be able to pass strings like "top-right" or "center" as transform origin on TypeScript, as they're already supported on JavaScript.

@neomorfeo

svg.js.d.ts

index a34354ed5bae495c473176f434cb3cbda9eba63b..496f7491b7117b80c53cb0c8f8a4ad6782aa97cb 100644 (file)
@@ -481,7 +481,7 @@ declare module "@svgdotjs/svg.js" {
         scaleY?: number\r
         shear?: number\r
         theta?: number\r
-        origin?: CoordinateXY\r
+        origin?: CoordinateXY | string\r
         around?: CoordinateXY\r
         ox?: number\r
         originX?: number\r