kvision / pl.treksoft.kvision.chart / AnimationOptions

AnimationOptions

data class AnimationOptions

Chart animation options.

Constructors

<init>

AnimationOptions(duration: Int = 1000, easing: Eeasing = Eeasing.EASEOUTQUART, onProgress: (obj: ChartAnimationObject) -> Unit = null, onComplete: (obj: ChartAnimationObject) -> Unit = null)

Chart animation options.

Properties

duration

val duration: Int

easing

var easing: Eeasing

onComplete

val onComplete: (obj: ChartAnimationObject) -> Unit

onProgress

val onProgress: (obj: ChartAnimationObject) -> Unit

Extension Functions

createInstance

fun <T> Any?.createInstance(vararg args: dynamic): T

Helper function for creating JavaScript objects from dynamic constructors.

toJs

fun AnimationOptions.toJs(): dynamic

An extension function to convert configuration class to JS object.