I can drag and drop items into the canvas
I
This commit is contained in:
@@ -6,11 +6,32 @@ from core.settings_management import SettingsManager
|
||||
|
||||
logger = logging.getLogger("WorkflowsSettings")
|
||||
|
||||
# Data structures
|
||||
@dataclass
|
||||
class WorkflowComponent:
|
||||
id: str
|
||||
type: str
|
||||
x: int
|
||||
y: int
|
||||
title: str
|
||||
description: str
|
||||
|
||||
|
||||
@dataclass
|
||||
class Connection:
|
||||
id: str
|
||||
from_id: str
|
||||
to_id: str
|
||||
|
||||
@dataclass
|
||||
class WorkflowsDesignerSettings:
|
||||
workflow_name: str
|
||||
|
||||
|
||||
@dataclass
|
||||
class WorkflowsDesignerState:
|
||||
components: dict[str, WorkflowComponent] = field(default_factory=dict)
|
||||
connections: list[Connection] = field(default_factory=list)
|
||||
component_counter = 0
|
||||
|
||||
@dataclass
|
||||
class WorkflowsSettings:
|
||||
|
||||
Reference in New Issue
Block a user