UNPKG

@seasketch/geoprocessing

Version:

Geoprocessing and reporting framework for SeaSketch 2.0

25 lines (24 loc) 1.05 kB
import { Polygon, MultiPolygon, Sketch, SketchCollection } from "../types/index.js"; /** * Returns a zero polygon geometry (three [0,0] coordinates) * @param sketch */ export declare function zeroPolygon(): { type: string; coordinates: number[][][]; }; /** * Given sketch, returns the mutated sketch with a zero polygon geometry (three [0,0] coordinates) * @param sketch */ export declare function zeroSketch<G extends Polygon | MultiPolygon>(sketch: Sketch): Sketch<G>; /** * Given sketch array, returns the mutated sketches with a zero polygon geometry (three [0,0] coordinates) * @param sketch */ export declare function zeroSketchArray<G extends Polygon | MultiPolygon>(sketches: Sketch<G>[]): Sketch<G>[]; /** * Given sketch collection, returns the mutated collection with all child sketches switched to have zero polygon geometry (three [0,0] coordinates) * @param sketchCollection */ export declare function zeroSketchCollection<G extends Polygon | MultiPolygon>(sketchCollection: SketchCollection<G>): SketchCollection<G>;