feat(渲染能力): 完善资源加载与页面渲染,修复注释显隐问题
build.yaml / build (push) Successful in 37s

This commit is contained in:
xiaoqidun committed 2026-09-10 00:04:28 +08:00
1 parent bed08b2c4b
commit 0d83cabecc
8 files changed
+133 -32

No files matched your search

+1 -1
View File
@@ -20,7 +20,7 @@ import "github.com/tdewolff/canvas"
// 入参: ctx 画布上下文, pageID 页面ID, pageH 页面高度
func (r *Renderer) renderAnnotations(ctx *canvas.Context, pageID string, pageH float64) {
for _, annot := range r.Reader.Annots[pageID] {
if len(annot.Appearance.Objects) == 0 {
if annot.Visible != nil && !*annot.Visible {
continue
}
box, _ := ParseBox(annot.Appearance.Boundary)