From: José C. Paiva Date: Mon, 3 May 2021 06:49:47 +0000 (+0100) Subject: add types for styles X-Git-Tag: 3.1.0~7^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=dbcca6f8134d544091f05bacd890cf343c5e6767;p=svg.js.git add types for styles --- diff --git a/svg.js.d.ts b/svg.js.d.ts index 7b8956b..c3c39c7 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -1667,7 +1667,9 @@ declare module "@svgdotjs/svg.js" { class Style extends Element { constructor(node: SVGElement, attr?: StylingAttr); addText(text: string): this; - font(name: string, src: string, params?: any): this; + font(a: object): this + font(a: string, v: string | number): this + font(a: string): string rule(selector: string, obj: any): this; }