Custom hook to measure the size of a node and update its size in the graph. It uses the createElementSizeObserver utility to observe size changes.
createElementSizeObserver
A reference to the HTML or SVG element to measure.
Optional
Options for measuring the node size.
Custom hook to measure the size of a node and update its size in the graph. It uses the
createElementSizeObserver
utility to observe size changes.