|
|
@ -8,13 +8,13 @@ import * as d3 from 'd3'; |
|
|
|
declare abstract class ChartwerkPod<T extends TimeSerie, O extends Options> { |
|
|
|
declare abstract class ChartwerkPod<T extends TimeSerie, O extends Options> { |
|
|
|
protected readonly el: HTMLElement; |
|
|
|
protected readonly el: HTMLElement; |
|
|
|
protected d3Node?: d3.Selection<HTMLElement, unknown, null, undefined>; |
|
|
|
protected d3Node?: d3.Selection<HTMLElement, unknown, null, undefined>; |
|
|
|
protected chartContainer?: d3.Selection<SVGGElement, unknown, null, undefined>; |
|
|
|
|
|
|
|
protected customOverlay?: d3.Selection<SVGRectElement, unknown, null, undefined>; |
|
|
|
protected customOverlay?: d3.Selection<SVGRectElement, unknown, null, undefined>; |
|
|
|
protected crosshair?: d3.Selection<SVGGElement, unknown, null, undefined>; |
|
|
|
protected crosshair?: d3.Selection<SVGGElement, unknown, null, undefined>; |
|
|
|
protected brush?: d3.BrushBehavior<unknown>; |
|
|
|
protected brush?: d3.BrushBehavior<unknown>; |
|
|
|
protected zoom?: any; |
|
|
|
protected zoom?: any; |
|
|
|
protected svg?: d3.Selection<SVGElement, unknown, null, undefined>; |
|
|
|
protected svg?: d3.Selection<SVGElement, unknown, null, undefined>; |
|
|
|
protected state?: PodState<T, O>; |
|
|
|
protected state: PodState<T, O>; |
|
|
|
|
|
|
|
protected pan?: any; |
|
|
|
protected clipPath?: any; |
|
|
|
protected clipPath?: any; |
|
|
|
protected isPanning: boolean; |
|
|
|
protected isPanning: boolean; |
|
|
|
protected isBrushing: boolean; |
|
|
|
protected isBrushing: boolean; |
|
|
@ -32,6 +32,8 @@ declare abstract class ChartwerkPod<T extends TimeSerie, O extends Options> { |
|
|
|
protected readonly d3: typeof d3; |
|
|
|
protected readonly d3: typeof d3; |
|
|
|
protected deltaYTransform: number; |
|
|
|
protected deltaYTransform: number; |
|
|
|
protected debouncedRender: import("lodash").DebouncedFunc<any>; |
|
|
|
protected debouncedRender: import("lodash").DebouncedFunc<any>; |
|
|
|
|
|
|
|
protected chartContainer: d3.Selection<SVGGElement, unknown, null, undefined>; |
|
|
|
|
|
|
|
protected metricContainer: d3.Selection<SVGGElement, unknown, null, undefined>; |
|
|
|
protected grid: Grid; |
|
|
|
protected grid: Grid; |
|
|
|
constructor(_d3: typeof d3, el: HTMLElement, _series: T[], _options: O); |
|
|
|
constructor(_d3: typeof d3, el: HTMLElement, _series: T[], _options: O); |
|
|
|
protected addEventListeners(): void; |
|
|
|
protected addEventListeners(): void; |
|
|
@ -51,6 +53,7 @@ declare abstract class ChartwerkPod<T extends TimeSerie, O extends Options> { |
|
|
|
abstract hideSharedCrosshair(): void; |
|
|
|
abstract hideSharedCrosshair(): void; |
|
|
|
protected initPodState(): void; |
|
|
|
protected initPodState(): void; |
|
|
|
protected initComponents(): void; |
|
|
|
protected initComponents(): void; |
|
|
|
|
|
|
|
protected renderMetricsContainer(): void; |
|
|
|
protected createSvg(): void; |
|
|
|
protected createSvg(): void; |
|
|
|
protected renderGrid(): void; |
|
|
|
protected renderGrid(): void; |
|
|
|
protected renderAxes(): void; |
|
|
|
protected renderAxes(): void; |
|
|
|