emphasis.setClickDimEnabled
setClickDimEnabled(enabled: boolean): voidEnable or disable click-DIM: the engine listens for clicks and runs a focus-and-context dim so the clicked target stands out.
- Click a node → keep that node + its 1-hop neighborhood (nodes AND the connecting edges) bright; fade everything else.
- Click an edge → keep the edge's two endpoint nodes (and the edge) bright; fade everything else — same focus treatment as a node.
- Click the same target again, or click the background → clear.
Independent of the hover ring. The ring/halo is governed by
setEmphasisGlowEnabled (on by default); this switch only controls
the click-driven dim. Default false — opt-in.
Dimming is applied with focusContext (direct opacity, and
focusScale: 1 so the kept nodes do NOT grow), which renders reliably
even when the force layout has settled and the render loop is idle. Requires a wired InteractionManager (present once
the canvas is mounted); enabling before that is fine — the listener is
installed when interaction is wired.
Not undoable. Not recorded in history.
enabled | boolean | true to enable click dimming, false to disable. |
Returns: void