d3-brush icon indicating copy to clipboard operation
d3-brush copied to clipboard

Brush Wrapping

Open lemmingapex opened this issue 4 years ago • 0 comments

Is there any way to get a brush to wrap from one side to the other? When the brush is dragged to the edge, I want to see the potion that would normally leave the extent, re-appear on the other side. I though I might be lucky by using the modulus operator and modifying the following example: https://observablehq.com/@d3/brush-snapping

Would the implementation I describe require that more than one brush be used and coordinated together?

For reference, I am attempting to use the brush to create a looped animation. Any examples of where I might find something this? Any help or information is appreciated.

lemmingapex avatar Oct 19 '20 19:10 lemmingapex