- Docusaurus 3.7.0 with both English and Chinese (zh-CN) locales - Full API reference split into structured pages - Homepage with hero, feature cards, and quick start section - GitHub Actions workflow for auto-deployment to GitHub Pages Co-authored-by: Cursor <cursoragent@cursor.com>
965 B
965 B
| id | title |
|---|---|
| interaction-guide | 交互指南 |
🎮 交互指南
- 🔁 初始轮播:区域就绪后,每个区域的虚线轮廓按
initRegionFlashMs(默认 1s)依次闪烁;首次用户触摸时停止。 - 🔍 预览(未选择画笔):长按区域可显示触摸点下连通分量的虚线轮廓;点击黑色区域不显示轮廓。
- 🎨 上色(已选择画笔):点击底部颜色条中的颜色或调用
ref.setPaintColor(或通过initialPaintColor预设),然后点击区域上色;再次点击同一区域会覆盖颜色。 - 💬 无画笔点击:不执行上色;
onPaintCallback触发kind: 'brush_required',携带提示信息和目标区域信息,供宿主显示 Toast/弹窗提示选择颜色。 - ↩️ 撤销:左下按钮或
ref.reset();按上色历史逐步后退。 - 👁️ 与原图对比:右下按钮或
ref.swap();隐藏上色层以显示原图。