Static
clientReturns local coordinates relative to the provided localRoot
of a client (screen) point.
relative coordinate root
horizontal client coordinate
vertical client coordinate
zoom level
local coordinates relative to localRoot
Static
createCreates an SVG circle with the specified radius.
Optional
attributes: [string, string][]additional attributes.
Static
createCreates SVG "defs".
Static
createCreates an SVG ellipse with the specified horizontal and vertical radii.
Optional
attributes: [string, string][]additional attributes.
Static
createCreates an SVG filter element.
filter id
Optional
attributes: [string, string][]other filter element attributes
Optional
innerHTML: stringfilter definition as string
filter element
Static
createCreates an SVG text element.
Optional
attributes: [string, string][]additional attributes.
Static
createCreates an SVG group.
Optional
attributes: [string, string][]additional attributes.
Static
createCreates an SVG image element.
Optional
attributes: [string, string][]additional attributes.
Static
createCreates an SVG line with specified end-point coordinates.
Optional
attributes: [string, string][]additional attributes.
Static
createCreates an SVG marker.
Static
createCreates an SVG path with the specified shape (d).
path shape
Optional
attributes: [string, string][]additional attributes.
Static
createCreates an SVG point with the specified coordinates.
Static
createCreates an SVG polygon with specified points.
points as string.
Optional
attributes: [string, string][]additional attributes.
Static
createCreates an SVG rectangle with the specified width and height.
Optional
attributes: [string, string][]additional attributes.
Static
createCreates an SVG image element from a supplied inner SVG markup string.
SVG markup (without the root svg tags)
SVG image element
Static
createCreates an SVG text element.
Optional
attributes: [string, string][]additional attributes.
Static
createCreates an SVG transform.
Static
createTSpanCreates an SVG TSpan.
inner text.
Optional
attributes: [string, string][]additional attributes.
Static
setSets attributes on an arbitrary SVG element
target SVG element.
set of name-value attribute pairs.
Utility class to simplify SVG operations.