feat(文件拆分): 拆分几何三维基础能力
build.yaml / build (push) Successful in 48s

This commit is contained in:
xiaoqidun committed 2026-10-14 00:44:44 +08:00
1 parent 64f9ec4241
commit 0be872691d
76 files changed
+1926 -1307

No files matched your search

+5 -2
View File
@@ -14,7 +14,10 @@
package ofdgo
import "math"
import (
basegeom "github.com/xiaoqidun/ofdgo/internal/base/geom"
"math"
)
// reflectShdPosition 获取镜像周期内的位置
// 入参: position 渐变位置
@@ -68,7 +71,7 @@ func (c *semanticCompiler) shadingClip(path GeometryPath, paint Paint, matrix Ma
if box.W <= 0 {
return nil, nil
}
clip, err := c.geometry.Transform(geometryRectangle(box), axis)
clip, err := c.geometry.Transform(GeometryPath(basegeom.Rectangle(box)), axis)
if err != nil {
return nil, err
}