Skip to main content

Home > blockly > utils > svgPaths > arc

utils.svgPaths.arc() function

Draw an elliptical arc curve. These coordinates are unitless and hence in the user coordinate system. See developer.mozilla.org/en-US/docs/Web/SVG/Attribute/d#Elliptical_Arc_Curve

Signature:

export declare function arc(command: string, flags: string, radius: number, point: string): string;

Parameters

ParameterTypeDescription
commandstringThe command string. Either 'a' or 'A'.
flagsstringThe flag string. See the MDN documentation for a description and examples.
radiusnumberThe radius of the arc to draw.
pointstringThe point to move the cursor to after drawing the arc, specified either in absolute or relative coordinates depending on the command.

Returns:

string

A string of the format 'command radius radius flags point'