Skip to content

Commit 3c66a99

Browse files
committed
Highlight interval constrains manual selection.
1 parent 6240dd6 commit 3c66a99

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/d3.timeslider.coffee

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -582,6 +582,10 @@ class TimeSlider extends EventEmitter
582582
start = @options.start if start < @options.start
583583
end = @options.end if end > @options.end
584584

585+
if @highlightInterval?.constrain
586+
start = @highlightInterval.start if start < @highlightInterval.start
587+
end = @highlightInterval.end if end > @highlightInterval.end
588+
585589
d3.select(@element).select('g.brush')
586590
.call(@brush.extent([start, end]))
587591

0 commit comments

Comments
 (0)