You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
23 lines
675 B
23 lines
675 B
4 years ago
|
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;
|
||
|
}
|