@uwdata/mosaic-plot
Version:
A Mosaic-powered plotting framework based on Observable Plot.
12 lines • 712 B
TypeScript
/**
* Return SVG elements that intersect the provided spatial extent.
* @param {SVGSVGElement} svg Parent SVG element to search within.
* @param {SVGElement} el SVG container element to search for points.
* @param {[[number, number], [number, number]]} extent Rectangular brush
* extent within which to select elements. The extent is represented as
* upper-left and bottom-right (x, y) coordinates.
* @returns {Element[]} A list of intersecting SVG elements.
*/
export function intersect(svg: SVGSVGElement, el: SVGElement, extent: [[number, number], [number, number]]): Element[];
export function intersectPath(l: any, t: any, r: any, b: any, el: any): boolean;
//# sourceMappingURL=intersect.d.ts.map