UNPKG

@alauda-fe/common

Version:

Alauda frontend team common codes.

48 lines (47 loc) 2.1 kB
import { ChangeDetectorRef, OnInit } from '@angular/core'; import { Observable } from 'rxjs'; import { ChartDataItem } from '../../../view-chart/types'; import { ContextChartService } from '../../chart.service'; import { Orientation } from '../../types'; import * as i0 from "@angular/core"; export declare class BarPathComponent implements OnInit { readonly context: ContextChartService; private readonly cdr; stroke: string; data: Array<ChartDataItem<{ x: string; y: number; color?: string; }>>; data$: Observable<Array<ChartDataItem<{ x: string; y: number; color?: string; }>>>; barPadding: number; groupName: string; type: 'standard' | 'stacked'; bandWidth: number; adaptiveBandWidth: boolean; path: string; orientation: typeof Orientation; preValue: number; barData: ChartDataItem[]; activateLegend: string; get isStacked(): boolean; barData$: Observable<{ color: string; x: string | (Date & string); y: number; }[]>; get innerBandWidth(): number; constructor(context: ContextChartService, cdr: ChangeDetectorRef); getRectX: (x: string | number | Date) => number; ngOnInit(): void; getRectY: (index: number, y: number) => number; getStackedRectY: (index: number) => number; handleVisibility: (name: string) => "" | "hidden"; handleOpacity: (name: string | number | Date, activateLegend: string) => 1 | 0.2; static ɵfac: i0.ɵɵFactoryDeclaration<BarPathComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<BarPathComponent, "g[aclBarPath]", never, { "stroke": { "alias": "stroke"; "required": false; }; "data": { "alias": "data"; "required": false; }; "barPadding": { "alias": "barPadding"; "required": false; }; "groupName": { "alias": "groupName"; "required": false; }; "type": { "alias": "type"; "required": false; }; "bandWidth": { "alias": "bandWidth"; "required": false; }; "adaptiveBandWidth": { "alias": "adaptiveBandWidth"; "required": false; }; }, {}, never, never, false, never>; }