getOffsets<T> method
Calculates snapping offsets based on Offsetd pixel positions.
extent: The current state of the sheet.- Returns a sorted set of snapping offsets, where each offset is clamped within the valid range of the sheet's configuration.
Implementation
@override
SplayTreeSet<double> getOffsets<T>(MultiStateSheetExtent<T> extent) =>
SplayTreeSet.of(offsets.map((offset) =>
clampDouble(offset, extent.minOffset, extent.safeMaxOffset)));