Toolbars: document that a null on toggles Keep Tools Beside the Canvas

window.toolsBesideCanvas reads on with opt_bool, which treats null like an omitted value. docs/mcp.md and the params text now say that an omitted or null on toggles the setting and that any other non-boolean value is an error.
This commit is contained in:
dotCooCoo
2026-11-08 23:51:40 +07:00
committed by bflatastic
parent 315ff52ffd
commit 4ca33bc7a3
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -465,7 +465,7 @@ pub const UI_COMMANDS: &[(&str, &str, &str, &str)] = &[
"window.toolsBesideCanvas",
"Keep Tools Beside the Canvas",
"",
"{on?: bool} dock the Tools panel between the left-side panels and the canvas (true) or at the window's left edge (false, the default), or toggle (omitted); a floating Tools panel stays floating and docks at the chosen place when it is docked again. Kept with the workspace; a workspace saved without it docks Tools at the window's edge. Returns the new state",
"{on?: bool} dock the Tools panel between the left-side panels and the canvas (true) or at the window's left edge (false, the default), or toggle (omitted or null; any other value is an error); a floating Tools panel stays floating and docks at the chosen place when it is docked again. Kept with the workspace; a workspace saved without it docks Tools at the window's edge. Returns the new state",
),
(
"window.floatTools",
+1 -1
View File
@@ -1698,7 +1698,7 @@ changes neither option. Behavior reference: [View artwork](https://helpx.adobe.c
By default the docked Tools panel sits at the window's left edge, outside any panels docked on the left.
`window.toolsBesideCanvas {on?}` (Window › Toolbars › Keep Tools Beside the Canvas, remote mode, `invoke_menu`)
docks it between those panels and the canvas instead (`on: true`), back at the window's edge (`on: false`), or
toggles it (no `on`), and answers the new state. A value of `on` that is not true or false is an error and changes
toggles it (`on` omitted or null), and answers the new state. Any other value of `on` is an error and changes
nothing. With the setting on, a floating Tools panel docks when it is dropped on the canvas's left edge as well as
on the window's left edge, and `window.panel.dock {panel: "tools"}` docks it beside the canvas. A floating Tools
panel stays floating when the setting changes. The setting is VectorCraft's own layout option, off by default; it is