SVGTransform

abstract external class SVGTransform (source)

Platform and version requirements: JS

Exposes the JavaScript SVGTransform to Kotlin

Constructors

<init>

SVGTransform()

Exposes the JavaScript SVGTransform to Kotlin

Properties

angle

open val angle: Float

matrix

open val matrix: DOMMatrix

type

open val type: Short

Functions

setMatrix

fun setMatrix(matrix: DOMMatrixReadOnly)

setRotate

fun setRotate(angle: Float, cx: Float, cy: Float)

setScale

fun setScale(sx: Float, sy: Float)

setSkewX

fun setSkewX(angle: Float)

setSkewY

fun setSkewY(angle: Float)

setTranslate

fun setTranslate(tx: Float, ty: 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_TRANSFORM_MATRIX

val SVG_TRANSFORM_MATRIX: Short

SVG_TRANSFORM_ROTATE

val SVG_TRANSFORM_ROTATE: Short

SVG_TRANSFORM_SCALE

val SVG_TRANSFORM_SCALE: Short

SVG_TRANSFORM_SKEWX

val SVG_TRANSFORM_SKEWX: Short

SVG_TRANSFORM_SKEWY

val SVG_TRANSFORM_SKEWY: Short

SVG_TRANSFORM_TRANSLATE

val SVG_TRANSFORM_TRANSLATE: Short

SVG_TRANSFORM_UNKNOWN

val SVG_TRANSFORM_UNKNOWN: Short