addLayerBefore method

Diagram addLayerBefore(
  1. Layer layer,
  2. Layer existingLayer
)

Adds a layer to the list of layers before a specified layer. This method can also re-order layers. @param {Layer} layer the new Layer to add or existing Layer to move in Z-order. @param {Layer} existingLayer the other Layer in this Diagram which should come just after the new or moved layer. @see #addLayer @see #addLayerAfter @see #removeLayer @return {Diagram} this Diagram

Implementation

_i3.Diagram addLayerBefore(
  _i3.Layer layer,
  _i3.Layer existingLayer,
) =>
    _i4.callMethod(
      this,
      'addLayerBefore',
      [
        layer,
        existingLayer,
      ],
    );