UNPKG

@exmg/livery

Version:

Ex Machina Group Livery Web SDK.

67 lines (66 loc) 1.79 kB
import { LitElement } from 'lit-element'; import { LiveryPlayer } from '../livery-player/LiveryPlayer'; declare global { interface HTMLElementTagNameMap { 'livery-buffer-graph': LiveryBufferGraph; } } /** * Element defined as `<livery-buffer-graph>` which renders a graph of the buffer size and latency of specified * LiveryPlayer. * * @fires livery-error - LiveryErrorEvent. */ export declare class LiveryBufferGraph extends LitElement { static readonly styles: import("lit-element").CSSResult; private static scriptId; /** * Chart background color. */ backgroundColor: string | null; /** * If true then events dispatched by this element will bubble. */ bubbles: boolean; /** * Buffer line color. */ bufferColor: string | null; /** * Latency line color. */ latencyColor: string | null; /** * Maximum number of rows to store in data table. * E.g: With default value: 60 and 500ms updateInterval this will roughly equal 30 seconds. */ maxRows: number; /** * Reference to LiveryPlayer element to create the graph for. */ player: LiveryPlayer | null; /** * Chart text color. */ textColor: string | null; /** * Interval in milliseconds at which to add a row to the data table and draw the chart. */ updateInterval: number; private active?; private log; private get eventInit(); connectedCallback(): void; disconnectedCallback(): void; render(): import("lit-element").TemplateResult; updated(): void; private addRow; private draw; private loadChart; private loadScript; private onError; private onStateChange; private start; private stop; private tick; }