fix: edit bouquet photos in-place with recipe sync and area masks

* fix: edit bouquet photos in-place with recipe sync and area masks

* fix: silence MapPanel state_referenced_locally warning
This commit is contained in:
Chaewon Lee
2026-06-15 09:16:06 +09:00
committed by GitHub
parent e0f6058ff3
commit 063a193396
15 changed files with 605 additions and 101 deletions

View File

@@ -1,6 +1,8 @@
/** @typedef {import('../flowerFlow/jobStore.js').MoodAnalysis} MoodAnalysis */
/** @typedef {import('../flowerFlow/jobStore.js').BouquetRecipe} BouquetRecipe */
import { formatStrictBouquetImagePrompt } from '../../flowerFlow/bouquetImageFormat.js';
/** @returns {MoodAnalysis} */
export function mockMoodAnalysis() {
return {
@@ -56,15 +58,7 @@ export function mockRecipe(userInput = {}) {
/** @param {BouquetRecipe} recipe */
export function mockImagePrompt(recipe) {
return [
'Generate a realistic florist-style bouquet image.',
'Use real flowers only.',
`Use ${recipe.mainFlowers.join(', ')} as the main flower, mixed with ${recipe.subFlowers.join(', ')}, and ${recipe.greenery.join(', ')}.`,
`Use a ${recipe.colors.join(', ')} color palette.`,
`Wrap it with ${recipe.wrapping}.`,
'White background, soft natural lighting, Korean florist style.',
'Vertical portrait composition with a 3:4 aspect ratio (width:height). Frame the full bouquet without cropping.'
].join(' ');
return formatStrictBouquetImagePrompt(recipe);
}
/** @param {string} [label] */