We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 2833b17 commit 7a5a10dCopy full SHA for 7a5a10d
1 file changed
smith_chart/js/smith_tool.js
@@ -1388,7 +1388,8 @@ function draw_schematic(i) {
1388
if (schematic[i].imaginary * zo >= 0) innerText += ' + '
1389
else innerText += ' - '
1390
}
1391
- if (sch_imag) innerText += Number((Math.abs(schematic[i].imaginary * zo)).toPrecision(precision)) + 'j'
+ if (sch_real && sch_imag) innerText += Number((Math.abs(schematic[i].imaginary * zo)).toPrecision(precision)) + 'j'
1392
+ else if (sch_imag) innerText += Number((schematic[i].imaginary * zo).toPrecision(precision)) + 'j'
1393
innerText += '</div>'
1394
} else if (boxType == 'custom') {
1395
innerText += '<button type="button" class="btn btn-secondary m-auto" data-bs-toggle="modal" data-bs-target="#customZModal" onclick="createCustomZModal(' + i + ')">Impedance Table</button>';
0 commit comments