@dfnivo/axes
Advanced tools
Comparing version 0.79.11 to 0.79.12
@@ -1,2 +0,2 @@ | ||
export * from "./components"; | ||
export * from "./svg"; | ||
export * from "./canvas"; | ||
@@ -3,0 +3,0 @@ export * from "./props"; |
import { CompleteTheme } from '@dfnivo/core'; | ||
import { ScaleValue, AnyScale, TicksSpec } from '@dfnivo/scales'; | ||
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, }: { | ||
import { CanvasLine, CanvasRenderable, CanvasRenderableProps } from '@dfnivo/canvas'; | ||
export type GetCanvasAxisProps<Value extends ScaleValue> = { | ||
axis: 'x' | 'y'; | ||
scale: AnyScale; | ||
x?: number | undefined; | ||
y?: number | undefined; | ||
x?: number; | ||
y?: number; | ||
length: number; | ||
ticksPosition: 'before' | 'after'; | ||
tickValues?: TicksSpec<Value> | undefined; | ||
tickSize?: number | undefined; | ||
tickPadding?: number | undefined; | ||
tickRotation?: number | undefined; | ||
format?: string | ValueFormatter<Value> | undefined; | ||
legend?: string | undefined; | ||
legendPosition?: AxisLegendPosition | undefined; | ||
legendOffset?: number | undefined; | ||
tickValues?: TicksSpec<Value>; | ||
tickSize?: number; | ||
tickPadding?: number; | ||
tickRotation?: number; | ||
format?: string | ValueFormatter<Value>; | ||
legend?: string; | ||
legendPosition?: AxisLegendPosition; | ||
legendOffset?: number; | ||
theme: CompleteTheme; | ||
}) => void; | ||
export declare const renderAxesToCanvas: <X extends ScaleValue, Y extends ScaleValue>(ctx: CanvasRenderingContext2D, { xScale, yScale, width, height, top, right, bottom, left, theme, }: { | ||
}; | ||
export declare const getCanvasAxis: <Value extends ScaleValue>({ axis, scale, x, y, length, ticksPosition, tickValues, tickSize, tickPadding, tickRotation, format: _format, legend, legendPosition, legendOffset, theme, }: GetCanvasAxisProps<Value>) => CanvasRenderable<CanvasRenderableProps, void>[]; | ||
export declare const renderAxisToCanvas: <Value extends ScaleValue>(ctx: CanvasRenderingContext2D, props: GetCanvasAxisProps<Value>) => void; | ||
export type GetCanvasAxesProps<X extends ScaleValue, Y extends ScaleValue> = { | ||
xScale: AnyScale; | ||
@@ -26,9 +29,12 @@ yScale: AnyScale; | ||
height: number; | ||
top?: CanvasAxisProps<X> | null | undefined; | ||
right?: CanvasAxisProps<Y> | null | undefined; | ||
bottom?: CanvasAxisProps<X> | null | undefined; | ||
left?: CanvasAxisProps<Y> | null | undefined; | ||
top?: CanvasAxisProps<X> | null; | ||
right?: CanvasAxisProps<Y> | null; | ||
bottom?: CanvasAxisProps<X> | null; | ||
left?: CanvasAxisProps<Y> | null; | ||
theme: CompleteTheme; | ||
}) => void; | ||
export declare const renderGridLinesToCanvas: <Value extends ScaleValue>(ctx: CanvasRenderingContext2D, { width, height, scale, axis, values, }: { | ||
}; | ||
export declare const getCanvasAxes: <X extends ScaleValue, Y extends ScaleValue>({ xScale, yScale, width, height, top, right, bottom, left, theme, }: GetCanvasAxesProps<X, Y>) => CanvasRenderable<CanvasRenderableProps, void>[]; | ||
export declare const useCanvasAxes: <X extends ScaleValue, Y extends ScaleValue>({ xScale, yScale, width, height, top, right, bottom, left, theme, }: GetCanvasAxesProps<X, Y>) => CanvasRenderable<CanvasRenderableProps, void>[]; | ||
export declare const renderAxesToCanvas: <X extends ScaleValue, Y extends ScaleValue>(ctx: CanvasRenderingContext2D, props: GetCanvasAxesProps<X, Y>) => void; | ||
export type CanvasGridLineProps<Value extends ScaleValue> = { | ||
width: number; | ||
@@ -38,4 +44,10 @@ height: number; | ||
axis: 'x' | 'y'; | ||
values?: TicksSpec<Value> | undefined; | ||
}) => void; | ||
values?: TicksSpec<Value>; | ||
theme: CompleteTheme; | ||
}; | ||
export declare const getCanvasGridLines: <Value extends ScaleValue>({ width, height, scale, axis, values, theme, }: CanvasGridLineProps<Value>) => CanvasLine<void>[]; | ||
export declare const useCanvasGridLines: <Value extends ScaleValue>({ enable, width, height, scale, axis, values, theme, }: CanvasGridLineProps<Value> & { | ||
enable?: boolean | undefined; | ||
}) => CanvasLine<void>[]; | ||
export declare const renderGridLinesToCanvas: <Value extends ScaleValue>(ctx: CanvasRenderingContext2D, props: CanvasGridLineProps<Value>) => void; | ||
//# sourceMappingURL=canvas.d.ts.map |
@@ -1,2 +0,2 @@ | ||
export * from './components'; | ||
export * from './svg'; | ||
export * from './canvas'; | ||
@@ -3,0 +3,0 @@ export * from './props'; |
{ | ||
"name": "@dfnivo/axes", | ||
"version": "0.79.11", | ||
"version": "0.79.12", | ||
"license": "MIT", | ||
@@ -29,4 +29,4 @@ "author": { | ||
"dependencies": { | ||
"@dfnivo/core": "0.79.11", | ||
"@dfnivo/scales": "0.79.11", | ||
"@dfnivo/core": "0.79.12", | ||
"@dfnivo/scales": "0.79.12", | ||
"@react-spring/web": "9.7.1", | ||
@@ -41,5 +41,4 @@ "d3-format": "^3.1.0", | ||
"peerDependencies": { | ||
"@dfnivo/core": "0.79.4", | ||
"prop-types": ">= 15.5.10 < 16.0.0", | ||
"react": ">= 16.14.0 <= 18.2.0" | ||
"react": ">= 16.14.0" | ||
}, | ||
@@ -49,3 +48,3 @@ "publishConfig": { | ||
}, | ||
"gitHead": "456f613a8fbb3a289052f4511366ea80f4f9be6d" | ||
"gitHead": "24fa66a0eb0079ca4d1da806aab8bb7bbcab4572" | ||
} |
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
Major refactor
Supply chain riskPackage has recently undergone a major refactor. It may be unstable or indicate significant internal changes. Use caution when updating to versions that include significant changes.
Found 1 instance in 1 package
7
136398
65
1637
1
+ Added@dfnivo/core@0.79.12(transitive)
+ Added@dfnivo/recompose@0.79.12(transitive)
+ Added@dfnivo/scales@0.79.12(transitive)
+ Addedreact@19.0.0(transitive)
- Removed@dfnivo/core@0.79.11(transitive)
- Removed@dfnivo/recompose@0.79.11(transitive)
- Removed@dfnivo/scales@0.79.11(transitive)
- Removedreact@18.2.0(transitive)
Updated@dfnivo/core@0.79.12
Updated@dfnivo/scales@0.79.12