Stay organized with collections Save and categorize content based on your preferences.

blockly > utils > svgPaths > point

utils.svgPaths.point() function

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.


export declare function point(x: number, y: number): string;


Parameter Type Description
x number The x coordinate.
y number The y coordinate.



A string of the format ' x,y '