Progress Element

PropTypeRequiredExampleValue RangeDescription
progressTypestringtrue--The type of progress indicator (e.g., bar, circle).
trackColorstringfalse--The color of the progress track, in hex format.
trackAlphanumberfalse-0 - 1The transparency level of the progress track. 1 represents full opacity, and 0 represents full transparency.
railColorstringfalse--The color of the progress rail (background), in hex format.
railAlphanumberfalse-0 - 1The transparency level of the progress rail. 1 represents full opacity, and 0 represents full transparency.
trackHeightnumberfalse--The height of the progress track, in pixels.
borderColorstringfalse--The color of the progress border, in hex format.
borderAlphanumberfalse-0 - 1The transparency level of the progress border. 1 represents full opacity, and 0 represents full transparency.
borderWidthnumberfalse--The width of the progress border, in pixels.
labelsarrayfalse--An array of label objects for the progress indicator.

Note: The progressType determines the visual style of the progress indicator, while trackColor and railColor define the appearance of the progress and background respectively.

progressElement.json
1{ 2 "id": "progress-element-id", 3 "type": "Progress", 4 "start": 0, 5 "duration": 10, 6 "trackIndex": 0, 7 "x": 100, 8 "y": 100, 9 "progressType": "bar", 10 "trackColor": "#4CAF50", 11 "trackAlpha": 1, 12 "railColor": "#E0E0E0", 13 "railAlpha": 1, 14 "trackHeight": 20, 15 "borderColor": "#000000", 16 "borderAlpha": 1, 17 "borderWidth": 1, 18 "labels": [ 19 { "text": "0%", "position": 0 }, 20 { "text": "100%", "position": 1 } 21 ] 22} 23