kopia lustrzana https://github.com/miguelvaca/vk3cpu
Update magloop.html
Added calculated loop area. Added spaces between numbers and units in text.pull/2/head
rodzic
7f23d4d0e9
commit
c1d2d1805a
|
@ -549,6 +549,10 @@
|
|||
//fctx.textAlign = "right";
|
||||
const cond_dia = 1.0 * conductor_diameter_slider.value;
|
||||
fctx.fillText("\u2300a = " + cond_dia.toPrecision(3).toString() + " mm", loopx, p1y+2);
|
||||
|
||||
// Write loop area:
|
||||
fctx.textAlign = "right";
|
||||
fctx.fillText("A = " + (Math.PI * dia**2).toPrecision(3).toString() + " m\u00B2", win_width-8, 18);
|
||||
}
|
||||
|
||||
const aside_canvas = document.getElementById("antennaSide2D");
|
||||
|
|
Ładowanie…
Reference in New Issue