Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Tidy up robust-predicates import, and tidy vite config #147

Merged
merged 6 commits into from
Oct 12, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
File renamed without changes.
File renamed without changes.
541 changes: 266 additions & 275 deletions dist/polygon-clipping.cjs.js

Large diffs are not rendered by default.

23 changes: 13 additions & 10 deletions dist/polygon-clipping.d.ts
Original file line number Diff line number Diff line change
@@ -1,11 +1,14 @@
declare module 'polygon-clipping' {
export type Pair = [number, number];
export type Ring = Pair[];
export type Polygon = Ring[];
export type MultiPolygon = Polygon[];
type Geom = Polygon | MultiPolygon;
export function intersection(geom: Geom, ...geoms: Geom[]): MultiPolygon;
export function xor(geom: Geom, ...geoms: Geom[]): MultiPolygon;
export function union(geom: Geom, ...geoms: Geom[]): MultiPolygon;
export function difference(subjectGeom: Geom, ...clipGeoms: Geom[]): MultiPolygon;
declare module "polygon-clipping" {
export type Pair = [number, number]
export type Ring = Pair[]
export type Polygon = Ring[]
export type MultiPolygon = Polygon[]
type Geom = Polygon | MultiPolygon
export function intersection(geom: Geom, ...geoms: Geom[]): MultiPolygon
export function xor(geom: Geom, ...geoms: Geom[]): MultiPolygon
export function union(geom: Geom, ...geoms: Geom[]): MultiPolygon
export function difference(
subjectGeom: Geom,
...clipGeoms: Geom[]
): MultiPolygon
}