UNPKG

2.09 kBTypeScriptView Raw
1import { ElementRef, NgZone, ChangeDetectorRef, EventEmitter, AfterViewInit, OnDestroy, OnChanges, SimpleChanges, OnInit } from '@angular/core';
2import { VisibilityObserver } from '../utils/visibility-observer';
3import { Color } from '../utils/color-sets';
4import { ScaleType } from './types/scale-type.enum';
5import { ViewDimensions } from './types/view-dimension.interface';
6import * as i0 from "@angular/core";
7export declare class BaseChartComponent implements OnChanges, AfterViewInit, OnDestroy, OnInit {
8 protected chartElement: ElementRef;
9 protected zone: NgZone;
10 protected cd: ChangeDetectorRef;
11 platformId: any;
12 results: any;
13 view: [number, number];
14 scheme: string | Color;
15 schemeType: ScaleType;
16 customColors: any;
17 animations: boolean;
18 select: EventEmitter<any>;
19 width: number;
20 height: number;
21 resizeSubscription: any;
22 visibilityObserver: VisibilityObserver;
23 constructor(chartElement: ElementRef, zone: NgZone, cd: ChangeDetectorRef, platformId: any);
24 ngOnInit(): void;
25 ngAfterViewInit(): void;
26 ngOnDestroy(): void;
27 ngOnChanges(changes: SimpleChanges): void;
28 update(): void;
29 getContainerDims(): ViewDimensions;
30 /**
31 * Converts all date objects that appear as name
32 * into formatted date strings
33 */
34 formatDates(): void;
35 protected unbindEvents(): void;
36 private bindWindowResizeEvent;
37 /**
38 * Clones the data into a new object
39 *
40 * @memberOf BaseChart
41 */
42 private cloneData;
43 static ɵfac: i0.ɵɵFactoryDeclaration<BaseChartComponent, never>;
44 static ɵcmp: i0.ɵɵComponentDeclaration<BaseChartComponent, "base-chart", never, { "results": { "alias": "results"; "required": false; }; "view": { "alias": "view"; "required": false; }; "scheme": { "alias": "scheme"; "required": false; }; "schemeType": { "alias": "schemeType"; "required": false; }; "customColors": { "alias": "customColors"; "required": false; }; "animations": { "alias": "animations"; "required": false; }; }, { "select": "select"; }, never, never, false, never>;
45}