mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
45 lines
1.1 KiB
Python
45 lines
1.1 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, Expr, Field
|
|
|
|
from . import div_size_unit
|
|
|
|
|
|
# Fixed coordinates of the central point of the gradient.
|
|
class DivRadialGradientFixedCenter(BaseDiv):
|
|
|
|
def __init__(
|
|
self, *,
|
|
type: str = "fixed",
|
|
unit: typing.Optional[typing.Union[Expr, div_size_unit.DivSizeUnit]] = None,
|
|
value: typing.Optional[typing.Union[Expr, int]] = None,
|
|
**kwargs: typing.Any,
|
|
):
|
|
super().__init__(
|
|
type=type,
|
|
unit=unit,
|
|
value=value,
|
|
**kwargs,
|
|
)
|
|
|
|
type: str = Field(default="fixed")
|
|
unit: typing.Optional[typing.Union[Expr, div_size_unit.DivSizeUnit]] = Field(
|
|
description=(
|
|
"Unit of measurement. To learn more about units of size "
|
|
"measurement, see [Layoutinside the "
|
|
"card](../../layout.dita)."
|
|
),
|
|
)
|
|
value: typing.Union[Expr, int] = Field(
|
|
description="Coordinate value.",
|
|
)
|
|
|
|
|
|
DivRadialGradientFixedCenter.update_forward_refs()
|