Socket
Socket
Sign inDemoInstall

@nivo/core

Package Overview
Dependencies
11
Maintainers
1
Versions
75
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.62.0 to 0.63.0

dist/nivo-core.cjs.js.map

63

index.d.ts
import * as React from 'react'
import { number } from 'prop-types'

@@ -48,2 +47,5 @@ declare module '@nivo/core' {

background: string
fontFamily: string
fontSize: number
textColor: string
axis: Partial<{

@@ -75,2 +77,3 @@ domain: Partial<{

fontSize: string | 0
text: Partial<React.CSSProperties>
}>

@@ -87,2 +90,8 @@ dots: Partial<{

}>
annotations: Partial<{
text: Partial<React.CSSProperties>
link: Partial<React.CSSProperties>
outline: Partial<React.CSSProperties>
symbol: Partial<React.CSSProperties>
}>
}>

@@ -98,7 +107,7 @@

export interface SvgDefsAndFill<T> {
defs?: Array<{
defs?: {
id: string
[key: string]: any
}>
fill?: Array<{ id: string; match: object | SvgFillMatcher<T> | '*' }>
}[]
fill?: { id: string; match: object | SvgFillMatcher<T> | '*' }[]
}

@@ -151,2 +160,48 @@

export function useValueFormatter(formatter?: DataFormatter | string): DataFormatter
export type LinearGradientDef = {
id: string
type: 'linearGradient'
colors: {
offset: number
color: string
opacity?: number
}[]
}
export type PatternDotsDef = {
id: string
type: 'patternDots'
color?: string
background?: string
size?: number
padding?: number
stagger?: boolean
}
export type PatternSquaresDef = Omit<PatternDotsDef, 'type'> & {
type: 'patternDots'
}
export type PatternLinesDef = {
id: string
type: 'patternLines'
spacing?: number
rotation?: number
background?: string
color?: string
lineWidth?: number
}
export type Def = LinearGradientDef | PatternDotsDef | PatternSquaresDef | PatternLinesDef
export type DefsProps = {
defs: Def[]
}
export function PatternLines(props: Omit<PatternLinesDef, 'type'>): JSX.Element
export function PatternSquares(props: Omit<PatternSquaresDef, 'type'>): JSX.Element
export function PatternDots(props: Omit<PatternDotsDef, 'type'>): JSX.Element
export function Defs(props: DefsProps): JSX.Element
}

17

package.json
{
"name": "@nivo/core",
"version": "0.62.0",
"version": "0.63.0",
"license": "MIT",

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

"main": "./dist/nivo-core.cjs.js",
"module": "./dist/nivo-core.esm.js",
"module": "./dist/nivo-core.es.js",
"files": [

@@ -19,7 +19,5 @@ "README.md",

"dependencies": {
"@nivo/tooltip": "0.62.0",
"d3-color": "^1.2.3",
"d3-format": "^1.3.2",
"d3-format": "^1.4.4",
"d3-hierarchy": "^1.1.8",
"d3-interpolate": "^1.3.2",
"d3-scale": "^3.0.0",

@@ -30,7 +28,8 @@ "d3-scale-chromatic": "^1.3.3",

"lodash": "^4.17.11",
"react-measure": "^2.2.4",
"react-motion": "^0.5.2",
"recompose": "^0.30.0"
"react-spring": "^8.0.27",
"recompose": "^0.30.0",
"resize-observer-polyfill": "^1.5.1"
},
"peerDependencies": {
"@nivo/tooltip": "0.62.0",
"prop-types": ">= 15.5.10 < 16.0.0",

@@ -42,3 +41,3 @@ "react": ">= 16.8.4 < 17.0.0"

},
"gitHead": "a98a072c4fe5339457d26f396d032dfc302187bc"
"gitHead": "defc453433d8e6767ba3d612cce0d05c119ec5ed"
}

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

Packages

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc