All Downloads are FREE. Search and download functionalities are using the official Maven repository.

com.yandex.div.dsl.model.DivTransform.kt Maven / Gradle / Ivy

Go to download

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.

There is a newer version: 30.19.0
Show newest version
// 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 DivTransform internal constructor(
    @JsonIgnore val pivotX: Property?,
    @JsonIgnore val pivotY: Property?,
    @JsonIgnore val rotation: Property?,
) {

    @JsonAnyGetter
    internal fun properties(): Map {
        return propertyMapOf(
            "pivot_x" to pivotX,
            "pivot_y" to pivotY,
            "rotation" to rotation,
        )
    }
}

fun  TemplateContext.divTransform(): LiteralProperty {
    return value(DivTransform(
        pivotX = null,
        pivotY = null,
        rotation = null,
    ))
}

fun  TemplateContext.divTransform(
    pivotX: Property? = null,
    pivotY: Property? = null,
    rotation: Property? = null,
): LiteralProperty {
    return value(DivTransform(
        pivotX = pivotX,
        pivotY = pivotY,
        rotation = rotation,
    ))
}

fun  TemplateContext.divTransform(
    pivotX: DivPivot? = null,
    pivotY: DivPivot? = null,
    rotation: Double? = null,
): LiteralProperty {
    return value(DivTransform(
        pivotX = optionalValue(pivotX),
        pivotY = optionalValue(pivotY),
        rotation = optionalValue(rotation),
    ))
}

fun CardContext.divTransform(): DivTransform {
    return DivTransform(
        pivotX = null,
        pivotY = null,
        rotation = null,
    )
}

fun CardContext.divTransform(
    pivotX: ValueProperty? = null,
    pivotY: ValueProperty? = null,
    rotation: ValueProperty? = null,
): DivTransform {
    return DivTransform(
        pivotX = pivotX,
        pivotY = pivotY,
        rotation = rotation,
    )
}

fun CardContext.divTransform(
    pivotX: DivPivot? = null,
    pivotY: DivPivot? = null,
    rotation: Double? = null,
): DivTransform {
    return DivTransform(
        pivotX = optionalValue(pivotX),
        pivotY = optionalValue(pivotY),
        rotation = optionalValue(rotation),
    )
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy