IChartAnnotationGeo
interface
Chart
Resolved SVG geometry for one chart annotation. Produced by computeAnnotationGeometry in chart.composable.ts and consumed directly by OrigamChartCartesian for rendering. Fields are gated per kind.
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.
- kindrequisIChartAnnotation['kind']
- Annotation kind — mirrors the kind declared on IChartAnnotation.
- strokerequisstring
- Resolved CSS colour string for the annotation stroke and fill.
- strokeWidthrequisnumber
- Resolved stroke width in SVG units.
- axrequisnumber
- Anchor pixel X coordinate (tail of arrow / anchor of label / centre of circle / left edge of bracket).
- ayrequisnumber
- Anchor pixel Y coordinate.
- bxrequisnumber
- End pixel X coordinate (head of arrow / right edge of bracket). Equals ax when unused.
- byrequisnumber
- End pixel Y coordinate. Equals ay when unused.
- arrowPointsstring
- Arrowhead polygon points attribute — populated for kind === arrow.
- textstring
- Text content to display alongside the annotation.
- dxrequisnumber
- Resolved horizontal text offset in SVG units.
- dyrequisnumber
- Resolved vertical text offset in SVG units.
- radiusrequisnumber
- Circle radius in SVG units — populated for kind === circle.
- callout{ x: number, y: number, width: number, height: number }
- Callout rounded-rect geometry — populated for kind === label.
- leaderEnd{ x: number, y: number }
- Bottom-centre of the callout box where the leader line terminates — populated for kind === label.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
IChartAnnotationGeo is an internal type — consumed by the chart renderer