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
@@ -39,6 +39,15 @@ type stampContentState struct {
// stampContentStateKey 隔离渲染器私有的共享签章数据
type stampContentStateKey struct{}
// patternCellKey 区分共享底纹、颜色、透明度和影响单元语义的页面变换
type patternCellKey struct {
pattern *Pattern
color, space string
index, alpha int
colorAlpha int
matrix [6]float64
}
// resetFonts 使包含文字的签章编译结果随字体配置失效
func (s *stampContentState) resetFonts() {
s.cache = renderCache[stampContentKey, []RasterCommand]{limit: 16 << 20}
@@ -88,15 +97,6 @@ func (c *semanticCompiler) sharedStamp(stamp Stamp, compile func(*semanticCompil
return nil
}
// patternCellKey 区分共享底纹、颜色、透明度和影响单元语义的页面变换
type patternCellKey struct {
pattern *Pattern
color, space string
index, alpha int
colorAlpha int
matrix [6]float64
}
// patternCell 复用同次编译中相同底纹单元,不缓存外部对象的裁剪
// 入参: pattern 底纹画刷, matrix 单元到页面矩阵
// 返回: []RasterCommand 只读单元指令, error 编译错误