function canReconnect(source, target, connection) {
    return rules.allowed('connection.reconnect', {
      connection: connection,
      source: source,
      target: target
    });
  }
Add new shape.

@param {Object} context
@param {Shape} context.oldShape
@param {Object} context.newData
@param {string} context.newData.type
@param {number} context.newData.x
@param {number} context.newData.y
@param {Object} [context.hints]