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: Chart.ChartAnimationObject) -> Unit)? = null, onComplete: ((obj: Chart.ChartAnimationObject) -> Unit)? = null)

Chart animation options.

Properties

duration

val duration: Int

easing

var easing: Eeasing

onComplete

val onComplete: ((obj: Chart.ChartAnimationObject) -> Unit)?

onProgress

val onProgress: ((obj: Chart.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.