save-settings.js#

static afqb.global.formatKeyName(bundle)#

Use universal key name for robust linking between elements

Arguments:
  • bundle (string) – bundle name

static afqb.global.updateQueryString(queryObj)#

Updates the QuerySting object for proper reload

Arguments:
  • queryObj (object) – object to stringify and merge with existing query string

static afqb.global.initSettings(callback)#

Initialize settings from querystring.

AFQ-Browser settings are stored in four places, corresponding to the different visualization panels (naming is self-explanatory):

  • afqb.three.settings

  • afqb.plots.settings

  • afqb.table.settings

  • afqb.global.settings

In the query string, all settings are lumped together. So we must parse the query string and separate settings into their different groups.

Arguments:
  • callback – function to call after the settings have been loaded

static afqb.plots.restoreBrush()#

Restore brush settings on reload.

Brush settings are stored in afqb.plots.settings.brushes. Iterate through that and restore the brush extents.

static afqb.table.restoreRowSelection()#

Restore selected rows and subject lines on reload.

This function iterates over afqb.table.settings.selectedRows and changes the opacity of the associated table rows and plot lines.