Open source Loom alternative. Beautiful, shareable screen recordings.
Rust appcapcossloommacnextjsnextjs15open-sourceossreactrecordrustscreen-capturescreen-recorderscreenshotsolidjstauritauri-apptypescriptvite
feat(screenshot-editor): propagate aspect ratio in editor transforms
Richie McIlroy734d815aced0
diff --git a/apps/desktop/src/routes/screenshot-editor/context.tsx b/apps/desktop/src/routes/screenshot-editor/context.tsxindex e00be5acd..356f2ba20 100644--- a/apps/desktop/src/routes/screenshot-editor/context.tsx+++ b/apps/desktop/src/routes/screenshot-editor/context.tsx@@ -82,7 +82,7 @@ function convertNv12ToRgba(export type ScreenshotProject = ProjectConfiguration;export type { Annotation, AnnotationType };-export type ScreenshotEditorTool = AnnotationType | "select" | "ocr";+export type ScreenshotEditorTool = AnnotationType | "select";export type CurrentDialog =| { type: "createPreset" }@@ -443,8 +443,9 @@ function createScreenshotEditorContext() {imageSize: originalImageSize(),padding: project.background.padding,crop: project.background.crop,+ aspectRatio: project.aspectRatio,}),- ({ frame, imageSize, padding, crop }) => {+ ({ frame, imageSize, padding, crop, aspectRatio }) => {if (!frame || !imageSize) return;const frameSize = { width: frame.width, height: frame.height };@@ -463,6 +464,7 @@ function createScreenshotEditorContext() {imageSize,padding,crop,+ aspectRatio,);const rawAnnotations = unwrap(annotations);