code: function View(bbox, width, height, padding, halign, valign) {
        var me;
  
        me = this;
        me.bbox = bbox;
        me.width = width;
        me.padding = padding != null ? padding : 0;
        me.halign = halign != null ? halign : 'center';
        me.valign = valign != null ? valign : 'center';
        me.height = height;
        me.scale = Math.min((width - padding * 2) / bbox.width, (height - padding * 2) / bbox.height);
      }
docs: /*
  2D coordinate transfomation