From 95647be6105560f9f74e90268d30438d8ec449c7 Mon Sep 17 00:00:00 2001 From: zhh Date: Fri, 26 Sep 2025 13:20:26 +0800 Subject: [PATCH] =?UTF-8?q?feat=EF=BC=88=E6=96=B0=E5=8A=9F=E8=83=BD?= =?UTF-8?q?=EF=BC=89:=20=20fix=EF=BC=88=E4=BF=AE=E5=A4=8Dbug=EF=BC=89:desi?= =?UTF-8?q?gn=E7=9A=84=E5=AE=BD=E5=BA=A6=E8=87=AA=E9=80=82=E5=BA=94-?= =?UTF-8?q?=E5=AE=BD=E5=BA=A6=E7=AE=97=E6=B3=95=E4=BF=AE=E5=A4=8D=20refact?= =?UTF-8?q?or=EF=BC=88=E9=87=8D=E6=9E=84=EF=BC=89:=20test(=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E6=B5=8B=E8=AF=95):?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/service/design_fast/utils/synthesis_item.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/app/service/design_fast/utils/synthesis_item.py b/app/service/design_fast/utils/synthesis_item.py index 79e53df..d46795e 100644 --- a/app/service/design_fast/utils/synthesis_item.py +++ b/app/service/design_fast/utils/synthesis_item.py @@ -207,7 +207,9 @@ def update_base_size_priority(layers, size): if info['name'] == 'mannequin': new_height = info['image'].height max_x = max(x_list) - new_width = max_x - min_x * 2 + + # x坐标中最小偏移量的绝对值 + 最大偏移量 + new_width = max_x + abs(min_x) # 更新坐标 for info in layers: info['adaptive_position'] = (info['position'][0], info['position'][1] - min_x)