aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUlrich-Matthias Schäfer <ulima.ums@googlemail.com>2018-08-29 07:06:16 +0200
committerGitHub <noreply@github.com>2018-08-29 07:06:16 +0200
commitccc47a6c142215d92dc326a4fcce78170f466930 (patch)
treec1f13b4e4e9d4668a7a30b150aab780ee82b1d2c
parent9a6dea2e5abdbf83b3f75d5dd3707eed0f690859 (diff)
parent86b44e2655b7899b9b8e17374432cc7baf2cefc7 (diff)
downloadsvg.js-ccc47a6c142215d92dc326a4fcce78170f466930.tar.gz
svg.js-ccc47a6c142215d92dc326a4fcce78170f466930.zip
Merge pull request #879 from JackLeEmmerdeur/597-new-typescript-declarations
Added declarations to Transformation and Animation interfaces
-rw-r--r--svg.js.d.ts9
1 files changed, 9 insertions, 0 deletions
diff --git a/svg.js.d.ts b/svg.js.d.ts
index f482de7..05206b3 100644
--- a/svg.js.d.ts
+++ b/svg.js.d.ts
@@ -923,6 +923,7 @@ declare namespace svgjs {
d?: number;
e?: number;
f?: number;
+ scale?: number;
}
export interface Transformation {
new (...transform: Transform[]): Transformation;
@@ -994,6 +995,10 @@ declare namespace svgjs {
export interface Animation {
stop(): Animation;
+ finish(): Animation;
+ pause(): Animation;
+ play(): Animation;
+ reverse(reversed?: boolean): Animation;
attr(name: string, value: any, namespace?: string): Animation;
attr(obj: Object): Animation;
@@ -1003,6 +1008,7 @@ declare namespace svgjs {
viewbox(x: number, y: number, w: number, h: number): Animation;
move(x: number, y: number, anchor?: boolean): Animation;
+ dmove(x: number, y: number): Animation;
x(x: number, anchor?: boolean): Animation;
y(y: number, anchor?: boolean): Animation;
@@ -1014,11 +1020,14 @@ declare namespace svgjs {
during(cb: (pos: number) => void): Animation;
to(value: number): Animation;
after(cb: () => void): Animation;
+
+ delay(delayMS: number): Animation;
rotate(degrees: number, cx?: number, cy?: number): Animation;
skew(skewX: number, skewY?: number, cx?: number, cy?: number): Animation;
scale(scaleX: number, scaleY?: number, cx?: number, cy?: number): Animation;
translate(x: number, y: number): Animation;
+ transform(t: Transform, relative?: boolean): Animation;
// TODO style, etc, bbox...
}