Compare commits

...

1 Commits

Author SHA1 Message Date
glitch4347 f6119913fb events refactoring begin 2 months ago
  1. 12
      src/types.ts

12
src/types.ts

@ -14,9 +14,8 @@ export type Serie = {
yOrientation?: yAxisOrientation,
};
// TODO: move some options to line-chart
export type Options = {
margin?: Margin;
eventsCallbacks?: {
export type Events = {
zoomIn?: (range: AxisRange[]) => void,
panning?: (event: { ranges: AxisRange[], d3Event: any }) => void,
panningEnd?: (range: AxisRange[]) => void,
@ -31,7 +30,12 @@ export type Options = {
renderStart?: () => void,
renderEnd?: () => void,
componentRenderEnd?: (part: RenderComponent) => void,
};
}
export type Options = {
margin?: Margin;
eventsCallbacks?: Events;
events?: Events;
axis?: AxesOptions;
grid?: GridOptions;
crosshair?: CrosshairOptions;

Loading…
Cancel
Save