PolylineProps
Props of Polyline: the [x, y] points it runs through, and paint.
Verwendung
Draw an open sequence of segments.
Dieser Typ wird verwendet von 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>;Typdeklaration
export interface PolylineProps extends ShapePaint {
points: readonly (readonly [number, number])[];
}Mitglieder 15
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
points | readonly (readonly [number, number])[] | Ja | — |
fill | string | Nein | A hex color, or none; black by default. |
fillRule | FillRule | Nein | — |
stroke | string | Nein | A hex color, or none, the default. |
strokeWidth | number | Nein | In user units; 1 by default. |
strokeLinecap | StrokeLinecap | Nein | — |
strokeLinejoin | StrokeLinejoin | Nein | — |
strokeMiterlimit | number | Nein | — |
strokeDasharray | readonly number[] | Nein | Dash and gap lengths in user units, repeated. |
strokeDashoffset | number | Nein | — |
opacity | number | Nein | Multiplies with its Groups' opacity. |
translateX | number | Nein | In user units, then rotate in degrees and scale, about the origin. |
translateY | number | Nein | — |
scale | number | Nein | — |
rotate | number | Nein | — |
Generiert aus den öffentlichen TypeScript-Deklarationen: Signaturen, Props und Standardwerte stammen aus der geprüften Quelle, Beschreibungen aus deren JSDoc. Kein Standardwert ist erfunden.