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:
kouame komenan
2020-04-13 12:08:25 -07:00
committed by GitHub
parent 7cdf68a2b3
commit 38622803f8
+3 -3
View File
@@ -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;