Skip to main content

Home > @jsplumbtoolkit/browser-ui > Surface > mapEventLocation

Surface.mapEventLocation() method

Maps the location of the given event on the page onto the coordinate space of this widget, returning a value representing where the given event appears to be with respect to the origin of the Surface's viewport.

Signature:

mapEventLocation(event: any, doNotAdjustForOffset?: boolean): PointXY;

Parameters

ParameterTypeDescription
eventany
doNotAdjustForOffsetboolean

Returns:

PointXY