feat(frame): rename the RETRO POLAROID chip to RETRO INSTANT

This commit is contained in:
2026-09-11 10:39:30 +07:00
parent dcb74a7243
commit 6788d51fb4
3 changed files with 5 additions and 5 deletions
+3 -3
View File
@@ -144,7 +144,7 @@ export interface ViewfinderHandle {
flushExposureBias(): Promise<void>;
/**
* Current interactive photo reposition inside a framed library window
* (RETRO POLAROID / WALL FRAME): scale s (>=1) and the visible window-center
* (RETRO INSTANT / WALL FRAME): scale s (>=1) and the visible window-center
* as 0..1 fractions of the photo's cover plane (the area that fills the
* window at 1x). Null when no framed window is showing or the photo is
* unzoomed. App passes it to the export engine so the saved file shows
@@ -847,7 +847,7 @@ const Viewfinder = forwardRef<ViewfinderHandle, ViewfinderProps>(function Viewfi
() => createSynchronizable<number[]>([0, 0, 0, 0, 0, 0, 0, 0.5, 0.5]),
[]
);
// RETRO POLAROID on the live camera is NOT drawn in the frame pipeline: that
// RETRO INSTANT on the live camera is NOT drawn in the frame pipeline: that
// canvas is an offscreen surface in frame-pixel space which RNSkia later
// cover-fits onto the view, so frame-space geometry overflows the screen and
// cannot be aligned with the dp-space overlays. The camera just renders the
@@ -2249,7 +2249,7 @@ const Viewfinder = forwardRef<ViewfinderHandle, ViewfinderProps>(function Viewfi
const cinemaOn = cinemaEffect != null && !!cinemaParams;
const useShaderPass = !!imageFitRect && ((toneEffect != null && toneOn) || cinemaOn);
// RETRO POLAROID (library): the whole picture is contain-fitted into the
// RETRO INSTANT (library): the whole picture is contain-fitted into the
// card's photo window — nothing is masked or cropped, and the card is
// centered on the black background like a physical print. The window keeps
// the photo aspect ratio, so fit="fill" never distorts.
+1 -1
View File
@@ -425,7 +425,7 @@ export async function processAndExportPhoto(
}
}
// 7. Frame. RETRO POLAROID is not a border drawn on the photo: the whole
// 7. Frame. RETRO INSTANT is not a border drawn on the photo: the whole
// processed picture is composited, uncropped, into the window of a bigger
// off-white card (real print proportions, see frameUtils) — the export IS
// the card, with the photo scaled to the window so it keeps ~WIN_W of the
+1 -1
View File
@@ -9,7 +9,7 @@ export interface FrameDefinition {
export const FRAMES: FrameDefinition[] = [
{ id: 'none', name: 'NO FRAME' },
{ id: 'classic-white', name: 'CLASSIC BORDER' },
{ id: 'polaroid', name: 'RETRO POLAROID' },
{ id: 'polaroid', name: 'RETRO INSTANT' },
{ id: 'wallframe', name: 'WALL FRAME' },
];