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

Convert curves to line segments before importing as track #4

Closed
xsrf opened this issue Nov 15, 2020 · 2 comments
Closed

Convert curves to line segments before importing as track #4

xsrf opened this issue Nov 15, 2020 · 2 comments

Comments

@xsrf
Copy link
Owner

xsrf commented Nov 15, 2020

Tracks (and thus board outlines) only support line segments, no curves. Converting curves to lines with a given resolution would be convenient before import. These may be useful:
https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/getPointAtLength
https://developer.mozilla.org/en-US/docs/Web/API/SVGGeometryElement/getTotalLength

@xsrf
Copy link
Owner Author

xsrf commented Jan 3, 2021

@xsrf
Copy link
Owner Author

xsrf commented Jan 5, 2021

Done with 0ca1fc0

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

1 participant