We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d9f996a commit bfd0720Copy full SHA for bfd0720
1 file changed
src/lib/constants/dimensions.ts
@@ -43,8 +43,8 @@ export const EVENT = {
43
export const EXPORT_PADDING = G.x4;
44
45
/**
46
- * Round up to next 2G (20px) boundary for symmetric expansion.
47
- * This ensures nodes expand evenly from center.
+ * Round up to next 2G (20px) boundary.
+ * This ensures nodes expand by 1G in each direction (symmetric from center).
48
*/
49
export function snapTo2G(value: number): number {
50
return Math.ceil(value / G.x2) * G.x2;
0 commit comments