G-code Preview — API Reference
    Preparing search index...
    • The number of segments completed at time ms — i.e. the count of segments whose cumulative END time is ≤ ms (binary search). 0 before the first segment finishes; count at/after the end. This is exactly a scrub cut position (segments [0, result) are done), so it maps straight to a segment-index scrub.

      Parameters

      • cumulativeMs: Float64Array
      • ms: number

      Returns number