com.yandex.div.dsl.model.DivScaleTransition.kt Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of kotlin-json-builder Show documentation
Show all versions of kotlin-json-builder Show documentation
DivKit is an open source Server-Driven UI (SDUI) framework. SDUI is a an emerging technique that leverage the server to build the user interfaces of their mobile app.
// Generated code. Do not modify.
package com.yandex.div.dsl.model
import java.net.URI
import com.fasterxml.jackson.annotation.*
import com.yandex.div.dsl.*
import com.yandex.div.dsl.context.*
import com.yandex.div.dsl.type.*
import com.yandex.div.dsl.util.*
class DivScaleTransition internal constructor(
@JsonIgnore override val duration: Property?,
@JsonIgnore override val interpolator: Property?,
@JsonIgnore val pivotX: Property?,
@JsonIgnore val pivotY: Property?,
@JsonIgnore val scale: Property?,
@JsonIgnore override val startDelay: Property?,
) : DivAppearanceTransition, DivTransitionBase {
@JsonProperty("type") override val type = "scale"
@JsonAnyGetter
internal fun properties(): Map {
return propertyMapOf(
"duration" to duration,
"interpolator" to interpolator,
"pivot_x" to pivotX,
"pivot_y" to pivotY,
"scale" to scale,
"start_delay" to startDelay,
)
}
}
fun TemplateContext.divScaleTransition(): LiteralProperty {
return value(DivScaleTransition(
duration = null,
interpolator = null,
pivotX = null,
pivotY = null,
scale = null,
startDelay = null,
))
}
fun TemplateContext.divScaleTransition(
duration: Property? = null,
interpolator: Property? = null,
pivotX: Property? = null,
pivotY: Property? = null,
scale: Property? = null,
startDelay: Property? = null,
): LiteralProperty {
return value(DivScaleTransition(
duration = duration,
interpolator = interpolator,
pivotX = pivotX,
pivotY = pivotY,
scale = scale,
startDelay = startDelay,
))
}
fun TemplateContext.divScaleTransition(
duration: Int? = null,
interpolator: DivAnimationInterpolator? = null,
pivotX: Double? = null,
pivotY: Double? = null,
scale: Double? = null,
startDelay: Int? = null,
): LiteralProperty {
return value(DivScaleTransition(
duration = optionalValue(duration),
interpolator = optionalValue(interpolator),
pivotX = optionalValue(pivotX),
pivotY = optionalValue(pivotY),
scale = optionalValue(scale),
startDelay = optionalValue(startDelay),
))
}
fun CardContext.divScaleTransition(): DivScaleTransition {
return DivScaleTransition(
duration = null,
interpolator = null,
pivotX = null,
pivotY = null,
scale = null,
startDelay = null,
)
}
fun CardContext.divScaleTransition(
duration: ValueProperty? = null,
interpolator: ValueProperty? = null,
pivotX: ValueProperty? = null,
pivotY: ValueProperty? = null,
scale: ValueProperty? = null,
startDelay: ValueProperty? = null,
): DivScaleTransition {
return DivScaleTransition(
duration = duration,
interpolator = interpolator,
pivotX = pivotX,
pivotY = pivotY,
scale = scale,
startDelay = startDelay,
)
}
fun CardContext.divScaleTransition(
duration: Int? = null,
interpolator: DivAnimationInterpolator? = null,
pivotX: Double? = null,
pivotY: Double? = null,
scale: Double? = null,
startDelay: Int? = null,
): DivScaleTransition {
return DivScaleTransition(
duration = optionalValue(duration),
interpolator = optionalValue(interpolator),
pivotX = optionalValue(pivotX),
pivotY = optionalValue(pivotY),
scale = optionalValue(scale),
startDelay = optionalValue(startDelay),
)
}