Module svg

Module svg 

Source
Available on crate feature svg only.
Expand description

Provides templating logic for rendering terminal output in a visual format.

The included templating logic allows rendering SVG images. Templating is based on Handlebars, and can be customized to support differing layout or even data formats (e.g., HTML). The default template supports a variety of options controlling output aspects, e.g. image dimensions and scrolling animation.

§Examples

See Template for examples of usage.

Structs§

CreatorData
Information about software used for rendering (i.e., this crate).
EmbeddedFont
Representation of a font that can be embedded into SVG via @font-face CSS with a data URL src.
EmbeddedFontFace
Representation of a single face of an EmbeddedFont. Corresponds to a single @font-face CSS rule.
FontFacefont-subset
OpenType font face that can be used for subsetting.
FontMetrics
Font metrics used in SVG layout.
FontSubsetterfont-subset
Font embedder / subsetter based on the font-subset library.
HandlebarsData
Root data structure sent to the Handlebars template.
NamedPaletteParseError
Errors that can occur when parsing NamedPalette from a string.
Palette
Palette of 16 standard terminal colors (8 ordinary colors + 8 intense variations).
RgbColor
RGB color with 8-bit channels.
ScrollOptions
Options that influence the scrolling animation.
SerializedInteraction
Serializable version of Interaction.
Template
Template for rendering Transcripts, e.g. into an SVG image.
TemplateOptions
Configurable options of a Template.
TermColors
Values of 8 base terminal colors.

Enums§

LineNumbers
Line numbering options.
NamedPalette
Named Palette.
RgbColorParseError
Errors that can occur when parsing an RgbColor from a string.
SubsettingErrorfont-subset
Errors produced by FontSubsetter.
WrapOptions
Text wrapping options.

Traits§

FontEmbedder
Produces an EmbeddedFont for SVG.