pivotick - v2.0.1
    Preparing search index...

    Interface MinimapOptions

    minimap(options) — how the minimap is placed and sized. Everything else about it (level of detail, when it redraws) adapts to the graph and needs no configuration.

    interface MinimapOptions {
        collapsed?: boolean | "auto";
        height?: number;
        position?: MinimapPosition;
        width?: number;
    }
    Index

    Properties

    collapsed?: boolean | "auto"

    Which state the minimap opens in. The toggle is always there — this only decides where it starts.

    'auto' keeps it open unless the canvas is too small to give a 200px overlay away, and follows the canvas from then on: collapsing when the room goes (the sidebar opening, the window shrinking) and coming back when it returns. The first manual toggle — or any setCollapsed call — ends that and the choice sticks.

    false — but 'auto' for the minimap full mode mounts for you

    height?: number

    Height in CSS pixels. Left out, it follows the canvas's aspect ratio (clamped to 70–400px) so the viewport rectangle keeps the shape of the real viewport.

    derived from the canvas
    
    position?: MinimapPosition

    The corner it docks in. 'bottom-right' is the only corner the built-in chrome leaves free in full mode.

    'bottom-right'
    
    width?: number

    Width in CSS pixels.

    200