vargburz
4 years ago
5 changed files with 51703 additions and 9 deletions
@ -0,0 +1,22 @@
|
||||
import { GaugeOptions } from './types'; |
||||
import * as d3 from 'd3'; |
||||
export declare type D3SVGSelection = d3.Selection<SVGElement, unknown, null, undefined>; |
||||
export declare type BoundingBox = { |
||||
x?: number; |
||||
y?: number; |
||||
width: number; |
||||
height: number; |
||||
}; |
||||
export declare class Gauge { |
||||
protected svg: D3SVGSelection; |
||||
protected readonly options: GaugeOptions; |
||||
private _rootGroup; |
||||
private _boundingBox; |
||||
private _radius; |
||||
private _centrum; |
||||
constructor(svg: D3SVGSelection, options: GaugeOptions); |
||||
private _setBoundingBox; |
||||
render(value: number, boudingBox: BoundingBox): void; |
||||
private _initRootGroup; |
||||
private _renderValueArc; |
||||
} |
File diff suppressed because one or more lines are too long
@ -0,0 +1,12 @@
|
||||
import { GaugeOptions, GaugeTimeSerie } from './types'; |
||||
import { ChartwerkPod } from '@chartwerk/core'; |
||||
export declare class Pod extends ChartwerkPod<GaugeTimeSerie, GaugeOptions> { |
||||
protected readonly options: GaugeOptions; |
||||
constructor(el: HTMLElement, series: GaugeTimeSerie[], options: GaugeOptions); |
||||
renderMetrics(): void; |
||||
onMouseOver(): void; |
||||
onMouseMove(): void; |
||||
onMouseOut(): void; |
||||
renderSharedCrosshair(): void; |
||||
hideSharedCrosshair(): void; |
||||
} |
Loading…
Reference in new issue