add:高精度直线拉直

This commit is contained in:
CJK_mkp
2025-06-29 14:15:20 +08:00
parent 6da13c4fc0
commit 60c6e0632d
6 changed files with 179 additions and 14 deletions
+2
View File
@@ -56,6 +56,8 @@ namespace Ink_Canvas
public bool AutoStraightenLine { get; set; } = true; // 是否启用直线自动拉直
[JsonProperty("autoStraightenLineThreshold")]
public int AutoStraightenLineThreshold { get; set; } = 30; // 直线自动拉直的长度阈值(像素)
[JsonProperty("highPrecisionLineStraighten")]
public bool HighPrecisionLineStraighten { get; set; } = true; // 是否启用高精度直线拉直
[JsonProperty("lineEndpointSnapping")]
public bool LineEndpointSnapping { get; set; } = true; // 是否启用直线端点吸附
[JsonProperty("lineEndpointSnappingThreshold")]