@allmaps/transform
Advanced tools
Comparing version 1.0.0-beta.11 to 1.0.0-beta.12
import type { GCPTransformInfo } from './gdaltransform.js'; | ||
import type { Position, Polygon } from './shared/types.js'; | ||
export declare function svgPolygonToGeoJSONPolygon(transformArgs: GCPTransformInfo, points: Position[], maxOffsetPercentage?: number, maxDepth?: number): Polygon; | ||
import type { Position, GeoJSONPolygon } from './shared/types.js'; | ||
export declare function svgPolygonToGeoJSONPolygon(transformArgs: GCPTransformInfo, points: Position[], maxOffsetPercentage?: number, maxDepth?: number): GeoJSONPolygon; |
@@ -1,3 +0,11 @@ | ||
import type { Position, Point, Polygon } from 'geojson'; | ||
export { Position, Point, Polygon }; | ||
export declare type Position = [number, number]; | ||
export declare type BBox = [number, number, number, number]; | ||
export declare type GeoJSONPoint = { | ||
type: 'Point'; | ||
coordinates: Position; | ||
}; | ||
export declare type GeoJSONPolygon = { | ||
type: 'Polygon'; | ||
coordinates: Position[][]; | ||
}; | ||
export declare type ImageWorldGCP = { | ||
@@ -4,0 +12,0 @@ image: Position; |
@@ -0,1 +1,3 @@ | ||
// TODO: consider moving these types and types from @allmaps/render | ||
// to new package @allmaps/types | ||
export {}; |
{ | ||
"name": "@allmaps/transform", | ||
"version": "1.0.0-beta.11", | ||
"version": "1.0.0-beta.12", | ||
"author": { | ||
@@ -47,3 +47,2 @@ "name": "Bert Spaan", | ||
"devDependencies": { | ||
"@types/geojson": "^7946.0.10", | ||
"chai": "^4.3.6", | ||
@@ -57,3 +56,3 @@ "chai-shallow-deep-equal": "^1.4.6", | ||
}, | ||
"gitHead": "1a3ba1223496abf22ed486d7dc3932ea371878b8" | ||
"gitHead": "2eed7668df872110e6242ef053e1452ce19a41fb" | ||
} |
42638
4
646