@allmaps/transform
Advanced tools
Comparing version 1.0.0-beta.12 to 1.0.0-beta.13
@@ -1,2 +0,2 @@ | ||
declare type XYPoint = { | ||
type XYPoint = { | ||
x: number; | ||
@@ -3,0 +3,0 @@ y: number; |
export * from './transformer.js'; | ||
export * from './polygon.js'; | ||
export * from './geojson.js'; | ||
export * from './shared/types.js'; | ||
export type { GCPTransformInfo } from './gdaltransform.js'; |
export * from './transformer.js'; | ||
export * from './polygon.js'; | ||
export * from './geojson.js'; | ||
export * from './shared/types.js'; |
@@ -1,18 +0,28 @@ | ||
export declare type Position = [number, number]; | ||
export declare type BBox = [number, number, number, number]; | ||
export declare type GeoJSONPoint = { | ||
export type Position = [number, number]; | ||
export type BBox = [number, number, number, number]; | ||
export type GeoJSONGeometry = GeoJSONPoint | GeoJSONLineString | GeoJSONPolygon; | ||
export type GeoJSONPoint = { | ||
type: 'Point'; | ||
coordinates: Position; | ||
}; | ||
export declare type GeoJSONPolygon = { | ||
export type GeoJSONLineString = { | ||
type: 'LineString'; | ||
coordinates: Position[]; | ||
}; | ||
export type GeoJSONPolygon = { | ||
type: 'Polygon'; | ||
coordinates: Position[][]; | ||
}; | ||
export declare type ImageWorldGCP = { | ||
export type ImageWorldPosition = { | ||
image: Position; | ||
world: Position; | ||
}; | ||
export declare type Segment = { | ||
from: ImageWorldGCP; | ||
to: ImageWorldGCP; | ||
export type Segment = { | ||
from: ImageWorldPosition; | ||
to: ImageWorldPosition; | ||
}; | ||
export type TransformOptions = { | ||
maxOffsetRatio: number; | ||
maxDepth: number; | ||
}; | ||
export type OptionalTransformOptions = Partial<TransformOptions>; |
@@ -1,5 +0,5 @@ | ||
import type { Position, ImageWorldGCP } from './shared/types.js'; | ||
import type { Position, ImageWorldPosition } from './shared/types.js'; | ||
import type { GCPTransformInfo } from './gdaltransform.js'; | ||
export declare function toWorld(transformArgs: GCPTransformInfo, point: Position): Position; | ||
export declare function toImage(transformArgs: GCPTransformInfo, point: Position): Position; | ||
export declare function createTransformer(gcps: ImageWorldGCP[]): GCPTransformInfo; | ||
export declare function createTransformer(gcps: ImageWorldPosition[]): GCPTransformInfo; |
{ | ||
"name": "@allmaps/transform", | ||
"version": "1.0.0-beta.12", | ||
"version": "1.0.0-beta.13", | ||
"author": { | ||
@@ -50,3 +50,4 @@ "name": "Bert Spaan", | ||
"eslint": "^8.35.0", | ||
"mocha": "^8.4.0" | ||
"mocha": "^8.4.0", | ||
"typescript": "^4.9.5" | ||
}, | ||
@@ -56,3 +57,3 @@ "engines": { | ||
}, | ||
"gitHead": "2eed7668df872110e6242ef053e1452ce19a41fb" | ||
"gitHead": "3a5ecfeb32fa9e326e8ed87efc868ad055c67850" | ||
} |
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
87248
33
1902
5
1