mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
Add method to get a flat array of annotation objects
This commit is contained in:
@@ -59,4 +59,7 @@ export class Annotations {
|
|||||||
getAnchor(value) {
|
getAnchor(value) {
|
||||||
return this.#anchorsByValue.get(value)
|
return this.#anchorsByValue.get(value)
|
||||||
}
|
}
|
||||||
|
export() {
|
||||||
|
return Array.from(this.#annotationsByIndex.values()).flat()
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user