Merge pull request #824 from redonion23/fix/753-layer-viewer-zoom

Layer panel: zoom and pan; View zoom acts on the focused viewer; Roto Brush hint (#753)
This commit is contained in:
Brandon Thomas
2026-10-12 03:23:03 -04:00
6 changed files with 391 additions and 45 deletions
+10
View File
@@ -659,6 +659,14 @@ pub struct UiState {
/// Layer panel View: number of effects rendered (None = through the last Paint effect).
#[serde(default)]
pub layer_view: Option<usize>,
/// Layer panel magnification in points per layer pixel (None = fit), set by its
/// magnification menu, View ▸ Zoom In / Zoom Out while it is focused, the mouse wheel and the
/// Zoom tool.
#[serde(default)]
pub layer_zoom: Option<f32>,
/// Layer panel pan offset in points from the centred position (Hand tool, Space-drag).
#[serde(default)]
pub layer_pan: [f32; 2],
/// Wiggler / Smoother / Motion Sketch settings.
#[serde(default)]
pub anim_tools: AnimToolsState,
@@ -722,6 +730,8 @@ impl Default for UiState {
tracker_source: None,
layer_panel: None,
layer_view: None,
layer_zoom: None,
layer_pan: [0.0, 0.0],
anim_tools: AnimToolsState::default(),
mini_flowchart: None,
flowchart: Default::default(),