packageDocumentation module public export interface SizeProps { readonly width : number ; readonly height : number ; } internal export class Size implements SizeProps { /** Creates a size from [[SizeProps]]. */ public static create ( size ) { return new Size ( size . width , size . height ) ; } /** Creates a size with specified dimensions. */ public constructor ( public readonly width = 0 , public readonly height = 0 ) { } /** Checks if dimensions of two sizes are equal. */ public equals ( other ) { if ( this . width === other . width && this . height === other . height ) return true ; return false ; } }