aboutsummaryrefslogtreecommitdiff
path: root/share/library/Passive
diff options
context:
space:
mode:
authorPřemysl Janouch <p.janouch@gmail.com>2011-03-06 12:27:35 +0100
committerPřemysl Janouch <p.janouch@gmail.com>2011-03-07 17:29:26 +0100
commit01dea6fb2e904e7a830dd5a60b71502f72674a22 (patch)
tree8629f8ebcf9697f187f5ba2887c42310ba9a3dc8 /share/library/Passive
parentf821e029d75326be545c6ce7ab51493d223ab360 (diff)
downloadlogdiag-01dea6fb2e904e7a830dd5a60b71502f72674a22.tar.gz
logdiag-01dea6fb2e904e7a830dd5a60b71502f72674a22.tar.xz
logdiag-01dea6fb2e904e7a830dd5a60b71502f72674a22.zip
Add separate plus and minus signs.
Diffstat (limited to 'share/library/Passive')
-rw-r--r--share/library/Passive/capacitor.lua28
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)