d?: number;\r
e?: number;\r
f?: number;\r
+ scale?: number;\r
}\r
export interface Transformation {\r
new (...transform: Transform[]): Transformation;\r
\r
export interface Animation {\r
stop(): Animation;\r
+ finish(): Animation;\r
+ pause(): Animation;\r
+ play(): Animation;\r
+ reverse(reversed?: boolean): Animation;\r
\r
attr(name: string, value: any, namespace?: string): Animation;\r
attr(obj: Object): Animation;\r
viewbox(x: number, y: number, w: number, h: number): Animation;\r
\r
move(x: number, y: number, anchor?: boolean): Animation;\r
+ dmove(x: number, y: number): Animation;\r
x(x: number, anchor?: boolean): Animation;\r
y(y: number, anchor?: boolean): Animation;\r
\r
during(cb: (pos: number) => void): Animation;\r
to(value: number): Animation;\r
after(cb: () => void): Animation;\r
+ \r
+ delay(delayMS: number): Animation;\r
\r
rotate(degrees: number, cx?: number, cy?: number): Animation;\r
skew(skewX: number, skewY?: number, cx?: number, cy?: number): Animation;\r
scale(scaleX: number, scaleY?: number, cx?: number, cy?: number): Animation;\r
translate(x: number, y: number): Animation;\r
+ transform(t: Transform, relative?: boolean): Animation;\r
\r
// TODO style, etc, bbox...\r
}\r