aboutsummaryrefslogtreecommitdiff
path: root/share/library
diff options
context:
space:
mode:
Diffstat (limited to 'share/library')
-rw-r--r--share/library/Active/bipolar.lua4
-rw-r--r--share/library/Active/icon.svg2
-rw-r--r--share/library/Active/igfet.lua13
-rw-r--r--share/library/Active/jfet.lua19
-rw-r--r--share/library/Passive/capacitor.lua9
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" />
<path
- d="m 82,31 15,0 -5,15"
+ d="M 78,92 93,92 88,77"
id="path3772"
style="fill:none;stroke:#000000;stroke-width:4;stroke-miterlimit:4;stroke-opacity:1;stroke-dasharray:none" />
</g>
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