import { TgdContext } from "@tolokoban/tgd"; import type { MorphoViewerSmallCircuitCell, MorphoViewerSmallCircuitCellData } from "../../types"; import type { CellSectionIndex, CellSegment } from "../painter-cell/factory/section-index"; export interface SegmentOffscreenPainterOptions { circuit: MorphoViewerSmallCircuitCell[]; loadCell: (id: string) => Promise; onCellLoaded?: () => void; dendrogramMix?: number; } export declare class SegmentOffscreenPainter { private readonly onscreenContext; readonly context: TgdContext; private readonly offscreenCanvas; private readonly offscreenContext; private readonly group; private readonly cellPainters; private readonly onCellLoaded?; private mix; private isDeleted; constructor(onscreenContext: TgdContext, options: SegmentOffscreenPainterOptions); setCircuit(circuit: MorphoViewerSmallCircuitCell[], loadCell: (id: string) => Promise): void; set dendrogramMix(mix: number); getSections(cell: MorphoViewerSmallCircuitCell): CellSectionIndex | null; getSegmentNear(cell: MorphoViewerSmallCircuitCell, xScreen: number, yScreen: number, radiusInPixels: number): CellSegment | undefined; private getSegmentAt; private readonly paint; delete(): void; } //# sourceMappingURL=segment-offscreen-painter.d.ts.map