-
-
Notifications
You must be signed in to change notification settings - Fork 29
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
svgelements does not process Symbol #79
Comments
Note, that currently svgelements produce elements for |
Yeah, I needed to look more into symbol. I didn't really have a use for it enough to flesh it out with more fully processed objects and I don't think I understood the distinction enough to write a Symbol class. But, I could certainly see the combination of -- There's also some issues with #87. I've somewhat been treating this project as bug and maintenance mode for a year or more now, and correcting issues like failure to process a particular element type when they came up. Part of my reasoning is that I understand the methodologies here have a rather fundamental flaw, in that, the failure to treat the DOM tree and Render Trees and fundamentally different things, causes a lot of needless complexities, and makes some features impossible when they should be fairly trivial. EG. CSS applies to nodes in the DOM tree and those modifications can be a lot of different stuff it affects the render tree only after render. In our case, render could give us a much more fundamental set of geometric objects with the right properties rather than quasi-hybrid About 13 months ago I wrote the start of a different svg project to try to rectify this but I haven't really had time to work on it and the code is still sitting in a private repository. It can load a SVG file, modify the DOM, and save the 1:1 read->write data, letting you modify SVG files, but it doesn't currently do the rendering of that tree state into geometric objects, which is the second part (both parts are done by svgelements as a single parse stage). But, knowing this project has this flaw, and that this project is really nice work, I've been reluctant to flesh out too many other classes that I haven't needed or yet fully understand. I have tried to make sure everything follows the spec nicely, and that bCNC, MeerK40t, vpype and any other program that uses this library for the promise of correctly parsing the svg spec into geometric objects gets high fidelity results. |
https://www.w3.org/TR/SVG/struct.html#SymbolElement
The text was updated successfully, but these errors were encountered: