UNPKG

@syncfusion/ej2-diagrams

Version:

Feature-rich diagram control to create diagrams like flow charts, organizational charts, mind maps, and BPMN diagrams. Its rich feature set includes built-in shapes, editing, serializing, exporting, printing, overview, data binding, and automatic layouts.

19 lines (18 loc) 436 B
/** * ServiceLocator * * @hidden */ var ServiceLocator = /** @class */ (function () { function ServiceLocator() { this.services = {}; } ServiceLocator.prototype.register = function (name, type) { this.services["" + name] = type; }; ServiceLocator.prototype.getService = function (name) { return this.services["" + name]; }; return ServiceLocator; }()); export { ServiceLocator };