Home > blockly > BlockSvg > calculateContextMenuLocation
BlockSvg.calculateContextMenuLocation() method
Gets the location in which to show the context menu for this block. Use the location of a click if the block was clicked, or a location based on the block's fields otherwise.
Signature:
protected calculateContextMenuLocation(e: Event): Coordinate;
Parameters
| Parameter | Type | Description |
|---|---|---|
| e | Event |
Returns: