Skip to main content

Function: drawDiscNodeHover()

drawDiscNodeHover<N, E, G>(context, data, settings): void

Draw an hovered node.

  • if there is no label => display a shadow on the node
  • if the label box is bigger than node size => display a label box that contains the node with a shadow
  • else node with shadow and the label box

Type Parameters

N extends Attributes = Attributes

E extends Attributes = Attributes

G extends Attributes = Attributes

Parameters

context: CanvasRenderingContext2D

data: PartialButFor<NodeDisplayData, "x" | "y" | "label" | "color" | "size">

settings: Settings<N, E, G>

Returns

void

Defined in

sigma/src/rendering/node-hover.ts:23