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.

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.

kind
requis
IChartAnnotation['kind']
Annotation kind — mirrors the kind declared on IChartAnnotation.
stroke
requis
string
Resolved CSS colour string for the annotation stroke and fill.
strokeWidth
requis
number
Resolved stroke width in SVG units.
ax
requis
number
Anchor pixel X coordinate (tail of arrow / anchor of label / centre of circle / left edge of bracket).
ay
requis
number
Anchor pixel Y coordinate.
bx
requis
number
End pixel X coordinate (head of arrow / right edge of bracket). Equals ax when unused.
by
requis
number
End pixel Y coordinate. Equals ay when unused.
arrowPoints
string
Arrowhead polygon points attribute — populated for kind === arrow.
text
string
Text content to display alongside the annotation.
dx
requis
number
Resolved horizontal text offset in SVG units.
dy
requis
number
Resolved vertical text offset in SVG units.
radius
requis
number
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

typescript