From d25f4cc466a2782c569e85500c67151d6078a7b5 Mon Sep 17 00:00:00 2001 From: miguel Date: Wed, 18 Nov 2020 21:55:42 +1100 Subject: [PATCH] Update inductor.html Added line indicators for dimensions. --- inductor.html | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/inductor.html b/inductor.html index a98f013..0bc50ee 100644 --- a/inductor.html +++ b/inductor.html @@ -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;