tree change listener and others

This commit is contained in:
zadam
2020-01-29 21:38:58 +01:00
parent 439b45b0b8
commit b65631be7e
10 changed files with 140 additions and 49 deletions

View File

@@ -1,5 +1,7 @@
export class LoadResults {
constructor() {
constructor(treeCache) {
this.treeCache = treeCache;
this.noteIdToSourceId = {};
this.sourceIdToNoteIds = {};
@@ -25,14 +27,34 @@ export class LoadResults {
this.branchIdToSourceId[branchId].push(sourceId);
}
getBranches() {
}
addNoteReordering(parentNoteId, sourceId) {
}
getNoteReorderings() {
}
addAttribute(attributeId, sourceId) {
}
getAttributes() {
}
addNoteRevision(noteRevisionId, noteId, sourceId) {
}
hasNoteRevisionForNote(noteId) {
}
getNoteIds() {
return Object.keys(this.noteIdToSourceId);
}