DOC-108 实现 NoteAnchor 模型 #13
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
定义 NoteAnchor:Material / MarkdownBlock / TextLine / PdfPage / Image / EpubChapter / KnowledgeItem
非目标:不做富文本编辑器、不做笔记保存接口。
验收标准:NoteAnchor 支持 serde、能从 ReadingPosition 生成 NoteAnchor、有单元测试
完成项
✅ NoteAnchor 模型已定义
✅ from_position(material_id, position) 构造函数
✅ 7 种锚点类型
from_position 映射
测试
审查补充 (2026-06-02)
NoteAnchor::from_position已通过 UDL 暴露到 FFI:create_note_anchor(string material_id, ReadingPosition? position) → NoteAnchor测试全部通过。