UNPKG

@react-slate/core

Version:

Write interactive CLI apps with React

25 lines 810 B
import ContainerBase from './ContainerBase'; import View from './View'; import Paragraph from './Paragraph'; import { Node as LayoutNode, Layout } from '../../layout'; import { EventListener } from '../../events'; import { Style, OnLayoutHook, RectData, MouseEvent } from '../../types'; export default class Base<C> { parent?: ContainerBase<any> | View | Paragraph; children: C[]; layoutNode: LayoutNode; eventListener: EventListener<MouseEvent>; style?: Style; onLayoutHook?: OnLayoutHook; rect?: RectData; isAbsolute: boolean; zIndex: number; testID?: string; constructor(); private isWithinRect; notifyOnLayoutHook(layout: Layout, { offsetX, offsetY }: { offsetX: number; offsetY: number; }): void; } //# sourceMappingURL=Base.d.ts.map