Update inductor.html

Added line indicators for dimensions.
pull/2/head
miguel 2020-11-18 21:55:42 +11:00
rodzic 978c106dcd
commit d25f4cc466
1 zmienionych plików z 13 dodań i 1 usunięć

Wyświetl plik

@ -531,7 +531,7 @@
fctx.lineTo(start_x + cond_spacing, dim_y + 7);
fctx.stroke();
// Draw right lenthg arrow:
// Draw right length arrow:
fctx.beginPath();
fctx.moveTo(start_x + loop_turns_slider.value*cond_spacing + 20, dim_y);
fctx.lineTo(start_x + loop_turns_slider.value*cond_spacing, dim_y);
@ -542,6 +542,18 @@
fctx.lineTo(start_x + loop_turns_slider.value*cond_spacing, dim_y + 7);
fctx.stroke();
// Extended lines:
fctx.strokeStyle = "grey";
fctx.beginPath();
fctx.moveTo(start_x, bot_y + 35);
fctx.lineTo(start_x, dim_y - 12);
fctx.moveTo(start_x + cond_spacing, bot_y + 15);
fctx.lineTo(start_x + cond_spacing, dim_y - 12);
fctx.moveTo(start_x + loop_turns_slider.value*cond_spacing, bot_y + 35);
fctx.lineTo(start_x + loop_turns_slider.value*cond_spacing, dim_y - 12);
fctx.stroke();
fctx.strokeStyle = "black";
fctx.font = "12px arial";
fctx.textAlign = "right";
var freq = 1.0 * frequency_slider.value;