joint.all.js
function(type, value, targetElement) {
        
        switch (type) {
          case 'number':
            value = parseFloat(value);
            break;
          case 'toggle':
            value = targetElement.checked;
            break;
          default:
            value = value;
            break;
        }
        return value;
    }
function(type, value, targetElement) {
        
        switch (type) {
          case 'number':
            value = parseFloat(value);
            break;
          case 'toggle':
            value = targetElement.checked;
            break;
          default:
            value = value;
            break;
        }
        return value;
    }
function ( type , value , targetElement ) { switch ( type ) { case 'number' : value = parseFloat ( value ) ; break ; case 'toggle' : value = targetElement . checked ; break ; default : value = value ; break ; } return value ; }
Parse the input `value` based on the input `type`. Override this method if you need your own specific parsing.
Parse the input value based on the input type . Override this method if you need your own specific parsing .