This method overrides elsie.text.stylecontainer.StyleContainer.__init__.
Width of the slides.
Height of the slides.
Enable debugging mode.
Theme used for syntax highlighting.
Default background color of each slide.
Directory where slide cache will be stored.
Policy used to handle slides with the same name. "unique" -> SlideDeck with the same name are not allowed. "replace" -> If there was a slide with the same name, it will be removed prior to adding the new slide. "ignore" -> Slide names are ignored. "auto" -> Uses "replace" behaviour when running inside Jupyter, otherwise uses "unique".
Backend used for computating layout and rendering slides. The default backend is InkscapeBackend.
Output PDF file path where the slides will be rendered.
If True, this function will return a list of (either SVG or PDF) render units. In this case the presentation will not be rendered into the `output` file.
Output format of slides; it supports all formats supported by Inkscape export (e.g. "pdf", "png", etc.) If export_type is "pdf" then it is merged into one final PDF file defined by parameter `output`. For other formats, `output` is ignored and returns a list of filenames with exported files. The files are placed into cache directory and could be removed by another call of render with `prune_cache=True`.
Method used to merge PDFs together. It is used when export_type is "pdf".
This function will be called just before the slides are rendered. It will be passed a list of root boxes, one for each slide.
List of slides to be rendered. If `None`, then all slides are rendered.
Must be a 2-element tuple (R, C) of integers. Renders a grid of (R, C) slides per each page. If not defined, then each slide is rendered on a single page.
If True, then after a successful render, all data that was not used for this render will be removed from the cache directory. Otherwise unused data will not be touched.
If True, the query cache will be updated when all queries are computed.
Examples: slides = elsie.SlideDeck() @slides.slide() def slide1(slide: elsie.Box): slide.box().text("Hello")
Name of the slide. If `name` is `None`, the name of the slide will be set to the name of the decorated function.
Background color of the slide.
SVG viewbox of the slide. Has to be a 4-element tuple (x, y, width, height).
If True, debugging information about each box will be drawn on the slide.