SVG class

Utilities for Svg, Scalable Vector Graphics.

Constructors

SVG()

Properties

hashCode → int
The hash code for this object. [...]
read-only, inherited
runtimeType → Type
A representation of the runtime type of the object.
read-only, inherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a non-existent method or property is accessed. [...]
inherited
toString() → String
Returns a string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator. [...]
inherited

Static Properties

BASELINE_SHIFT → String
Frequently used SVG attribute names, to be used with setAttr.
final
CURSOR → String
Frequently used SVG attribute names, to be used with setAttr.
final
FILL → String
Frequently used SVG attribute names, to be used with setAttr.
final
FILL_OPACITY → String
Frequently used SVG attribute names, to be used with setAttr.
final
FONT_SIZE → String
Frequently used SVG attribute names, to be used with setAttr.
final
HEIGHT → String
Frequently used SVG attribute names, to be used with setAttr.
final
STROKE → String
Frequently used SVG attribute names, to be used with setAttr.
final
STROKE_DASHARRY → String
Frequently used SVG attribute names, to be used with setAttr.
final
STROKE_OPACITY → String
Frequently used SVG attribute names, to be used with setAttr.
final
STROKE_WIDTH → String
Frequently used SVG attribute names, to be used with setAttr.
final
TEXT_ANCHOR → String
Frequently used SVG attribute names, to be used with setAttr.
final
TRANSFORM → String
Frequently used SVG attribute names, to be used with setAttr.
final
WIDTH → String
Frequently used SVG attribute names, to be used with setAttr.
final
X → String
Frequently used SVG attribute names, to be used with setAttr.
final
X1 → String
Frequently used SVG attribute names, to be used with setAttr.
final
X2 → String
Frequently used SVG attribute names, to be used with setAttr.
final
Y → String
Frequently used SVG attribute names, to be used with setAttr.
final
Y1 → String
Frequently used SVG attribute names, to be used with setAttr.
final
Y2 → String
Frequently used SVG attribute names, to be used with setAttr.
final

Static Methods

setAttr(Element el, Map<String, String> attr) → void
Sets the attributes for an Element from a Map. Example: setAttr(plotArea, {SVG.X: "20", SVG.Y: "40"});