Utilização

Draw a separator in a canvas.

Este tipo é usado por Line

tsx
// Draw a separator in a canvas.
import { Drawing, Line } from 'kuito';

<Drawing label="Divider" viewBox={[0, 0, 100, 2]} width={200} height={4}>
  <Line x1={0} y1={1} x2={100} y2={1} stroke="#e5e7eb" strokeWidth={2} strokeDasharray={[4, 2]} />
</Drawing>;

Declaração do tipo

ts
export interface LineProps extends ShapePaint {
  x1?: number;
  y1?: number;
  x2?: number;
  y2?: number;
}

Membros 18

NomeTipoObrigatórioDescrição
x1numberNão—
y1numberNão—
x2numberNão—
y2numberNão—
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.