define("ember-overlays/mark-info", ["exports"], function (exports) {
  "use strict";

  Object.defineProperty(exports, "__esModule", {
    value: true
  });

  function _classCallCheck(instance, Constructor) {
    if (!(instance instanceof Constructor)) {
      throw new TypeError("Cannot call a class as a function");
    }
  }

  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;
    };
  }();

  var MarkInfo = function () {
    function MarkInfo(id, firstNode, lastNode, group, model) {
      _classCallCheck(this, MarkInfo);

      this.id = id;
      this._firstNode = firstNode;
      this._lastNode = lastNode;
      this.group = group;
      this.model = model;
    }

    _createClass(MarkInfo, [{
      key: "bounds",
      value: function bounds() {
        var r = new Range();
        r.setStartBefore(this._firstNode);
        r.setEndAfter(this._lastNode);
        return r.getBoundingClientRect();
      }
    }]);

    return MarkInfo;
  }();

  exports.default = MarkInfo;
});