feat: seperate text & delta

This commit is contained in:
thecodrr
2020-03-19 11:30:05 +05:00
parent 7bdbde60ae
commit daf93e6f2c
13 changed files with 203 additions and 88 deletions

View File

@@ -40,12 +40,12 @@ export default class Note {
return this._note.notebook;
}
get text() {
return this._note.content.text;
delta() {
return this._notes._deltaCollection.get(this._note.content.delta);
}
delta() {
return this._notes._deltaStorage.read(this._note.id + "_delta");
text() {
return this._notes._textCollection.get(this._note.content.text);
}
color(color) {