feat: GraphNode and GraphEdge revisited + lasso selection

This commit is contained in:
dextmorgn
2025-08-28 15:41:16 +02:00
parent 2ba9ebffc4
commit 3c74b3d544
39 changed files with 974 additions and 579 deletions

View File

@@ -151,15 +151,8 @@ async def get_sketch_nodes(
nodes = [
{
"id": str(record["id"]),
"labels": record["labels"],
"data": record["data"],
"label": record["data"].get("label", "Node"),
"type": "custom",
"caption": record["data"].get("label", "Node"),
"position": {
"x": random.random() * 1000,
"y": random.random() * 1000,
},
"idx": idx,
}
for idx, record in enumerate(nodes_result)
@@ -168,11 +161,9 @@ async def get_sketch_nodes(
rels = [
{
"id": str(record["id"]),
"type": "custom",
"source": str(record["source"]),
"target": str(record["target"]),
"data": record["data"],
"caption": record["type"],
"label": record["type"],
}
for record in rels_result