SVGLength

abstract external class SVGLength (source)

Platform and version requirements: JS

Exposes the JavaScript SVGLength to Kotlin

Constructors

<init>

SVGLength()

Exposes the JavaScript SVGLength to Kotlin

Properties

unitType

open val unitType: Short

value

open var value: Float

valueAsString

open var valueAsString: String

valueInSpecifiedUnits

open var valueInSpecifiedUnits: Float

Functions

convertToSpecifiedUnits

fun convertToSpecifiedUnits(unitType: Short)

newValueSpecifiedUnits

fun newValueSpecifiedUnits(
    unitType: Short,
    valueInSpecifiedUnits: Float)

Inherited Functions

equals

open operator fun equals(other: Any?): Boolean

Indicates whether some other object is "equal to" this one. Implementations must fulfil the following requirements:

hashCode

open fun hashCode(): Int

Returns a hash code value for the object. The general contract of hashCode is:

toString

open fun toString(): String

Returns a string representation of the object.

Companion Object Properties

SVG_LENGTHTYPE_CM

val SVG_LENGTHTYPE_CM: Short

SVG_LENGTHTYPE_EMS

val SVG_LENGTHTYPE_EMS: Short

SVG_LENGTHTYPE_EXS

val SVG_LENGTHTYPE_EXS: Short

SVG_LENGTHTYPE_IN

val SVG_LENGTHTYPE_IN: Short

SVG_LENGTHTYPE_MM

val SVG_LENGTHTYPE_MM: Short

SVG_LENGTHTYPE_NUMBER

val SVG_LENGTHTYPE_NUMBER: Short

SVG_LENGTHTYPE_PC

val SVG_LENGTHTYPE_PC: Short

SVG_LENGTHTYPE_PERCENTAGE

val SVG_LENGTHTYPE_PERCENTAGE: Short

SVG_LENGTHTYPE_PT

val SVG_LENGTHTYPE_PT: Short

SVG_LENGTHTYPE_PX

val SVG_LENGTHTYPE_PX: Short

SVG_LENGTHTYPE_UNKNOWN

val SVG_LENGTHTYPE_UNKNOWN: Short