|
|
|
@ -13,17 +13,17 @@ export type Options = {
|
|
|
|
|
margin?: Margin; |
|
|
|
|
confidence?: number; |
|
|
|
|
eventsCallbacks?: { |
|
|
|
|
zoomIn: (range: AxisRange[]) => void, |
|
|
|
|
panning: (event: { ranges: AxisRange[], d3Event: any }) => void, |
|
|
|
|
panningEnd: (range: AxisRange[]) => void, |
|
|
|
|
zoomOut: (centers: {x: number, y: number}) => void, |
|
|
|
|
mouseMove: (evt: any) => void, |
|
|
|
|
mouseOut: () => void, |
|
|
|
|
onLegendClick: (idx: number) => void, |
|
|
|
|
onLegendLabelClick: (idx: number) => void, |
|
|
|
|
contextMenu: (evt: any) => void, // the same name as in d3.events
|
|
|
|
|
sharedCrosshairMove: (event: any) => void, |
|
|
|
|
renderEnd: () => void, |
|
|
|
|
zoomIn?: (range: AxisRange[]) => void, |
|
|
|
|
panning?: (event: { ranges: AxisRange[], d3Event: any }) => void, |
|
|
|
|
panningEnd?: (range: AxisRange[]) => void, |
|
|
|
|
zoomOut?: (centers: {x: number, y: number}) => void, |
|
|
|
|
mouseMove?: (evt: any) => void, |
|
|
|
|
mouseOut?: () => void, |
|
|
|
|
onLegendClick?: (idx: number) => void, |
|
|
|
|
onLegendLabelClick?: (idx: number) => void, |
|
|
|
|
contextMenu?: (evt: any) => void, // the same name as in d3.events
|
|
|
|
|
sharedCrosshairMove?: (event: any) => void, |
|
|
|
|
renderEnd?: () => void, |
|
|
|
|
}; |
|
|
|
|
axis?: { |
|
|
|
|
x?: AxisOption, |
|
|
|
|