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()
namedefaults 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, widthdimensions 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, ...)
filenamefilename for output
include_declarationInclude 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()
viewerviewer.
clone()The objects of this class are cloneable with this method.
SVGFilter$clone(deep = FALSE)
deepWhether 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.