ui-canvas: Fit Artboard on Screen leaves 30 pt around the board on every side

This commit is contained in:
bflatastic
2026-11-23 17:11:22 +07:00
parent 08ada730d3
commit 879b8f82a8
+2 -3
View File
@@ -23,9 +23,8 @@ use egui::Pos2;
/// The rotation step of the Rotate View commands, in degrees.
const ROTATE_STEP_DEG: f64 = 15.0;
/// The room Fit Artboard on Screen leaves around the board, in points: at the sides, and above and below (the board's
/// name sits above it).
const ARTBOARD_MARGIN: Vec2 = Vec2::new(30.0, 40.0);
/// The room Fit Artboard on Screen leaves around the board on each side, in points.
const ARTBOARD_MARGIN: Vec2 = Vec2::new(30.0, 30.0);
/// The room Fit Layers on Screen leaves around the layers' bounds, in points.
const LAYERS_MARGIN: Vec2 = Vec2::new(20.0, 20.0);