Function: mouseToSvg()
function mouseToSvg(
e,
svg,
matrix
): DOMPoint;
Defined in: packages/blockly/core/browser_events.ts:219
Returns the converted coordinates of the given mouse event. The origin (0,0) is the top-left corner of the Blockly SVG.
Parameters
| Parameter | Type | Description |
|---|---|---|
e | MouseEvent | Mouse event. |
svg | SVGSVGElement | SVG element. |
matrix | DOMMatrix | null | Inverted screen CTM to use. |
Returns
DOMPoint
Object with .x and .y properties.