Update spacing

This commit is contained in:
Andrew Kingston 2024-10-03 11:24:22 +01:00
parent f7318b15d4
commit 72f1db8c10
No known key found for this signature in database
1 changed files with 2 additions and 2 deletions

View File

@ -13,13 +13,13 @@ import { get } from "svelte/store"
// Gets the position of the basic role
export const getBasicPosition = bounds => ({
x: bounds.x - GridResolution * 4 - NodeWidth,
x: bounds.x - NodeHSpacing - NodeWidth,
y: bounds.y + bounds.height / 2 - NodeHeight / 2,
})
// Gets the position of the admin role
export const getAdminPosition = bounds => ({
x: bounds.x + bounds.width + GridResolution * 4,
x: bounds.x + bounds.width + NodeHSpacing,
y: bounds.y + bounds.height / 2 - NodeHeight / 2,
})