/** @module waveforms/ecg * @desc This file provides utility functions for * rendering ecg waveforms using plotly.js */ import Plotly from "plotly.js-dist-min"; /** * Get default layout for the plotly plot * @instance * @function getDefaultECGLayout * @returns {Object} defaultECGLayout - Default layout for the plotly plot */ export declare const getDefaultECGLayout: () => Partial; /** * Unrender ECG waveform previously rendered in a div * @instance * @function unrenderECG * @param {string} divId - DivId where waveform is rendered */ export declare const unrenderECG: (divId: string) => void; /** * Render ECG waveform in a div * @instance * @function renderECG * @param {number[]} data - ECG waveform data * @param {string} divId - DivId to render waveform in * @param {string} colorMarker - Color of the marker * @param {number} numberOfframes - Number of frames in the image * @param {number} frameTime - Time interval of each frame in the image * @param {number} frameId - FrameId of the image to be rendered * @param {Object} customLayout - Custom layout for the plotly plot * @returns {Object} traceData - Plotly trace data */ export declare const renderECG: (data: number[], divId: string, colorMarker: string, numberOfFrames: number, frameTime: number, frameId: number, customLayout?: Partial) => Partial[]; /** * Sync ECG waveform with rendered image on click * @instance * @function syncECGFrame * @param {Object} traceData - Plotly trace data * @param {string} seriesId - SeriesId of the image * @param {string} canvasId - CanvasId of the image * @param {number} numberOfFrames - Number of frames in the image * @param {string} divId - DivId to render waveform in */ export declare const syncECGFrame: (traceData: Partial[], seriesId: string, canvasId: string, numberOfFrames: number, divId: string) => void; /** * Update the ECG waveform on the plot according to new frame time * @instance * @function updateECGTotalTime * @param {Object} traceData - Plotly trace data * @param {number} frameId - FrameId of the image * @param {number} numberOfFrames - Number of frames in the image * @param {string} frameTime - Time interval of each frame in the image * @param {string} divId - DivId to render waveform in */ export declare const updateECGTotalTime: (traceData: Partial[], frameId: number, numberOfFrames: number, frameTime: number, divId: string) => void; /** * Update the ECG waveform dot on the plot * @instance * @function updateECGMarker * @param {Object} traceData - Plotly trace data * @param {number} frameId - FrameId of the image * @param {number} numberOfFrames - Number of frames in the image * @param {string} divId - DivId to render waveform in */ export declare const updateECGMarker: (traceData: Partial[], frameId: number, numberOfFrames: number, divId: string) => void;