Description Details Super classes Methods Examples
SVGFilter Class
SVGFilter Class
This is a slightly specialized subclass of SVGElement
which has methods
to specifically handle SVG <filter>
nodes
minisvg::SVGNode
-> minisvg::SVGElement
-> SVGFilter
new()
Initialise an SVGFilter object
SVGFilter$new(..., name = "filter")
...
Further arguments passed to SVGElement$new()
name
defaults to 'filter'
as_full_svg()
Wrap the SVG for this filter in a full SVG document and return the text
SVGFilter$as_full_svg(width = 400, height = width)
height, width
dimensions of SVG wrapper around this filter
save_full_svg()
Save the SVG for this filter in a full SVG document
SVGFilter$save_full_svg(filename, include_declaration = TRUE, ...)
filename
filename for output
include_declaration
Include leading XML declaration. default: TRUE
...
Further arguments passed to SVGFilter$as_full_svg()
show()
Render this filter in the context of a complete SVG document
SVGFilter$show(..., viewer = getOption("viewer", utils::browseURL))
...
Further arguments passed to SVGFilter$save_full_svg()
viewer
viewer.
clone()
The objects of this class are cloneable with this method.
SVGFilter$clone(deep = FALSE)
deep
Whether to make a deep clone.
1 2 3 4 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.