IChartGaugeGeometry

interface
Chart

Output of useChartGauge — geometry descriptors for the arc track, the indicator arc, and the label anchor points. All fields are pre-formatted so the SFC renders without computing anything itself.

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.

trackPath
requis
string
SVG d attribute for the full empty track arc.
valuePath
requis
string
SVG d attribute for the filled value arc (empty when value === min).
valueAngle
requis
number
Radian angle where the value arc ends. Useful for needles.
startAngle
requis
number
Radian angle where the gauge arc starts.
endAngle
requis
number
Radian angle where the gauge arc ends.
outerRadius
requis
number
Outer arc radius in SVG pixels.
innerRadius
requis
number
Inner arc radius in SVG pixels (outerRadius - thickness).
centerX
requis
number
SVG pixel coordinate of the arc centre (X).
centerY
requis
number
SVG pixel coordinate of the arc centre (Y).
ratio
requis
number
Normalised value in [0..1].
clampedValue
requis
number
Clamped value in [min..max].

Écosystème

Utilisé par

Composants et composables qui étendent ou consomment cette interface.

Usage

Exemples

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

Consuming geometry in a custom gauge slot

vue