@types/react-simple-maps
Advanced tools
Comparing version 0.12.1 to 0.12.2
// Type definitions for react-simple-maps 0.12 | ||
// Project: https://github.com/zcreativelabs/react-simple-maps#readme | ||
// Definitions by: Novikov Mihail <https://github.com/thepocp> | ||
// Andrej Mihajlov <https://github.com/pronebird> | ||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped | ||
@@ -8,2 +9,3 @@ // TypeScript Version: 2.8 | ||
import * as React from 'react'; | ||
import { GeoProjection } from 'd3-geo'; | ||
@@ -23,13 +25,17 @@ export type Point = [number, number]; | ||
export interface ProjectionConfig { | ||
scale: number; | ||
xOffset: number; | ||
yOffset: number; | ||
rotation: [number, number, number]; | ||
precision: number; | ||
} | ||
export type ProjectionFunction = (width: number, height: number, config: ProjectionConfig) => GeoProjection; | ||
export interface ComposableMapProps { | ||
width?: number; | ||
height?: number; | ||
projection?: string | (() => void); | ||
projectionConfig?: { | ||
scale?: number; | ||
xOffset?: number; | ||
yOffset?: number; | ||
rotation?: number[]; | ||
precision?: number; | ||
}; | ||
projection?: string | ProjectionFunction; | ||
projectionConfig?: Partial<ProjectionConfig>; | ||
style?: React.CSSProperties; | ||
@@ -73,3 +79,3 @@ defs?: SVGDefsElement; | ||
geography?: string | { [key: string]: any } | string[]; | ||
children?: (geographies: object[], projection: (point: Point) => void) => void; | ||
children?: (geographies: object[], projection: GeoProjection) => void; | ||
} | ||
@@ -82,3 +88,3 @@ | ||
geography?: object; | ||
projection?: (point: Point) => void; | ||
projection?: GeoProjection; | ||
tabable?: boolean; | ||
@@ -85,0 +91,0 @@ style?: { |
{ | ||
"name": "@types/react-simple-maps", | ||
"version": "0.12.1", | ||
"version": "0.12.2", | ||
"description": "TypeScript definitions for react-simple-maps", | ||
@@ -11,2 +11,7 @@ "license": "MIT", | ||
"githubUsername": "thepocp" | ||
}, | ||
{ | ||
"name": "Andrej Mihajlov", | ||
"url": "https://github.com/pronebird", | ||
"githubUsername": "pronebird" | ||
} | ||
@@ -22,6 +27,7 @@ ], | ||
"dependencies": { | ||
"@types/d3-geo": "*", | ||
"@types/react": "*" | ||
}, | ||
"typesPublisherContentHash": "887108b894dc4d302b7a8227750140fb70f4b9e01a4a1da35bc1f30825636a6d", | ||
"typesPublisherContentHash": "f7adc69ed1cdec88bf6f004b4c9393f79203e523b2c0990a52bfdbb5f70b32ec", | ||
"typeScriptVersion": "2.8" | ||
} |
@@ -5,3 +5,3 @@ # Installation | ||
# Summary | ||
This package contains type definitions for react-simple-maps (https://github.com/zcreativelabs/react-simple-maps#readme). | ||
This package contains type definitions for react-simple-maps ( https://github.com/zcreativelabs/react-simple-maps#readme ). | ||
@@ -12,7 +12,7 @@ # Details | ||
Additional Details | ||
* Last updated: Mon, 07 Jan 2019 16:45:40 GMT | ||
* Dependencies: @types/react | ||
* Last updated: Wed, 30 Jan 2019 23:25:57 GMT | ||
* Dependencies: @types/react, @types/d3-geo | ||
* Global values: none | ||
# Credits | ||
These definitions were written by Novikov Mihail <https://github.com/thepocp>. | ||
These definitions were written by Novikov Mihail <https://github.com/thepocp>, Andrej Mihajlov <https://github.com/pronebird>. |
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
8844
160
2
+ Added@types/d3-geo@*
+ Added@types/d3-geo@3.1.0(transitive)
+ Added@types/geojson@7946.0.14(transitive)