     return [fieldData, catalogRecord]
     
   doExportSvg: ->
-    svgContext = new C2S(canvas.width, canvas.height)
-    drawEverything svgContext
+    sz = 1024
+    svgContext = new C2S sz, sz#(canvas.width, canvas.height)
+    drawEverything sz, sz, svgContext
     showExportDialog svgContext.getSerializedSvg()
     
 

  getCanvasResize: -> canvasSizeUpdateBlocked
  redraw: -> redraw()
  getObserver: -> @observer
  drawEverything: -> drawEverything(context)
  uploadToServer: (name, cb) -> uploadToServer name, cb
  getCanvas: -> canvas
  getGroup: -> @tessellation.group

dirty = true
redraw = -> dirty = true

drawEverything = (w, h, context) ->
  return false unless application.observer.canDraw()
  context.fillStyle = "white"  
  #context.clearRect 0, 0, canvas.width, canvas.height
  context.fillRect 0, 0, w, h
  context.save()
  s = Math.min( w, h ) / 2 #
  context.scale s, s
  context.translate 1, 1
  context.fillStyle = "black"
