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
I found some issues for moving position of Group and Path.
Problem of center and point prop on Group and Path component
both prop perfectly work for shaped paths, like Circle, Rectangle ...etc.
On the other hand, Path and Group does not reflect its initial position by these props.
For example, this below does not set its center position to [100, 100].
position prop works for not only shaped paths but also all Item based objects, Path, Group. Layers ...etc. But currently changing these props does not move its actual position. It would be better if this prop is available, like below.
Hey @kota65535. It's been some time, since I last worked on this library, but I think that vanilla PaperJS does not support changing center/point props on Path or Group. As you have already figured out, it works for Circle for example.
I think something like position prop would be perfect for this use case. I was trying to keep the custom props down to the minimum, but for some cases it just makes sense. You can make a PR if you wish.
I found some issues for moving position of Group and Path.
Problem of
center
andpoint
prop on Group and Path componentboth prop perfectly work for shaped paths, like Circle, Rectangle ...etc.
On the other hand, Path and Group does not reflect its initial position by these props.
For example, this below does not set its center position to [100, 100].
This also does not work.
introducing
position
propposition
prop works for not only shaped paths but also all Item based objects, Path, Group. Layers ...etc. But currently changing these props does not move its actual position. It would be better if this prop is available, like below.The text was updated successfully, but these errors were encountered: