UNPKG

js-angusj-clipper

Version:

Polygon and line clipping and offsetting library for Javascript / Typescript - a port of Angus Johnson's clipper to WebAssembly / Asm.JS

13 lines (12 loc) 565 B
import { NativeDeletable } from "./NativeDeletable"; import { NativePolyType } from "./nativeEnums"; import { NativeIntRect } from "./NativeIntRect"; import { NativePath } from "./NativePath"; import { NativePaths } from "./NativePaths"; export interface NativeClipperBase extends NativeDeletable { addPath(path: NativePath, polyType: NativePolyType, closed: boolean): boolean; addPaths(paths: NativePaths, polyType: NativePolyType, closed: boolean): boolean; clear(): void; getBounds(): NativeIntRect; preserveCollinear: boolean; }