Skip to main content

Home > blockly > utils > svgPaths > moveTo

utils.svgPaths.moveTo() function

Move the cursor to the given position without drawing a line. The coordinates are absolute. These coordinates are unitless and hence in the user coordinate system. See developer.mozilla.org/en-US/docs/Web/SVG/Tutorial/Paths#Line_commands

Signature:

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

Parameters

ParameterTypeDescription
xnumberThe absolute x coordinate.
ynumberThe absolute y coordinate.

Returns:

string

A string of the format ' M x,y '