Description Super class Public fields Methods
A class representing a literal SVG element.
A class representing a literal SVG element.
minisvg::SVGNode
-> SVGLiteral
x
literal contents. Must be coercible to string via 'as.character(x)'
name
kept only for compatibility with other SVGNode objects. This should be set to 'literal'
new()
Initialize an SVGElement
SVGLiteral$new(x, ...)
x
the literal text to include
...
further arguments. Named arguments treated as attributes, unnamed arguments treated as child nodes
update()
Update the SVG Element.
SVGLiteral$update(x, ...)
x
the literal text to include
...
attributes and children to set on this node
Named arguments are considered attributes and will overwrite existing attributes with the same name. Set to NULL to delete the attribute
Unnamed arguments are appended to the list of child nodes. These should be text, other SVGElements or any ojbect that can be represented as a single text string using "as.character()"
To print just the attribute name, but without a value, set to NA
as_character_inner()
Convert this SVGLiteral
SVGLiteral$as_character_inner(...)
...
ignored
single character string
as_character()
Convert this SVGLiteral
SVGLiteral$as_character(...)
...
ignored
single character string
clone()
The objects of this class are cloneable with this method.
SVGLiteral$clone(deep = FALSE)
deep
Whether to make a deep clone.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.