Update spacing
This commit is contained in:
parent
f7318b15d4
commit
72f1db8c10
|
@ -13,13 +13,13 @@ import { get } from "svelte/store"
|
||||||
|
|
||||||
// Gets the position of the basic role
|
// Gets the position of the basic role
|
||||||
export const getBasicPosition = bounds => ({
|
export const getBasicPosition = bounds => ({
|
||||||
x: bounds.x - GridResolution * 4 - NodeWidth,
|
x: bounds.x - NodeHSpacing - NodeWidth,
|
||||||
y: bounds.y + bounds.height / 2 - NodeHeight / 2,
|
y: bounds.y + bounds.height / 2 - NodeHeight / 2,
|
||||||
})
|
})
|
||||||
|
|
||||||
// Gets the position of the admin role
|
// Gets the position of the admin role
|
||||||
export const getAdminPosition = bounds => ({
|
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,
|
y: bounds.y + bounds.height / 2 - NodeHeight / 2,
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue