Skip to content

Commit b2f175c

Browse files
committed
Increase clearance around module pin labels
1 parent 2127295 commit b2f175c

3 files changed

Lines changed: 3 additions & 2 deletions

File tree

100 Bytes
Loading

‎docs/images/fermentation-logger.svg‎

Lines changed: 1 addition & 1 deletion
Loading

‎lib/breadkit/render/svg_renderer.rb‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -276,7 +276,8 @@ def module_svg(component, pins)
276276
label = definition && definition["label"]
277277
next unless label
278278
label = pin.name if label == true
279-
label_y = pin_y + (center_y > pin_y ? 3.8 : -3.8)
279+
label_gap = @orientation == "portrait" ? 10 : 3.8
280+
label_y = pin_y + (center_y > pin_y ? label_gap : -label_gap)
280281
label_anchor = @orientation == "portrait" ? (center_y > pin_y ? "end" : "start") : "middle"
281282
out << text(pin_x, label_y, label, "font-size" => 5.8, "font-weight" => 500,
282283
"fill" => render["text_color"] || @colors[:text], "text-anchor" => label_anchor)

0 commit comments

Comments
 (0)