mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-10-24 09:46:59 -06:00
Layers: the panel options command describes when Locate Selected Objects opens nothing
The params text of ui.layersPanelOptions and the doc comment on PanelOptions::locate_selected said that, with the option on, the panel opens the rows around any object selected outside it and scrolls to its row. When Show Layers Only, a search or the filter leaves the object without a row, the panel opens no rows for it and scrolls as with the option off. Both texts now describe that case, as docs/mcp.md does.
This commit is contained in:
@@ -553,7 +553,7 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
|
||||
"ui.layersPanelOptions",
|
||||
"Panel Options…",
|
||||
"",
|
||||
"{} open the Layers panel's Panel Options: dialog `layersPanelOptions`, fields layersOnly, locateSelected (Locate Selected Objects, off by default: when the last selected object changes outside the panel, on the canvas or by a command, the panel opens the layers and groups around it and scrolls to its row, as after layer.locate, without highlighting the row; a change made during a drag is located when the drag ends), rowSize (small|medium|large|other), otherSize (12–100 pt), thumbLayers, thumbGroups, thumbObjects; OK applies them (kept with the UI state)",
|
||||
"{} open the Layers panel's Panel Options: dialog `layersPanelOptions`, fields layersOnly, locateSelected (Locate Selected Objects, off by default: when the last selected object changes outside the panel, on the canvas or by a command, the panel opens the layers and groups around it and scrolls to its row, as after layer.locate, without highlighting the row; when Show Layers Only, a search or the filter leaves the object without a row, the panel opens no rows for it and scrolls as with the option off; a change made during a drag is located when the drag ends), rowSize (small|medium|large|other), otherSize (12–100 pt), thumbLayers, thumbGroups, thumbObjects; OK applies them (kept with the UI state)",
|
||||
),
|
||||
(
|
||||
"ui.layersExpand",
|
||||
|
||||
@@ -68,7 +68,8 @@ pub struct PanelOptions {
|
||||
pub layers_only: bool,
|
||||
/// Locate Selected Objects (off by default): when the last selected object changes outside the
|
||||
/// panel, on the canvas or by a command, the panel opens the rows around it and scrolls to its
|
||||
/// row, as after Locate Object, without highlighting the row.
|
||||
/// row, as after Locate Object, without highlighting the row. When Show Layers Only, a search or
|
||||
/// the filter leaves the object without a row, the panel opens no rows for it.
|
||||
pub locate_selected: bool,
|
||||
/// Row height in points: [`ROW_SMALL`], [`ROW_MEDIUM`], [`ROW_LARGE`] or another (12–100).
|
||||
pub row_size: f32,
|
||||
|
||||
Reference in New Issue
Block a user