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.
Parameters:
portSize- The size of ports (for compatibility, currently unused)
Returns a Rect representing the node's bounding box.
Implementation
Rect getBounds({double portSize = 11.0}) {
// 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,
);
}