]> source.dussan.org Git - svg.js.git/commitdiff
add types for styles
authorJosé C. Paiva <josepaiva94@gmail.com>
Mon, 3 May 2021 06:36:13 +0000 (07:36 +0100)
committerJosé C. Paiva <josepaiva94@gmail.com>
Mon, 3 May 2021 06:36:13 +0000 (07:36 +0100)
svg.js.d.ts

index 496f7491b7117b80c53cb0c8f8a4ad6782aa97cb..7b8956bb5986826b9fba273b63fb7977dc655a62 100644 (file)
@@ -1662,6 +1662,14 @@ declare module "@svgdotjs/svg.js" {
         plot(d: string): this\r
         track(): Path\r
     }\r
+    \r
+    // style.js\r
+    class Style extends Element {\r
+        constructor(node: SVGElement, attr?: StylingAttr);\r
+        addText(text: string): this;\r
+        font(name: string, src: string, params?: any): this;\r
+        rule(selector: string, obj: any): this;\r
+    }\r
 \r
     // use.js\r
     class Use extends Shape {\r