UNPKG

igniteui-angular-charts

Version:

Ignite UI Angular charting components for building rich data visualizations for modern web apps.

35 lines (34 loc) 1.52 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 { __extends } from "tslib"; import { Base, markType, getInstanceType } from "igniteui-angular-core"; import { DictionaryUtil } from "igniteui-angular-core"; /** * @hidden */ var MessageHandler_Spark = /** @class */ /*@__PURE__*/ (function (_super) { __extends(MessageHandler_Spark, _super); function MessageHandler_Spark() { var _this = _super !== null && _super.apply(this, arguments) || this; _this.a = DictionaryUtil.dictionaryCreate(); return _this; } MessageHandler_Spark.prototype.addHandler = function (a, b) { this.a.set(a.typeName, b); }; MessageHandler_Spark.prototype.messageReceived = function (a) { var b; var c = getInstanceType(a).typeName; if (this.a.has(c)) { b = this.a.get(c); b(a); } }; MessageHandler_Spark.$t = markType(MessageHandler_Spark, 'MessageHandler_Spark'); return MessageHandler_Spark; }(Base)); export { MessageHandler_Spark };