@joint/react
    Preparing search index...

    Interface CellInteractivityParams

    Context handed to the function form of CellInteractivity. JointJS calls the callback once per cell with that cell, then reads the specific interactivity flag it needs from the value you return. In practice only model is reliably populated — see the individual fields.

    interface CellInteractivityParams {
        graph: Graph;
        interaction: keyof InteractivityOptions;
        model: Cell;
        paper: Paper;
    }
    Index

    Properties

    graph: Graph

    The graph the cell belongs to. Derived from paper, so it carries the same caveat; capture the dia.Graph from your own scope if you need it.

    interaction: keyof InteractivityOptions

    Always undefined at runtime: JointJS does not pass an interaction name to the callback. It reads the relevant flag from the value you return instead.

    model: Cell

    The cell whose interactivity is being resolved.

    paper: Paper

    The cell's paper. JointJS binds the callback to the cell view's options rather than to the dia.Paper, so this is not guaranteed to be the paper; capture the dia.Paper from your own scope if you need it.