mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 15:06:46 +08:00
This commit is contained in:
1 parent
46e6d5b622
commit
a1abe55726
15 files changed
+199
-1121
No files matched your search
@@ -21,13 +21,10 @@ import (
|
||||
"github.com/tdewolff/canvas"
|
||||
)
|
||||
|
||||
// canvasNativeStroke 判断描边是否仍由Canvas提供,组合几何不改变矢量描边编码
|
||||
// canvasNativeStroke 判断描边是否由Canvas提供
|
||||
// 入参: geometry 几何后端
|
||||
// 返回: bool 是否采用原生描边
|
||||
func canvasNativeStroke(geometry GeometryBackend) bool {
|
||||
if combined, ok := geometry.(GGGeometryBackend); ok {
|
||||
return canvasNativeStroke(combined.GeometryBackend)
|
||||
}
|
||||
_, ok := geometry.(CanvasBackend)
|
||||
return ok
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user