Skip to main content

Function: mergeViewDefaults()

function mergeViewDefaults(layout, viewName?): ViewLayoutOverride;

The effective layout of a view: the default view ("*") overlaid with the named view. Node and edge entries merge field by field (the named view wins); the viewport comes from the named view if it has one. Unknown view names resolve to the default view. Returns a fresh object. A node that only a named view mentions, without x/y, has no saved position: the renderer places it (auto-layout) and applies the other fields.

Parameters​

layout​

Layout

viewName?​

string = DEFAULT_VIEW

Returns​

ViewLayoutOverride