use-transformable
Version:
A React library for creating transformable, draggable, resizable, and rotatable elements with multi-selection support
24 lines (20 loc) • 680 B
TypeScript
// Main components
export { TransformableProvider } from './contexts/TransformableContext';
export { TransformableItem } from './components/TransformableItem';
export { SelectionBox } from './components/SelectionBox';
// Hooks
export { useTransformable } from './hooks/useTransformable';
export { useSelectionTool } from './hooks/useSelectionTool';
// Types
export type {
Transformable,
TransformableElement,
Transformation,
DragState,
ResizeState,
RotateState,
SelectionBox as SelectionBoxType
} from './hooks/useTransformable';
export type { TransformableTheme } from './contexts/TransformableContext';
// Themes
export { defaultTheme } from './themes';