/** * WS-17C — instant layer toggling via per-OCG isolated tiles. * * The engine renders one PNG per layer with a transparent * background (``pngalpha`` device + every other OCG hidden via * ``_apply_ocg_overrides``). The browser then composites the active * subset locally via ``source-over`` blending. Toggling a layer * is just removing it from the draw list and redrawing — no API * round-trip after the first warm-up. * * The first paint of an unseen layer takes ~1-3 s (Ghostscript + * cache write). Subsequent toggles of the same layer hit the S3 * cache and complete in well under 100 ms. * * Mirrors the public-shape of SeparationCanvas so PdfViewer can * swap them in / out by ``viewerMode``. */ interface LayerCanvasProps { jobId: string; pageNum: number; enabledLayers: Set; /** All OCG indices for this page (drawing order). */ allLayers: number[]; width: number; height: number; dpi?: number; /** * Optional cap on the composite canvas's **backing-store** pixel area * (CSS display size is unchanged). Without it, a large-format page in * layer view allocates a full page×zoom canvas — tens of megapixels on a * dieline — which exhausts iOS Safari's per-process canvas budget and makes * the page (and surrounding UI) blank out. Mirrors SeparationCanvas. */ maxCanvasPixels?: number; } export declare function LayerCanvas({ jobId: _jobId, pageNum, enabledLayers, allLayers, width, height, dpi, maxCanvasPixels, }: LayerCanvasProps): import("react").JSX.Element; export {}; //# sourceMappingURL=LayerCanvas.d.ts.map