import { TgdContext } from "@tolokoban/tgd"; import type { MorphoViewerSmallCircuitCell, MorphoViewerSmallCircuitCellData } from "../../types"; import type { SomaCloudData } from "../painter-cell-somas"; export interface OffscreenPainterOptions { circuit: MorphoViewerSmallCircuitCell[]; loadCell: (id: string) => Promise; somas: SomaCloudData; dendrogramMix?: number; } export declare class OffscreenPainter { private readonly onscreenContext; readonly context: TgdContext; resolutionDivider: number; private readonly offscreenCanvas; private readonly offscreenContext; private readonly group; private readonly meshes; private readonly cellByIndex; private readonly freeIndices; private cloud; private cloudCells; private mix; private isDeleted; constructor(onscreenContext: TgdContext, options: OffscreenPainterOptions); setCircuit(circuit: MorphoViewerSmallCircuitCell[], loadCell: (id: string) => Promise, somas: SomaCloudData): void; set dendrogramMix(mix: number); getItemAt(xScreen: number, yScreen: number): MorphoViewerSmallCircuitCell | undefined; getItemNear(xScreen: number, yScreen: number, radiusInPixels: number): MorphoViewerSmallCircuitCell | undefined; private readonly paint; delete(): void; } //# sourceMappingURL=offscreen-painter.d.ts.map