Let the GPS and custom watermarks be rotated

This commit is contained in:
2026-09-10 15:56:06 +07:00
parent 2911dd57f0
commit 6595e5cbc1
4 changed files with 81 additions and 19 deletions
+13
View File
@@ -64,6 +64,10 @@ interface AdjustmentPanelProps {
onCancelCustomWm: () => void;
// Bumped by a double-tap on the mark: put the caret back in the text input.
wmEditNonce: number;
// WATERMARK tab ROTATE chip: clockwise degrees (0/90/180/270) applied to both
// the GPS lines and the custom text, in the preview and in the export.
wmRotation: number;
onRotateWm: () => void;
}
interface ChipDef {
@@ -146,6 +150,8 @@ export default function AdjustmentPanel({
onCancelCustomWm,
wmEditNonce,
onToggleRotation,
wmRotation,
onRotateWm,
}: AdjustmentPanelProps) {
// Double-tap on the mark in the viewfinder bumps wmEditNonce -> focus the
// input again so the text can be retyped after the keyboard was dismissed.
@@ -524,6 +530,13 @@ export default function AdjustmentPanel({
active: customWm.enabled,
onPress: () => onUpdateCustomWm({ ...customWm, enabled: !customWm.enabled }),
})}
{(useGeotag || customWm.enabled) &&
renderChip({
key: 'wm-rotate',
label: `ROTATE ${wmRotation}°`,
active: wmRotation !== 0,
onPress: onRotateWm,
})}
{customWm.enabled &&
renderChip({
key: 'custom-wm-accept',