Function: point()
function point(x, y): string;
Defined in: packages/blockly/core/utils/svg_paths.ts:19
Create a string representing the given x, y pair. It does not matter whether the coordinate is relative or absolute. The result has leading and trailing spaces, and separates the x and y coordinates with a comma but no space.
Parameters
| Parameter | Type | Description |
|---|---|---|
x | number | The x coordinate. |
y | number | The y coordinate. |
Returns
string
A string of the format ' x,y '