Skip to main content
Version: 4.3

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.

Properties

graph

readonly 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

readonly 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

readonly model: Cell;

The cell whose interactivity is being resolved.


paper

readonly 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.

Stay in the know

Be where thousands of diagramming enthusiasts meet

Star us on GitHub