ReadonlymagnetReturns a React ref callback that registers the node under the given selector name AND marks it as a JointJS magnet, a valid endpoint for link connections.
Unique selector name within the element (e.g. 'port-in', 'row-0').
Optionaloptions: MagnetRefOptionsMagnet behavior options.
Options for MarkupApi's magnetRef.
Optional Readonlypassive?: booleanWhen true, the magnet is passive: a valid connection target but not a
source. When false, it is active and links can also start from it.
ReadonlyselectorReturns a React ref callback that registers the node under the given selector name so links and tools can target it by name.
Unique selector name within the element (e.g. 'body', 'item-0').
Markup utilities returned by useMarkup.