UNPKG

simplify-js

Version:

A high-performance JavaScript 2D/3D polyline simplification library

10 lines (7 loc) 192 B
interface Point { x: number; y: number; } declare function simplify (points: Point[], tolerance?: number, highQuality?: boolean): Point[]; declare namespace simplify {} export = simplify;