IUseChartGaugeOptions

interface
Composable Options

Strict options consumed by useChartGauge. All getters are thunks so the composable can be reactively driven by props, a store, or computed sources without re-instantiation.

TypeScript

Définition

La définition TypeScript de l'interface telle que trouvée dans le code source d'origam. Cliquez sur l'icône de copie pour copier l'extrait.

typescript

API

Propriétés

Chaque propriété déclarée par cette interface, avec son type, son caractère optionnel et sa valeur par défaut.

value
requis
() => number
Getter returning the current gauge value (un-clamped). The composable clamps to [min..max] internally.
min
requis
() => number
Getter returning the lower bound of the gauge range.
max
requis
() => number
Getter returning the upper bound of the gauge range.
width
requis
() => number
Getter returning the SVG viewBox width in pixels.
height
requis
() => number
Getter returning the SVG viewBox height in pixels.
padding
requis
() => { top: number, right: number, bottom: number, left: number }
Getter returning the SVG inner padding that frees room for endpoint labels.
thickness
() => number
Optional getter overriding the arc stroke thickness in SVG pixels.
startAngle
() => number
Optional getter overriding the arc start angle in radians. Default is -3pi/4.
endAngle
() => number
Optional getter overriding the arc end angle in radians. Default is +3pi/4.

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

Extraits de code prêts à coller utilisant cette interface.

Driving useChartGauge from component props

typescript