RPE Chart Utils
    Preparing search index...

    Function addEventLayer

    • Add a new empty event layer to a line.

      All channels in the new layer are initialized to empty arrays ([]). Events added to this layer are composed additively on top of layer 0 (in most RPE engine versions).

      Parameters

      • chart: RpeJson

        The RPE chart (modified in place).

      • lineIndex: number

        Index of the target line.

      Returns number

      The index of the newly added event layer.

      const layer = addEventLayer(chart, 0);
      addMoveXEvent(chart, 0, layer, 2, 4, 0, 100); // animate on top layer