mirror of
https://github.com/divkit/divkit.git
synced 2026-06-06 20:07:59 +00:00
573f9d62b8
autoreformat while build
47 lines
996 B
Python
47 lines
996 B
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_point
|
|
|
|
|
|
# Element shadow.
|
|
class DivShadow(BaseDiv):
|
|
|
|
def __init__(
|
|
self, *,
|
|
offset: div_point.DivPoint,
|
|
alpha: typing.Optional[float] = None,
|
|
blur: typing.Optional[int] = None,
|
|
color: typing.Optional[str] = None,
|
|
):
|
|
super().__init__(
|
|
alpha=alpha,
|
|
blur=blur,
|
|
color=color,
|
|
offset=offset,
|
|
)
|
|
|
|
alpha: typing.Optional[float] = Field(
|
|
description="Shadow transparency.",
|
|
)
|
|
blur: typing.Optional[int] = Field(
|
|
description="Blur intensity.",
|
|
)
|
|
color: typing.Optional[str] = Field(
|
|
format="color",
|
|
description="Shadow color.",
|
|
)
|
|
offset: div_point.DivPoint = Field(
|
|
description="Shadow offset.",
|
|
)
|
|
|
|
|
|
DivShadow.update_forward_refs()
|