diff options
Diffstat (limited to 'share/library/Passive')
-rw-r--r-- | share/library/Passive/capacitor.lua | 28 |
1 files changed, 2 insertions, 26 deletions
diff --git a/share/library/Passive/capacitor.lua b/share/library/Passive/capacitor.lua index c181737..700b377 100644 --- a/share/library/Passive/capacitor.lua +++ b/share/library/Passive/capacitor.lua @@ -6,16 +6,8 @@ local names = sk = "Kondenzátor" } -local names_polar = -{ - en = "Polarized capacitor", - cs = "Polarizovaný kondenzátor", - sk = "Polarizovaný kondenzátor" -} - -- Render area in base units (X1, Y1, X2, Y2) -local area = {-2, -1, 2, 1} -local area_polar = {-2, -1.5, 2, 1} +local area = {-2, -1, 2, 1} -- Terminal points local terminals = {{-2, 0}, {2, 0}} @@ -39,23 +31,7 @@ local render = function (cr) cr.stroke () end -local render_polar = function (cr) - render (cr) - - -- The plus sign - cr.move_to (-0.6, -1) - cr.line_to (-1.4, -1) - - cr.move_to (-1, -1.4) - cr.line_to (-1, -0.6) - - cr.stroke () -end - -- Register the symbol -logdiag.register ("Capacitor", - names, area, terminals, render) -logdiag.register ("CapacitorPolarized", - names_polar, area_polar, terminals, render_polar) +logdiag.register ("Capacitor", names, area, terminals, render) |