mirror of
https://github.com/storytold/vectorcraft.git
synced 2026-11-11 02:19:56 -06:00
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:
+1
-1
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user