annotations: add tasks to AnnotationState

This commit is contained in:
Hans Pagel 2021-02-11 23:23:46 +01:00
parent c0a4092205
commit 2955ef274a

View File

@ -18,9 +18,17 @@ export class AnnotationState {
constructor(options: AnnotationStateOptions) {
this.options = options
// TODO: Observe Y.js changes and re-render decorations
// this.options.map.observe(e => {
// console.log('e', e)
// })
}
findAnnotation(id: number) {
// TODO: Get from Y.js?
// this.decorations.get(id)
const current = this.decorations.find()
for (let i = 0; i < current.length; i += 1) {