raphael icon indicating copy to clipboard operation
raphael copied to clipboard

Offset Path

Open ehsan1011 opened this issue 2 years ago • 6 comments

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

Thank you

ehsan1011 avatar Jun 16 '22 09:06 ehsan1011

Transform it with a translate ? eg

el.transform("t100,100")

ibrierley avatar Jun 16 '22 09:06 ibrierley

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

ehsan1011 avatar Jun 17 '22 05:06 ehsan1011

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

ibrierley avatar Jun 17 '22 06:06 ibrierley

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

ehsan1011 avatar Jun 18 '22 02:06 ehsan1011

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

ibrierley avatar Jun 18 '22 06:06 ibrierley

Yeah, Thank you

ehsan1011 avatar Jun 18 '22 08:06 ehsan1011