import NightingaleElement from "@nightingale-elements/nightingale-new-core"; import { Selection } from "d3"; import { Heatmap } from "heatmap-component"; import { PropertyValueMap } from "lit"; interface HeatmapData { xValue: number; yValue: string; score: number; [key: string]: unknown; } declare const NightingaleSequenceHeatmap_base: import("@nightingale-elements/nightingale-new-core/dist/nightingale-base-element").Constructor & import("@nightingale-elements/nightingale-new-core/dist/nightingale-base-element").Constructor & import("@nightingale-elements/nightingale-new-core/dist/nightingale-base-element").Constructor & import("@nightingale-elements/nightingale-new-core/dist/nightingale-base-element").Constructor & import("@nightingale-elements/nightingale-new-core/dist/nightingale-base-element").Constructor & import("@nightingale-elements/nightingale-new-core/dist/nightingale-base-element").Constructor & typeof NightingaleElement; declare class NightingaleSequenceHeatmap extends NightingaleSequenceHeatmap_base { /** * Mandatory field in order for heatmap component to work properly */ "heatmap-id": string; "hm-highlight-width": number; "use-ctrl-to-zoom": false; heatmapDomainX?: number[]; heatmapDomainY?: string[]; heatmapData?: HeatmapData[]; heatmapInstance?: Heatmap; protected highlighted?: Selection; /** * Nightingale lifecycle function to update highlight (see withHighlight) * has to be manually triggered from render (zoomRefreshed and updated in this case) */ protected updateHighlight(): void; attributeChangedCallback(name: string, _old: string | null, value: string | null): void; /** * Render function * * Heatmap-components styles are injected here as a typescript variable * (necessary to avoid changing rollup build configs) * * @returns lit-html to render for this component */ render(): import("lit-html").TemplateResult<1>; /** * Function runs after whole lit element update cycle is done * Here we bind heatmap events in case a heatmap instance does not exist */ updated(_changedProperties: PropertyValueMap | Map): void; /** * Main function accessed by the user in order to render heatmap visualization * @param xDomain int[]: list of 1-indexed resid ids for each residue number * @param yDomain string[]: list of heatmap row categories * @param data array of objects containing some mandatory fields: xValue (resid id), yValue (row categ) and score (float value mapped to color) */ setHeatmapData(xDomain: number[], yDomain: string[], data: HeatmapData[]): void; /** * Creates random data (useful for testing) base on a given * sequence length */ createRandomFromLength(): void; /** * Main heatmap rendering function. Should only be triggered once * Necessary to bind hover and select events between Heatmap component and Nightingale */ renderHeatmap(): void; /** * Function to bind zoom and hover events between Heatmap component and Nightingale */ bindHeatmapEvents(): void; private dispatchHighlight; /** * Function to trigger Heatmap zooming from Nightingale */ triggerHeatmapZoom(): void; } export default NightingaleSequenceHeatmap; //# sourceMappingURL=nightingale-sequence-heatmap.d.ts.map