Home > @jsplumbtoolkit/browser-ui > Surface > mapEventLocation
#
Surface.mapEventLocation() methodMaps 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;
#
ParametersParameter | Type | Description |
---|---|---|
event | any | |
doNotAdjustForOffset | boolean |
Returns:
PointXY