From 01dea6fb2e904e7a830dd5a60b71502f72674a22 Mon Sep 17 00:00:00 2001
From: Přemysl Janouch
Date: Sun, 6 Mar 2011 12:27:35 +0100
Subject: Add separate plus and minus signs.
---
share/library/Passive/capacitor.lua | 28 ++--------------------------
1 file changed, 2 insertions(+), 26 deletions(-)
(limited to 'share/library/Passive')
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)
--
cgit v1.2.3-70-g09d2