mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-10-22 06:49:51 -04:00
Add method to get a flat array of annotation objects
This commit is contained in:
1 parent
17ba85b0e5
commit
8ea46671fe
1 file changed
+3
@@ -59,4 +59,7 @@ export class Annotations {
|
||||
getAnchor(value) {
|
||||
return this.#anchorsByValue.get(value)
|
||||
}
|
||||
export() {
|
||||
return Array.from(this.#annotationsByIndex.values()).flat()
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user