microscope-js - v0.0.0
    Preparing search index...

    Interface RenderContext

    Runtime context handed to a Renderer when it's asked to display a source.

    interface RenderContext {
        container: HTMLElement;
        options?: Record<string, unknown>;
        signal?: AbortSignal;
        source: NormalizedSource;
        t?: (key: string, fallback: string) => string;
    }
    Index

    Properties

    container: HTMLElement

    DOM node the renderer must mount into. It will be cleared before render.

    options?: Record<string, unknown>

    Per-render options forwarded to the renderer. Shape is renderer-specific.

    signal?: AbortSignal

    Cancels in-flight rendering. The renderer should clean up partial state.

    The normalized source. Renderers receive a Blob, not the original input.

    t?: (key: string, fallback: string) => string

    Translation callback for any user-facing strings (toolbar labels, errors).