]> source.dussan.org Git - svg.js.git/commitdiff
Add style() to Container on TS bindings 1167/head
authorDani <melon3r@protonmail.com>
Thu, 12 Nov 2020 17:38:12 +0000 (18:38 +0100)
committerGitHub <noreply@github.com>
Thu, 12 Nov 2020 17:38:12 +0000 (18:38 +0100)
We need this to be able to define styles on the SVG from TypeScript.

@neomorfeo

svg.js.d.ts

index c347d4d06df5fce4db96d576f69aaffb4e5dd8f3..a34354ed5bae495c473176f434cb3cbda9eba63b 100644 (file)
@@ -1094,6 +1094,7 @@ declare module "@svgdotjs/svg.js" {
         polygon(points?: PointArrayAlias): Polygon;\r
         polyline(points?: PointArrayAlias): Polyline;\r
         rect(width?: number, height?: number): Rect;\r
+        style(): Style;\r
         text(block: (tspan: Tspan) => void): Text;\r
         text(text: string): Text;\r
         ungroup(parent: Dom, depth?: number): this;\r