UNPKG

@react-slate/core

Version:

Write interactive CLI apps with React

24 lines 635 B
import Paragraph from '../nodes/Paragraph'; import View from '../nodes/View'; import Text from '../nodes/Text'; import { Layout } from '../../layout'; import { Style } from '../../types'; export declare type Pixel = { char: string; style?: Style; z: number; }; export default class Canvas { pixels: Pixel[][]; width: number; height: number; x: number; y: number; private resize; private fillPixel; fill(node: View | Text | Paragraph, layout: Layout, { parentZ }: { parentZ: number; }): void; mergeChildCanvas(childCanvas: Canvas): void; } //# sourceMappingURL=Canvas.d.ts.map