-
Notifications
You must be signed in to change notification settings - Fork 148
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
Export canvas as SVG? #87
Comments
This would require rewriting the turtle graphics layer to render via SVG instead of Canvas (or maintain both code paths, and either always do both or have a flag, etc). Right now the history is not maintained (it's just pixels) so this would also incur memory overhead. Big project; not impossible but not a high priority. |
Unless you're explicitly rendering as a bitmap, SVG Crowbar can export a canvas as vectors. For some reason, though, it doesn't work on your site |
We're talking about http://nytimes.github.io/svg-crowbar/ ? If so, I'm confused... how do you imagine that it's generating vectors? The source deals only with SVG elements. Do you have an example page where it is generating SVG from a canvas, or documentation about how that is expected to work? (I could imagine that it hooks the canvas API entry points to record the drawing operations, but that's not what the tool does.) |
Closing due to lack of feedback. |
@inexorabletash I'm hoping to reopen this issue by suggesting incorporating this library? |
Hello, |
Ah, sorry, missed or lost track of it. I'd be willing to look at pull requests that pass existing tests. I think any such change is going to need to maintain the canvas as the primary display but record the command stream to produce an SVG. Ideally it would also cap the number of elements to preserve memory, and flush when the display was cleared. |
SVG Crowbar doesn't seem able to export the canvas as SVG, so an export option would be welcome as an enhancement
The text was updated successfully, but these errors were encountered: