Description Details Super classes Public fields Methods Examples
SVGPattern Class
SVGPattern Class
This is a slightly specialized subclass of SVGElement
which has methods
to specifically handle SVG <pattern>
nodes
SVGPattern objects may also have their own 'filter_def' filter definition.
minisvg::SVGNode
-> minisvg::SVGElement
-> SVGPattern
filter_def
A filter definition to accompany this pattern
new()
Initialise an SVGPattern object
SVGPattern$new(..., name = "pattern")
...
Further arguments passed to SVGElement$new()
name
defaults to 'pattern', but some gradients may also be used here
as_full_svg()
Wrap the SVG for this pattern in a full SVG document and return the text
SVGPattern$as_full_svg(width = 400, height = width)
height, width
dimensions of SVG wrapper around this pattern
save_full_svg()
Save the SVG for this pattern in a full SVG document
SVGPattern$save_full_svg(filename, include_declaration = TRUE, ...)
filename
filename for output
include_declaration
Include leading XML declaration. default: TRUE
...
Further arguments passed to SVGPattern$as_full_svg()
as_character()
Recursively convert this SVGElement and children to text
SVGPattern$as_character(..., depth = 0, include_declaration = FALSE)
...
ignored
depth
recursion depth. default: 0
include_declaration
Include the leading XML declaration? default: FALSE
single character string
show()
Render this pattern in the context of a complete SVG document
SVGPattern$show(..., viewer = getOption("viewer", utils::browseURL))
...
Further arguments passed to SVGPattern$save_full_svg()
viewer
viewer.
clone()
The objects of this class are cloneable with this method.
SVGPattern$clone(deep = FALSE)
deep
Whether to make a deep clone.
1 2 3 4 5 6 |
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.