pickElement Method

Find the topmost MarkupElement at the specified point in the markup view.

pickElement(pt: XAndY): @svgdotjs/svg.js.Element | undefined

@returns The topmost element, or undefined if no elements under pt.

Parameter Type Description
pt XAndY the point in view coordinates

Returns - @svgdotjs/svg.js.Element | undefined

The topmost element, or undefined if no elements under pt.

Defined in

Last Updated: 04 June, 2026