UNPKG

2.39 kBTypeScriptView Raw
1import { EventEmitter, ElementRef, SimpleChanges, OnChanges, ChangeDetectorRef, NgZone, OnDestroy, OnInit } from '@angular/core';
2import { GridData } from '../common/grid-layout.helper';
3import * as i0 from "@angular/core";
4export declare class CardComponent implements OnChanges, OnDestroy, OnInit {
5 private cd;
6 private zone;
7 private platformId;
8 color: string;
9 bandColor: string;
10 textColor: string;
11 x: number;
12 y: number;
13 width: number;
14 height: number;
15 label: string;
16 data: GridData;
17 medianSize: number;
18 valueFormatting: any;
19 labelFormatting: any;
20 animations: boolean;
21 select: EventEmitter<any>;
22 textEl: ElementRef;
23 element: HTMLElement;
24 value: string;
25 transform: string;
26 formattedLabel: string;
27 cardWidth: number;
28 cardHeight: number;
29 textWidth: number;
30 textFontSize: number;
31 textTransform: string;
32 initialized: boolean;
33 animationReq: number;
34 bandHeight: number;
35 transformBand: string;
36 textPadding: number[];
37 labelFontSize: number;
38 bandPath: string;
39 constructor(element: ElementRef, cd: ChangeDetectorRef, zone: NgZone, platformId: any);
40 ngOnChanges(changes: SimpleChanges): void;
41 ngOnInit(): void;
42 ngOnDestroy(): void;
43 update(): void;
44 paddedValue(value: string): string;
45 startCount(): void;
46 scaleText(): void;
47 scaleTextSSR(): void;
48 setPadding(): void;
49 onClick(): void;
50 static ɵfac: i0.ɵɵFactoryDeclaration<CardComponent, never>;
51 static ɵcmp: i0.ɵɵComponentDeclaration<CardComponent, "g[ngx-charts-card]", never, { "color": { "alias": "color"; "required": false; }; "bandColor": { "alias": "bandColor"; "required": false; }; "textColor": { "alias": "textColor"; "required": false; }; "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "label": { "alias": "label"; "required": false; }; "data": { "alias": "data"; "required": false; }; "medianSize": { "alias": "medianSize"; "required": false; }; "valueFormatting": { "alias": "valueFormatting"; "required": false; }; "labelFormatting": { "alias": "labelFormatting"; "required": false; }; "animations": { "alias": "animations"; "required": false; }; }, { "select": "select"; }, never, never, false, never>;
52}