style(代码风格): 整理声明顺序与字体模块
build.yaml / build (push) Successful in 51s

This commit is contained in:
xiaoqidun committed 2026-09-28 15:17:45 +08:00
1 parent 5e0da3da28
commit ee6c9f6a16
82 files changed
+4316 -4310

No files matched your search

+9 -9
View File
@@ -16,15 +16,6 @@ package ofdgo
import "image/color"
// ColorStop 保存渐变区间位置及预乘RGBA颜色节点
type ColorStop struct {
Offset float64
Color color.RGBA
}
// PaintKind 区分无画刷、纯色、轴向渐变、径向渐变、图案和网格渐变
type PaintKind uint8
const (
PaintNone PaintKind = iota
PaintSolid
@@ -34,6 +25,15 @@ const (
PaintMesh
)
// ColorStop 保存渐变区间位置及预乘RGBA颜色节点
type ColorStop struct {
Offset float64
Color color.RGBA
}
// PaintKind 区分无画刷、纯色、轴向渐变、径向渐变、图案和网格渐变
type PaintKind uint8
// Paint 保存后端无关的颜色、渐变和图案,不修改源节点
type Paint struct {
Kind PaintKind