IChartMapRoute
interface
Chart
Internal route descriptor produced by the map geometry engine for flight-routes mode. Holds the pre-computed SVG Bezier path, stroke colour, endpoint circles, and country codes.
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.
- indexrequisnumber
- Zero-based index in the series data array.
- drequisstring
- SVG quadratic Bezier path string: M x1,y1 Q cx,cy x2,y2.
- strokerequisstring
- Resolved CSS stroke colour.
- strokeWidthrequisnumber
- Stroke width in SVG pixels.
- fromPointrequis[number, number]
- Centroid [x, y] of the origin country.
- toPointrequis[number, number]
- Centroid [x, y] of the destination country.
- fromrequisstring
- Origin country ISO-3166-1 alpha-2 code.
- torequisstring
- Destination country ISO-3166-1 alpha-2 code.
- valuerequisnumber | undefined
- Optional flow value driving stroke width.
Écosystème
Utilisé par
Composants et composables qui étendent ou consomment cette interface.
Usage
Exemples
Extraits de code prêts à coller utilisant cette interface.
Accessing pre-computed route descriptors