Let the GPS and custom watermarks be rotated
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user