applyBounds method
Applies new bounds to the node, updating position and size.
This is called after calculateResize to actually update the node.
Implementation
void applyBounds(Rect bounds) {
if (!isResizable) return;
runInAction(() {
position.value = bounds.topLeft;
setSize(bounds.size);
});
}