feat(渲染注释): 渲染注释,可配置不渲染

This commit is contained in:
2026-06-26 11:26:09 +08:00
parent 1446705bb6
commit 94fa027446
8 changed files with 283 additions and 19 deletions
+2
View File
@@ -36,6 +36,7 @@ type Reader struct {
compositeGraphicUnitCache map[string]*CompositeGraphicUnit
doc *Document
Stamps map[string][]Stamp
Annots map[string][]Annotation
fileIndex map[string]*zip.File
}
@@ -138,6 +139,7 @@ func (r *Reader) Doc() (*Document, error) {
r.loadRes(doc.CommonData.PublicRes)
}
r.doc = &doc
_ = r.parseAnnotations(&doc)
_ = r.parseSignatures(&doc)
return r.doc, nil
}