feat(diagram): fixes for zoom

This commit is contained in:
Jan Prochazka
2022-01-20 18:32:43 +01:00
parent f1ba04cf6b
commit 9b666caf20
3 changed files with 24 additions and 15 deletions

View File

@@ -17,6 +17,7 @@
export let conid;
export let database;
export let table;
export let zoomKoef;
export let onChangeTable;
export let onBringToFront;
export let onSelectTable;
@@ -74,8 +75,8 @@
}
export function move(x, y) {
movingPosition.left += x;
movingPosition.top += y;
movingPosition.left += x / zoomKoef;
movingPosition.top += y / zoomKoef;
}
export function moveEnd() {