@nivo/core
Advanced tools
Comparing version 0.70.1 to 0.71.0
@@ -12,2 +12,9 @@ import * as React from 'react' | ||
export interface Point { | ||
x: number | ||
y: number | ||
} | ||
export interface AlignBox extends Dimensions, Point {} | ||
export type Margin = { | ||
@@ -32,3 +39,7 @@ bottom: number | ||
export const boxAlignments: BoxAlign[] | ||
export function alignBox(box: Box, container: Box, alignment: BoxAlign): [number, number] | ||
export function alignBox( | ||
box: AlignBox, | ||
container: AlignBox, | ||
alignment: BoxAlign | ||
): [number, number] | ||
@@ -71,2 +82,9 @@ export type GetColor<T> = (datum: T) => string | ||
legends: { | ||
hidden: { | ||
symbol: Partial<{ | ||
fill: string | ||
opacity: number | ||
}> | ||
text: Partial<React.CSSProperties> | ||
} | ||
text: Partial<React.CSSProperties> | ||
@@ -96,6 +114,24 @@ } | ||
annotations: { | ||
text: Partial<React.CSSProperties> | ||
link: Partial<React.CSSProperties> | ||
outline: Partial<React.CSSProperties> | ||
symbol: Partial<React.CSSProperties> | ||
text: { | ||
fill: string | ||
outlineWidth: number | ||
outlineColor: string | ||
} & Partial<Omit<React.CSSProperties, 'fill'>> | ||
link: { | ||
stroke: string | ||
strokeWidth: number | ||
outlineWidth: number | ||
outlineColor: string | ||
} & Partial<Omit<React.CSSProperties, 'stroke' | 'strokeWidth'>> | ||
outline: { | ||
stroke: string | ||
strokeWidth: number | ||
outlineWidth: number | ||
outlineColor: string | ||
} & Partial<Omit<React.CSSProperties, 'stroke' | 'strokeWidth'>> | ||
symbol: { | ||
fill: string | ||
outlineWidth: number | ||
outlineColor: string | ||
} & Partial<Omit<React.CSSProperties, 'fill'>> | ||
} | ||
@@ -125,2 +161,6 @@ } | ||
legends: Partial<{ | ||
hidden: Partial<{ | ||
symbol: CompleteTheme['legends']['hidden']['symbol'] | ||
text: CompleteTheme['legends']['hidden']['text'] | ||
}> | ||
text: Partial<CompleteTheme['legends']['text']> | ||
@@ -136,3 +176,8 @@ }> | ||
tooltip: Partial<CompleteTheme['tooltip']> | ||
annotations: Partial<CompleteTheme['annotations']> | ||
annotations: Partial<{ | ||
text: Partial<CompleteTheme['annotations']['text']> | ||
link: Partial<CompleteTheme['annotations']['link']> | ||
outline: Partial<CompleteTheme['annotations']['outline']> | ||
symbol: Partial<CompleteTheme['annotations']['symbol']> | ||
}> | ||
} | ||
@@ -287,2 +332,3 @@ > | ||
export function radiansToDegrees(radians: number): number | ||
export function absoluteAngleDegrees(degrees: number): number | ||
@@ -289,0 +335,0 @@ type Accessor<T extends keyof U, U> = T extends string ? U[T] : never |
{ | ||
"name": "@nivo/core", | ||
"version": "0.70.1", | ||
"version": "0.71.0", | ||
"license": "MIT", | ||
@@ -23,4 +23,4 @@ "author": { | ||
"dependencies": { | ||
"@nivo/recompose": "0.70.0", | ||
"@react-spring/web": "9.1.2", | ||
"@nivo/recompose": "0.71.0", | ||
"@react-spring/web": "9.2.0", | ||
"d3-color": "^2.0.0", | ||
@@ -33,11 +33,11 @@ "d3-format": "^1.4.4", | ||
"d3-shape": "^1.3.5", | ||
"d3-time-format": "^2.1.3", | ||
"lodash": "^4.17.11", | ||
"d3-time-format": "^3.0.0", | ||
"lodash": "^4.17.21", | ||
"resize-observer-polyfill": "^1.5.1" | ||
}, | ||
"devDependencies": { | ||
"@nivo/tooltip": "0.70.1" | ||
"@nivo/tooltip": "0.71.0" | ||
}, | ||
"peerDependencies": { | ||
"@nivo/tooltip": "0.70.1", | ||
"@nivo/tooltip": "0.71.0", | ||
"prop-types": ">= 15.5.10 < 16.0.0", | ||
@@ -49,3 +49,3 @@ "react": ">= 16.8.4 < 18.0.0" | ||
}, | ||
"gitHead": "460d79b04e335bd32a80226da417d41d312b893d" | ||
"gitHead": "232b613bd61d2b8e5c783f4181b2d14580e2fd27" | ||
} |
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
931900
7635
+ Added@nivo/recompose@0.71.0(transitive)
+ Added@nivo/tooltip@0.71.0(transitive)
+ Added@react-spring/animated@9.2.6(transitive)
+ Added@react-spring/core@9.2.6(transitive)
+ Added@react-spring/rafz@9.2.6(transitive)
+ Added@react-spring/shared@9.2.6(transitive)
+ Added@react-spring/types@9.2.6(transitive)
+ Added@react-spring/web@9.2.0(transitive)
+ Addedd3-time-format@3.0.0(transitive)
+ Addedreact-dom@17.0.2(transitive)
+ Addedscheduler@0.20.2(transitive)
- Removed@nivo/recompose@0.70.0(transitive)
- Removed@nivo/tooltip@0.70.1(transitive)
- Removed@react-spring/animated@9.1.2(transitive)
- Removed@react-spring/core@9.1.2(transitive)
- Removed@react-spring/shared@9.1.2(transitive)
- Removed@react-spring/types@9.1.2(transitive)
- Removed@react-spring/web@9.1.2(transitive)
- Removedd3-time@1.1.0(transitive)
- Removedd3-time-format@2.3.0(transitive)
- Removedrafz@0.1.14(transitive)
- Removedreact@18.3.1(transitive)
- Removedreact-dom@18.3.1(transitive)
- Removedscheduler@0.23.2(transitive)
Updated@nivo/recompose@0.71.0
Updated@react-spring/web@9.2.0
Updatedd3-time-format@^3.0.0
Updatedlodash@^4.17.21