pencil.js / progress-bar / ProgressBarOptions
Interface: ProgressBarOptions
Defined in: progress-bar.ts:9
Progress bar options
Extends
Properties
| Property | Type | Description | Overrides | Inherited from | Defined in |
|---|---|---|---|---|---|
cap? | CanvasLineCap | How lines end | - | WidgetOptions.cap | component.ts:85 |
clip | | Component<ComponentOptions> | null | Other component used to clip the rendering | - | WidgetOptions.clip | container.ts:26 |
cursor | string | null | Cursor to use when hover | - | WidgetOptions.cursor | component.ts:81 |
dashed | boolean | number[] | Should the line be dashed, you can also specify the dash pattern (ex: [4, 4] or Component.dashes.dots) | - | WidgetOptions.dashed | component.ts:79 |
fill | Style | Color used to fill, set to null for transparent | - | WidgetOptions.fill | component.ts:73 |
foreground | Style | Color of the foreground elements | - | WidgetOptions.foreground | widget.ts:13 |
join | CanvasLineJoin | How lines join between them | - | WidgetOptions.join | component.ts:83 |
opacity | number | null | Opacity level from 0 to 1 (multiplied with its parents opacity, null means 1) | - | WidgetOptions.opacity | container.ts:16 |
origin | | string | PositionDefinition | Relative offset (Rectangle based shapes also accept named origins like "center") | - | WidgetOptions.origin | component.ts:87 |
rotation | number | Rotation ratio from 0 to 1 (clockwise) | - | WidgetOptions.rotation | container.ts:18 |
rotationCenter | PositionDefinition | Center of rotation relative to this position | - | WidgetOptions.rotationCenter | container.ts:20 |
scale | | number | PositionDefinition | Scaling ratio or a pair of value for horizontal and vertical scaling | - | WidgetOptions.scale | container.ts:22 |
shadow | Partial<ShadowOptions> | Set of options to set a shadow | - | WidgetOptions.shadow | component.ts:89 |
shown | boolean | Is shown | - | WidgetOptions.shown | container.ts:14 |
speed | number | Transition speed between two value (0 mean no change, 1 mean instant change) | - | - | progress-bar.ts:15 |
stroke | Style | Color used to stroke, set to null for transparent | - | WidgetOptions.stroke | component.ts:75 |
strokeWidth | number | Stroke line thickness in pixels | - | WidgetOptions.strokeWidth | component.ts:77 |
value | number | Initial value (between 0 and 1) | WidgetOptions.value | - | progress-bar.ts:11 |
width | number | Size of the bar | - | - | progress-bar.ts:13 |
zIndex | number | Depth ordering | - | WidgetOptions.zIndex | container.ts:24 |
