Browse Source

events refactoring begin

rename-eventCallbacs-to-events-#26
glitch4347 9 months ago
parent
commit
f6119913fb
  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