π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Inline
Manav Rathic4f08715edec
diff --git a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsxindex 4c7b443c68..b63c6c0c22 100644--- a/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx+++ b/web/apps/photos/src/components/PhotoViewer/ImageEditorOverlay/index.tsx@@ -32,7 +32,6 @@ import {Tabs,Typography,} from "@mui/material";-import { CORNER_THRESHOLD, FILTER_DEFAULT_VALUES } from "constants/photoEditor";import { t } from "i18next";import { AppContext } from "pages/_app";import type { Dispatch, MutableRefObject, SetStateAction } from "react";@@ -52,6 +51,17 @@ interface IProps {closePhotoViewer: () => void;}+const FILTER_DEFAULT_VALUES = {+ brightness: 100,+ contrast: 100,+ blur: 0,+ saturation: 100,+ invert: false,+};++// CORNER_THRESHOLD defines the threshold near the corners of the crop box in which dragging is assumed as not the intention+const CORNER_THRESHOLD = 20;+export const ImageEditorOverlayContext = createContext({} as {canvasRef: MutableRefObject<HTMLCanvasElement>;diff --git a/web/apps/photos/src/constants/photoEditor.ts b/web/apps/photos/src/constants/photoEditor.tsdeleted file mode 100644index 63d4b4f38b..0000000000--- a/web/apps/photos/src/constants/photoEditor.ts+++ /dev/null@@ -1,10 +0,0 @@-export const FILTER_DEFAULT_VALUES = {- brightness: 100,- contrast: 100,- blur: 0,- saturation: 100,- invert: false,-};--// CORNER_THRESHOLD defines the threshold near the corners of the crop box in which dragging is assumed as not the intention-export const CORNER_THRESHOLD = 20;