feat(转换能力): 修复字体转换与复杂图形处理
build.yaml / build (push) Successful in 41s

This commit is contained in:
xiaoqidun committed 2026-09-28 11:06:00 +08:00
1 parent b5a52dafb8
commit 6d9f1fbe41
4 files changed
+32 -118

No files matched your search

-25
View File
@@ -24,31 +24,6 @@ import (
// 坐标以左上角为原点,单位为毫米,子路径从Move开始,Close回到当前子路径起点
type GeometryPath []GeometrySegment
// stationaryEndpoint 判断贝塞尔曲线端点是否具有零一阶导数
// 返回: bool 是否存在驻点端点
func (p GeometryPath) stationaryEndpoint() bool {
var current, start Point
for _, segment := range p {
switch segment.Verb {
case GeometryMove:
start = segment.End
case GeometryCubic:
if segment.Control1 == current || segment.Control2 == segment.End {
return true
}
case GeometryQuad:
if segment.Control1 == current || segment.Control1 == segment.End {
return true
}
case GeometryClose:
current = start
continue
}
current = segment.End
}
return false
}
// GeometryVerb 表示几何路径指令
type GeometryVerb uint8