Skip to content

Instantly share code, notes, and snippets.

View Vishal-Isharani's full-sized avatar
🏠
Working from home

Vishal Isharani Vishal-Isharani

🏠
Working from home
View GitHub Profile

STEPS

  • Click on Help menu

  • Select Enter License

  • Then paste given KEY given at bottom

  • Finally click on Use License

@Vishal-Isharani
Vishal-Isharani / historyState.ts
Created July 6, 2022 10:17
Konva js Undo/Redo History
import Konva from 'konva';
import { ShapeConfig } from 'konva/lib/Shape';
export class HistoryStat {
private static _instance: HistoryStat;
public _currentStat: any[] = [];
private _currentPointer: number = -1;
private _history: Array<Object[]> = [];