Няма описание

123456789101112131415161718192021
  1. "use strict";
  2. Object.defineProperty(exports, "__esModule", { value: true });
  3. var ToolbarItem = (function () {
  4. function ToolbarItem(_a) {
  5. var name = _a.name, tooltipText = _a.tooltipText, shortcut = _a.shortcut, icon = _a.icon, draggable = _a.draggable, markerType = _a.markerType, onRender = _a.onRender, onClick = _a.onClick;
  6. if (!name) {
  7. throw new Error('Invalid params');
  8. }
  9. this.name = name;
  10. this.tooltipText = tooltipText;
  11. this.shortcut = shortcut;
  12. this.icon = icon;
  13. this.markerType = markerType;
  14. this.draggable = draggable;
  15. this.onClick = onClick;
  16. this.onRender = onRender;
  17. }
  18. return ToolbarItem;
  19. }());
  20. exports.ToolbarItem = ToolbarItem;