UNPKG

armisa-models

Version:
19 lines (18 loc) 570 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: true }); exports.Clipboarding = void 0; class Clipboarding { constructor(mainStateManager) { this.mainStateManager = mainStateManager; this.data = []; this.copy = (key, rows) => { this.data.push({ key, data: rows }); return true; }; this.past = (key) => { const filter = this.data.filter(i => i.key === key); return filter.pop()?.data; }; } } exports.Clipboarding = Clipboarding;