Fix photo overlay positioning and rotation detection
This commit is contained in:
@@ -22,6 +22,7 @@ import {
|
||||
FooterConfig,
|
||||
FooterField,
|
||||
loadFooterConfig,
|
||||
OverlayPosition,
|
||||
pickAndSaveLogo,
|
||||
PhotoResolution,
|
||||
saveFooterConfig,
|
||||
@@ -36,6 +37,7 @@ const BUILT_IN_LABELS: Record<string, string> = {
|
||||
|
||||
const RESOLUTION_OPTIONS: PhotoResolution[] = ['low', 'medium', 'high'];
|
||||
const QUALITY_OPTIONS = ['0.5', '0.7', '0.85', '1.0'];
|
||||
const POSITION_OPTIONS: OverlayPosition[] = ['bottom-left', 'bottom-right', 'top-left', 'top-right'];
|
||||
|
||||
export function PhotoSettingsScreen() {
|
||||
const [config, setConfig] = useState<FooterConfig | null>(null);
|
||||
@@ -182,6 +184,18 @@ export function PhotoSettingsScreen() {
|
||||
<Text style={styles.hint}>
|
||||
Valores bajos reducen el tamaño del archivo pero pueden verse peor.
|
||||
</Text>
|
||||
|
||||
<View style={{ height: 12 }} />
|
||||
|
||||
<ChipSelect
|
||||
label="Posición del sello"
|
||||
value={config.overlayPosition}
|
||||
options={POSITION_OPTIONS}
|
||||
onChange={(v) => void save({ ...config, overlayPosition: v })}
|
||||
/>
|
||||
<Text style={styles.hint}>
|
||||
Esquina de la imagen donde aparecerán los datos.
|
||||
</Text>
|
||||
</View>
|
||||
|
||||
{/* ── Campos ── */}
|
||||
|
||||
Reference in New Issue
Block a user