core

Rect

fields

Rect = {
x : number ,
y : number ,
width : number ,
height : number
}

constructors

constructor ()
constructor ( x : number , y : number , width : number , height : number )

functions

and

Result : Rect
and ( rect2 : Rect ) : Result

or

Result : Rect
or ( rect2 : Rect ) : Result

pad

Result : Rect
pad ( factor : number ) : Result
padAsync ( factor : number ) : Promise < Result >
padAsync ( factor : number , callback ( err : Error , Result res )) : void
Result : Rect
pad ( size : Size ) : Result
padAsync ( size : Size ) : Promise < Result >
padAsync ( size : Size , callback ( err : Error , Result res )) : void

rescale

Result : Rect
rescale ( factor : number ) : Result
rescaleAsync ( factor : number ) : Promise < Result >
rescaleAsync ( factor : number , callback ( err : Error , Result res )) : void

toSquare

Result : Rect
toSquare () : Result
toSquareAsync () : Promise < Result >
toSquareAsync ( callback ( err : Error , Result res )) : void