TransformData

data class TransformData(val scale: Double, val x: Double, val y: Double, val animating: Boolean = false, val userGestureActive: Boolean = false)

Describes a 2D transform.

Constructors

Link copied to clipboard
fun TransformData(scale: Double, x: Double, y: Double, animating: Boolean = false, userGestureActive: Boolean = false)

Types

Link copied to clipboard
object Companion

Functions

Link copied to clipboard
fun serialize(generator: JsonGenerator)

Properties

Link copied to clipboard
val animating: Boolean = false

If this transform is an intermediate step in an animation.

Link copied to clipboard

The scale, where 1 means no scaling applied.

Link copied to clipboard

If this transform is due to a user gesture, such as pan-zooming.

Link copied to clipboard
val x: Double

Translation on the x-axis.

Link copied to clipboard
val y: Double

Translation on the y-axis.