diff --git a/js/app/models/PlotObjects/PlotObjectConfig.js b/js/app/models/PlotObjects/PlotObjectConfig.js index 403f6e4..a3c613f 100644 --- a/js/app/models/PlotObjects/PlotObjectConfig.js +++ b/js/app/models/PlotObjects/PlotObjectConfig.js @@ -140,7 +140,8 @@ Ext.define('amdaPlotObj.PlotObjectConfig', { projection : 'XY' }, spectro : { - yAxis : 'y-left' + yAxis : 'y-left', + resolution : 3000 }, legends : { series : { diff --git a/js/app/models/PlotObjects/PlotSpectroObject.js b/js/app/models/PlotObjects/PlotSpectroObject.js index be768f7..6676610 100644 --- a/js/app/models/PlotObjects/PlotSpectroObject.js +++ b/js/app/models/PlotObjects/PlotSpectroObject.js @@ -22,6 +22,7 @@ Ext.define('amdaPlotObj.PlotSpectroObject', { fields : [ {name: 'spectro-yaxis', type: 'string'}, + {name: 'spectro-resolution', type: 'int'}, {name: 'spectro-value-min', type: 'float', useNull:true}, {name: 'spectro-value-max', type: 'float', useNull:true}, {name: 'spectro-log0-as-min', type: 'boolean'} @@ -53,6 +54,7 @@ Ext.define('amdaPlotObj.PlotSpectroObject', { setDefaultValues: function() { this.set('spectro-yaxis', amdaPlotObj.PlotObjectConfig.defaultValues.spectro.yAxis); + this.set('spectro-resolution', amdaPlotObj.PlotObjectConfig.defaultValues.spectro.resolution); this.set('spectro-log0-as-min', false); }, @@ -61,6 +63,7 @@ Ext.define('amdaPlotObj.PlotSpectroObject', { var spectroValues = new Object(); spectroValues['spectro-yaxis'] = this.get('spectro-yaxis'); + spectroValues['spectro-resolution'] = this.get('spectro-resolution'); spectroValues['spectro-value-min'] = this.get('spectro-value-min'); spectroValues['spectro-value-max'] = this.get('spectro-value-max'); spectroValues['spectro-log0-as-min'] = this.get('spectro-log0-as-min'); diff --git a/js/app/views/PlotComponents/PlotSpectroForm.js b/js/app/views/PlotComponents/PlotSpectroForm.js index 86481d7..d36bafa 100644 --- a/js/app/views/PlotComponents/PlotSpectroForm.js +++ b/js/app/views/PlotComponents/PlotSpectroForm.js @@ -26,6 +26,9 @@ Ext.define('amdaPlotComp.PlotSpectroForm', { getFormItems: function() { var me = this; return [ + this.addStandardCombo('spectro-resolution', 'Points per plot', amdaPlotObj.PlotObjectConfig.availableResolutions, function(name, value, oldValue) { + me.object.set('spectro-resolution', value); + }), this.addStandardCombo('spectro-yaxis', 'Y axis', amdaPlotObj.PlotObjectConfig.availableYAxes, function(name, value, oldValue) { me.object.set('spectro-yaxis', value); me.crtTree.refresh(); -- libgit2 0.21.2