mirror of
https://github.com/john-okeefe/foliate-js.git
synced 2026-09-09 11:29:14 -04:00
Typo
This commit is contained in:
@@ -92,11 +92,11 @@ export class View {
|
||||
const o = this.#getOverlayer(index)
|
||||
if (o) this.#drawAnnotation(o.doc, o.overlayer, annotation)
|
||||
const label = this.#tocProgress.getProgress(index)?.label ?? ''
|
||||
this?.emit({ type: 'add-annotation', annotation, label, index, position })
|
||||
this.emit?.({ type: 'add-annotation', annotation, label, index, position })
|
||||
},
|
||||
onDelete: (key, index, position) => {
|
||||
this.#getOverlayer(index)?.overlayer?.remove(key)
|
||||
this?.emit({ type: 'delete-annotation', index, position })
|
||||
this.emit?.({ type: 'delete-annotation', index, position })
|
||||
},
|
||||
onUpdate: (annotation, index) => {
|
||||
const o = this.#getOverlayer(index)
|
||||
|
||||
Reference in New Issue
Block a user