 
 class Drawing extends Input
   @inlineImages: not window?
+  @hrefAttr: -> if @useHref then 'href' else 'xlink:href'
   load: (data) ->
     ## Turn strings into arrays
     data = for row in data

        continue unless symbol?
        levels[symbol.zIndex] ?= []
        levels[symbol.zIndex].push use = doc.createElementNS SVGNS, 'use'
        use.setAttribute href, '#' + symbol.id
        use.setAttribute 'x', x
        use.setAttribute 'y', y
        scaleX = scaleY = 1

    doc = domImplementation.createDocument SVGNS, 'svg'
    svg = doc.documentElement
    svg.setAttribute 'xmlns:xlink', XLINKNS unless Drawing.useHref
    svg.setAttribute 'version', '1.1'
    #svg.appendChild defs = doc.createElementNS SVGNS, 'defs'
    ## <style> tags for CSS
