import CanvasCache from "./CanvasCache"; import ColorScheme from "../../utils/ColorScheme"; import { ConservationManager, SequencesType } from "../../types/types"; type TilingGridOptions = { ctx: CanvasRenderingContext2D; startYTile: number; startXTile: number; endYTile: number; endXTile: number; tileWidth: number; tileHeight: number; sequences: SequencesType; residueTileCache: CanvasCache; colorScheme: ColorScheme; overlayConservation?: boolean; conservation?: ConservationManager | null; border: boolean; borderWidth: number; borderColor: string; textColor: string; textFont: string; }; /** * Allows rendering in tiles of grids. * * |---|---|---| * |-1-|-2-|-3-| * |---|---|---| * ――――――――――――― * |---|---|---| * |-4-|-5-|-6-| * |---|---|---| * * where 1..6 are TilingGrid component of xGridSize and yGridSize of 3. * * This split-up is required to avoid frequent repaints and keeps the React * Tree calculations slim. */ declare class CanvasTilingGridComponent { private props?; drawTile({ row, column }: { row: number; column: number; }): undefined; getOverlayFactor(text: string, column: number): number; drawResidue({ canvas, colorSchemeName, text, overlayFactor, }: { canvas: CanvasRenderingContext2D; colorSchemeName: string; text: string; overlayFactor: number; }): void; draw(props: TilingGridOptions): void; } export default CanvasTilingGridComponent; //# sourceMappingURL=CanvasTilingGrid.d.ts.map