UNPKG

3.02 kBTypeScriptView Raw
1import { SimpleChanges, EventEmitter, OnChanges, TemplateRef } from '@angular/core';
2import { ColorHelper } from '../common/color.helper';
3import { DataItem } from '../models/chart-data.model';
4import { PieData } from './pie-label.component';
5import { PlacementTypes } from '../common/tooltip/position';
6import { StyleTypes } from '../common/tooltip/style.type';
7import { ViewDimensions } from '../common/types/view-dimension.interface';
8import * as i0 from "@angular/core";
9export declare class PieSeriesComponent implements OnChanges {
10 colors: ColorHelper;
11 series: DataItem[];
12 dims: ViewDimensions;
13 innerRadius: number;
14 outerRadius: number;
15 explodeSlices: boolean;
16 showLabels: boolean;
17 gradient: boolean;
18 activeEntries: any[];
19 labelFormatting: any;
20 trimLabels: boolean;
21 maxLabelLength: number;
22 tooltipText: (o: any) => any;
23 tooltipDisabled: boolean;
24 tooltipTemplate: TemplateRef<any>;
25 animations: boolean;
26 select: EventEmitter<any>;
27 activate: EventEmitter<any>;
28 deactivate: EventEmitter<any>;
29 dblclick: EventEmitter<any>;
30 max: number;
31 data: PieData[];
32 placementTypes: typeof PlacementTypes;
33 styleTypes: typeof StyleTypes;
34 ngOnChanges(changes: SimpleChanges): void;
35 update(): void;
36 midAngle(d: any): number;
37 outerArc(): any;
38 calculateLabelPositions(pieData: any): any;
39 labelVisible(myArc: any): boolean;
40 getTooltipTitle(a: any): any;
41 labelText(myArc: any): string;
42 label(myArc: any): string;
43 defaultTooltipText(myArc: any): string;
44 color(myArc: any): any;
45 trackBy(index: any, item: any): string;
46 onClick(data: any): void;
47 isActive(entry: any): boolean;
48 static ɵfac: i0.ɵɵFactoryDeclaration<PieSeriesComponent, never>;
49 static ɵcmp: i0.ɵɵComponentDeclaration<PieSeriesComponent, "g[ngx-charts-pie-series]", never, { "colors": { "alias": "colors"; "required": false; }; "series": { "alias": "series"; "required": false; }; "dims": { "alias": "dims"; "required": false; }; "innerRadius": { "alias": "innerRadius"; "required": false; }; "outerRadius": { "alias": "outerRadius"; "required": false; }; "explodeSlices": { "alias": "explodeSlices"; "required": false; }; "showLabels": { "alias": "showLabels"; "required": false; }; "gradient": { "alias": "gradient"; "required": false; }; "activeEntries": { "alias": "activeEntries"; "required": false; }; "labelFormatting": { "alias": "labelFormatting"; "required": false; }; "trimLabels": { "alias": "trimLabels"; "required": false; }; "maxLabelLength": { "alias": "maxLabelLength"; "required": false; }; "tooltipText": { "alias": "tooltipText"; "required": false; }; "tooltipDisabled": { "alias": "tooltipDisabled"; "required": false; }; "tooltipTemplate": { "alias": "tooltipTemplate"; "required": false; }; "animations": { "alias": "animations"; "required": false; }; }, { "select": "select"; "activate": "activate"; "deactivate": "deactivate"; "dblclick": "dblclick"; }, never, never, false, never>;
50}