Remove coords from relationship objects

This commit is contained in:
1ilit
2024-04-05 03:02:29 +03:00
parent fa8fdae863
commit 10e0e279cc
19 changed files with 206 additions and 604 deletions

View File

@@ -149,16 +149,12 @@ function TablePanel({ data }) {
return {
...e,
startFieldId: e.startFieldId - 1,
startX: data.x + 15,
startY: data.y + (e.startFieldId - 1) * 36 + 50 + 19,
};
}
if (e.endTableId === data.id && e.endFieldId > field.id) {
return {
...e,
endFieldId: e.endFieldId - 1,
endX: data.x + 15,
endY: data.y + (e.endFieldId - 1) * 36 + 50 + 19,
};
}
return e;