react-plot
Version:
Library of React components to render SVG 2D plots.
44 lines • 953 B
TypeScript
import type { CSSProperties } from 'react';
export interface ControllerHookOptions {
controllerId?: string;
/**
* Disable the hook.
* @defaultValue false
* */
disabled?: boolean;
}
export interface DualAxisOptions {
/**
* Id of the horizontal axis.
* @defaultValue 'x'
* */
horizontalAxisId?: string;
/**
* Id of the vertical axis.
* @defaultValue 'y'
* */
verticalAxisId?: string;
}
export interface RectangleOptions {
/**
* Rectangle stroke color.
* @defaultValue 'red'
* */
color?: CSSProperties['stroke'];
/**
* Rectangle additional style.
* */
style?: CSSProperties;
}
export interface PathOptions {
/**
* Path line color.
* @defaultValue 'black'
* */
color?: CSSProperties['stroke' | 'fill'];
/**
* Path line additional style.
* */
style?: CSSProperties;
}
//# sourceMappingURL=types.d.ts.map