Browse Source

upd dist

merge-requests/1/merge
vargburz 4 years ago
parent
commit
6252748ed3
  1. 10
      dist/index.d.ts
  2. 2
      dist/index.js
  3. 11
      dist/types.d.ts

10
dist/index.d.ts vendored

@ -4,8 +4,16 @@ export declare class ChartwerkGaugePod extends ChartwerkPod<GaugeTimeSerie, Gaug
constructor(el: HTMLElement, _series?: GaugeTimeSerie[], _options?: GaugeOptions);
renderMetrics(): void;
get _gaugeTransform(): string;
get _gaugeCenter(): string;
get _gaugeCenterTranform(): string;
get _gaugeCenterCoordinate(): {
x: number;
y: number;
};
get _minWH(): number;
private _renderIcons;
private _renderIcon;
private _getIconPosition;
private _getIconSize;
private _renderValue;
private _renderValueArc;
private _renderThresholdArc;

2
dist/index.js vendored

File diff suppressed because one or more lines are too long

11
dist/types.d.ts vendored

@ -11,6 +11,16 @@ export declare type Stop = {
};
export declare type ValueFormatter = (value: number) => string;
export declare type GaugeTimeSerie = TimeSerie;
export declare type IconConfig = {
src: string;
position: IconPosition;
size: number;
};
export declare enum IconPosition {
LEFT = "left",
MIDDLE = "middle",
RIGHT = "right"
}
export declare type GaugeOptionsParams = {
innerRadius: number;
outerRadius: number;
@ -23,5 +33,6 @@ export declare type GaugeOptionsParams = {
defaultColor: string;
stat: Stat;
valueFormatter: ValueFormatter;
icons: IconConfig[];
};
export declare type GaugeOptions = Options & Partial<GaugeOptionsParams>;

Loading…
Cancel
Save