Skip to content

ui_utils

UI utils

UiGraphMetadata dataclass

UI metadata for graph.

Source code in client/ayon_workflow/workflow_editor/ui_utils.py
13
14
15
16
17
18
@dataclass
class UiGraphMetadata:
    """ UI metadata for graph.
    """
    # Camera position within the canvas (x, y, zoom)
    viewport_framing: Optional[ViewportFraming] = field(default=None)

UiNodeMetadata dataclass

UI metadata for node.

Source code in client/ayon_workflow/workflow_editor/ui_utils.py
21
22
23
24
25
26
27
28
29
30
@dataclass
class UiNodeMetadata:
    """ UI metadata for node.
    """
    # Node position (x, y)
    position: Optional[Tuple[int, int]] = None
    # RGBA
    color: Optional[Tuple[int, int, int, int]] = None
    # Node size within the canvas in pixel (width, height)
    size: Optional[Tuple[int, int]] = None