SVGAngle class
SVGAngle class
The SVGAngle interface corresponds to the angle basic data type.
Inheritance: SVGAngle
→
SVGValueType
→
DOMObject
The SVGAngle type exposes the following members:
Properties
Property | Description |
---|---|
unit_type | The type of the value as specified by one of the SVG_ANGLETYPE_* constants defined on this interface. |
value | The angle value as a floating point value, in degrees. Setting this attribute will cause valueInSpecifiedUnits and valueAsString to be updated automatically to reflect this setting. |
value_in_specified_units | The angle 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. |
value_as_string | The angle 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. |
SVG_ANGLETYPE_UNKNOWN | The unit type is not one of predefined unit types. It is invalid to attempt to define a new value of this type or to attempt to switch an existing value to this type. |
SVG_ANGLETYPE_UNSPECIFIED | No unit type was provided (i.e., a unitless value was specified). For angles, a unitless value is treated the same as if degrees were specified. |
SVG_ANGLETYPE_DEG | The unit type was explicitly set to degrees. |
SVG_ANGLETYPE_RAD | The unit type is radians. |
SVG_ANGLETYPE_GRAD | The unit type is radians. |
Methods
Method | Description |
---|---|
get_platform_type | This method is used to retrieve ECMAScript object Type. |
new_value_specified_units | Reset the value as a number with an associated unitType, thereby replacing the values for all of the attributes on the object. |
convert_to_specified_units | Preserve the same underlying stored value, but reset the stored unit identifier to the given unitType. Object attributes unitType, valueInSpecifiedUnits and valueAsString might be modified as a result of this method. |
See Also
- module
aspose.html.dom.svg.datatypes
- class
DOMObject
- class
SVGAngle
- class
SVGValueType