
var app_settings = {
  work_area_dimensions: [325,215],
  max_seek_speed: 20000,
  default_feedrate: 1500,
  default_intensity: 30,
  default_ppi: 0,
  acceleration: 8000000,	// mm/min/min, used to calculate raster starting ramp
  num_digits: 2, 
  max_num_queue_items: 24,
  max_segment_length: 5.0,
  table_offset: [0,0],  // has to match firmware
}


///////////////////////////////////////////////////////////////////////////////
///////////////////////////////////////////////////////////////////////////////

// calculate preview height from work_area aspect ratio
// preview with is fixed to 610
app_settings.canvas_dimensions = 
    [610, Math.floor(app_settings.work_area_dimensions[1]*
                     (610.0/app_settings.work_area_dimensions[0]))]

app_settings.to_physical_scale = 
    app_settings.work_area_dimensions[0]/app_settings.canvas_dimensions[0];

app_settings.to_canvas_scale = 1.0/app_settings.to_physical_scale;
     
