From b03cdf3ad07c023dfd4f0ca429a8f67f3a826231 Mon Sep 17 00:00:00 2001 From: xiaoqidun Date: Tue, 13 Oct 2026 20:29:17 +0800 Subject: [PATCH] =?UTF-8?q?feat(=E8=B5=84=E6=BA=90=E5=AE=9A=E4=BD=8D):=20?= =?UTF-8?q?=E4=BF=AE=E5=A4=8D=E9=9A=90=E8=97=8F=E5=86=85=E5=AE=B9=E5=B9=B2?= =?UTF-8?q?=E6=89=B0=E8=B5=84=E6=BA=90=E5=AE=9A=E4=BD=8D?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- ofdgo_structure_target.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ofdgo_structure_target.go b/ofdgo_structure_target.go index 1698638..472523c 100644 --- a/ofdgo_structure_target.go +++ b/ofdgo_structure_target.go @@ -55,9 +55,9 @@ func (v *structureVisitor) BeginAnnotation(id string) bool { return false } // 入参: count 跳过的图元数 func (v *structureVisitor) SkipObjects(count int) {} -// IncludeHidden 保留隐藏图元的结构语义,但不为其生成可见范围 -// 返回: bool 始终为true -func (v *structureVisitor) IncludeHidden() bool { return true } +// IncludeHidden 读取原文时保留隐藏语义,仅定位时跳过隐藏复合图元及注解 +// 返回: bool 是否需要隐藏内容 +func (v *structureVisitor) IncludeHidden() bool { return !v.boundsOnly } // SkipClips 保留裁剪语义,以可见范围定位图元 // 返回: bool 始终为false