diff options
author | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-09-02 21:30:04 +0200 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2023-09-02 21:30:04 +0200 |
commit | 3f623a9e61a9015ceef3735bca167e9410313e49 (patch) | |
tree | 6de04ba29c936ad8fe646342a0d5f3b2e46538e5 | |
parent | 8fa0873a632f828ed1ad85aa30dee97bc585d32f (diff) | |
download | svg.js-3f623a9e61a9015ceef3735bca167e9410313e49.tar.gz svg.js-3f623a9e61a9015ceef3735bca167e9410313e49.zip |
allow string as input to rect
-rw-r--r-- | svg.js.d.ts | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/svg.js.d.ts b/svg.js.d.ts index ae32919..e63c859 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -1206,7 +1206,6 @@ declare module '@svgdotjs/svg.js' { class Containable { circle(size?: NumberAlias): Circle - circle(size: number, unit: number): Circle clip(): ClipPath ellipse(width?: number, height?: number): Ellipse foreignObject(width: number, height: number): ForeignObject @@ -1235,7 +1234,7 @@ declare module '@svgdotjs/svg.js' { plain(text: string): Text polygon(points?: PointArrayAlias): Polygon polyline(points?: PointArrayAlias): Polyline - rect(width?: number, height?: number): Rect + rect(width?: NumberAlias, height?: NumberAlias): Rect style(): Style text(block: (tspan: Tspan) => void): Text text(text: string): Text @@ -1252,12 +1251,12 @@ declare module '@svgdotjs/svg.js' { type DynamicExtends<T extends {}> = { new (...args: any[]): Containable & T } - + /** * only for declaration purpose. actually cannot be used. */ let ContainableDom: DynamicExtends<Dom> - class Fragment extends ContainableDom{ + class Fragment extends ContainableDom { constructor(node?: Node) } |