base
base ¶
DomoWorkflow_Tile
dataclass
¶
DomoWorkflow_Tile(
id: str,
tile_type: str,
index: int,
x: float = 0.0,
y: float = 0.0,
title: str | None = None,
dimensions: dict | None = None,
data: dict = dict(),
raw: dict = dict(),
)
Base class for all workflow designElement tiles.
from_dict
classmethod
¶
from_dict(
obj: dict[str, Any], index: int = 0
) -> DomoWorkflow_Tile
Dispatch to the registered subclass by type field.
Source code in src/crew_dcs/classes/DomoWorkflow/tile/base.py
53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 | |
to_dict ¶
to_dict() -> dict[str, Any]
Serialize back to the designElement wire shape.
Source code in src/crew_dcs/classes/DomoWorkflow/tile/base.py
86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 | |
DomoWorkflow_Tile_Unknown
dataclass
¶
DomoWorkflow_Tile_Unknown(
id: str,
tile_type: str,
index: int,
x: float = 0.0,
y: float = 0.0,
title: str | None = None,
dimensions: dict | None = None,
data: dict = dict(),
raw: dict = dict(),
)
register_tile_type ¶
register_tile_type(tile_type: str)
Decorator that registers a DomoWorkflow_Tile subclass for a tile type string.
Source code in src/crew_dcs/classes/DomoWorkflow/tile/base.py
20 21 22 23 24 25 26 27 | |