Build your personal knowledge base with Trilium Notes
TypeScript electronelectron-appknowledge-baseknowledge-graphknowledge-managementknowledge-management-graphlocal-firstnote-managmentnote-takernote-takingnotebooknotesnotes-apppersonal-knowledge-basepersonal-wikiscriptableself-hostedself-hostingwiki
better comments for constructor
Tom Freee82fa5ee8279
diff --git a/src/public/app/widgets/type_widgets/canvas.js b/src/public/app/widgets/type_widgets/canvas.jsindex b67b4e2dd9..d04bd73706 100644--- a/src/public/app/widgets/type_widgets/canvas.js+++ b/src/public/app/widgets/type_widgets/canvas.js@@ -84,8 +84,8 @@ export default class ExcalidrawTypeWidget extends TypeWidget {super();// constants- this.SCENE_VERSION_INITIAL = -1;- this.SCENE_VERSION_ERROR = -2;+ this.SCENE_VERSION_INITIAL = -1; // -1 indicates, that it is fresh. excalidraw scene version is always >0+ this.SCENE_VERSION_ERROR = -2; // -2 indicates error// configthis.DEBOUNCE_TIME_ONCHANGEHANDLER = 750; // ms@@ -102,6 +102,7 @@ export default class ExcalidrawTypeWidget extends TypeWidget {this.$widget;this.reactHandlers; // used to control react state+ // bindsthis.createExcalidrawReactApp = this.createExcalidrawReactApp.bind(this);this.onChangeHandler = this.onChangeHandler.bind(this);this.isNewSceneVersion = this.isNewSceneVersion.bind(this);