UNPKG

2.14 kBTypeScriptView Raw
1import { TemplateRef, EventEmitter } from '@angular/core';
2import { BaseChartComponent } from '../common/base-chart.component';
3import { ColorHelper } from '../common/color.helper';
4import { ViewDimensions } from '../common/types/view-dimension.interface';
5import { ScaleType } from '../common/types/scale-type.enum';
6import { StyleTypes } from '../common/tooltip/style.type';
7import { TextAnchor } from '../common/types/text-anchor.enum';
8import * as i0 from "@angular/core";
9interface RectItem {
10 fill: string;
11 height: number;
12 rx: number;
13 width: number;
14 x: number;
15 y: number;
16 label: string;
17 labelAnchor: string;
18 tooltip: string;
19 transform: string;
20 data: any;
21}
22export declare class SankeyComponent extends BaseChartComponent {
23 showLabels: boolean;
24 gradient: boolean;
25 tooltipDisabled: boolean;
26 activeEntries: any[];
27 labelFormatting: any;
28 activate: EventEmitter<any>;
29 deactivate: EventEmitter<any>;
30 tooltipTemplate: TemplateRef<any>;
31 dims: ViewDimensions;
32 colors: ColorHelper;
33 colorScale: any;
34 transform: string;
35 margin: number[];
36 scaleType: ScaleType;
37 valueDomain: any[];
38 styleTypes: typeof StyleTypes;
39 nodeRects: RectItem[];
40 linkPaths: any[];
41 update(): void;
42 getNodeTooltipText(node: any): string;
43 getLinkTooltipText(sourceNode: any, targetNode: any, value: number): string;
44 getTextAnchor(node: any): TextAnchor;
45 onClick(data: any): void;
46 setColors(): void;
47 getValueDomain(nodes: any): any[];
48 static ɵfac: i0.ɵɵFactoryDeclaration<SankeyComponent, never>;
49 static ɵcmp: i0.ɵɵComponentDeclaration<SankeyComponent, "ngx-charts-sankey", never, { "showLabels": { "alias": "showLabels"; "required": false; }; "gradient": { "alias": "gradient"; "required": false; }; "tooltipDisabled": { "alias": "tooltipDisabled"; "required": false; }; "activeEntries": { "alias": "activeEntries"; "required": false; }; "labelFormatting": { "alias": "labelFormatting"; "required": false; }; }, { "activate": "activate"; "deactivate": "deactivate"; }, ["tooltipTemplate"], never, false, never>;
50}
51export {};