======================================
Drawing with SVG - PD
======================================
Scryber includes the drawing capability with a subset of SVG capabilities.
* Lines
* Recangles
* Elipses
* Polygons
* Bezier Curves
* Groups
* Text
* Use and definitions
* ViewPorts
The drawing components should all be within a namespace qualified svg element, or prefixed svg at the document root.
There are may resources for SVG available, below is a description of the capabilities of scryber's implementation of SVG.
And it is perfectly possible to draw an entire page in SVG within a body or section.
Drawing SVG content
--------------------
.. code-block:: html
The svg content is below
And after the svg content
.. image:: images/drawingPathsSVG.png
As can be seen, the svg content is as a block and renders within the flow of the content.
The rect(angle) picks up the styles from the css and the font flows down from the svg container.
The use of svg a an inline, or inline-block may be supported in the future.
With scryber it is possible to use svg elements directly in the document by delcaring a prefixed namespace at the top. And the example below will render the same.
(See :doc:`namespaces_and_assemblies` for more information on how namespaces are used)
.. code-block:: html
The svg content is below
I'm SVG
And after the svg content
.. note:: depending on the purpose, this might be advantageous. But not make any html parsers happy unless wrapped in an svg:svg element.
All examples below will follow the standard