ednl-liftstatus-web-components
Version:
The EDNL LiftStatus web components
70 lines (69 loc) • 1.57 kB
TypeScript
export declare class LsSwimlane {
/**
* Specifies the IDs of the sensors that are to be displayed.
*/
readonly sensorIds = "500,501,502,503,514,515";
/**
* The unique key that is used to identify store data.
*/
readonly idKey: string;
/**
* The sensor IDs input property, converted to an array of numbers.
*/
sensorIdsArray: number[];
private store;
resizeWindow(): void;
private readonly DEBOUNCEDELAY;
private handleResize;
/**
* Loading indicator
*/
private chartLoading;
private canvas;
private maxWidth;
private swimLineWidth;
private sensorLabelsWidth;
private xAxisScale;
private dateRange;
private xAxis;
private interval;
private storedAndOrderedSensorData;
/**
* Create fixed colors for sensor ID's
* @param value the value of the sensor
* @param sensorType the type of sensor
*/
private sensorValueColorCode;
/**
* Settings object with some values
*/
private swimLaneSettings;
private clearChart;
/**
* Create initial chart layout
*/
private drawChart;
/**
* Add swimlane to chart
*/
private addSwimlane;
/**
* Add data to state
*/
private addData;
private updateTimeline;
/**
* This method handles every incoming event from any sensor
*/
private handleSensorUpdate;
private processHistoricalData;
private processLiveData;
componentWillLoad(): Promise<void>;
componentDidLoad(): void;
/**
* Start (and stop) the animation interval
*/
private timelineTimer;
render(): any;
disconnectedCallback(): void;
}