@antv/g2
Version:
the Grammar of Graphics in Javascript
15 lines (12 loc) • 344 B
text/typescript
import { BrushHighlight } from './brushHighlight';
export function brushXRegion(x, y, x1, y1, extent) {
const [, minY, , maxY] = extent;
return [x, minY, x1, maxY];
}
export function BrushXHighlight(options) {
return BrushHighlight({
...options,
brushRegion: brushXRegion,
selectedHandles: ['handle-e', 'handle-w'],
});
}