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.
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.
- trackPathrequisstring
- SVG d attribute for the full empty track arc.
- valuePathrequisstring
- SVG d attribute for the filled value arc (empty when value === min).
- valueAnglerequisnumber
- Radian angle where the value arc ends. Useful for needles.
- startAnglerequisnumber
- Radian angle where the gauge arc starts.
- endAnglerequisnumber
- Radian angle where the gauge arc ends.
- outerRadiusrequisnumber
- Outer arc radius in SVG pixels.
- innerRadiusrequisnumber
- Inner arc radius in SVG pixels (outerRadius - thickness).
- centerXrequisnumber
- SVG pixel coordinate of the arc centre (X).
- centerYrequisnumber
- SVG pixel coordinate of the arc centre (Y).
- ratiorequisnumber
- Normalised value in [0..1].
- clampedValuerequisnumber
- 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