feat(命名空间): 规范声明顺序,修复命名空间
build.yaml / build (push) Successful in 49s

This commit is contained in:
xiaoqidun committed 2026-10-12 11:20:30 +08:00
1 parent 17a9a03361
commit c4b81155a9
19 files changed
+410 -142

No files matched your search

+3 -3
View File
@@ -61,6 +61,9 @@ type Renderer struct {
TransparentBackground bool
}
// RendererOption 渲染器配置选项
type RendererOption func(*Renderer)
// deviceLineWidth 按设备分辨率计算描边宽度,零线宽为一像素,正线宽至少为两像素
// 入参: width 页面空间线宽,单位为毫米
// 返回: float64 设备描边宽度,单位为毫米
@@ -75,9 +78,6 @@ func (r *Renderer) deviceLineWidth(width float64) float64 {
return width
}
// RendererOption 渲染器配置选项
type RendererOption func(*Renderer)
// ClearCache 释放派生字体、图片、模板与后端缓存,不改变文档和渲染配置
func (r *Renderer) ClearCache() {
r.backendStates = make(map[any]any)