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

@datalith/dotmap

Package Overview
Dependencies
Maintainers
1
Versions
14
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@datalith/dotmap - npm Package Compare versions

Comparing version 0.7.0 to 0.8.0

8

package.json
{
"name": "@datalith/dotmap",
"version": "0.7.0",
"version": "0.8.0",
"description": "datalith dotmap",

@@ -33,4 +33,4 @@ "main": "dist/index.js",

"dependencies": {
"@datalith/gridmap": "^0.7.0",
"@datalith/util": "^0.7.0",
"@datalith/gridmap": "^0.8.0",
"@datalith/util": "^0.8.0",
"d3-array": "^2.1.0",

@@ -64,3 +64,3 @@ "d3-geo": "^1.11.3",

},
"gitHead": "8bc3b1c6da2f4e255806d43d0102623d2c329d33"
"gitHead": "cd7052522b6a4c73f8d0434ddaf0385d18e55880"
}

@@ -15,3 +15,3 @@ # @datalith/dotmap

| style | | `React.CSSProperties` | Custom style object to apply to the SVG |
| defs | | `JSX.Element` | Optional `<defs />` element to include in the SVG |
| additionalElements | | `JSX.Element` | Optional elements to add to the SVG |
| size | | `{ width: number; height: number }` | Width and Height of the SVG. Default is parent node size. |

@@ -30,28 +30,28 @@ | <b>data \*</b> | | `Array<Datum>` or `Array<[number, number]>` | Array of data |

| Name | Default | Type | Description |
| :------------ | :--------------- | :------------------------------------------ | :----------------------------------------------------------- |
| className | | `string` | Custom css classes to apply to the SVG |
| style | | `React.CSSProperties` | Custom style object to apply to the SVG |
| defs | | `JSX.Element` | Optional `<defs />` element to include in the SVG |
| size | | `{ width: number; height: number }` | Width and Height of the SVG. Default is parent node size. |
| <b>data\*</b> | | `Array<Datum>` or `Array<[number, number]>` | Array of data |
| projection | `geoAlbersUsa()` | `GeoProjection` | D3 GeoProjection to map coordinates |
| side | `5` | `number` | Grid cell dimension |
| tooltip | | `(Datum) => string` | Return HTML or text as a string to show on element mouseover |
| Name | Default | Type | Description |
| :----------------- | :--------------- | :------------------------------------------ | :----------------------------------------------------------- |
| className | | `string` | Custom css classes to apply to the SVG |
| style | | `React.CSSProperties` | Custom style object to apply to the SVG |
| additionalElements | | `JSX.Element` | Optional elements to add to the SVG |
| size | | `{ width: number; height: number }` | Width and Height of the SVG. Default is parent node size. |
| <b>data\*</b> | | `Array<Datum>` or `Array<[number, number]>` | Array of data |
| projection | `geoAlbersUsa()` | `GeoProjection` | D3 GeoProjection to map coordinates |
| side | `5` | `number` | Grid cell dimension |
| tooltip | | `(Datum) => string` | Return HTML or text as a string to show on element mouseover |
# \<DotMapWorld \/>
| Name | Default | Type | Description |
| :------------ | :------------------- | :-------------------------------------------------- | :----------------------------------------------------------- |
| className | | `string` | Custom css classes to apply to the SVG |
| style | | `React.CSSProperties` | Custom style object to apply to the SVG |
| defs | | `JSX.Element` | Optional `<defs />` element to include in the SVG |
| size | | `{ width: number; height: number }` | Width and Height of the SVG. Default is parent node size. |
| <b>data\*</b> | | `Array<Datum>` or `Array<[number, number]>` | Array of data |
| coords | `(Datum) => Datum` | `(Datum) => [number, number]` or `[number, number]` | Coords accessor |
| value | 10 | `(Datum) => number` or `number` | Value accessor |
| fill | `rgb(0,0,0)` | `(Datum) => string` or `string` | Fill color accessor |
| stroke | | `(Datum) => string` or `string` | Stroke color accessor |
| projection | `geoNaturalEarth1()` | `GeoProjection` | D3 GeoProjection to map coordinates |
| side | `5` | `number` | Grid cell dimension |
| tooltip | | `(Datum) => string` | Return HTML or text as a string to show on element mouseover |
| Name | Default | Type | Description |
| :----------------- | :------------------- | :-------------------------------------------------- | :----------------------------------------------------------- |
| className | | `string` | Custom css classes to apply to the SVG |
| style | | `React.CSSProperties` | Custom style object to apply to the SVG |
| additionalElements | | `JSX.Element` | Optional elements to add to the SVG |
| size | | `{ width: number; height: number }` | Width and Height of the SVG. Default is parent node size. |
| <b>data\*</b> | | `Array<Datum>` or `Array<[number, number]>` | Array of data |
| coords | `(Datum) => Datum` | `(Datum) => [number, number]` or `[number, number]` | Coords accessor |
| value | 10 | `(Datum) => number` or `number` | Value accessor |
| fill | `rgb(0,0,0)` | `(Datum) => string` or `string` | Fill color accessor |
| stroke | | `(Datum) => string` or `string` | Stroke color accessor |
| projection | `geoNaturalEarth1()` | `GeoProjection` | D3 GeoProjection to map coordinates |
| side | `5` | `number` | Grid cell dimension |
| tooltip | | `(Datum) => string` | Return HTML or text as a string to show on element mouseover |
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