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.11.0 to 0.12.0

8

package.json
{
"name": "@datalith/dotmap",
"version": "0.11.0",
"version": "0.12.0",
"description": "datalith dotmap",

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

"dependencies": {
"@datalith/gridmap": "^0.11.0",
"@datalith/util": "^0.11.0",
"@datalith/gridmap": "^0.12.0",
"@datalith/util": "^0.12.0",
"d3-array": "^2.1.0",

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

},
"gitHead": "b0920c0228c962da982a7a78f97d876f95d01c50"
"gitHead": "de8bfa0ea4c418ed0d618640a324001482768757"
}

@@ -19,7 +19,12 @@ # @datalith/dotmap

| coords | `(Datum) => Datum` | `(Datum) => [number, number]` or `[number, number]` | Coords accessor |
| value | 10 | `(Datum) => number` or `number` | Value accessor |
| value | `10` | `(Datum) => number` or `number` | Value accessor |
| valueInactive | `1` | `number` | Value Inactive accessor |
| fill | | `(Datum) => string` or `string` | Fill color accessor |
| fillOpacity | | `(Datum) => number` or `number` | Fill opacity accessor |
| fillInactive | `#000` | `string` | Fill Inactive accessor |
| fillOpacity | | `(Datum) => number` or `number` | Fill Opacity accessor |
| fillOpacityInactive | `0.3` | `number` | Fill Opacity Inactive accessor |
| stroke | | `(Datum) => string` or `string` | Stroke color accessor |
| strokeOpacity | | `(Datum) => number` or `number` | Stroke opacity accessor |
| strokeInactive | `transparent` | `string` | Stroke Inactive accessor |
| strokeOpacity | | `(Datum) => number` or `number` | Stroke Opacity accessor |
| strokeOpacityInactive | `0.3` | `number` | Stroke Opacity Inactive accessor |
| <b>featureCollection \*</b> | | `FeatureCollection` | GeoJson object |

@@ -45,17 +50,24 @@ | projection | `geoNaturalEarth1()` | `GeoProjection` | D3 GeoProjection to map coordinates |

| 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 | | `(Datum) => string` or `string` | Fill color accessor |
| fillOpacity | | `(Datum) => number` or `number` | Fill opacity accessor |
| stroke | | `(Datum) => string` or `string` | Stroke color accessor |
| strokeOpacity | | `(Datum) => number` or `number` | Stroke opacity 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 |
| valueInactive | `1` | `number` | Value Inactive accessor |
| fill | | `(Datum) => string` or `string` | Fill color accessor |
| fillInactive | `#000` | `string` | Fill Inactive accessor |
| fillOpacity | | `(Datum) => number` or `number` | Fill Opacity accessor |
| fillOpacityInactive | `0.3` | `number` | Fill Opacity Inactive accessor |
| fillInactive | `#000` | `string` | Fill Inactive accessor |
| stroke | | `(Datum) => string` or `string` | Stroke color accessor |
| strokeInactive | `transparent` | `string` | Stroke Inactive accessor |
| strokeOpacity | | `(Datum) => number` or `number` | Stroke Opacity accessor |
| strokeOpacityInactive | `0.3` | `number` | Stroke Opacity Inactive accessor |
| strokeInactive | `transparent` | `string` | Stroke Inactive 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