---
id: TASK-29
title: Port folk-drawfast shape (collaborative drawing/gesture recognition)
status: To Do
assignee: []
created_date: '2026-02-18 19:50'
labels:
  - shape-port
  - phase-2
  - creative
milestone: m-0
dependencies:
  - TASK-24
references:
  - canvas-website/src/shapes/DrawfastShapeUtil.tsx
priority: low
---

## Description

<!-- SECTION:DESCRIPTION:BEGIN -->
Port DrawfastShapeUtil from canvas-website to rspace-online.

Source: canvas-website/src/shapes/DrawfastShapeUtil.tsx (652 lines)
Target: rspace-online/lib/folk-drawfast.ts

Features to implement:
- Freehand sketch input canvas
- Gesture recognition (circles, lines, rectangles, arrows)
- Shape detection and conversion
- Real-time collaborative drawing
- May use perfect-freehand (already in rspace deps)
<!-- SECTION:DESCRIPTION:END -->

## Acceptance Criteria
<!-- AC:BEGIN -->
- [ ] #1 Freehand drawing works with pointer/touch input
- [ ] #2 Gesture recognition detects basic shapes
- [ ] #3 Drawing state syncs across clients
- [ ] #4 Toolbar button added to canvas.html
<!-- AC:END -->
