Class InkscapeBackend
Backend that maps Elsie primitives to SVG and renders them to PDF using Inkscape.
Declaration
source linkDocumentation
Methods
▶ def __init__(self, inkscape: Union[str, InkscapeShell] = None, ...) override ▶ def compute_text_height(self, parsed_text, style, styles, id_index=None) overrideinherited doc Compute the height of the given text that would be rendered with the given style.
▶ def compute_text_width(self, parsed_text, style, styles, id_index=None) overrideinherited doc Compute the width of the given text that would be rendered with the given style.
▶ def compute_text_x(self, parsed_text, style, styles, id_index=None) overrideinherited doc Compute the x position of the given text that would be rendered with the given style.
▶ def create_render_unit(self, slide, step, export_type) overrideinherited doc Create a render unit that can export itself to PDF or PNG.
▶ def get_version(self, elsie_version: str) -> str overrideinherited doc Returns unique version of the backend.