UNPKG

igniteui-angular-core

Version:

Ignite UI Angular Core logic used in multiple UI components.

48 lines (47 loc) 1.67 kB
/* THIS INFRAGISTICS ULTIMATE SOFTWARE LICENSE AGREEMENT ("AGREEMENT") LOCATED HERE: https://www.infragistics.com/legal/license/igultimate-la https://www.infragistics.com/legal/license/igultimate-eula GOVERNS THE LICENSING, INSTALLATION AND USE OF INFRAGISTICS SOFTWARE. BY DOWNLOADING AND/OR INSTALLING AND USING INFRAGISTICS SOFTWARE: you are indicating that you have read and understand this Agreement, and agree to be legally bound by it on behalf of the yourself and your company. */ import { Base, String_$type, markType } from "./type"; import { Dictionary$2 } from "./Dictionary$2"; /** * @hidden */ export let FontRegistry = /*@__PURE__*/ (() => { class FontRegistry extends Base { constructor() { super(...arguments); this.c = new Dictionary$2(String_$type, Base.$, 0); } static get instance() { if (FontRegistry.a == null) { FontRegistry.a = new FontRegistry(); } return FontRegistry.a; } registerFont(a, b) { if (this.c.containsKey(a)) { this.c.item(a, b); } else { this.c.addItem(a, b); } } removeFont(a) { if (this.c.containsKey(a)) { this.c.removeItem(a); } } getFont(a) { if (this.c.containsKey(a)) { return this.c.item(a); } return null; } } FontRegistry.$t = markType(FontRegistry, 'FontRegistry'); FontRegistry.a = null; return FontRegistry; })();