src/conversion/view-v1-to-v2.js
function convertRenderer (cell) {
  const {renderer} = cell
  if (renderer === undefined) {
    return
  }
  const basicRenderers = [
    'boolean',
    'string',
    'number'
  ]
  if (basicRenderers.indexOf(renderer) >= 0) {
    return {name: renderer}
  }
  return customRenderer(renderer, cell.properties)
}
function convertRenderer (cell) {
  const {renderer} = cell
  if (renderer === undefined) {
    return
  }
  const basicRenderers = [
    'boolean',
    'string',
    'number'
  ]
  if (basicRenderers.indexOf(renderer) >= 0) {
    return {name: renderer}
  }
  return customRenderer(renderer, cell.properties)
}
function convertRenderer ( cell ) { const { renderer } = cell if ( renderer === undefined ) { return } const basicRenderers = [ 'boolean' , 'string' , 'number' ] if ( basicRenderers . indexOf ( renderer ) >= 0 ) { return { name : renderer } } return customRenderer ( renderer , cell . properties ) }
Converts v1 renderer information to v2 for a cell

@param {object} cell Cell with a custom renderer
@returns {object} Custom renderer block for the given cell
Converts v1 renderer information to v2 for a cell