refactor(重构提升): 修复裁剪并优化转换渲染
build.yaml / build (push) Successful in 47s

This commit is contained in:
xiaoqidun committed 2026-10-06 23:09:49 +08:00
1 parent 619899e297
commit e8344e6387
27 files changed
+754 -150

No files matched your search

+2 -2
View File
@@ -95,11 +95,11 @@ func NewInk(points []InkPoint, width float64, pressure bool) (PathObject, error)
path[i].End.X -= boundary.X
path[i].End.Y -= boundary.Y
}
object, err := geometryClipPath(path)
data, err := path.OFD()
if err != nil {
return PathObject{}, err
}
object.Boundary = editorBoxString(boundary)
object := PathObject{Boundary: editorBoxString(boundary), AbbreviatedData: data}
stroke := !filled
object.Fill, object.Stroke = &filled, &stroke
object.Cap, object.Join, object.LineWidth = "Round", "Round", width