Skip to main content

Function: needsElk()

function needsElk(model, options?): boolean;

Whether layoutDiagram(model, { ...options, engine: 'auto' }) would load ELK at all: true when some connected component of the free (unsaved) nodes has refs and either more than AUTO_DAGRE_MAX_NODES nodes or a TableGroup with members in it. The canvas calls it to skip the async ELK pass (and the worker download) entirely. options.engine is ignored.

Parameters​

model​

DiagramModel

options?​

LayoutOptions = {}

Returns​

boolean