RPE Chart Utils
    Preparing search index...

    Class LineIterator

    Fluent iterator that filters and transforms judge lines in an RPE chart.

    lineIterator()
    .named(/^BG/)
    .process(line => { line.zOrder = -10; })
    .run(chart);
    Index

    Constructors

    Methods

    • Match lines by exact name or RegExp.

      Parameters

      • nameOrPattern: string | RegExp

      Returns this

    • Match lines in the given group index.

      Parameters

      • group: number

      Returns this

    • Match lines using a specific texture.

      Parameters

      • texture: string

      Returns this

    • Match lines at the given indices.

      Parameters

      • ...indices: number[]

      Returns this

    • Match lines whose parent (father) is parentIndex.

      Parameters

      • parentIndex: number

      Returns this

    • Match lines with no parent (father === -1).

      Returns this

    • Match lines that have at least one note.

      Returns this

    • Set the group of matched lines.

      Parameters

      • group: number

      Returns this

    • Set the texture of matched lines.

      Parameters

      • texture: string

      Returns this

    • Set the zOrder of matched lines.

      Parameters

      • zOrder: number

      Returns this

    • Set the bpmfactor of matched lines.

      Parameters

      • factor: number

      Returns this

    • Set isCover on matched lines.

      Parameters

      • isCover: 0 | 1

      Returns this

    • Re-parent matched lines to newParent (-1 = root).

      Parameters

      • newParent: number

      Returns this

    • Run the iterator over all lines in the chart.

      Parameters

      Returns number

      The number of lines processed.