diff options
author | José C. Paiva <josepaiva94@gmail.com> | 2021-05-03 07:36:13 +0100 |
---|---|---|
committer | José C. Paiva <josepaiva94@gmail.com> | 2021-05-03 07:36:13 +0100 |
commit | 399671e1d6d7250e42f13ca4bae221f1d9583dcc (patch) | |
tree | f81991735f3e6c13a21d12bbebc876a00033d9b6 /svg.js.d.ts | |
parent | 4524c20b48abe08e69c25a7382a289592d147496 (diff) | |
download | svg.js-399671e1d6d7250e42f13ca4bae221f1d9583dcc.tar.gz svg.js-399671e1d6d7250e42f13ca4bae221f1d9583dcc.zip |
add types for styles
Diffstat (limited to 'svg.js.d.ts')
-rw-r--r-- | svg.js.d.ts | 8 |
1 files changed, 8 insertions, 0 deletions
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 {
|