You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for this awesome library! I have a feature request.
I'm adding a text of a user defined length, which I need to be centred in the viewport, therefore I need to set the offsetX to half of the width.
That in svelte is pretty convoluted, as I have to have an $effect to watch for the moment of the shape being added (I could use a konva effect here), then get the handle and calculate and set the offset.
Instead it could be as simple as <Text offsetX='50%' /> with a support for percentages. I feel it would be generally useful.
Thanks for your consideration.
The text was updated successfully, but these errors were encountered:
Thanks for this awesome library! I have a feature request.
I'm adding a text of a user defined length, which I need to be centred in the viewport, therefore I need to set the offsetX to half of the width.
That in svelte is pretty convoluted, as I have to have an $effect to watch for the moment of the shape being added (I could use a konva effect here), then get the handle and calculate and set the offset.
Instead it could be as simple as
<Text offsetX='50%' />
with a support for percentages. I feel it would be generally useful.Thanks for your consideration.
The text was updated successfully, but these errors were encountered: