addLayerAfter method

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

Adds a layer to the list of layers after 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 before the new or moved layer. @see #addLayer @see #addLayerBefore @see #removeLayer @return {Diagram} this Diagram

Implementation

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