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
{{ message }}
This repository has been archived by the owner on Apr 8, 2020. It is now read-only.
Is there a way to programmatically set the position that you want your vector graphic moved to by providing an x, y coordinate? I also need to re size providing a height and width. I tried the code below but once I scale it's off. I know I'm missing something simple but my brain is fried working on this. Any help would be greatly appreciated.
position.top is the y coordinate I would like the vector graphic moved to in the canvas/image.
var newTranslateY = position.top - shape.freeTransform.attrs.y;
if (newTranslateY != shape.freeTransform.attrs.translate.y) {
shape.freeTransform.attrs.translate.y = newTranslateY;
shape.freeTransform.apply();
}
The text was updated successfully, but these errors were encountered:
Is there a way to programmatically set the position that you want your vector graphic moved to by providing an x, y coordinate? I also need to re size providing a height and width. I tried the code below but once I scale it's off. I know I'm missing something simple but my brain is fried working on this. Any help would be greatly appreciated.
position.top is the y coordinate I would like the vector graphic moved to in the canvas/image.
var newTranslateY = position.top - shape.freeTransform.attrs.y;
if (newTranslateY != shape.freeTransform.attrs.translate.y) {
shape.freeTransform.attrs.translate.y = newTranslateY;
}
The text was updated successfully, but these errors were encountered: