Howto:Extend the Canvas SVG module: Difference between revisions

Jump to navigation Jump to search
Line 18: Line 18:
Document and demonstrate how the Canvas/Nasal SVG module can be extended to suport additional SVG features, by mapping SVG/XML markup to the corresponding Canvas primitives, such as mapping the {{tag|image}} tag to a <code>Canvas.Image</code> to add support for raster images  to the SVG parser.
Document and demonstrate how the Canvas/Nasal SVG module can be extended to suport additional SVG features, by mapping SVG/XML markup to the corresponding Canvas primitives, such as mapping the {{tag|image}} tag to a <code>Canvas.Image</code> to add support for raster images  to the SVG parser.


In the mid-term it would also make sense to add support for animation handling, so that such code is encapsulated in the future, which will help us update code if/when native C++ hooks become available to implement animations without any Nasal overhead.
In the mid-term it would also make sense to add support for animation handling [https://developer.mozilla.org/en-US/docs/Web/SVG/Element#Animation_elements], so that such code is encapsulated in the future, which will help us update code if/when native C++ hooks become available to implement animations without any Nasal overhead.


So some tags that may be of interest are:
So some tags that may be of interest are:

Navigation menu