diff --git a/help/colourMaps b/help/colourMaps new file mode 100644 index 0000000..71550b0 --- /dev/null +++ b/help/colourMaps @@ -0,0 +1,12 @@ +<body> + +<h2>AMDA Colour Maps</h2> + +<p> + Colour Maps 'Acton', 'Bamako', 'Batlow', 'BatlowK', 'BatlowW', 'Bilbao', 'Buda', 'Davos', 'Devon', + 'GrayC', 'Hawaii', 'Imola', 'Lajolla', 'Lapaz', 'Nuuk', 'Oslo', 'Tokyo', 'Turku', 'Bam', 'Berlin', + 'Broc', 'Cork', 'Lisbon', 'Roma', 'Tofino', 'Vanimo', 'vik' comes from: <br/> + Crameri, Fabio. (2021). Scientific colour maps (7.0.1). Zenodo. <a href="https://doi.org/10.5281/zenodo.5501399" target="_blank">https://doi.org/10.5281/zenodo.5501399</a> +</p> + +</body> \ No newline at end of file diff --git a/js/app/views/PlotComponents/PlotColorAxisForm.js b/js/app/views/PlotComponents/PlotColorAxisForm.js index b1972e9..5076509 100644 --- a/js/app/views/PlotComponents/PlotColorAxisForm.js +++ b/js/app/views/PlotComponents/PlotColorAxisForm.js @@ -22,7 +22,7 @@ Ext.define('amdaPlotComp.PlotColorAxisForm', { var combo = new Ext.form.ComboBox({ name: 'axis-color-map', - fieldLabel: 'Color Map', + fieldLabel: 'Color Map <img amda_clicktip="colourMaps" style="vertical-align:bottom" src="js/resources/images/16x16/info_mini.png"', store: new Ext.data.Store({ fields: ['key','name', 'iconUrl'], data: data @@ -51,6 +51,19 @@ Ext.define('amdaPlotComp.PlotColorAxisForm', { this.object.set('axis-color-map', newValue); }, + click: { + element: 'el', + fn: function(e,t) { + var me = t, + text = me.getAttribute('amda_clicktip'); + if (text) { + e.preventDefault(); + AmdaAction.getInfo({name : text}, function(res,e) { + if (res.success) myDesktopApp.infoMsg(res.result); + }); + } + } + }, scope:this }, }); -- libgit2 0.21.2