Browse Source

add dist

merge-requests/5/head
Alexey Velikiy 3 years ago
parent
commit
cd93fe9d6a
  1. 2
      dist/index.js
  2. 25
      dist/types.d.ts

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

25
dist/types.d.ts vendored

@ -4,9 +4,10 @@ export declare type Margin = {
bottom: number;
left: number;
};
export declare type Timestamp = number;
export declare type TimeSerie = {
target: string;
datapoints: [number, number][];
datapoints: [Timestamp, number][];
alias?: string;
visible?: boolean;
color?: string;
@ -16,23 +17,23 @@ export declare type Options = {
margin?: Margin;
confidence?: number;
eventsCallbacks?: {
zoomIn: (range: AxisRange[]) => void;
panning: (event: {
zoomIn?: (range: AxisRange[]) => void;
panning?: (event: {
ranges: AxisRange[];
d3Event: any;
}) => void;
panningEnd: (range: AxisRange[]) => void;
zoomOut: (centers: {
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;
sharedCrosshairMove: (event: any) => void;
renderEnd: () => void;
mouseMove?: (evt: any) => void;
mouseOut?: () => void;
onLegendClick?: (idx: number) => void;
onLegendLabelClick?: (idx: number) => void;
contextMenu?: (evt: any) => void;
sharedCrosshairMove?: (event: any) => void;
renderEnd?: () => void;
};
axis?: {
x?: AxisOption;

Loading…
Cancel
Save