We don’t really have the whole story.
You mention “the component” and “the opening” and show an image with a door component.
I didn’t see anything being transformed in realtime in the previous post.
It seems weird to do it in a “preview” method.
In my example DragTool I used #move!
to prevent undo entries for each transform as the mouse moves.