@nivo/axes
Advanced tools
Comparing version 0.78.0 to 0.79.0
import { CompleteTheme } from '@nivo/core'; | ||
import { ScaleValue, AnyScale, TicksSpec } from '@nivo/scales'; | ||
import { AxisLegendPosition, CanvasAxisProp, ValueFormatter } from './types'; | ||
import { AxisLegendPosition, CanvasAxisProps, ValueFormatter } from './types'; | ||
export declare const renderAxisToCanvas: <Value extends ScaleValue>(ctx: CanvasRenderingContext2D, { axis, scale, x, y, length, ticksPosition, tickValues, tickSize, tickPadding, tickRotation, format: _format, legend, legendPosition, legendOffset, theme, }: { | ||
@@ -26,6 +26,6 @@ axis: 'x' | 'y'; | ||
height: number; | ||
top?: CanvasAxisProp<X> | null | undefined; | ||
right?: CanvasAxisProp<Y> | null | undefined; | ||
bottom?: CanvasAxisProp<X> | null | undefined; | ||
left?: CanvasAxisProp<Y> | null | undefined; | ||
top?: CanvasAxisProps<X> | null | undefined; | ||
right?: CanvasAxisProps<Y> | null | undefined; | ||
bottom?: CanvasAxisProps<X> | null | undefined; | ||
left?: CanvasAxisProps<Y> | null | undefined; | ||
theme: CompleteTheme; | ||
@@ -32,0 +32,0 @@ }) => void; |
@@ -25,3 +25,3 @@ import * as React from 'react'; | ||
} | ||
export interface CanvasAxisProp<Value extends ScaleValue> extends Omit<AxisProps<Value>, 'legend'> { | ||
export interface CanvasAxisProps<Value extends ScaleValue = any> extends Omit<AxisProps<Value>, 'legend'> { | ||
legend?: string; | ||
@@ -28,0 +28,0 @@ } |
{ | ||
"name": "@nivo/axes", | ||
"version": "0.78.0", | ||
"version": "0.79.0", | ||
"license": "MIT", | ||
@@ -30,3 +30,3 @@ "author": { | ||
"dependencies": { | ||
"@nivo/scales": "0.78.0", | ||
"@nivo/scales": "0.79.0", | ||
"@react-spring/web": "9.3.1", | ||
@@ -37,3 +37,3 @@ "d3-format": "^1.4.4", | ||
"devDependencies": { | ||
"@nivo/core": "0.78.0", | ||
"@nivo/core": "0.79.0", | ||
"@types/d3-format": "^1.4.1", | ||
@@ -43,3 +43,3 @@ "@types/d3-time-format": "^2.3.1" | ||
"peerDependencies": { | ||
"@nivo/core": "0.78.0", | ||
"@nivo/core": "0.79.0", | ||
"prop-types": ">= 15.5.10 < 16.0.0", | ||
@@ -51,3 +51,3 @@ "react": ">= 16.14.0 < 18.0.0" | ||
}, | ||
"gitHead": "166935501f9a971540ceccc1ec562a65341e5fb3" | ||
"gitHead": "c9d8f198962d242872a0267e304f950eb57e2ec4" | ||
} |
@@ -0,1 +1,6 @@ | ||
<a href="https://nivo.rocks"><img alt="nivo" src="https://raw.githubusercontent.com/plouc/nivo/master/nivo.png" width="216" height="68"/></a> | ||
# `@nivo/axes` | ||
[![version](https://img.shields.io/npm/v/@nivo/axes?style=for-the-badge)](https://www.npmjs.com/package/@nivo/axes) | ||
[![downloads](https://img.shields.io/npm/dm/@nivo/axes?style=for-the-badge)](https://www.npmjs.com/package/@nivo/axes) |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is not supported yet
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
158213
7
+ Added@nivo/core@0.79.0(transitive)
+ Added@nivo/recompose@0.79.0(transitive)
+ Added@nivo/scales@0.79.0(transitive)
+ Added@nivo/tooltip@0.79.0(transitive)
- Removed@nivo/core@0.78.0(transitive)
- Removed@nivo/recompose@0.78.0(transitive)
- Removed@nivo/scales@0.78.0(transitive)
- Removed@nivo/tooltip@0.78.0(transitive)
- Removedresize-observer-polyfill@1.5.1(transitive)
Updated@nivo/scales@0.79.0