Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
[[ SvgViewWidget ]] Add a simple 'SVG View' widget #3089
This PR adds both an 'SVG' abstraction at the Canvas level, and a simple 'SVG View' widget.
The SVG abstraction is based on https://github.com/memononen/nanosvg which is a very small SVG subset parser. The subset it understands includes shapes, paths, transforms, color fills as well as linear and radial gradients.
The SVG View widget wraps an SVG document specified by an 'svgText' property, and scales and fills the widgets bounds with a specified rectangle of the SVG document (visibleBox).
Note: The widget does not yet load / save its state, and gradient transforms are not currently mapping correctly.