Following is the codepen link
https://codepen.io/rajeshpatil74/pen/XdGJwK?editors=1010
In the model used -
“First Document” do not use any textAlign or textAlignFocus values, and shapes looks nice with centered text.
But when resized, shape gets moved on left side. It should remain in center.
Where as Second Document & Third Document uses textAlign and textAlignFocus values. When these values used, the bounds of node gets changed. The node should remain in centerl within these bounds ?
What needs to be changed in template ??