Class: SVGUtils
A collection of handy SVG functions.
Constructors
constructor
• new SVGUtils(): SVGUtils
Returns
Methods
describeArc
▸ describeArc(x
, y
, radius
, startAngle
, endAngle
): string
Creates an arc using an SVG path. From https://stackoverflow.com/questions/5736398/how-to-calculate-the-svg-path-for-an-arc-of-a-circle
Parameters
Name | Type | Description |
---|---|---|
x | number | Arc center x position. |
y | number | Arc center y position. |
radius | number | Arc radius. |
startAngle | number | Arc start angle. |
endAngle | number | Arc end angle. |
Returns
string
The d value for and SVG path element.
Defined in
src/sdk/graphics/svg/SVGUtils.ts:13