UNPKG

@allmaps/stdlib

Version:

Allmaps Standard Library

18 lines (17 loc) 1.38 kB
import type { GeoreferencedMap } from '@allmaps/annotation'; import type { Point, Line, LineString, Polygon, Geometry, SvgCircle, SvgLine, SvgPolyLine, SvgRect, SvgPolygon, SvgGeometry } from '@allmaps/types'; export declare function isSvgCircle(input: any): input is SvgCircle; export declare function isSvgLine(input: any): input is SvgLine; export declare function isSvgPolyLine(input: any): input is SvgPolyLine; export declare function isSvgRect(input: any): input is SvgRect; export declare function isSvgPolygon(input: any): input is SvgPolygon; export declare function stringToSvgGeometriesGenerator(svg: string): Generator<SvgGeometry, void, unknown>; export declare function svgGeometriesToSvgString(geometries: SvgGeometry[]): string; export declare function svgGeometryToString(geometry: SvgGeometry): string; export declare function mapToResourceMaskSvgPolygon(map: GeoreferencedMap): SvgPolygon; export declare function svgGeometryToGeometry(svgCircle: SvgCircle): Point; export declare function svgGeometryToGeometry(svgLine: SvgLine): Line; export declare function svgGeometryToGeometry(svgPolyLine: SvgPolyLine): LineString; export declare function svgGeometryToGeometry(svgRect: SvgRect): Polygon; export declare function svgGeometryToGeometry(svgPolygon: SvgPolygon): Polygon; export declare function svgGeometryToGeometry(svgGeometry: SvgGeometry): Geometry;