mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2025-10-16 12:05:41 +00:00
The add and append method accept a set as an input type.
This commit is contained in:
parent
d2299c54c2
commit
059f0bc252
2
types/snapsvg/index.d.ts
vendored
2
types/snapsvg/index.d.ts
vendored
@ -136,12 +136,14 @@ declare namespace Snap {
|
||||
|
||||
export interface Element {
|
||||
add(el:Snap.Element):Snap.Element;
|
||||
add(el:Snap.Set):Snap.Element;
|
||||
addClass(value:string):Snap.Element;
|
||||
after(el:Snap.Element):Snap.Element;
|
||||
align(el: Snap.Element, way: string):Snap.Element;
|
||||
animate(animation:any):Snap.Element;
|
||||
animate(attrs:{[attr:string]:string|number|boolean|any},duration:number,easing?:(num: number)=> number,callback?:()=>void):Snap.Element;
|
||||
append(el:Snap.Element):Snap.Element;
|
||||
append(el:Snap.Set):Snap.Element;
|
||||
appendTo(el:Snap.Element):Snap.Element;
|
||||
asPX(attr:string,value?:string):number; //TODO: check what is really returned
|
||||
attr(param: "viewBox"): BBox;
|
||||
|
||||
Loading…
Reference in New Issue
Block a user