UNPKG

skia-path2d

Version:

Extract the core code related to Path2D, PathStrore, and isPointInPath from Skia and rewrite it with typescript

19 lines (18 loc) 505 B
export declare class Size { width: number; height: number; static default(): Size; static from(width: number, height: number): Size; constructor(width: number, height: number); set(width: number, height: number): void; setEmpty(): void; isEmpty(): boolean; isZero(): boolean; round(): void; ceil(): void; floor(): void; trunc(): void; clone(): Size; equals(other: Size): boolean; equalsWithEpsilon(other: Size, epsilon?: number): boolean; }