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