commonMain.io.nacular.doodle.animation.Animator.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of animation-js Show documentation
Show all versions of animation-js Show documentation
A pure Kotlin, UI framework for the Web
package io.nacular.doodle.animation
import io.nacular.doodle.animation.transition.FixedSpeedLinear
import io.nacular.doodle.animation.transition.FixedTimeLinear
import io.nacular.doodle.animation.transition.NoChange
import io.nacular.doodle.animation.transition.SpeedUpSlowDown
import io.nacular.doodle.animation.transition.Transition
import io.nacular.doodle.utils.Completable
import io.nacular.doodle.utils.Pool
import io.nacular.measured.units.InverseUnits
import io.nacular.measured.units.Measure
import io.nacular.measured.units.Time
import io.nacular.measured.units.Units
import io.nacular.measured.units.UnitsRatio
import io.nacular.measured.units.times
import kotlin.jvm.JvmName
/**
* Created by Nicholas Eddy on 3/29/18.
*/
public class NoneUnit: Units("")
public val noneUnits: NoneUnit = NoneUnit()
@JvmName("fixedSpeedLinearNumber")
public fun fixedSpeedLinear(speed: Measure>): (T, T) -> Transition = { _,end -> FixedSpeedLinear(1 * noneUnits * speed, end * noneUnits) }
@JvmName("fixedSpeedLinearUnit")
public fun fixedSpeedLinear(speed: Measure>): (Measure, Measure) -> Transition = { _,end -> FixedSpeedLinear(speed, end) }
public fun fixedTimeLinear(time: Measure
© 2015 - 2025 Weber Informatics LLC | Privacy Policy