rozetko
4 years ago
4 changed files with 88 additions and 1 deletions
@ -0,0 +1,62 @@
|
||||
import { GaugeTimeSerie, GaugeOptions, Stat } from './types'; |
||||
import { ChartwerkPod } from '@chartwerk/base'; |
||||
export declare class ChartwerkGaugePod extends ChartwerkPod<GaugeTimeSerie, GaugeOptions> { |
||||
gaugeTransform: string; |
||||
constructor(el: HTMLElement, _series?: GaugeTimeSerie[], _options?: GaugeOptions); |
||||
get valueRange(): number[]; |
||||
get colors(): string[]; |
||||
get stat(): Stat; |
||||
get stops(): number[]; |
||||
get innerRadius(): number; |
||||
get outerRadius(): number; |
||||
get aggregatedValue(): number; |
||||
renderNeedle(): void; |
||||
renderMetrics(): void; |
||||
onMouseOver(): void; |
||||
onMouseMove(): void; |
||||
onMouseOut(): void; |
||||
renderSharedCrosshair(): void; |
||||
hideSharedCrosshair(): void; |
||||
} |
||||
export declare const VueChartwerkGaugePodObject: { |
||||
render(createElement: any): any; |
||||
mixins: { |
||||
props: { |
||||
id: { |
||||
type: StringConstructor; |
||||
required: boolean; |
||||
}; |
||||
series: { |
||||
type: ArrayConstructor; |
||||
required: boolean; |
||||
default: () => any[]; |
||||
}; |
||||
options: { |
||||
type: ObjectConstructor; |
||||
required: boolean; |
||||
default: () => {}; |
||||
}; |
||||
}; |
||||
watch: { |
||||
id(): void; |
||||
series(): void; |
||||
options(): void; |
||||
}; |
||||
mounted(): void; |
||||
methods: { |
||||
render(): void; |
||||
renderChart(): void; |
||||
appendEvents(): void; |
||||
zoomIn(range: any): void; |
||||
zoomOut(center: any): void; |
||||
mouseMove(evt: any): void; |
||||
mouseOut(): void; |
||||
onLegendClick(idx: any): void; |
||||
panningEnd(range: any): void; |
||||
contextMenu(evt: any): void; |
||||
}; |
||||
}[]; |
||||
methods: { |
||||
render(): void; |
||||
}; |
||||
}; |
File diff suppressed because one or more lines are too long
@ -0,0 +1,17 @@
|
||||
import { TimeSerie, Options } from '@chartwerk/base'; |
||||
export declare enum Stat { |
||||
CURRENT = "current", |
||||
MIN = "min", |
||||
MAX = "max", |
||||
TOTAL = "total" |
||||
} |
||||
export declare type GaugeTimeSerie = TimeSerie; |
||||
export declare type GaugeOptionsParams = { |
||||
innerRadius: number; |
||||
outerRadius: number; |
||||
maxValue: number; |
||||
stops: number[]; |
||||
colors: string[]; |
||||
stat: Stat; |
||||
}; |
||||
export declare type GaugeOptions = Options & Partial<GaugeOptionsParams>; |
Loading…
Reference in new issue