Update short_antenna.html

pull/2/head
miguel 2023-03-21 22:44:37 +11:00
rodzic 5dbb60613f
commit 64ef4adf01
1 zmienionych plików z 11 dodań i 7 usunięć

Wyświetl plik

@ -348,12 +348,23 @@
var arrow_size = 10.0;
// Draw the top antenna element:
const last_width = fctx.lineWidth;
fctx.lineWidth = 3;
fctx.beginPath();
fctx.moveTo(wire_x, up_wire_top_y);
fctx.lineTo(wire_x, up_wire_bot_y);
fctx.lineTo(wire_x - 15, up_wire_bot_y);
fctx.stroke();
// Draw the bottom antenna element:
fctx.beginPath();
fctx.moveTo(wire_x - 15, down_wire_top_y);
fctx.lineTo(wire_x, down_wire_top_y);
fctx.lineTo(wire_x, down_wire_bot_y);
fctx.stroke();
fctx.lineWidth = last_width;
const d_pos = up_wire_bot_y - dipole.spacing_ratio * (up_wire_bot_y - up_wire_top_y);
fctx.textAlign = "right";
@ -394,13 +405,6 @@
//fctx.textAlign = "center";
//fctx.fillText("f = " + (dipole.frequency_hz * 1e-6).toFixed(2).toString() + " MHz", wire_x, down_wire_bot_y + 30);
// Draw the bottom antenna element:
fctx.beginPath();
fctx.moveTo(wire_x - 15, down_wire_top_y);
fctx.lineTo(wire_x, down_wire_top_y);
fctx.lineTo(wire_x, down_wire_bot_y);
fctx.stroke();
drawInductor(fctx, wire_x, down_wire_top_y + dipole.spacing_ratio * (up_wire_bot_y - up_wire_top_y), 0.0*Math.PI);
//drawArrow(fctx, wire_x + 10, down_wire_top_y, -0.5*Math.PI);
drawArrow(fctx, wire_x + 30, down_wire_bot_y, -0.5*Math.PI);