NodesGroup.js 1.2 KB

123456789101112131415161718192021222324252627
  1. "use strict";
  2. var _createClass = function () { function defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } } return function (Constructor, protoProps, staticProps) { if (protoProps) defineProperties(Constructor.prototype, protoProps); if (staticProps) defineProperties(Constructor, staticProps); return Constructor; }; }();
  3. function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
  4. var NodesGroup = function () {
  5. function NodesGroup() {
  6. var options = arguments.length <= 0 || arguments[0] === undefined ? {} : arguments[0];
  7. _classCallCheck(this, NodesGroup);
  8. this.nodes = new Map();
  9. this.options = options;
  10. }
  11. _createClass(NodesGroup, [{
  12. key: "getNodes",
  13. value: function getNodes() {
  14. return this.nodes;
  15. }
  16. }]);
  17. return NodesGroup;
  18. }();
  19. exports.NodesGroup = NodesGroup;