Socket
Socket
Sign inDemoInstall

@nivo/core

Package Overview
Dependencies
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@nivo/core - npm Package Compare versions

Comparing version 0.50.0 to 0.51.0

100

index.d.ts

@@ -0,35 +1,34 @@

import { CSSProperties } from 'react'
declare module '@nivo/core' {
export type GetColor<T> = (datum: T) => string
export type Colors =
| string[]
| 'nivo'
| 'category10'
| 'd320'
| 'd320b'
| 'd320c'
| 'accent'
| 'dark2'
| 'paired'
| 'pastel1'
| 'set1'
| 'set2'
| 'set3'
export type Colors = string[] | string
export interface ColorProps<T> {
colors: Colors
colorBy: string | GetColor<T>
colors?: Colors
colorBy?: string | GetColor<T>
}
export type Theme = Partial<{
background: string
axis: Partial<{
textColor: string
fontSize: string | 0
tickColor: string
legendColor: string
legendFontSize: string | 0
}>,
domain: Partial<{
line: Partial<CSSProperties>
}>
ticks: Partial<{
line: Partial<CSSProperties>
text: Partial<CSSProperties>
}>
legend: Partial<{
text: Partial<CSSProperties>
}>
}>
grid: Partial<{
stroke: string
strokeWidth: number
strokeDasharray: string
}>,
line: Partial<CSSProperties>
}>
legends: Partial<{
text: Partial<CSSProperties>
}>
labels: Partial<{
text: Partial<CSSProperties>
}>
markers: Partial<{

@@ -40,31 +39,11 @@ lineColor: string

fontSize: string | 0
}>,
}>
dots: Partial<{
textColor: string
fontSize: string | 0
}>,
text: Partial<CSSProperties>
}>
tooltip: Partial<{
container: Partial<{
background: string
color: string
fontSize: string | 0
borderRadius: string | 0
boxShadow: string
padding: string | 0
}>,
basic: Partial<{
whiteSpace: string
display: string
alignItems: string
}>,
table: any;
tableCell: Partial<{
padding: string | 0
}>
}>,
labels: Partial<{
textColor: string
}>,
sankey: Partial<{
label: any
container: Partial<CSSProperties>
basic: Partial<CSSProperties>
table: Partial<CSSProperties>
tableCell: Partial<CSSProperties>
}>

@@ -93,5 +72,16 @@ }>

export interface SvgDefsAndFill<T> {
defs: Array<{ id: string }>
fill: Array<{ id: string, match: object | SvgFillMatcher<T> | '*' }>
defs?: Array<{
id: string
[key: string]: any
}>
fill?: Array<{ id: string; match: object | SvgFillMatcher<T> | '*' }>
}
export interface CartesianMarkerProps {
axis: 'x' | 'y'
value: string | number | Date
legend?: string
lineStyle?: Partial<CSSProperties>
textStyle?: Partial<CSSProperties>
}
}
{
"name": "@nivo/core",
"version": "0.50.0",
"version": "0.51.0",
"license": "MIT",

@@ -38,3 +38,3 @@ "author": {

},
"gitHead": "934117e4d2873a2a5684aa8e713d5b0e788cc67a"
"gitHead": "a17dfedf502a75b969e205620231a5c1fb6a1d67"
}

Sorry, the diff of this file is too big to display

Sorry, the diff of this file is too big to display

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