DmitryBaranovskiy / raphael

JavaScript Vector Library

Home Page:https://dmitrybaranovskiy.github.io/raphael/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Offset Path

ehsan1011 opened this issue · comments

Hi,
How can I offset a path? Not Scale.
Please see the image below:
https://pasteboard.co/B7e9Xa1mJNDf.jpg

Thank you

commented

Transform it with a translate ? eg

el.transform("t100,100")

Thank you dear @ibrierley, but I need to offset the shape of the path around path not just change position. Please see the picture below:
https://pasteboard.co/B7e9Xa1mJNDf.jpg

commented

Pictures aren't really clear (to me anyway), what you are trying to achieve.

Hello again, I have a parallelogram that I want to enlarge by keeping the angles. Because the shape has different angles, when I use the Scale command, not everyone around the shape gets the same size.
For example, consider the figure below that we want to make it 100 pixels larger on all sides.
https://s6.uupload.ir/files/new_cect.jpg
Scale in not good enough, How can I offset this shape?
Thank you very much

commented

I think you would need to recalculate the original points in the shape.

Yeah, Thank you