Crate drafftink_core

Crate drafftink_core 

Source
Expand description

DrafftInk Core Library

Platform-agnostic core data structures and logic for the DrafftInk whiteboard.

Re-exports§

pub use camera::Camera;
pub use canvas::Canvas;
pub use collaboration::CollaborationManager;
pub use crdt::CrdtDocument;
pub use input::InputState;
pub use selection::ManipulationState;
pub use selection::MultiMoveState;
pub use snap::SnapMode;
pub use snap::SnapResult;
pub use snap::SnapTarget;
pub use snap::SnapTargetKind;
pub use snap::snap_point;
pub use snap::snap_to_grid;
pub use snap::GRID_SIZE;
pub use sync::ConnectionState;
pub use sync::SyncEvent;
pub use sync::PlatformWebSocket;
pub use widget::WidgetState;
pub use widget::WidgetManager;
pub use widget::EditingKind;
pub use widget::Handle;
pub use widget::HandleKind;
pub use widget::HandleShape;

Modules§

camera
Camera module for pan/zoom transforms.
canvas
Canvas document and state management.
collaboration
Collaboration management for real-time multi-user editing.
crdt
CRDT integration using Loro for collaborative editing.
input
Input state management for mouse/touch/keyboard events.
selection
Selection and manipulation handle system.
shapes
Shape definitions for the whiteboard.
snap
Snap functionality for aligning points to grid and shapes.
storage
Storage abstraction for persistence.
sync
WebSocket client for collaboration.
tools
Tool system for the whiteboard.
widget
Widget system for managing interactive shape states.