Browse Source

dist

merge-requests/1/merge
rozetko 4 years ago
parent
commit
7cbff4de18
  1. 1
      .gitignore
  2. 62
      dist/index.d.ts
  3. 9
      dist/index.js
  4. 17
      dist/types.d.ts

1
.gitignore vendored

@ -80,7 +80,6 @@ typings/
# Nuxt.js build / generate output
.nuxt
dist
# Gatsby files
.cache/

62
dist/index.d.ts vendored

@ -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;
};
};

9
dist/index.js vendored

File diff suppressed because one or more lines are too long

17
dist/types.d.ts vendored

@ -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…
Cancel
Save