Skip to content

Commit

Permalink
✨ 调整图片自动分组的阈值为0.5
Browse files Browse the repository at this point in the history
  • Loading branch information
Achuan-2 committed Jan 24, 2025
1 parent 84357b2 commit 30427f8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion SlideSCI/Ribbon1.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1104,7 +1104,7 @@ public class ImageGroup
public bool OverlapsWith(PowerPoint.Shape shape)
{
float shapeHeight = shape.Height;
float threshold = shapeHeight * 0.6f; // 80% of shape height
float threshold = shapeHeight * 0.5f; // 50% of shape height
float shapeBottom = shape.Top + shapeHeight;

// Calculate overlap height
Expand Down

0 comments on commit 30427f8

Please sign in to comment.