fix(diy): 贴纸尺寸归一化画布空间 + 坐标钳制 + 旧数据读端兼容
修正工作流批次②(问题1 重叠误报): - addSticker 按 mask 短边 60% 归一化 width/height(契约实现注记: width/height 语义 = 画布显示像素),渲染/碰撞/WCD 三方自洽 - 拖动与缩放后坐标钳制在 [0, mask尺寸-显示尺寸],杜绝负坐标/拖出画布 - 读取端兼容:旧数据 width > mask 尺寸时按 mask 等比归一化(不做存量迁移) - canvas-image/preview-image 补 transform-origin: top left, 缩放原点与碰撞盒(左上角)语义一致 Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user