Comparing version 0.50.0 to 0.51.0
import * as React from 'react' | ||
import { Box, Dimensions, Theme, MotionProps, ColorProps, GetColor, SvgDefsAndFill } from '@nivo/core' | ||
import { | ||
Box, | ||
Dimensions, | ||
Theme, | ||
MotionProps, | ||
ColorProps, | ||
GetColor, | ||
SvgDefsAndFill, | ||
} from '@nivo/core' | ||
import { LegendProps } from '@nivo/legends' | ||
@@ -24,44 +32,46 @@ | ||
export type CommonPieProps = MotionProps & ColorProps<PieDatum> & Partial<{ | ||
margin: Box | ||
sortByValue: boolean | ||
innerRadius: number | ||
padAngle: number | ||
cornerRadius: number | ||
startAngle: number | ||
endAngle: number | ||
fit: boolean | ||
export type CommonPieProps = MotionProps & | ||
ColorProps<PieDatum> & | ||
Partial<{ | ||
margin: Box | ||
sortByValue: boolean | ||
innerRadius: number | ||
padAngle: number | ||
cornerRadius: number | ||
startAngle: number | ||
endAngle: number | ||
fit: boolean | ||
// border | ||
// styling | ||
theme: Theme | ||
borderWidth: number | ||
borderColor: string | GetColor<PieDatum> | ||
// border | ||
// styling | ||
theme: Theme | ||
borderWidth: number | ||
borderColor: string | GetColor<PieDatum> | ||
// radial labels | ||
enableRadialLabels: boolean | ||
radialLabel: string | AccessorFunc | ||
radialLabelsSkipAngle: number | ||
radialLabelsTextXOffset: number | ||
radialLabelsTextColor: string | GetColor<PieDatumWithColor> | ||
radialLabelsLinkOffset: number | ||
radialLabelsLinkDiagonalLength: number | ||
radialLabelsLinkHorizontalLength: number | ||
radialLabelsLinkStrokeWidth: number | ||
radialLabelsLinkColor: string | GetColor<PieDatumWithColor> | ||
// radial labels | ||
enableRadialLabels: boolean | ||
radialLabel: string | AccessorFunc | ||
radialLabelsSkipAngle: number | ||
radialLabelsTextXOffset: number | ||
radialLabelsTextColor: string | GetColor<PieDatumWithColor> | ||
radialLabelsLinkOffset: number | ||
radialLabelsLinkDiagonalLength: number | ||
radialLabelsLinkHorizontalLength: number | ||
radialLabelsLinkStrokeWidth: number | ||
radialLabelsLinkColor: string | GetColor<PieDatumWithColor> | ||
// slices labels | ||
enableSlicesLabels: boolean | ||
sliceLabel: string | AccessorFunc | ||
slicesLabelsSkipAngle: number | ||
slicesLabelsTextColor: string | GetColor<PieDatumWithColor> | ||
// slices labels | ||
enableSlicesLabels: boolean | ||
sliceLabel: string | AccessorFunc | ||
slicesLabelsSkipAngle: number | ||
slicesLabelsTextColor: string | GetColor<PieDatumWithColor> | ||
// interactivity | ||
isInteractive: boolean | ||
onClick: (datum: PieDatum, event: React.MouseEvent<SVGPathElement>) => void | ||
tooltipFormat: string | ValueFormatter | ||
tooltip: React.StatelessComponent<PieDatumWithColor> | ||
// interactivity | ||
isInteractive: boolean | ||
onClick: (datum: PieDatum, event: React.MouseEvent<SVGPathElement>) => void | ||
tooltipFormat: string | ValueFormatter | ||
tooltip: React.StatelessComponent<PieDatumWithColor> | ||
legends: LegendProps[] | ||
}> | ||
legends: LegendProps[] | ||
}> | ||
@@ -73,9 +83,10 @@ export type PieSvgProps = Data & CommonPieProps & SvgDefsAndFill<PieDatum> | ||
export type PieCanvasProps = Data & CommonPieProps & Partial<{ | ||
pixelRatio: number | ||
}> | ||
export type PieCanvasProps = Data & | ||
CommonPieProps & | ||
Partial<{ | ||
pixelRatio: number | ||
}> | ||
export class PieCanvas extends React.Component<PieCanvasProps & Dimensions> {} | ||
export class ResponsivePieCanvas extends React.Component<PieCanvasProps> {} | ||
} |
{ | ||
"name": "@nivo/pie", | ||
"version": "0.50.0", | ||
"version": "0.51.0", | ||
"license": "MIT", | ||
@@ -26,4 +26,4 @@ "author": { | ||
"dependencies": { | ||
"@nivo/core": "0.50.0", | ||
"@nivo/legends": "0.50.0", | ||
"@nivo/core": "0.51.0", | ||
"@nivo/legends": "0.51.0", | ||
"d3-shape": "^1.2.2", | ||
@@ -41,3 +41,3 @@ "lodash": "^4.17.4", | ||
}, | ||
"gitHead": "934117e4d2873a2a5684aa8e713d5b0e788cc67a" | ||
"gitHead": "a17dfedf502a75b969e205620231a5c1fb6a1d67" | ||
} |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
105145
2431
+ Added@nivo/core@0.51.0(transitive)
+ Added@nivo/legends@0.51.0(transitive)
- Removed@nivo/core@0.50.0(transitive)
- Removed@nivo/legends@0.50.0(transitive)
Updated@nivo/core@0.51.0
Updated@nivo/legends@0.51.0