Home > blockly > utils > svgMath > wsToScreenCoordinates
utils.svgMath.wsToScreenCoordinates() function
Converts workspace coordinates to screen coordinates.
Signature:
export declare function wsToScreenCoordinates(ws: WorkspaceSvg, workspaceCoordinates: Coordinate): Coordinate;
Parameters
| Parameter | Type | Description |
|---|---|---|
| ws | WorkspaceSvg | The workspace to get the coordinates out of. |
| workspaceCoordinates | Coordinate | The workspace coordinates to be converted to screen coordinates. |
Returns:
The screen coordinates.