getBounds method
Gets the node's bounding rectangle.
Returns the rectangle that defines the node's area in graph coordinates. Port padding is excluded from the bounds. The bounds use the current position value.
Returns a Rect representing the node's bounding box.
Implementation
Rect getBounds() {
// Return the actual node bounds without port padding
// Use visual position for bounds
return Rect.fromLTWH(
position.value.dx,
position.value.dy,
size.value.width,
size.value.height,
);
}