Skip to main content

locate()

gets the id of an item from the specified HTML event or tag

locate(event: Event): IBaseShape;

Parameters:

event: Event - a native event object

Returns:

The id of the shape that the event/tag relates to.

Example

const id = diagram.locate(event);