@tikoci/centrs
    Preparing search index...

    Function rebaseDefects

    • Shift every defect by base — the move that carries a block body's body-relative regions into document space.

      Always returns a new ARRAY, so a caller may accumulate into the result without touching the input; at base === 0 the elements themselves are shared, which is safe because a Defect is never mutated after construction.

      Parameters

      • defects: readonly Defect[]
      • base: number

      Returns Defect[]