@types/lineclip
v2.0.0
Published
TypeScript definitions for lineclip
Readme
Installation
npm install --save @types/lineclip
Summary
This package contains type definitions for lineclip (https://github.com/mapbox/lineclip#readme).
Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/lineclip.
index.d.ts
export type Point = [number, number];
export type BoundingBox = [number, number, number, number];
export type LineClipResult = Point[][];
export type PolygonClipResult = Point[];
export function clipPolyline(points: Point[], bbox: BoundingBox, result?: LineClipResult): LineClipResult;
export function clipPolygon(points: Point[], bbox: BoundingBox): PolygonClipResult;
Additional Details
- Last updated: Mon, 09 Mar 2026 10:45:51 GMT
- Dependencies: none
Credits
These definitions were written by Sikriti Dakua, and Marc Emmanuel.
