OverlapSpan
Constructors
OverlapSpan(path,time1,time2)→OverlapSpan
Properties
.pathPath
The path that this span applies to.
.time1number
The start time of the span. This value is always less than or equal to
time2 and within [0, path.endTime()].
.time2number
The end time of the span. This value is always greater than or equal to
time1. For open paths, this is within [0, path.endTime()]. For closed
paths, this may exceed path.endTime() for spans across the wrap point.
Methods
.clone()→OverlapSpan
Returns a copy of this span.
.isPointLike()→boolean
Returns true if this span's times are equal.
A span of a path that overlaps another path.
For closed paths, spans may wrap around the wrap point (where the path closes). In this case,
time2can exceedpath.endTime()by up topath.anchors.length. For example, a span from time 10 to time 16 on a closed path with 13 anchors represents a span that starts at time 10, crosses the wrap point at time 13, and ends at time 3 (16 - 13).