PolylineProps
Props of Polyline: the [x, y] points it runs through, and paint.
Utilisation
Draw an open sequence of segments.
Ce type est utilisé par Polyline
// Draw an open sequence of segments.
import { Drawing, Polyline } from 'kuito';
<Drawing label="Plays this week" viewBox={[0, 0, 60, 20]} width={120} height={40}>
<Polyline
points={[
[0, 17],
[10, 12],
[20, 15],
[30, 8],
[40, 11],
[50, 5],
[60, 9],
]}
fill="none"
stroke="#e5484d"
strokeWidth={1.5}
strokeLinejoin="round"
/>
</Drawing>;Déclaration du type
export interface PolylineProps extends ShapePaint {
points: readonly (readonly [number, number])[];
}Membres 15
| Nom | Type | Requis | Description |
|---|---|---|---|
points | readonly (readonly [number, number])[] | Oui | — |
fill | string | Non | A hex color, or none; black by default. |
fillRule | FillRule | Non | — |
stroke | string | Non | A hex color, or none, the default. |
strokeWidth | number | Non | In user units; 1 by default. |
strokeLinecap | StrokeLinecap | Non | — |
strokeLinejoin | StrokeLinejoin | Non | — |
strokeMiterlimit | number | Non | — |
strokeDasharray | readonly number[] | Non | Dash and gap lengths in user units, repeated. |
strokeDashoffset | number | Non | — |
opacity | number | Non | Multiplies with its Groups' opacity. |
translateX | number | Non | In user units, then rotate in degrees and scale, about the origin. |
translateY | number | Non | — |
scale | number | Non | — |
rotate | number | Non | — |
Généré depuis les déclarations TypeScript publiques : signatures, props et valeurs par défaut viennent de la source vérifiée, les descriptions de sa JSDoc. Aucune valeur par défaut n'est inventée.