| import { defaultTheme } from './scene-content'; | |
| /** Mock response for POST /api/generate/scene-actions */ | |
| export function createMockSceneActionsResponse(stageId: string) { | |
| return { | |
| success: true, | |
| scene: { | |
| id: 'scene-0', | |
| stageId, | |
| type: 'slide', | |
| title: '光合作用的基本概念', | |
| order: 0, | |
| content: { | |
| type: 'slide', | |
| canvas: { | |
| id: 'slide-0', | |
| viewportSize: 1000, | |
| viewportRatio: 0.5625, | |
| theme: defaultTheme, | |
| elements: [ | |
| { | |
| type: 'text', | |
| id: 'title-el', | |
| content: '光合作用的基本概念', | |
| left: 50, | |
| top: 50, | |
| width: 900, | |
| height: 100, | |
| }, | |
| ], | |
| }, | |
| }, | |
| actions: [ | |
| { | |
| id: 'action-0', | |
| type: 'speech', | |
| agent: 'teacher', | |
| text: '今天我们来学习光合作用的基本概念。', | |
| }, | |
| ], | |
| }, | |
| previousSpeeches: [], | |
| }; | |
| } | |