From: Dani Date: Thu, 12 Nov 2020 17:38:12 +0000 (+0100) Subject: Add style() to Container on TS bindings X-Git-Tag: 3.1.0~12^2 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=41abdfb0667bf4f1b3d709f1f99874addfe99cb7;p=svg.js.git Add style() to Container on TS bindings We need this to be able to define styles on the SVG from TypeScript. @neomorfeo --- diff --git a/svg.js.d.ts b/svg.js.d.ts index c347d4d..a34354e 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -1094,6 +1094,7 @@ declare module "@svgdotjs/svg.js" { polygon(points?: PointArrayAlias): Polygon; polyline(points?: PointArrayAlias): Polyline; rect(width?: number, height?: number): Rect; + style(): Style; text(block: (tspan: Tspan) => void): Text; text(text: string): Text; ungroup(parent: Dom, depth?: number): this;