Browse Source

Merge pull request #1201 from josepaiva94/types

Types for Style
tags/3.1.0
Ulrich-Matthias Schäfer 3 years ago
parent
commit
61034e3d06
No account linked to committer's email address
1 changed files with 10 additions and 0 deletions
  1. 10
    0
      svg.js.d.ts

+ 10
- 0
svg.js.d.ts View File

@@ -1662,6 +1662,16 @@ 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(a: object): this
font(a: string, v: string | number): this
font(a: string): string
rule(selector: string, obj: any): this;
}
// use.js
class Use extends Shape {

Loading…
Cancel
Save