code: function (positionChange) {
                  var _this = this;
                  /** @type {?} */
                  var pointLimits = this.limitDirections.filter(function (direction) {
                      return !positionChange.roles.includes(direction);
                  });
                  /** @type {?} */
                  var limitException = {
                      exceeds: false,
                      resetCoefficients: {
                          x: 0,
                          y: 0
                      },
                      resetCoordinates: {
                          x: positionChange.x,
                          y: positionChange.y
                      }
                  };
                  // limit directions are the opposite sides of the point's roles
                  pointLimits.forEach(function (direction) {
                      /** @type {?} */
                      var directionAxis = _this.getDirectionAxis(direction);
                      if (direction === 'top' || direction === 'left') {
                          if (positionChange[directionAxis] < _this._limits[direction]) {
                              limitException.resetCoefficients[directionAxis] = 1;
                              limitException.resetCoordinates[directionAxis] = _this._limits[direction];
                          }
                      }
                      else if (direction === 'right' || direction === 'bottom') {
                          if (positionChange[directionAxis] > _this._limits[direction]) {
                              limitException.resetCoefficients[directionAxis] = -1;
                              limitException.resetCoordinates[directionAxis] = _this._limits[direction];
                          }
                      }
                  });
                  if (limitException.resetCoefficients.x !== 0 || limitException.resetCoefficients.y !== 0) {
                      limitException.exceeds = true;
                  }
                  return limitException;
              }
docs: check if a position change event exceeds the limits
  @param {?} positionChange - position change event data
  @return {?} LimitException0