@@ -119,6 +119,9 @@ async copyScreenshotToClipboard(path: string) : Promise<null> {
119119async copyImageToClipboard ( data : number [ ] ) : Promise < null > {
120120 return await TAURI_INVOKE ( "copy_image_to_clipboard" , { data } ) ;
121121} ,
122+ async copyRenderedScreenshotToClipboard ( ) : Promise < null > {
123+ return await TAURI_INVOKE ( "copy_rendered_screenshot_to_clipboard" ) ;
124+ } ,
122125async openFilePath ( path : string ) : Promise < null > {
123126 return await TAURI_INVOKE ( "open_file_path" , { path } ) ;
124127} ,
@@ -158,6 +161,9 @@ async generateZoomSegmentsFromClicks() : Promise<ZoomSegment[]> {
158161async generateKeyboardSegments ( groupingThresholdMs : number , lingerDurationMs : number , showModifiers : boolean , showSpecialKeys : boolean ) : Promise < KeyboardTrackSegment [ ] > {
159162 return await TAURI_INVOKE ( "generate_keyboard_segments" , { groupingThresholdMs, lingerDurationMs, showModifiers, showSpecialKeys } ) ;
160163} ,
164+ async renderScreenshotForExport ( ) : Promise < number [ ] > {
165+ return await TAURI_INVOKE ( "render_screenshot_for_export" ) ;
166+ } ,
161167async openPermissionSettings ( permission : OSPermission ) : Promise < void > {
162168 await TAURI_INVOKE ( "open_permission_settings" , { permission } ) ;
163169} ,
@@ -179,8 +185,8 @@ async uploadScreenshot(screenshotPath: string) : Promise<UploadResult> {
179185async createScreenshotEditorInstance ( ) : Promise < SerializedScreenshotEditorInstance > {
180186 return await TAURI_INVOKE ( "create_screenshot_editor_instance" ) ;
181187} ,
182- async updateScreenshotConfig ( config : ProjectConfiguration , save : boolean ) : Promise < null > {
183- return await TAURI_INVOKE ( "update_screenshot_config" , { config, save } ) ;
188+ async updateScreenshotConfig ( config : ProjectConfiguration , save : boolean , revision : number ) : Promise < null > {
189+ return await TAURI_INVOKE ( "update_screenshot_config" , { config, save, revision } ) ;
184190} ,
185191async getRecordingMeta ( path : string , fileType : FileType ) : Promise < RecordingMetaWithMetadata > {
186192 return await TAURI_INVOKE ( "get_recording_meta" , { path, fileType } ) ;
0 commit comments