mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 08:46:55 +08:00
This commit is contained in:
1 parent
619899e297
commit
e8344e6387
27 files changed
+754
-150
No files matched your search
+2
-2
@@ -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
|
||||
|
||||
Reference in new issue
Block a user