index.d.cts 569 B

123456789101112
  1. declare type Ring = [number, number][];
  2. declare type Poly = Ring[];
  3. declare type MultiPoly = Poly[];
  4. declare type Geom = Poly | MultiPoly;
  5. declare const union: (geom: Geom, ...moreGeoms: Geom[]) => MultiPoly;
  6. declare const intersection: (geom: Geom, ...moreGeoms: Geom[]) => MultiPoly;
  7. declare const xor: (geom: Geom, ...moreGeoms: Geom[]) => MultiPoly;
  8. declare const difference: (geom: Geom, ...moreGeoms: Geom[]) => MultiPoly;
  9. declare const setPrecision: (eps?: number | undefined) => void;
  10. export { type Geom, difference, intersection, setPrecision, union, xor };