delayInitialization method

void delayInitialization([
  1. void func([
    1. Diagram?
    ])?
])

Updates the diagram immediately, then resets initialization flags so that actions taken in the argument function will be considered part of Diagram initialization, and will participate in initial layouts, #initialAutoScale, #initialContentAlignment, etc.

This is useful in situations where you do not wish for the first content added to the diagram to be considered the "initial" content, such as with a Node that represents a "Loading" bar. @param {function(Diagram=)|null=} func an optional function of actions to perform as part of another diagram initialization. @since 1.1

Implementation

void delayInitialization([void Function([_i3.Diagram?])? func]) {
  _i4.callMethod(
    this,
    'delayInitialization',
    [func == null ? _i5.undefined : _i4.allowInterop(func)],
  );
}