-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathscene-actions.ts
More file actions
44 lines (43 loc) · 1.02 KB
/
scene-actions.ts
File metadata and controls
44 lines (43 loc) · 1.02 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
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: [],
};
}