diff options
author | showdep <showdep@yahoo.com> | 2017-03-15 08:28:19 -0700 |
---|---|---|
committer | Ulrich-Matthias Schäfer <ulima.ums@googlemail.com> | 2017-03-15 16:28:19 +0100 |
commit | aa8dcdbc571585ce8a957e49271babda88384096 (patch) | |
tree | b6ea93cdf4704423c3919f2213934adcf6f1a5cf | |
parent | a8202e566002e253e3298067c9e972ce71a0e612 (diff) | |
download | svg.js-aa8dcdbc571585ce8a957e49271babda88384096.tar.gz svg.js-aa8dcdbc571585ce8a957e49271babda88384096.zip |
Typescript definitions edits: element.stop, container.polyline(), select(): Set, animation.scale() (#631, #635)
Thx @showdep
-rw-r--r-- | svg.js.d.ts | 20 |
1 files changed, 10 insertions, 10 deletions
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...
|