开源白板工具(SaaS),一体化白板,包含思维导图、流程图、自由画等。All in one open-source whiteboard tool with mind, flowchart, freehand and etc.
import type { RenderComponentRef } from '@plait/common';
import {
PlaitElement,
PlaitOperation,
Viewport,
Selection,
type PlaitTheme
} from '@plait/core';
export interface ReactBoard {
renderComponent: <T extends object>(
children: React.ReactNode,
container: Element | DocumentFragment,
props: T
) => RenderComponentRef<T>;
}
export interface BoardChangeData {
children: PlaitElement[];
operations: PlaitOperation[];
viewport: Viewport;
selection: Selection | null;
theme: PlaitTheme;
}