From ac56c16ab83e6171c6e70454ec77f0e0b0764b38 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C5=99emysl=20Janouch?= Date: Mon, 14 Feb 2011 10:46:57 +0100 Subject: Update the symbol library. --- share/library/Active/bipolar.lua | 4 ++-- share/library/Active/icon.svg | 2 +- share/library/Active/igfet.lua | 13 +++++++++++-- share/library/Active/jfet.lua | 19 +++++++++++++------ share/library/Passive/capacitor.lua | 9 +++++---- 5 files changed, 32 insertions(+), 15 deletions(-) diff --git a/share/library/Active/bipolar.lua b/share/library/Active/bipolar.lua index f08983f..5a5fc14 100644 --- a/share/library/Active/bipolar.lua +++ b/share/library/Active/bipolar.lua @@ -40,8 +40,8 @@ local render_npn = function (cr) render (cr) cr.save () - cr.translate (0, -0.5) - cr.rotate (math.atan2 (-2, -1.5)) + cr.translate (0, 0.5) + cr.rotate (math.atan2 (-2, 1.5)) cr.move_to (-0.4, 0.8) cr.line_to (0, 1.4) diff --git a/share/library/Active/icon.svg b/share/library/Active/icon.svg index 66f74ec..802c7a4 100644 --- a/share/library/Active/icon.svg +++ b/share/library/Active/icon.svg @@ -46,7 +46,7 @@ id="path3770" style="fill:none;stroke:#000000;stroke-width:4;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" /> diff --git a/share/library/Active/igfet.lua b/share/library/Active/igfet.lua index 4479269..58268f8 100644 --- a/share/library/Active/igfet.lua +++ b/share/library/Active/igfet.lua @@ -20,8 +20,7 @@ local terminals = {{-2, 1}, {2, 1}, {2, 0}, {2, -1}} -- Rendering local render = function (cr) -- The terminals - cr.move_to (-2, 1) - cr.line_to (-0.3, 1) + cr.move_to (-0.3, 1) cr.line_to (-0.3, -1) cr.move_to (0, 1) @@ -49,6 +48,11 @@ end local render_igfet_n = function (cr) render (cr) + -- The left-side terminal + cr.move_to (-2, 1) + cr.line_to (-0.3, 1) + + -- The arrow cr.move_to (0.9, -0.4) cr.line_to (0.4, 0) cr.line_to (0.9, 0.4) @@ -59,6 +63,11 @@ end local render_igfet_p = function (cr) render (cr) + -- The left-side terminal + cr.move_to (-2, -1) + cr.line_to (-0.3, -1) + + -- The arrow cr.move_to (0.4, -0.4) cr.line_to (0.9, 0) cr.line_to (0.4, 0.4) diff --git a/share/library/Active/jfet.lua b/share/library/Active/jfet.lua index 30c0eb9..51e81f6 100644 --- a/share/library/Active/jfet.lua +++ b/share/library/Active/jfet.lua @@ -20,9 +20,6 @@ local terminals = {{-2, 1}, {2, 1}, {2, -1}} -- Rendering local render = function (cr) -- The terminals - cr.move_to (-2, 1) - cr.line_to (0, 1) - cr.move_to (0, 1) cr.line_to (2, 1) @@ -39,6 +36,11 @@ end local render_jfet_n = function (cr) render (cr) + -- The left-side terminal + cr.move_to (-2, 1) + cr.line_to (0, 1) + + -- The arrow cr.move_to (-1, 0.6) cr.line_to (-0.5, 1) cr.line_to (-1, 1.4) @@ -49,9 +51,14 @@ end local render_jfet_p = function (cr) render (cr) - cr.move_to (-0.4, 0.6) - cr.line_to (-1, 1) - cr.line_to (-0.4, 1.4) + -- The left-side terminal + cr.move_to (-2, -1) + cr.line_to (0, -1) + + -- The arrow + cr.move_to (-0.4, -0.6) + cr.line_to (-1, -1) + cr.line_to (-0.4, -1.4) cr.stroke () end diff --git a/share/library/Passive/capacitor.lua b/share/library/Passive/capacitor.lua index 02cf0ce..8b43ad8 100644 --- a/share/library/Passive/capacitor.lua +++ b/share/library/Passive/capacitor.lua @@ -40,11 +40,12 @@ end local render_polar = function (cr) render (cr) - cr.move_to (0.6, -1) - cr.line_to (1.4, -1) + -- 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.move_to (-1, -1.4) + cr.line_to (-1, -0.6) cr.stroke () end -- cgit v1.2.3