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
15 lines (14 loc) • 719 B
TypeScript
import { NativeDeletable } from "./NativeDeletable";
import { NativeEndType, NativeJoinType } from "./nativeEnums";
import { NativePath } from "./NativePath";
import { NativePaths } from "./NativePaths";
import { NativePolyTree } from "./NativePolyTree";
export interface NativeClipperOffset extends NativeDeletable {
addPath(outPath: NativePath, joinType: NativeJoinType, endType: NativeEndType): void;
addPaths(outPaths: NativePaths, joinType: NativeJoinType, endType: NativeEndType): void;
executePaths(outPaths: NativePaths, delta: number): void;
executePolyTree(outPolyTree: NativePolyTree, delta: number): void;
clear(): void;
miterLimit: number;
arcTolerance: number;
}