plotomics
    Preparing search index...

    Interface NetworkOptions

    interface NetworkOptions {
        boundedView: boolean;
        defaultEdgeColor: string | null;
        defaultNodeColor: string;
        defaultNodeSize: number;
        directed: boolean;
        iterations: number;
        labelThreshold: number;
        layout: NetworkLayout;
        onSelect: ((node: string | null) => void) | null;
        palette: string[] | null;
        showLegend: boolean;
        theme: Partial<PlotomicsTheme>;
    }
    Index
    boundedView: boolean

    Keep pan and zoom inside the graph: zooming out stops at the view that shows all of it, a pan stops at its edges, and zooming in stops at 1/10,000 of its range. false lets the view move freely. Either way a double-click, the reset button in the top right corner of the graph, or resetView() goes back to the view of the whole graph.

    defaultEdgeColor: string | null

    Colour of an edge with no colour of its own. null (the default) takes the theme background with a fifth of the theme foreground mixed in, so edges stay quieter than the nodes and the labels on a light and on a dark background.

    defaultNodeColor: string

    Fallback node color when a node has no group.

    defaultNodeSize: number

    Default node radius (px) when size column is absent.

    directed: boolean

    Draw the graph as directed, with arrowheads. When true, A -> B and B -> A are kept as distinct edges; when false (default) the graph is undirected and a reciprocal pair collapses to one line.

    iterations: number

    ForceAtlas2 iteration count (bounded to keep layout time predictable).

    labelThreshold: number

    Minimum node size (px) on screen for its label to render. At the default of 4, nodes of the default size are labelled at the starting zoom, and sigma's label grid keeps the labels from crowding. Where the letters of two labels would run into each other, the label of the smaller node is left out.

    "forceatlas2" runs a layout when x/y are missing; "precomputed" requires x/y in the data and never runs a layout.

    onSelect: ((node: string | null) => void) | null

    Called with a node id when a node is clicked, or null when the empty canvas is clicked. In a Shiny app the runtime injects a handler that pushes the value to input$<outputId>_selected.

    palette: string[] | null

    Optional categorical palette override (else plotomics/core palette).

    showLegend: boolean

    Draw a legend of the node groups, in a gutter on the right, when the nodes have groups.

    theme: Partial<PlotomicsTheme>