UNPKG

@visactor/vtable

Version:

canvas table width high performance

27 lines (23 loc) 625 B
"use strict"; Object.defineProperty(exports, "__esModule", { value: !0 }), exports.IconCache = exports.icons = void 0, exports.icons = {}; class IconCache { static setIcon(key, icon) { this.cache.set(key, icon); } static getIcon(key) { return this.cache.has(key) ? this.cache.get(key) : null; } static hasIcon(key) { return this.cache.has(key); } static clear(key) { return this.cache.delete(key); } static clearAll() { this.cache = new Map; } } exports.IconCache = IconCache, IconCache.cache = new Map; //# sourceMappingURL=icons.js.map