requestUpdate method

void requestUpdate([
  1. bool? alwaysQueueUpdate
])

Usage of this method is uncommon and may affect performance, for efficiency do not call this method unless you have a well-defined need. Normally, GoJS updates the diagram automatically, and completeing a transaction ensures an immediate update.

The most common reason to call this method when the HTML Div has changed size but the window has not changed size, and the Diagram needs to be notified of this DOM change. See an example of resizing diagrams here.

Requests that in the near-future the diagram makes sure all GraphObjects are arranged, recomputes the document bounds, updates the scrollbars, and redraws the viewport.

@param {boolean=} alwaysQueueUpdate If true the Diagram will queue another update, even if an update is already occurring. The default value is false. Side effects in an "InitialLayoutCompleted" DiagramEvent listener might necessitate setting this parameter. @since 1.6

Implementation

void requestUpdate([_i2.bool? alwaysQueueUpdate]) {
  _i4.callMethod(
    this,
    'requestUpdate',
    [alwaysQueueUpdate ?? _i5.undefined],
  );
}