mirror of
https://github.com/xiaoqidun/ofdgo.git
synced 2026-10-29 17:27:08 +08:00
1 parent
5e0da3da28
commit
ee6c9f6a16
82 files changed
+4316
-4310
No files matched your search
@@ -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 编译错误
|
||||
|
||||
Reference in new issue
Block a user