shiftEndpoints

open fun shiftEndpoints(shiftStart: Duration, shiftEnd: Duration = shiftStart): THIS

(DOC) Shifts the start and end points of each object.

The start and end can be shifted by different amounts, stretching or squishing the interval. If the interval is empty after the shift, it is removed.

Parameters

shiftStart

duration to shift the starts

shiftEnd

duration to shift the ends; defaults to shiftStart if not provided