23 lines
		
	
	
		
			535 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
			
		
		
	
	
			23 lines
		
	
	
		
			535 B
		
	
	
	
		
			TypeScript
		
	
	
	
	
	
export type ThemeName = 'light' | 'dark';
 | 
						|
 | 
						|
export type Scene = {
 | 
						|
  elements: any[];
 | 
						|
  appState?: Record<string, any>;
 | 
						|
  files?: Record<string, any>;
 | 
						|
};
 | 
						|
 | 
						|
export type ExcalidrawWrapperProps = {
 | 
						|
  initialData?: Scene;
 | 
						|
  readOnly?: boolean;
 | 
						|
  theme?: ThemeName;
 | 
						|
  lang?: string;
 | 
						|
  gridMode?: boolean;
 | 
						|
  zenMode?: boolean;
 | 
						|
};
 | 
						|
 | 
						|
export type SceneChangeDetail = Scene & { source?: 'user' | 'program' };
 | 
						|
 | 
						|
export type ReadyDetail = { apiAvailable: boolean };
 | 
						|
 | 
						|
export type RequestExportDetail = { type: 'png' | 'svg'; withBackground?: boolean };
 |