magiclogger - v0.1.0
    Preparing search index...

    Function optimizeStyleRanges

    Style extraction and reconstruction utilities for MAGIC schema. These functions enable parsing styled text and reconstructing it from MAGIC log entries.

    • Merges overlapping or adjacent style ranges with the same style.

      Parameters

      • styles: StyleRange[]

        Array of style ranges

      Returns StyleRange[]

      Optimized array of style ranges