diff options
author | Youngrok Kim <rok0810@gmail.com> | 2017-05-20 16:42:32 +0900 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-05-20 08:42:32 +0100 |
commit | d80d692271345f73c45be0b67d44e3e3c1ecf35c (patch) | |
tree | 4e3738226e9ace09d587a8a3323bac0cb1ea9a65 | |
parent | efc4fdf111f507ef8a7c482ddc6e9dc449bfa0b5 (diff) | |
download | svg.js-d80d692271345f73c45be0b67d44e3e3c1ecf35c.tar.gz svg.js-d80d692271345f73c45be0b67d44e3e3c1ecf35c.zip |
Add missing type definitions to svg.js.d.ts (#680)
-rw-r--r-- | svg.js.d.ts | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/svg.js.d.ts b/svg.js.d.ts index ec803bd..eba2f29 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -62,6 +62,7 @@ declare namespace svgjs { // attr.js
interface Element {
+ attr(): object;
attr(name: string): any;
attr(obj: Object): this;
attr(name: string, value: any, namespace?: string): this;
@@ -712,6 +713,7 @@ declare namespace svgjs { // rect.js
export interface Rect extends Shape {
new (): Rect;
+ radius(x: number, y?: number): this;
}
interface Library { Rect: Rect; }
interface Container {
@@ -821,9 +823,9 @@ declare namespace svgjs { }
interface FontData {
family?: string;
- size?: number;
+ size?: NumberAlias;
anchor?: string;
- leading?: string;
+ leading?: NumberAlias;
weight?: string;
style?: string
}
@@ -842,8 +844,9 @@ declare namespace svgjs { text(text: string): this;
text(block: (text: Text) => void): this;
size(fontSize: NumberAlias): this;
- leading(leading: number): this;
- lines(): number;
+ leading(): number;
+ leading(leading: NumberAlias): this;
+ lines(): Set;
rebuild(enabled: boolean): this;
build(enabled: boolean): this;
plain(text: string): this;
@@ -986,6 +989,7 @@ declare namespace svgjs { attr(name: string, value: any, namespace?: string): Animation;
attr(obj: Object): Animation;
attr(name: string): any;
+ attr(): object;
viewbox(x: number, y: number, w: number, h: number): Animation;
|