SVGAngle Interface
Static Fields
Methods
Code void convertToSpecifiedUnits(int unitType) #
unitType
. Object attributes unitType
, valueInSpecifiedUnits
and valueAsString
might be modified as a result of this method.
void convertToSpecifiedUnits(int unitType);
Code void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits) #
Reset the value as a number with an associated unitType, thereby replacing the values for all of the attributes on the object.
Exceptions:
- a
DOMException
with codeNOT_SUPPORTED_ERR
is raised ifunitType
isSVG_ANGLETYPE_UNKNOWN
or not a valid unit type constant (one of the otherSVG_ANGLETYPE_*
constants defined on this interface). - a
DOMException
with codeNO_MODIFICATION_ALLOWED_ERR
is raised when the length corresponds to a read only attribute or when the object itself is read only.
void newValueSpecifiedUnits(int unitType, num valueInSpecifiedUnits);
Fields
Code final int unitType #
final int unitType;
Code num value #
The value as a floating point value, in user units. Setting this attribute will cause valueInSpecifiedUnits
and valueAsString
to be updated automatically to reflect this setting.
Exceptions on setting: a DOMException
with code NO_MODIFICATION_ALLOWED_ERR
is raised when the length corresponds to a read only attribute or when the object itself is read only.
num value;
Code String valueAsString #
The value as a string value, in the units expressed by unitType
. Setting this attribute will cause value
, valueInSpecifiedUnits
and unitType
to be updated automatically to reflect this setting.
Exceptions on setting:
- a
DOMException
with codeSYNTAX_ERR
is raised if the assigned string cannot be parsed as a valid <angle>. - a
DOMException
with codeNO_MODIFICATION_ALLOWED_ERR
is raised when the length corresponds to a read only attribute or when the object itself is read only.
String valueAsString;
Code num valueInSpecifiedUnits #
The value as a floating point value, in the units expressed by unitType
. Setting this attribute will cause value
and valueAsString
to be updated automatically to reflect this setting.
Exceptions on setting: a DOMException
with code NO_MODIFICATION_ALLOWED_ERR
is raised when the length corresponds to a read only attribute or when the object itself is read only.
num valueInSpecifiedUnits;
This page includes content from the Mozilla Foundation that is graciously licensed under a Creative Commons: Attribution-Sharealike license. Mozilla has no other association with Dart or dartlang.org. We encourage you to improve the web by contributing to The Mozilla Developer Network.