Function: setNodeSettings()
function setNodeSettings(
layout,
view,
ids,
settings,
fallback?
): Layout;
Sets or clears (false → field removed) pinned / collapsed in view. In a named view a
node with no position anywhere gets only the setting (no x/y), as the schema allows; clearing a
setting the default view sets writes an explicit false there, so the view really differs.
The default view needs a position for every entry: a node without one is written at
fallback[id] (the canvas passes the drawn positions), or skipped when there is none.
Parameters
layout
Layout | null
view
string
ids
readonly string[]
settings
fallback?
Record<string, {
x: number;
y: number;
}>