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
Inherited methods
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
...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.
if (FALSE) { f <- SVGFilter$new(id = "turbulence-filter", stag$feTurbulence(...)) }