From: José C. Paiva Date: Mon, 3 May 2021 06:36:13 +0000 (+0100) Subject: add types for styles X-Git-Tag: 3.1.0~7^2~1 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=399671e1d6d7250e42f13ca4bae221f1d9583dcc;p=svg.js.git add types for styles --- diff --git a/svg.js.d.ts b/svg.js.d.ts index 496f749..7b8956b 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -1662,6 +1662,14 @@ declare module "@svgdotjs/svg.js" { plot(d: string): this track(): Path } + + // style.js + class Style extends Element { + constructor(node: SVGElement, attr?: StylingAttr); + addText(text: string): this; + font(name: string, src: string, params?: any): this; + rule(selector: string, obj: any): this; + } // use.js class Use extends Shape {