|
A library for working with phylogenetic and population genetic data.
v0.32.0
|
|
Go to the documentation of this file.
51 std::string
const& href
57 std::string
const& href,
61 , position( position )
65 std::string
const& href,
70 , position( position )
75 std::string
const& href,
128 out <<
svg_attribute(
"style",
"image-rendering:optimizeSpeed" );
133 out <<
svg_attribute(
"style",
"image-rendering:optimizeQuality" );
143 out <<
svg_attribute(
"style",
"image-rendering:crisp-edges" );
148 out <<
svg_attribute(
"style",
"image-rendering:pixelated" );
std::string indent(std::string const &text, std::string const &indentation)
Indent each line of text with indentation and return the result.
void write(std::ostream &out, size_t indent=0, SvgDrawingOptions const &options=SvgDrawingOptions()) const
static std::string indentation_string
Provides some commonly used string utility functions.
SvgImage(std::string const &href)
Container namespace for all symbols of genesis in order to keep them separate when used as a library.
std::string svg_attribute(std::string const &name, T const &value, std::string const &unit="")
std::string repeat(std::string const &word, size_t times)
Take a string and repeat it a given number of times.
SvgBox bounding_box() const