-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathtypes.ts
More file actions
32 lines (30 loc) · 859 Bytes
/
Copy pathtypes.ts
File metadata and controls
32 lines (30 loc) · 859 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
export enum PictureMode {
COVER = 'cover', // Alt.Stretch
CONTAIN = 'contain', // Zoom
FILL = 'fill', // Stretch
NONE = 'none', // Center
}
export enum WindowStyle {
NORMAL = 'normal',
FULLSCREEN = 'fullscreen',
}
export interface ContextMenuProps {
onClose: () => void;
devices: MediaDeviceInfo[];
currentDeviceId?: string;
onSwitchCamera: (deviceId: string) => void;
pictureMode: PictureMode;
onSetPictureMode: (mode: PictureMode) => void;
windowStyle: WindowStyle;
onSetWindowStyle: (style: WindowStyle) => void;
flipHorizontal: boolean;
onToggleFlipHorizontal: () => void;
flipVertical: boolean;
onToggleFlipVertical: () => void;
onCopyFrame: () => void;
onDelayedCopyFrame: () => void;
onZoomIn: () => void;
onZoomOut: () => void;
shortcutsEnabled: boolean;
onToggleShortcuts: () => void;
}