fix: enforce orthographic top bottom subject views

This commit is contained in:
2026-05-25 09:27:31 +08:00
parent 8e60c7dff9
commit f8c51b5ef6
5 changed files with 47 additions and 7 deletions

View File

@@ -2019,6 +2019,11 @@ function selectProductItemsForRow(
}
function subjectViewLabel(view: string) {
const labels: Record<string, string> = {
top: "正投影俯视图",
bottom: "正投影仰视图",
}
if (labels[view]) return labels[view]
return SUBJECT_ASSET_VIEWS.find((item) => item.value === view)?.label ?? view
}
@@ -2034,6 +2039,8 @@ function subjectViewRoleHint(view: string) {
bust_left_45: "肩颈左前近景、手部调整、佩戴贴合",
bust_right_45: "肩颈右前近景、手部调整、佩戴贴合",
back_neck_detail: "后颈肩背特写、触点位置、产品贴合",
top: "正投影俯视、无透视、无倾斜、产品顶部轮廓",
bottom: "正投影仰视、无透视、无倾斜、产品底部结构",
}
return hints[view] ?? "主体参考视角"
}
@@ -2050,6 +2057,8 @@ function subjectViewPromptHint(view: string) {
bust_left_45: "left three-quarter neck-and-shoulder close-up, hand adjustment, wearable fit",
bust_right_45: "right three-quarter neck-and-shoulder close-up, hand adjustment, wearable fit",
back_neck_detail: "back-neck and upper-back detail, contact-pad position, product fit",
top: "orthographic top view, straight down from above, no perspective, no tilt, no three-quarter angle",
bottom: "orthographic bottom view, straight up at underside, no perspective, no tilt, no three-quarter angle",
}
return hints[view] ?? "subject reference view"
}