 class CoffeeMapping extends Mapping
 
 class Drawing extends Input
+  tileWidth: 50
+  tileHeight: 50
   constructor: (@data) ->
   writeSVG: (mappings, filename) ->
     ## Default filename is the input filename with extension replaced by .svg

  renderSVG: (mappings) ->
    doc = domImplementation.createDocument SVGNS, 'svg'
    doc.documentElement.appendChild defs = doc.createElementNS SVGNS, 'defs'
    symbols = {}
    for row, i in @data
      for cell, j in row
        symbol = mappings.lookup cell
        continue unless symbol?
        symbols[symbol.key] = symbol
        #console.log i, j, cell, symbol
    for key, symbol of symbols
      defs.appendChild node = doc.createElementNS SVGNS, 'symbol'

XMLSerializer = xmldom.XMLSerializer

SVGNS = 'http://www.w3.org/2000/svg'
XLINKNS = 'http://www.w3.org/1999/xlink'

splitIntoLines = (data) ->
  data.replace('\r\n', '\n').replace('\r', '\n').split('\n')
