Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Offset Path #1139

Open
ehsan1011 opened this issue Jun 16, 2022 · 6 comments
Open

Offset Path #1139

ehsan1011 opened this issue Jun 16, 2022 · 6 comments

Comments

@ehsan1011
Copy link

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

Thank you

@ibrierley
Copy link

Transform it with a translate ? eg

el.transform("t100,100")

@ehsan1011
Copy link
Author

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

@ibrierley
Copy link

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

@ehsan1011
Copy link
Author

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

@ibrierley
Copy link

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

@ehsan1011
Copy link
Author

Yeah, Thank you

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants