From: Dani Date: Mon, 16 Nov 2020 09:34:20 +0000 (+0100) Subject: Allow strings to be passed as transform origin on TS X-Git-Tag: 3.1.0~11^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fpull%2F1168%2Fhead;p=svg.js.git Allow strings to be passed as transform origin on TS 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 --- diff --git a/svg.js.d.ts b/svg.js.d.ts index a34354e..496f749 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -481,7 +481,7 @@ declare module "@svgdotjs/svg.js" { scaleY?: number shear?: number theta?: number - origin?: CoordinateXY + origin?: CoordinateXY | string around?: CoordinateXY ox?: number originX?: number