Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@types/react-simple-maps

Package Overview
Dependencies
Maintainers
1
Versions
19
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@types/react-simple-maps - npm Package Compare versions

Comparing version 0.12.1 to 0.12.2

26

react-simple-maps/index.d.ts
// 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>.
SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc