import {Selection} from './SrlVisualizerNoSelection'; import Srl from "../data/Srl"; class EditHistory { history: {srl:Srl,selection:Selection,selectedFrame: null|number}[]=[]; push(srl:Srl, selection:Selection, selectedFrame:null|number) { this.history.push({srl, selection, selectedFrame}); } pop():{srl:Srl,selection:Selection,selectedFrame: null|number}|undefined { return this.history.pop(); } isEmpty():boolean { return this.history.length<=0; } } export default EditHistory;