DrawingSource
An SVG file read into shapes when the app compiles: import icon from './icon.svg?drawing'.
Utilização
Draw an ellipse.
Este tipo é usado por Drawing
// Draw an ellipse.
import { Drawing, Ellipse } from 'kuito';
<Drawing label="Shadow" viewBox={[0, 0, 40, 20]} width={80} height={40}>
<Ellipse cx={20} cy={10} rx={18} ry={6} fill="#00000033" />
</Drawing>;Declaração do tipo
export type DrawingSource = {
readonly viewBox: readonly [number, number, number, number];
readonly shapes: readonly DrawnShape[];
};Membros 2
| Nome | Tipo | Obrigatório | Descrição |
|---|---|---|---|
viewBoxsó de leitura | readonly [number, number, number, number] | Sim | — |
shapessó de leitura | readonly DrawnShape[] | Sim | — |
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.