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