Files
wehub-resource-sync c48612c494
CI / E2E Tests (push) Has been cancelled
CI / Lint, Typecheck & Unit Tests (push) Has been cancelled
Docs Build / Build docs site (push) Has been cancelled
Publish @openmaic packages / Build, validate & publish (push) Has been cancelled
chore: import upstream snapshot with attribution
2026-07-13 13:03:23 +08:00

39 lines
926 B
TypeScript

import type { SlideTheme } from '@openmaic/dsl';
import { mockOutlines } from './scene-outlines';
/** Default theme matching @openmaic/dsl 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 };