UNPKG

2.17 kBTypeScriptView Raw
1import { SimpleChanges, EventEmitter, OnChanges, OnInit, TemplateRef } from '@angular/core';
2import { DataItem, Series } from '../models/chart-data.model';
3import { PlacementTypes } from '../common/tooltip/position';
4import { StyleTypes } from '../common/tooltip/style.type';
5import * as i0 from "@angular/core";
6interface Cell {
7 cell: DataItem;
8 data: number;
9 fill: string;
10 height: number;
11 label: string;
12 row: Series;
13 series: string;
14 width: number;
15 x: number;
16 y: number;
17}
18export declare class HeatCellSeriesComponent implements OnChanges, OnInit {
19 data: any;
20 colors: any;
21 xScale: any;
22 yScale: any;
23 gradient: boolean;
24 tooltipDisabled: boolean;
25 tooltipText: any;
26 tooltipTemplate: TemplateRef<any>;
27 animations: boolean;
28 select: EventEmitter<DataItem>;
29 activate: EventEmitter<DataItem>;
30 deactivate: EventEmitter<DataItem>;
31 cells: Cell[];
32 placementTypes: typeof PlacementTypes;
33 styleTypes: typeof StyleTypes;
34 ngOnInit(): void;
35 ngOnChanges(changes: SimpleChanges): void;
36 update(): void;
37 getCells(): Cell[];
38 getTooltipText({ label, data, series }: {
39 label: string;
40 data: number;
41 series: string;
42 }): string;
43 trackBy(index: number, item: any): string;
44 onClick(data: any): void;
45 static ɵfac: i0.ɵɵFactoryDeclaration<HeatCellSeriesComponent, never>;
46 static ɵcmp: i0.ɵɵComponentDeclaration<HeatCellSeriesComponent, "g[ngx-charts-heat-map-cell-series]", never, { "data": { "alias": "data"; "required": false; }; "colors": { "alias": "colors"; "required": false; }; "xScale": { "alias": "xScale"; "required": false; }; "yScale": { "alias": "yScale"; "required": false; }; "gradient": { "alias": "gradient"; "required": false; }; "tooltipDisabled": { "alias": "tooltipDisabled"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; }; "animations": { "alias": "animations"; "required": false; }; }, { "select": "select"; "activate": "activate"; "deactivate": "deactivate"; }, never, never, false, never>;
47}
48export {};