feat(编辑能力): 优化水印选择,完善注解编辑
build.yaml / build (push) Successful in 37s

This commit is contained in:
xiaoqidun committed 2026-09-18 02:19:06 +08:00
1 parent ff06840bcd
commit ed11ade4e8
11 files changed
+468 -37

No files matched your search

+8
View File
@@ -23,11 +23,19 @@ func (r *Renderer) renderAnnotations(ctx *canvas.Context, pageID string, pageH f
if annot.Visible != nil && !*annot.Visible {
continue
}
groups, grouped := ctx.Renderer.(interface {
beginAnnotation(string) bool
endObject()
})
grouped = grouped && groups.beginAnnotation(annot.ID)
box, _ := ParseBox(annot.Appearance.Boundary)
ctm := Matrix{a: 1, d: 1, e: box.X, f: box.Y}
for i := range annot.Appearance.Objects {
r.renderObject(ctx, &annot.Appearance.Objects[i], pageH, nil, &ctm, false, nil)
}
if grouped {
groups.endObject()
}
}
}