dozee-ecg-chart
Version:
A library for drawing ECG charts with real-time data
43 lines (42 loc) • 1.56 kB
TypeScript
import { OnInit, Renderer2, NgZone } from '@angular/core';
import * as i0 from "@angular/core";
interface Xy {
Timestamp: number;
Value: number;
}
export declare class DozeeEcgChartComponent implements OnInit {
private renderer;
private ngZone;
accessToken: string;
userId: string;
stage: string;
strokeColor: string;
backgroundColor: string;
private eventSource;
private buffer;
private chart;
private frequency;
private duration;
private maxPoints;
private ecgData;
private bufferLimit;
private isPageActive;
private intervalId;
private inactivityTimeout;
private readonly INACTIVE_DELAY;
private readonly RETRY_DELAY;
constructor(renderer: Renderer2, ngZone: NgZone);
ngOnInit(): void;
private startInterval;
private startInactivityTimer;
private cancelInactivityTimer;
private clearInterval;
private currentIndex;
addData(e: Xy): void;
initializeSse(): void;
ngOnDestroy(): void;
private closeConnection;
static ɵfac: i0.ɵɵFactoryDeclaration<DozeeEcgChartComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<DozeeEcgChartComponent, "app-ecg-chart", never, { "accessToken": { "alias": "accessToken"; "required": false; }; "userId": { "alias": "userId"; "required": false; }; "stage": { "alias": "stage"; "required": false; }; "strokeColor": { "alias": "strokeColor"; "required": false; }; "backgroundColor": { "alias": "backgroundColor"; "required": false; }; }, {}, never, never, false, never>;
}
export {};