Static Functions
12 Sep 20252 minutes to read
Root static functions of Progressbar Component
degreeToLocation
Converts polar coordinates (angle in degrees) to Cartesian coordinates.
| Parameter | Type | Description |
|---|---|---|
| centerX | number |
The x-coordinate of the center point. |
| centerY | number |
The y-coordinate of the center point. |
| radius | number |
The radius from the center point. |
| angleInDegrees | number |
The angle in degrees. |
Returns Pos
getPathArc
Generates an SVG path arc string based on given parameters.
| Parameter | Type | Description |
|---|---|---|
| x | number |
The x-coordinate of the center of the arc. |
| y | number |
The y-coordinate of the center of the arc. |
| radius | number |
The radius of the arc. |
| startAngle | number |
The start angle of the arc in degrees. |
| endAngle | number |
The end angle of the arc in degrees. |
| enableRtl | boolean |
Indicates whether the drawing direction is right-to-left. |
| pieView (optional) | boolean |
Indicates whether the arc should be drawn as a pie slice. |
Returns string