Skip to content

createNodeLink#nodeSize

Summary

NodeLink.nodeSize is the global size multiplier for nodes, and NodeLink.edgeSize is the thickness control for edges. Their defaults are 1 and 0.06, respectively.

In point mode, nodeSize is the base diameter in pixels before distance scaling and size clamps. Other node geometry uses it as a multiplier on the node radii. Both size setters clamp negative values to zero.

Syntax

NodeLink.nodeSize: number
NodeLink.edgeSize: number

const nodeSize = nodeLink.nodeSize;
const edgeSize = nodeLink.edgeSize;

Returns

number - Current node-size multiplier or edge-size value for this nodelink.

See Also