From aa8dcdbc571585ce8a957e49271babda88384096 Mon Sep 17 00:00:00 2001 From: showdep Date: Wed, 15 Mar 2017 08:28:19 -0700 Subject: Typescript definitions edits: element.stop, container.polyline(), select(): Set, animation.scale() (#631, #635) Thx @showdep --- svg.js.d.ts | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'svg.js.d.ts') diff --git a/svg.js.d.ts b/svg.js.d.ts index 0870ab2..e058cd4 100644 --- a/svg.js.d.ts +++ b/svg.js.d.ts @@ -326,6 +326,7 @@ declare namespace svgjs { interface Element { animate(duration?: number, ease?: string, delay?: number): Animation; animate(info: { ease?: string; duration?: number; delay?: number }): Animation; + stop(jumpToEnd:boolean,clearQueue:boolean): Animation; } // TODO finishs FX @@ -654,8 +655,8 @@ declare namespace svgjs { } interface Library { PolyLine: PolyLine; } interface Container { - polyLine(points: string): PolyLine; - polyLine(points: ArrayPoint[]): PolyLine; + polyline(points: string): PolyLine; + polyline(points: ArrayPoint[]): PolyLine; } export interface Polygon extends poly { new (): Polygon; @@ -705,10 +706,10 @@ declare namespace svgjs { // selector.js interface Library { get(id: string): Element; - select(query: string, parent: HTMLElement): Element; + select(query: string, parent: HTMLElement): Set; } interface Parent { - select(query: string): Element; + select(query: string): Set; } // set.js @@ -761,11 +762,10 @@ declare namespace svgjs { stroke(stroke: StrokeData): this; stroke(color: string): this; rotate(d: number, cx?: number, cy?: number): this; - skew(x: number, y: number, cx?: number, cy?: number): this; - scale(x: number, y: number, cx?: number, cy?: number): this; - scale(scale: number): this; + skew(x: number, y?: number, cx?: number, cy?: number): this; + scale(x: number, y?: number, cx?: number, cy?: number): this; translate(x: number, y: number): this; - flip(a: any, offset?: number): this; + flip(a?: any, offset?: number): this; matrix(m: any): this; opacity(o: number): this; opacity(): number; @@ -950,8 +950,8 @@ declare namespace svgjs { after(cb: () => void): Animation; rotate(degrees: number, cx?: number, cy?: number): Animation - skew(x: number, y: number): Animation - scale(x: number, y: 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 // TODO style, etc, bbox... -- cgit v1.2.3