UNPKG

2.57 kBTypeScriptView Raw
1import { TemplateRef, EventEmitter } from '@angular/core';
2import { BaseChartComponent } from '../common/base-chart.component';
3import { ColorHelper } from '../common/color.helper';
4import { LegendOptions, LegendPosition, ScaleType, ViewDimensions } from '../common/types';
5interface RectItem {
6 fill: string;
7 height: number;
8 rx: number;
9 width: number;
10 x: number;
11 y: number;
12}
13export declare class HeatMapComponent extends BaseChartComponent {
14 legend: boolean;
15 legendTitle: string;
16 legendPosition: LegendPosition;
17 xAxis: boolean;
18 yAxis: boolean;
19 showXAxisLabel: boolean;
20 showYAxisLabel: boolean;
21 xAxisLabel: string;
22 yAxisLabel: string;
23 gradient: boolean;
24 innerPadding: number | number[];
25 trimXAxisTicks: boolean;
26 trimYAxisTicks: boolean;
27 rotateXAxisTicks: boolean;
28 maxXAxisTickLength: number;
29 maxYAxisTickLength: number;
30 xAxisTickFormatting: any;
31 yAxisTickFormatting: any;
32 xAxisTicks: any[];
33 yAxisTicks: any[];
34 tooltipDisabled: boolean;
35 tooltipText: any;
36 min: number;
37 max: number;
38 activeEntries: any[];
39 activate: EventEmitter<any>;
40 deactivate: EventEmitter<any>;
41 tooltipTemplate: TemplateRef<any>;
42 dims: ViewDimensions;
43 xDomain: string[];
44 yDomain: string[];
45 valueDomain: any[];
46 xScale: any;
47 yScale: any;
48 colors: ColorHelper;
49 colorScale: any;
50 transform: string;
51 rects: RectItem[];
52 margin: number[];
53 xAxisHeight: number;
54 yAxisWidth: number;
55 legendOptions: LegendOptions;
56 scaleType: ScaleType;
57 update(): void;
58 getXDomain(): string[];
59 getYDomain(): string[];
60 getValueDomain(): any[];
61 /**
62 * Converts the input to gap paddingInner in fraction
63 * Supports the following inputs:
64 * Numbers: 8
65 * Strings: "8", "8px", "8%"
66 * Arrays: [8,2], "8,2", "[8,2]"
67 * Mixed: [8,"2%"], ["8px","2%"], "8,2%", "[8,2%]"
68 *
69 * @memberOf HeatMapComponent
70 */
71 getDimension(value: string | number | Array<string | number>, index: number, N: number, L: number): number;
72 getXScale(): any;
73 getYScale(): any;
74 getRects(): RectItem[];
75 onClick(data: any): void;
76 setColors(): void;
77 getLegendOptions(): LegendOptions;
78 updateYAxisWidth({ width }: {
79 width: number;
80 }): void;
81 updateXAxisHeight({ height }: {
82 height: number;
83 }): void;
84 onActivate(event: any, group: any, fromLegend?: boolean): void;
85 onDeactivate(event: any, group: any, fromLegend?: boolean): void;
86}
87export {};