Optional ReadonlyvalueOptional ReadonlyheightBar height in media pixels. Defaults to 8.
Optional ReadonlywidthExplicit bar width in media pixels. Defaults to the detection rectangle width.
Optional ReadonlyplacementPlacement relative to the detection bounding box. Defaults to top.
Optional ReadonlyoffsetBar offset in media pixels.
Optional ReadonlyoffsetCompatibility shorthand for offset: { y }.
Optional ReadonlybackgroundBackground container fill. Pass null to disable the background.
Optional ReadonlyfillProgress fill style. Pass a resolver for per-class or dynamic colors.
Optional ReadonlyborderOuter border stroke. Pass null or omit to disable.
Optional ReadonlyshouldReturn false to skip rendering a detection in this percentage bar style.
Numeric value resolver in [0, 1]. Defaults to
detection.confidence ?? 0.