pickElement Method

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

pickElement(pt: Readonly<WritableXAndY>): undefined | @svgdotjs/svg.js.Element

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

Parameter Type Description
pt Readonly<WritableXAndY> the point in view coordinates

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

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

Defined in

Last Updated: 03 May, 2024