fix ANSI trimpot

This commit is contained in:
2018-03-05 13:35:52 -08:00
parent e8f597ac8f
commit 04201932a8

View File

@@ -18,7 +18,7 @@ class ResistorIcon extends Icon
draw: (x, y) ->
settings = @symbol.settings
@symbol
.lineWidth @lineWidth
.lineWidth @lineWidth/2
.center x, y # Set center to (x, y)
.line -@d.w/2, 0, (-@d.w/2)*(5/6), -@d.h/2
.line (-@d.w/2)*(5/6), -@d.h/2, (-@d.w/2)*(3/6), @d.h/2
@@ -30,7 +30,7 @@ class ResistorIcon extends Icon
if @schematic.trimpot
@symbol
.line -@d.h, @d.h, @d.h, -@d.h
.line @d.h - @d.d, -@d.h - @d.d, @d.h + @d.d, -@d.h + @d.d
.arrow 0.7*@d.h, -0.7*@d.h, @d.h, -@d.h, 0.2*@d.h
@symbol.center 0, 0 # Restore default center point
#