@types/proj4
Advanced tools
Comparing version 2.3.2 to 2.3.3
@@ -1,2 +0,2 @@ | ||
// Type definitions for proj4 2.3.15 | ||
// Type definitions for proj4 2.3 | ||
// Project: https://github.com/proj4js/proj4js | ||
@@ -6,98 +6,63 @@ // Definitions by: Denis Carriere <https://github.com/DenisCarriere> | ||
declare module "proj4" { | ||
const TemplateCoordinates: Array<number> | InterfaceCoordinates; | ||
declare namespace proj4 { | ||
type TemplateCoordinates = number[] | InterfaceCoordinates; | ||
interface InterfaceCoordinates { | ||
x: number, | ||
y: number, | ||
z?: number, | ||
m?: number | ||
x: number; | ||
y: number; | ||
z?: number; | ||
m?: number; | ||
} | ||
interface InterfaceDatum { | ||
datum_type: number | ||
a: number | ||
b: number | ||
es: number | ||
ep2: number | ||
datum_type: number; | ||
a: number; | ||
b: number; | ||
es: number; | ||
ep2: number; | ||
} | ||
interface Proj4Static { | ||
forward(coordinates: typeof TemplateCoordinates): Array<number> | ||
inverse(coordinates: typeof TemplateCoordinates): Array<number> | ||
interface Static { | ||
forward(coordinates: TemplateCoordinates): number[]; | ||
inverse(coordinates: TemplateCoordinates): number[]; | ||
} | ||
interface InterfaceProjection { | ||
datum: string | ||
b: number | ||
rf: number | ||
sphere: number | ||
es: number | ||
e: number | ||
ep2: number | ||
forward(coordinates: typeof TemplateCoordinates): Array<number> | ||
inverse(coordinates: typeof TemplateCoordinates): Array<number> | ||
datum: string; | ||
b: number; | ||
rf: number; | ||
sphere: number; | ||
es: number; | ||
e: number; | ||
ep2: number; | ||
forward(coordinates: TemplateCoordinates): number[]; | ||
inverse(coordinates: TemplateCoordinates): number[]; | ||
} | ||
namespace proj4 { | ||
/** | ||
* @name defaultDatum | ||
*/ | ||
export const defaultDatum: string; | ||
export const defaultDatum: string; | ||
/** | ||
* @name Proj | ||
*/ | ||
export function Proj(srsCode:any, callback?: any): InterfaceProjection; | ||
/** | ||
* @name WGS84 | ||
*/ | ||
export const WGS84: any; | ||
export function Proj(srsCode: any, callback?: any): InterfaceProjection; | ||
/** | ||
* Depecrated v3 | ||
* @name Point | ||
*/ | ||
export function Point(x: number, y: number, z?: number): InterfaceCoordinates; | ||
export function Point(coordinates: Array<number>): InterfaceCoordinates; | ||
export function Point(coordinates: InterfaceCoordinates): InterfaceCoordinates; | ||
export function Point(coordinates: string): InterfaceCoordinates; | ||
/** | ||
* @name toPoint | ||
*/ | ||
export function toPoint(array: Array<number>): InterfaceCoordinates; | ||
/** | ||
* @name defs | ||
*/ | ||
export function defs(name: string): any; | ||
export function defs(name: string, projection: string): any; | ||
export function defs(name: Array<Array<string>>): any; | ||
export const WGS84: any; | ||
/** | ||
* @name transform | ||
*/ | ||
export function transform(source: InterfaceProjection, dest: InterfaceProjection, point: typeof TemplateCoordinates): any; | ||
/** | ||
* Depecrated v3 | ||
*/ | ||
export function Point(x: number, y: number, z?: number): InterfaceCoordinates; | ||
export function Point(coordinates: TemplateCoordinates | string): InterfaceCoordinates; | ||
/** | ||
* @name mgrs | ||
*/ | ||
export function mgrs(coordinates: Array<number>, accuracy: number): string; | ||
export function toPoint(array: number[]): InterfaceCoordinates; | ||
/** | ||
* @name version | ||
*/ | ||
export const version: string; | ||
} | ||
export function defs(name: string, projection?: string): any; | ||
export function defs(name: string[][]): any; | ||
/** | ||
* @name proj4 | ||
*/ | ||
function proj4(fromProjection: string): Proj4Static; | ||
function proj4(fromProjection: string, toProjection: string): Proj4Static; | ||
function proj4(fromProjection: string, coordinates: typeof TemplateCoordinates): Array<number>; | ||
function proj4(fromProjection: string, toProjection: string, coordinates: typeof TemplateCoordinates): Array<number>; | ||
export = proj4 | ||
export function transform(source: InterfaceProjection, dest: InterfaceProjection, point: TemplateCoordinates): any; | ||
export function mgrs(coordinates: number[], accuracy: number): string; | ||
export const version: string; | ||
} | ||
declare function proj4(fromProjection: string, toProjection?: string, coordinates?: proj4.TemplateCoordinates): proj4.Static; | ||
declare function proj4(fromProjection: string, coordinates: proj4.TemplateCoordinates): number[]; | ||
export = proj4; |
{ | ||
"name": "@types/proj4", | ||
"version": "2.3.2", | ||
"description": "TypeScript definitions for proj4 2.3.15", | ||
"version": "2.3.3", | ||
"description": "TypeScript definitions for proj4", | ||
"license": "MIT", | ||
"author": "Denis Carriere <https://github.com/DenisCarriere>", | ||
"contributors": [ | ||
{ | ||
"name": "Denis Carriere", | ||
"url": "https://github.com/DenisCarriere" | ||
} | ||
], | ||
"main": "", | ||
@@ -15,4 +20,4 @@ "repository": { | ||
"peerDependencies": {}, | ||
"typings": "index.d.ts", | ||
"typesPublisherContentHash": "39cb18fff11265d504a68556d6323e713701ad6c0271ac173c84a7fdbf1bd8e5" | ||
"typesPublisherContentHash": "2701c73983c46b44b4609b895175a02f17b13a4e10ce654ccfe6b2b49a7b8578", | ||
"typeScriptVersion": "2.0" | ||
} |
@@ -5,12 +5,10 @@ # Installation | ||
# Summary | ||
This package contains type definitions for proj4 2.3.15 (https://github.com/proj4js/proj4js). | ||
This package contains type definitions for proj4 (https://github.com/proj4js/proj4js). | ||
# Details | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/types-2.0/proj4 | ||
Files were exported from https://www.github.com/DefinitelyTyped/DefinitelyTyped/tree/master/proj4 | ||
Additional Details | ||
* Last updated: Wed, 05 Oct 2016 20:53:38 GMT | ||
* File structure: DeclareModule | ||
* Library Dependencies: none | ||
* Module Dependencies: none | ||
* Last updated: Tue, 07 Mar 2017 00:58:33 GMT | ||
* Dependencies: none | ||
* Global values: none | ||
@@ -17,0 +15,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
3226
3
52
17