g3-toolkit API Reference
    Preparing search index...

    Interface MinimapProps

    interface MinimapProps {
        ariaLabel?: string;
        className?: string;
        core: Core | null;
        height?: number;
        nodeFilter?: (node: NodeSingular) => boolean;
        nodeRadius?: number;
        padding?: number;
        style?: CSSProperties;
        width?: number;
    }
    Index

    Properties

    ariaLabel?: string

    Accessible label for the minimap region.

    className?: string
    core: Core | null

    The Cytoscape instance from the canvas onReady callback. While null the minimap renders a disabled placeholder.

    height?: number

    Minimap height in CSS px. Default 140.

    nodeFilter?: (node: NodeSingular) => boolean

    Optional predicate selecting which TOP-LEVEL nodes are drawn. Use it to hide rendering-only nodes (for example structural ports). Children of a compound parent are never drawn individually regardless; the parent is collapsed to a single rectangle.

    nodeRadius?: number

    Drawn node dot radius in px. Default 2.

    padding?: number

    Inner padding around the scaled graph in px. Default 10.

    style?: CSSProperties
    width?: number

    Minimap width in CSS px. Default 200.