gws.lib.svg.element
¶
Source code: gws.lib.svg.element
Module Contents¶
- gws.lib.svg.element.fragment_to_element(fragment: list[gws.XmlElement], atts: dict = None) gws.XmlElement ¶
Convert an SVG fragment to an SVG element.
- gws.lib.svg.element.fragment_to_image(fragment: list[gws.XmlElement], size: gws.Size, mime=gws.lib.mime.PNG) gws.lib.image.Image ¶
Convert an SVG fragment to a raster image.
- gws.lib.svg.element.sanitize_element(el: gws.XmlElement) gws.XmlElement | None ¶
Remove unsafe stuff from an SVG element.