mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
573f9d62b8
autoreformat while build
68 lines
2.0 KiB
Python
68 lines
2.0 KiB
Python
# Generated code. Do not modify.
|
|
# flake8: noqa: F401, F405, F811
|
|
|
|
from __future__ import annotations
|
|
|
|
import enum
|
|
import typing
|
|
|
|
from pydivkit.core import BaseDiv, Field
|
|
|
|
from . import div_animation_interpolator
|
|
|
|
|
|
# Scale animation.
|
|
class DivScaleTransition(BaseDiv):
|
|
|
|
def __init__(
|
|
self, *,
|
|
type: str = "scale",
|
|
duration: typing.Optional[int] = None,
|
|
interpolator: typing.Optional[div_animation_interpolator.DivAnimationInterpolator] = None,
|
|
pivot_x: typing.Optional[float] = None,
|
|
pivot_y: typing.Optional[float] = None,
|
|
scale: typing.Optional[float] = None,
|
|
start_delay: typing.Optional[int] = None,
|
|
):
|
|
super().__init__(
|
|
type=type,
|
|
duration=duration,
|
|
interpolator=interpolator,
|
|
pivot_x=pivot_x,
|
|
pivot_y=pivot_y,
|
|
scale=scale,
|
|
start_delay=start_delay,
|
|
)
|
|
|
|
type: str = Field(default="scale")
|
|
duration: typing.Optional[int] = Field(
|
|
description="Animation duration in milliseconds.",
|
|
)
|
|
interpolator: typing.Optional[div_animation_interpolator.DivAnimationInterpolator] = Field(
|
|
description="Transition speed nature.",
|
|
)
|
|
pivot_x: typing.Optional[float] = Field(
|
|
description=(
|
|
"Relative coordinate `X` of the point that won\'t change its "
|
|
"position in case ofscaling."
|
|
),
|
|
)
|
|
pivot_y: typing.Optional[float] = Field(
|
|
description=(
|
|
"Relative coordinate `Y` of the point that won\'t change its "
|
|
"position in case ofscaling."
|
|
),
|
|
)
|
|
scale: typing.Optional[float] = Field(
|
|
description=(
|
|
"Value of the scale from which the element starts appearing "
|
|
"or at which itfinishes disappearing."
|
|
),
|
|
)
|
|
start_delay: typing.Optional[int] = Field(
|
|
description="Delay in milliseconds before animation starts.",
|
|
)
|
|
|
|
|
|
DivScaleTransition.update_forward_refs()
|