UNPKG

2.48 kBTypeScriptView Raw
1import { ElementRef, EventEmitter, OnChanges, SimpleChanges } from '@angular/core';
2import { DataItem } from '../models/chart-data.model';
3import { BarOrientation } from '../common/types/bar-orientation.enum';
4import { Gradient } from '../common/types/gradient.interface';
5import * as i0 from "@angular/core";
6export declare class BarComponent implements OnChanges {
7 fill: string;
8 data: DataItem;
9 width: number;
10 height: number;
11 x: number;
12 y: number;
13 orientation: BarOrientation;
14 roundEdges: boolean;
15 gradient: boolean;
16 offset: number;
17 isActive: boolean;
18 stops: Gradient[];
19 animations: boolean;
20 ariaLabel: string;
21 noBarWhenZero: boolean;
22 select: EventEmitter<DataItem>;
23 activate: EventEmitter<DataItem>;
24 deactivate: EventEmitter<DataItem>;
25 element: HTMLElement;
26 path: string;
27 gradientId: string;
28 gradientFill: string;
29 gradientStops: Gradient[];
30 hasGradient: boolean;
31 hideBar: boolean;
32 constructor(element: ElementRef);
33 ngOnChanges(changes: SimpleChanges): void;
34 update(): void;
35 loadAnimation(): void;
36 updatePathEl(): void;
37 getGradient(): Gradient[];
38 getStartingPath(): string;
39 getPath(): string;
40 getRadius(): number;
41 getStartOpacity(): number;
42 get edges(): boolean[];
43 onMouseEnter(): void;
44 onMouseLeave(): void;
45 private checkToHideBar;
46 static ɵfac: i0.ɵɵFactoryDeclaration<BarComponent, never>;
47 static ɵcmp: i0.ɵɵComponentDeclaration<BarComponent, "g[ngx-charts-bar]", never, { "fill": { "alias": "fill"; "required": false; }; "data": { "alias": "data"; "required": false; }; "width": { "alias": "width"; "required": false; }; "height": { "alias": "height"; "required": false; }; "x": { "alias": "x"; "required": false; }; "y": { "alias": "y"; "required": false; }; "orientation": { "alias": "orientation"; "required": false; }; "roundEdges": { "alias": "roundEdges"; "required": false; }; "gradient": { "alias": "gradient"; "required": false; }; "offset": { "alias": "offset"; "required": false; }; "isActive": { "alias": "isActive"; "required": false; }; "stops": { "alias": "stops"; "required": false; }; "animations": { "alias": "animations"; "required": false; }; "ariaLabel": { "alias": "ariaLabel"; "required": false; }; "noBarWhenZero": { "alias": "noBarWhenZero"; "required": false; }; }, { "select": "select"; "activate": "activate"; "deactivate": "deactivate"; }, never, never, false, never>;
48}