-
Notifications
You must be signed in to change notification settings - Fork 2k
Expand file tree
/
Copy pathscene-content.ts
More file actions
38 lines (35 loc) · 944 Bytes
/
scene-content.ts
File metadata and controls
38 lines (35 loc) · 944 Bytes
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
import type { SlideTheme } from '../../../lib/types/slides';
import { mockOutlines } from './scene-outlines';
/** Default theme matching lib/types/slides.ts:SlideTheme */
const defaultTheme: SlideTheme = {
backgroundColor: '#ffffff',
themeColors: ['#5b9bd5', '#ed7d31', '#a5a5a5', '#ffc000', '#4472c4'],
fontColor: '#333333',
fontName: 'Microsoft Yahei',
};
/** Mock response for POST /api/generate/scene-content */
export const mockSceneContentResponse = {
success: true,
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,
},
],
},
},
effectiveOutline: mockOutlines[0],
};
export { defaultTheme };