20,741
edits
Line 13: | Line 13: | ||
However, the next step would actually be traversing an existing Canvas node in the property tree, and then iterating over its child nodes to map certain properties back to their SVG equivalent. | However, the next step would actually be traversing an existing Canvas node in the property tree, and then iterating over its child nodes to map certain properties back to their SVG equivalent. | ||
This should work reasonably well, because the module converting svg markup into canvas properties also is implemented in Nasal, and can be easily extended. | This should work reasonably well, because the module converting svg markup into canvas properties also is implemented in Nasal, and can be easily extended. | ||
For starters we can prototype all of this in scripting space - at some point however, it would make more sense to move this back into C++ by introducing a corresponding <code>virtual void std::stringstream& serialize()</code> methid at the Canvas::Element level and providing a mechanism to allow a Canvas to be serialized (and streamed) asynchronously. | |||
== Example == | == Example == |