Layer panel: zoom and pan; View zoom acts on the focused viewer; Roto Brush hint in the Composition panel (#753)
- The Layer panel keeps its own magnification and pan (`ui.layer_zoom`, `ui.layer_pan`) with the Composition panel's magnification menu in its footer; the wheel / pinch zooms around the pointer, the Hand tool, Space-drag and a middle-drag pan, and the Zoom tool clicks zoom in (Alt: out). Navigation never paints or makes Roto Brush strokes. - View > Zoom In / Zoom Out / Fit / Actual Size act on the Layer panel while it is focused, else on the Composition viewer as before. - A Roto Brush click or drag in the Composition panel says the brush works in the Layer panel; double-clicking a layer there with a Roto Brush tool opens it in the Layer panel (as After Effects). - Opening another layer resets the Layer panel to Fit. Tests: crates/ui-egui/tests/ui_layer_panel_zoom.rs. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
co-authored by
Claude Opus 5.5
parent
9a7d3e7699
commit
afdb958199
@@ -655,6 +655,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,
|
||||
@@ -717,6 +725,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(),
|
||||
|
||||
Reference in New Issue
Block a user