Add private access modifiers to scene history class member variables

This commit is contained in:
Gasim Gasimzada 2020-01-06 21:45:11 +04:00
parent 1c96a4169d
commit 0353591339

View file

@ -2,9 +2,9 @@ import { ExcalidrawElement } from "./element/types";
import { generateDraw } from "./element"; import { generateDraw } from "./element";
class SceneHistory { class SceneHistory {
recording: boolean = true; private recording: boolean = true;
stateHistory: string[] = []; private stateHistory: string[] = [];
redoStack: string[] = []; private redoStack: string[] = [];
generateCurrentEntry(elements: ExcalidrawElement[]) { generateCurrentEntry(elements: ExcalidrawElement[]) {
return JSON.stringify( return JSON.stringify(