New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@dfnivo/axes

Package Overview
Dependencies
Maintainers
1
Versions
11
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@dfnivo/axes - npm Package Compare versions

Comparing version 0.79.11 to 0.79.12

dist/ejs/canvas/axes.js

2

dist/ejs/index.js

@@ -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

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