g3-toolkit API Reference
    Preparing search index...

    Interface WireCytoscapeContextActionsOptions

    interface WireCytoscapeContextActionsOptions {
        onEditAppearance?: (nodeId: string) => void;
        onFindPath?: (sourceId: string, targetId: string) => void;
        onViewNeighborhood?: (subUGM: UGM, centerId: string, hops: number) => void;
    }
    Index

    Properties

    onEditAppearance?: (nodeId: string) => void

    Called when the user picks "Edit Appearance" on a node. Open the NodeStyleEditor in your application.

    onFindPath?: (sourceId: string, targetId: string) => void

    Called when the user picks "Find Shortest Path" with two nodes selected. The toolkit emits the source/target; you decide what the secondary view does with it.

    onViewNeighborhood?: (subUGM: UGM, centerId: string, hops: number) => void

    Called when the user picks "View Neighbors" or "Focus N-hop". Receives the subgraph UGM ready to render in a secondary view.