npm.io
2.0.0 • Published 6 months ago

@types/lineclip

Licence
MIT
Version
2.0.0
Deps
0
Size
3 kB
Vulns
0
Weekly
0
Stars
51.4K

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 1051 GMT
  • Dependencies: none

Credits

These definitions were written by Sikriti Dakua, and Marc Emmanuel.