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

Loading…
Cancel
Save