UNPKG

@ngenux/ngage-whiteboarding

Version:

A collaborative whiteboard React component with real-time synchronization

14 lines 818 B
import './src/styles.css'; import { Whiteboard } from './src/components/Whiteboard'; import { WhiteboardProvider } from './src/context/WhiteboardContext'; import { useCapture } from './src/hooks/useCapture'; import { cn } from './src/lib/utils'; export { Whiteboard, WhiteboardProvider, useCapture as useWhiteboardStream, cn }; export { isSocketConnected, getSocket, onSocketStatusChange, onSend, onReceive, leaveRoom, disconnectSocket, waitForSocket } from './src/utils/socket-utility'; export type { WhiteboardProps } from './src/components/Whiteboard/index'; export type { ShapeProps, ToolType, StrokeStyle, WhiteboardState, DrawingAction, CompressedData } from './src/types'; export interface WhiteboardProviderProps { children: React.ReactNode; webSocketUrl?: string; } //# sourceMappingURL=index.d.ts.map