PathProps
Props of Path: its path data and paint.
Verwendung
Draw a vector path
Dieser Typ wird verwendet von Path
import { Drawing, Path } from 'kuito';
export function Example() {
return (
<Drawing viewBox={[0, 0, 100, 100]} width={120} height={120} label="Vector example">
<Path d="M10 50 L35 75 L90 15" fill="none" stroke="#2563eb" strokeWidth={8} />
</Drawing>
);
}Typdeklaration
export interface PathProps extends ShapePaint {
/** SVG path data: `M0 0L10 10Z`. */
d: string;
}Mitglieder 15
| Name | Typ | Erforderlich | Beschreibung |
|---|---|---|---|
d | string | Ja | SVG path data: M0 0L10 10Z. |
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.