mirror of
https://github.com/DeNNiiInc/dbgate.git
synced 2026-04-19 23:35:59 +00:00
springy alg
This commit is contained in:
@@ -461,12 +461,12 @@
|
||||
...current,
|
||||
tables: (current?.tables || []).map(table => {
|
||||
const position = positions.find(x => x.nodeData?.designerId == table.designerId);
|
||||
console.log('POSITION', position);
|
||||
// console.log('POSITION', position);
|
||||
return position
|
||||
? {
|
||||
...table,
|
||||
left: position.x,
|
||||
top: position.y,
|
||||
left: position.x - position.nodeWidth / 2,
|
||||
top: position.y - position.nodeHeight / 2,
|
||||
}
|
||||
: table;
|
||||
}),
|
||||
|
||||
Reference in New Issue
Block a user