code: function getSnapConstraints(event, axis) {
    var context = event.context,
        resizeConstraints = context.resizeConstraints;
  
    if (!resizeConstraints) {
      return null;
    }
  
    var direction = context.direction;
  
    var minResizeConstraints = resizeConstraints.min,
        maxResizeConstraints = resizeConstraints.max;
  
    var snapConstraints = {};
  
    // resize
    if (minResizeConstraints) {
  
      if (isHorizontal(axis)) {
  
        if (isWest(direction)) {
          snapConstraints.max = minResizeConstraints.left;
        } else {
          snapConstraints.min = minResizeConstraints.right;
        }
  
      } else {
  
        if (isNorth(direction)) {
          snapConstraints.max = minResizeConstraints.top;
        } else {
          snapConstraints.min = minResizeConstraints.bottom;
        }
  
      }
    }
  
    if (maxResizeConstraints) {
  
      if (isHorizontal(axis)) {
  
        if (isWest(direction)) {
          snapConstraints.min = maxResizeConstraints.left;
        } else {
          snapConstraints.max = maxResizeConstraints.right;
        }
  
      } else {
  
        if (isNorth(direction)) {
          snapConstraints.min = maxResizeConstraints.top;
        } else {
          snapConstraints.max = maxResizeConstraints.bottom;
        }
  
      }
    }
  
    return snapConstraints;
  }
docs: helpers ////////// 
  Get minimum and maximum snap constraints.
  
  @param {Object} event
  @param {Object} event.context
  @param {Object} [event.context.resizeConstraints]
  @param {number} [event.context.resizeConstraints.min]
  @param {number} [event.context.resizeConstraints.max]
  @param {string} axis
  
  @returns {Object}