Skip to content

⚠ Early release: v0.3.2.sophistry is not ready for production use. Until 1.0, any minor release may break the API; expect missing features and bugs too.Stability and versioning

Interaction

Interaction in sophistry writes to the same tracks that animations drive. A draggable (or useMovablePoint) updates a track, constraints (onCircle, snapToGrid, toBounds) shape where it may go, and every prop bound to that track, directly or through derive, follows it. Nodes also take event props (onClick, onDrag, …). Every draggable is also a keyboard-focusable tab stop, so these scenes work without a pointer.

Start with Dragging and input (DragConstraints, then KeyboardAccessible). Cameras, zoom and drill-down moves the view instead of the scene.

Dragging and input

Draggables, constraints, keyboard access, sliders, drop targets and scroll.

Cameras, zoom and drill-down

Pan and zoom, camera flights, inset views, chart zoom and hierarchy drill-down.