Spaces:
Sleeping
Sleeping
Download packages/react-board/src/plugins/board.ts from manhteky123/mindmap: direct link, hf CLI and curl.
- Browser
- Download file 550 Bytes
-
https://huggingface.co/spaces/manhteky123/mindmap/resolve/main/packages/react-board/src/plugins/board.ts
- Command line
-
hf download hf://spaces/manhteky123/mindmap/packages/react-board/src/plugins/board.ts
-
curl -L -o board.ts https://huggingface.co/spaces/manhteky123/mindmap/resolve/main/packages/react-board/src/plugins/board.ts
550 Bytes
| 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; | |
| } | |