Segment
12 Sep 20252 minutes to read
Progressbar Segment
Methods
createCircularSegment
Creates a circular segment element for the progress bar.
| Parameter | Type | Description |
|---|---|---|
| progress | ProgressBar |
The progress bar control. |
| id | string |
The id of the segment element. |
| x | number |
The x-coordinate of the center of the circle. |
| y | number |
The y-coordinate of the center of the circle. |
| r | number |
The radius of the circle. |
| value | number |
The value determining the angle of the segment. |
| opacity | number |
The opacity of the segment. |
| thickness | number |
The thickness of the segment. |
| totalAngle | number |
The total angle covered by the progress. |
| progressWidth | number |
The width of the progress. |
Returns Element
createLinearSegment
Creates a linear segment element for the progress bar.
| Parameter | Type | Description |
|---|---|---|
| progress | ProgressBar |
The progress bar control. |
| id | string |
The id of the segment element. |
| width | number |
The width of the segment. |
| opacity | number |
The opacity of the segment. |
| thickness | number |
The thickness of the segment. |
| progressWidth | number |
The width of the progress. |
Returns Element