mirror of
https://github.com/gosticks/DefinitelyTyped.git
synced 2026-08-13 05:20:25 +00:00
react-simple-maps | Changed ProjectionConfig interface to match the requested props in the react-simple-maps library (#43830)
* Changed ProjectionConfig interface to match the requested prop * included name
This commit is contained in:
Vendored
+3
-3
@@ -2,6 +2,7 @@
|
||||
// Project: https://github.com/zcreativelabs/react-simple-maps#readme
|
||||
// Definitions by: Novikov Mihail <https://github.com/thepocp>
|
||||
// Andrej Mihajlov <https://github.com/pronebird>
|
||||
// Kouame Komenan <https://github.com/komenank>
|
||||
// Definitions: https://github.com/DefinitelyTyped/DefinitelyTyped
|
||||
// TypeScript Version: 2.8
|
||||
|
||||
@@ -13,10 +14,9 @@ export type Point = [number, number];
|
||||
|
||||
export interface ProjectionConfig {
|
||||
scale?: number;
|
||||
xOffset?: number;
|
||||
yOffset?: number;
|
||||
center?: [number, number];
|
||||
parallels?: [number, number];
|
||||
rotate?: [number, number, number];
|
||||
precision?: number;
|
||||
}
|
||||
export type ProjectionFunction = (width: number, height: number, config: ProjectionConfig) => GeoProjection;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user