kopia lustrzana https://github.com/miguelvaca/vk3cpu
Changed some tooltips from Fixed(1) to Precision(3)
rodzic
1f90d214bc
commit
6d357df652
15
magloop.html
15
magloop.html
|
@ -1739,7 +1739,6 @@
|
|||
position: 'nearest',
|
||||
bodyFont: {
|
||||
family: 'monospace',
|
||||
|
||||
},
|
||||
callbacks: {
|
||||
title: function(context) {
|
||||
|
@ -1760,37 +1759,37 @@
|
|||
}
|
||||
if(context.dataset.label == "Tuning Cap (pF)") {
|
||||
var num = getMetricPrefix(value * 1e-12);
|
||||
label = justifyText("Tuning Cap: ", Math.round(num.val).toString() + ' ' + num.pfx + 'F');
|
||||
label = justifyText("Tuning Cap: ", num.val.toPrecision(3).toString() + ' ' + num.pfx + 'F');
|
||||
} else
|
||||
if(label[0] == "Q"){
|
||||
label = justifyText("Q: ", Math.round(value).toString() + " ");
|
||||
} else
|
||||
if(label[0] == 'V'){
|
||||
var num = getMetricPrefix(value * 1e3);
|
||||
label = justifyText("Vcap: ", num.val.toFixed(1).toString() + ' ' + num.pfx + 'V');
|
||||
label = justifyText("Vcap: ", num.val.toPrecision(3).toString() + ' ' + num.pfx + 'V');
|
||||
} else
|
||||
if(label[0] == 'B'){
|
||||
var num = getMetricPrefix(value * 1e3);
|
||||
label = justifyText("Bandwidth: ", num.val.toFixed(1).toString() + ' ' + num.pfx + 'Hz');
|
||||
label = justifyText("Bandwidth: ", num.val.toPrecision(3).toString() + ' ' + num.pfx + 'Hz');
|
||||
} else
|
||||
if(label[0] == 'E'){
|
||||
label = justifyText("Efficiency: ", value.toFixed(2).toString() + ' ' + ' %');
|
||||
} else
|
||||
if((label[0] == 'R') && (label[2] == 'r')){
|
||||
var num = getMetricPrefix(value);
|
||||
label = justifyText("R-rad: ", num.val.toFixed(1).toString() + ' ' + num.pfx + '\u03A9');
|
||||
label = justifyText("R-rad: ", num.val.toPrecision(3).toString() + ' ' + num.pfx + '\u03A9');
|
||||
} else
|
||||
if((label[0] == 'R') && (label[2] == 'l')){
|
||||
var num = getMetricPrefix(value);
|
||||
label = justifyText("R-loop: ", num.val.toFixed(1).toString() + ' ' + num.pfx + '\u03A9');
|
||||
label = justifyText("R-loop: ", num.val.toPrecision(3).toString() + ' ' + num.pfx + '\u03A9');
|
||||
} else
|
||||
if((label[0] == 'R') && (label[1] == 'e')){
|
||||
var num = getMetricPrefix(value);
|
||||
label = justifyText("Reactance: ", 'j' + num.val.toFixed(1) + ' ' + num.pfx + '\u03A9');
|
||||
label = justifyText("Reactance: ", 'j' + num.val.toPrecision(3) + ' ' + num.pfx + '\u03A9');
|
||||
} else
|
||||
if(label[0] == 'I'){
|
||||
var num = getMetricPrefix(value);
|
||||
label = justifyText("I\u2092: ", num.val.toFixed(1).toString() + ' ' + num.pfx + 'A');
|
||||
label = justifyText("I\u2092: ", num.val.toPrecision(3).toString() + ' ' + num.pfx + 'A');
|
||||
} else
|
||||
if(label[0] == 'P'){
|
||||
label = justifyText("Perimeter: ", value.toFixed(3).toString() + ' ' + '\u03BB');
|
||||
|
|
Ładowanie…
Reference in New Issue