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

@nivo/pie

Package Overview
Dependencies
Maintainers
1
Versions
84
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nivo/pie - npm Package Compare versions

Comparing version 0.50.0 to 0.51.0

95

index.d.ts
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"
}
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