Skip to content

Commit

Permalink
docs: screenshot manager notes
Browse files Browse the repository at this point in the history
  • Loading branch information
seankmartin committed Sep 27, 2024
1 parent 970a3f7 commit 0cb7ef2
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions src/util/screenshot_manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,13 @@ async function extractViewportScreenshot(
return croppedBlob;
}

/**
* Manages the screenshot functionality from the viewer viewer.
*
* Responsible for linking up the Python screenshot tool with the viewer, and handling the screenshot process.
* The screenshot manager provides information about updates in the screenshot process, and allows for the screenshot to be taken and saved.
* The screenshot UI menu listens to the signals emitted by the screenshot manager to update the UI.
*/
export class ScreenshotManager extends RefCounted {
screenshotId: number = -1;
screenshotLoadStats: ScreenshotLoadStatistics | null = null;
Expand Down

0 comments on commit 0cb7ef2

Please sign in to comment.