refactor(classroom): unify whiteboard rendering to WhiteboardCanvas
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

Replace inline SVG whiteboard rendering in SceneRenderer with the
dedicated WhiteboardCanvas component, gaining chart/latex support
and eliminating 27 lines of duplicated rendering logic.
This commit is contained in:
iven
2026-04-06 10:53:21 +08:00
parent 828be3cc9e
commit 38e7c7bd9b
2 changed files with 13 additions and 39 deletions

View File

@@ -1,6 +1,6 @@
# P3-02: 白板统一渲染方案
> **状态**: 方案已制定,待新会话推进实现
> **状态**: ✅ 已完成 (2026-04-06)
> **优先级**: P3 (非阻塞)
> **依赖**: ClassroomPlayer 重构
@@ -50,11 +50,12 @@ SceneRenderer 的 `processAction()` 产出的 `{ type, data: SceneAction }` 格
#### Step 4: 验证
- [ ] ClassroomPlayer 中白板绘制正常text/shape
- [ ] Chart 渲染正常bar/line
- [ ] LaTeX 渲染正常
- [ ] 自动推进动作序列正常
- [ ] 白板清空 (`whiteboard_clear`) 正常
- [x] ClassroomPlayer 中白板绘制正常text/shape
- [x] Chart 渲染正常bar/line
- [x] LaTeX 渲染正常
- [x] 自动推进动作序列正常
- [x] 白板清空 (`whiteboard_clear`) 正常
- [x] TypeScript 类型检查通过
## 3. 影响范围