Utilização

Draw an open sequence of segments.

Este tipo é usado por Polyline

tsx
// 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>;

Declaração do tipo

ts
export interface PolylineProps extends ShapePaint {
  points: readonly (readonly [number, number])[];
}

Membros 15

NomeTipoObrigatórioDescrição
pointsreadonly (readonly [number, number])[]Sim—
fillstringNãoA hex color, or none; black by default.
fillRuleFillRuleNão—
strokestringNãoA hex color, or none, the default.
strokeWidthnumberNãoIn user units; 1 by default.
strokeLinecapStrokeLinecapNão—
strokeLinejoinStrokeLinejoinNão—
strokeMiterlimitnumberNão—
strokeDasharrayreadonly number[]NãoDash and gap lengths in user units, repeated.
strokeDashoffsetnumberNão—
opacitynumberNãoMultiplies with its Groups' opacity.
translateXnumberNãoIn user units, then rotate in degrees and scale, about the origin.
translateYnumberNão—
scalenumberNão—
rotatenumberNão—
Gerado a partir das declarações TypeScript públicas: assinaturas, props e predefinições vêm da fonte verificada, as descrições da sua JSDoc. Nenhuma predefinição é inventada.