|
|
@ -1,6 +1,7 @@ |
|
|
|
/// <reference types="lodash" />
|
|
|
|
/// <reference types="lodash" />
|
|
|
|
import VueChartwerkPodMixin from './VueChartwerkPodMixin'; |
|
|
|
import VueChartwerkPodMixin from './VueChartwerkPodMixin'; |
|
|
|
import { PodState } from './state'; |
|
|
|
import { PodState } from './state'; |
|
|
|
|
|
|
|
import { Grid } from './components/grid'; |
|
|
|
import { Margin, TimeSerie, Options, TickOrientation, TimeFormat, BrushOrientation, AxisFormat, CrosshairOrientation, SvgElementAttributes, KeyEvent, PanOrientation, yAxisOrientation, ScrollPanOrientation, AxisOption } from './types'; |
|
|
|
import { Margin, TimeSerie, Options, TickOrientation, TimeFormat, BrushOrientation, AxisFormat, CrosshairOrientation, SvgElementAttributes, KeyEvent, PanOrientation, yAxisOrientation, ScrollPanOrientation, AxisOption } from './types'; |
|
|
|
import { palette } from './colors'; |
|
|
|
import { palette } from './colors'; |
|
|
|
import * as d3 from 'd3'; |
|
|
|
import * as d3 from 'd3'; |
|
|
@ -13,7 +14,7 @@ declare abstract class ChartwerkPod<T extends TimeSerie, O extends Options> { |
|
|
|
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; |
|
|
|
protected state?: PodState<T, O>; |
|
|
|
protected clipPath?: any; |
|
|
|
protected clipPath?: any; |
|
|
|
protected isPanning: boolean; |
|
|
|
protected isPanning: boolean; |
|
|
|
protected isBrushing: boolean; |
|
|
|
protected isBrushing: boolean; |
|
|
@ -31,9 +32,7 @@ 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>; |
|
|
|
private _xScale; |
|
|
|
protected grid: Grid; |
|
|
|
private _yScale; |
|
|
|
|
|
|
|
private _y1Scale; |
|
|
|
|
|
|
|
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; |
|
|
|
protected removeEventListeners(): void; |
|
|
|
protected removeEventListeners(): void; |
|
|
@ -51,7 +50,8 @@ declare abstract class ChartwerkPod<T extends TimeSerie, O extends Options> { |
|
|
|
}): void; |
|
|
|
}): void; |
|
|
|
abstract hideSharedCrosshair(): void; |
|
|
|
abstract hideSharedCrosshair(): void; |
|
|
|
protected initPodState(): void; |
|
|
|
protected initPodState(): void; |
|
|
|
protected renderSvg(): void; |
|
|
|
protected initComponents(): void; |
|
|
|
|
|
|
|
protected createSvg(): void; |
|
|
|
protected renderGrid(): void; |
|
|
|
protected renderGrid(): void; |
|
|
|
protected renderAxes(): void; |
|
|
|
protected renderAxes(): void; |
|
|
|
protected renderXAxis(): void; |
|
|
|
protected renderXAxis(): void; |
|
|
@ -83,13 +83,6 @@ declare abstract class ChartwerkPod<T extends TimeSerie, O extends Options> { |
|
|
|
get xScale(): d3.ScaleLinear<number, number>; |
|
|
|
get xScale(): d3.ScaleLinear<number, number>; |
|
|
|
get yScale(): d3.ScaleLinear<number, number>; |
|
|
|
get yScale(): d3.ScaleLinear<number, number>; |
|
|
|
protected get y1Scale(): d3.ScaleLinear<number, number>; |
|
|
|
protected get y1Scale(): d3.ScaleLinear<number, number>; |
|
|
|
filterSerieByYAxisOrientation(serie: T, orientation: yAxisOrientation): boolean; |
|
|
|
|
|
|
|
get minValue(): number; |
|
|
|
|
|
|
|
get maxValue(): number; |
|
|
|
|
|
|
|
get y1MinValue(): number; |
|
|
|
|
|
|
|
get y1MaxValue(): number; |
|
|
|
|
|
|
|
get minValueX(): number; |
|
|
|
|
|
|
|
get maxValueX(): number; |
|
|
|
|
|
|
|
getd3TimeRangeEvery(count: number): d3.TimeInterval; |
|
|
|
getd3TimeRangeEvery(count: number): d3.TimeInterval; |
|
|
|
get serieTimestampRange(): number | undefined; |
|
|
|
get serieTimestampRange(): number | undefined; |
|
|
|
getAxisTicksFormatter(axisOptions: AxisOption): (d: any, i: number) => any; |
|
|
|
getAxisTicksFormatter(axisOptions: AxisOption): (d: any, i: number) => any; |
|
|
@ -100,9 +93,8 @@ declare abstract class ChartwerkPod<T extends TimeSerie, O extends Options> { |
|
|
|
get height(): number; |
|
|
|
get height(): number; |
|
|
|
get legendRowPositionY(): number; |
|
|
|
get legendRowPositionY(): number; |
|
|
|
get margin(): Margin; |
|
|
|
get margin(): Margin; |
|
|
|
get isSeriesUnavailable(): boolean; |
|
|
|
formattedBound(alias: string, target: string): string; |
|
|
|
formatedBound(alias: string, target: string): string; |
|
|
|
protected clearState(): void; |
|
|
|
protected clearScaleCache(shouldClearState?: boolean): void; |
|
|
|
|
|
|
|
protected getSerieColor(idx: number): string; |
|
|
|
protected getSerieColor(idx: number): string; |
|
|
|
protected get seriesTargetsWithBounds(): any[]; |
|
|
|
protected get seriesTargetsWithBounds(): any[]; |
|
|
|
protected get visibleSeries(): any[]; |
|
|
|
protected get visibleSeries(): any[]; |
|
|
|