Socket
Socket
Sign inDemoInstall

@nivo/legends

Package Overview
Dependencies
32
Maintainers
2
Versions
71
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.70.0 to 0.70.1

12

dist/types/types.d.ts

@@ -37,4 +37,5 @@ import React from 'react';

declare type CommonLegendProps = {
data?: Datum[];
direction: LegendDirection;
padding: number | Record<'top' | 'right' | 'bottom' | 'left', number>;
padding?: number | Partial<Record<'top' | 'right' | 'bottom' | 'left', number>>;
justify?: boolean;

@@ -51,3 +52,2 @@ itemWidth: number;

export declare type LegendProps = {
data: Datum[];
translateX?: number;

@@ -60,8 +60,7 @@ translateY?: number;

containerHeight: number;
} & LegendProps;
} & LegendProps & Required<Pick<LegendProps, 'data'>>;
export declare type LegendSvgProps = {
data: Datum[];
x: number;
y: number;
} & CommonLegendProps & BoxLegendSymbolProps & InteractivityProps;
} & CommonLegendProps & Required<Pick<CommonLegendProps, 'data'>> & BoxLegendSymbolProps & InteractivityProps;
export declare type LegendSvgItemProps = {

@@ -79,3 +78,2 @@ data: Datum;

export declare type LegendCanvasProps = {
data: Datum[];
containerWidth: number;

@@ -89,4 +87,4 @@ containerHeight: number;

theme: CompleteTheme;
} & Pick<CommonLegendProps, 'direction' | 'padding' | 'justify' | 'itemsSpacing' | 'itemWidth' | 'itemHeight' | 'itemDirection' | 'itemTextColor'>;
} & Required<Pick<CommonLegendProps, 'data'>> & Pick<CommonLegendProps, 'direction' | 'padding' | 'justify' | 'itemsSpacing' | 'itemWidth' | 'itemHeight' | 'itemDirection' | 'itemTextColor'>;
export {};
//# sourceMappingURL=types.d.ts.map
{
"name": "@nivo/legends",
"description": "legend components for nivo dataviz library",
"version": "0.70.0",
"version": "0.70.1",
"license": "MIT",

@@ -25,6 +25,6 @@ "author": {

"devDependencies": {
"@nivo/core": "0.70.0"
"@nivo/core": "0.70.1"
},
"peerDependencies": {
"@nivo/core": "0.70.0",
"@nivo/core": "0.70.1",
"prop-types": ">= 15.5.10 < 16.0.0",

@@ -36,3 +36,3 @@ "react": ">= 16.8.4 < 18.0.0"

},
"gitHead": "77cbd6a909c2b2d53ba94e2ee873f3d95b5aae3b"
"gitHead": "460d79b04e335bd32a80226da417d41d312b893d"
}

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc