UNPKG

react-canvaskit

Version:

A React implementation of the Skia-CanvasKit drawing library.

11 lines (10 loc) 448 B
import type { FontMgr as SkFontManager, Paragraph as SkParagraph } from 'canvaskit-wasm'; import { CkElementCreator, CkElementProps, ParagraphStyle } from './SkiaElementTypes'; export interface CkParagraphProps extends ParagraphStyle, CkElementProps<SkParagraph> { layout: number; fontManager: SkFontManager; x?: number; y?: number; children?: string; } export declare const createCkParagraph: CkElementCreator<'ck-paragraph'>;