Update the symbol library.

This commit is contained in:
Přemysl Eric Janouch 2011-02-14 10:46:57 +01:00
parent baed5ee4bd
commit ac56c16ab8
5 changed files with 32 additions and 15 deletions

View File

@ -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)

View File

@ -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>

Before

Width:  |  Height:  |  Size: 1.7 KiB

After

Width:  |  Height:  |  Size: 1.7 KiB

View File

@ -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)

View File

@ -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

View File

@ -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