redesign capture and settings
This commit is contained in:
@@ -199,6 +199,7 @@ export const api = {
|
||||
export: (request: ExportRequest) => invoke<ExportResult>("export", { request }),
|
||||
revealInExplorer: (path: string) => invoke<void>("reveal_in_explorer", { path }),
|
||||
showOverlay: () => invoke<void>("show_overlay"),
|
||||
openWindowPicker: () => invoke<void>("open_window_picker"),
|
||||
hideOverlay: () => invoke<void>("hide_overlay"),
|
||||
setOverlaySize: (width: number, height: number) =>
|
||||
invoke<void>("set_overlay_size", { width, height }),
|
||||
@@ -210,6 +211,7 @@ export const api = {
|
||||
getOverlayRect: () => invoke<CaptureRect>("get_overlay_rect"),
|
||||
extractThumbnails: (fps: number) =>
|
||||
invoke<string[]>("extract_thumbnails", { fps }),
|
||||
previewDisplay: (x: number, y: number) => invoke<ArrayBuffer>("preview_display", { x, y }),
|
||||
renderPreview: (format: Format, fps: number, target_bytes: number, gif_budget_mode?: GifBudgetMode, gif_dither?: GifDither, gif_colors?: number) =>
|
||||
invoke<string>("render_preview", { request: { format, fps, target_bytes, gif_budget_mode, gif_dither, gif_colors } }),
|
||||
estimateGifParams: (input: {
|
||||
@@ -240,6 +242,7 @@ export const api = {
|
||||
defaultOutputPath: (format: Format) =>
|
||||
invoke<string>("default_output_path", { format }),
|
||||
openUrl: (url: string) => invoke<void>("open_url", { url }),
|
||||
checkForUpdates: () => invoke<UpdateInfo | null>("check_for_updates"),
|
||||
onUpdateAvailable: (handler: (info: UpdateInfo) => void): Promise<UnlistenFn> =>
|
||||
listen<UpdateInfo>("update-available", (e) => handler(e.payload)),
|
||||
onHotkey: (handler: (kind: "start" | "stop" | "pause") => void): Promise<UnlistenFn> =>
|
||||
|
||||
Reference in New Issue
Block a user