Skip to content

Commit bc469aa

Browse files
authored
rail bottom ticks for STAR/Vantage in Visualizer (#570)
1 parent 318f60c commit bc469aa

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pylabrobot/visualizer/lib.js

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -470,10 +470,11 @@ class HamiltonSTARDeck extends Deck {
470470

471471
// Draw vertical rails as lines
472472
for (let i = 0; i < this.num_rails; i++) {
473+
const railBottomTickHeight = 10;
473474
const rail = new Konva.Line({
474475
points: [
475476
100 + i * 22.5, // 22.5 mm per rail
476-
63,
477+
63 - railBottomTickHeight,
477478
100 + i * 22.5, // 22.5 mm per rail
478479
this.railHeight + 63,
479480
],
@@ -549,8 +550,9 @@ class VantageDeck extends Deck {
549550

550551
for (let i = 0; i < this.num_rails; i++) {
551552
const railX = 32.5 + i * 22.5;
553+
const railBottomTickHeight = 10;
552554
const rail = new Konva.Line({
553-
points: [railX, 63, railX, this.railHeight + 63],
555+
points: [railX, 63 - railBottomTickHeight, railX, this.railHeight + 63],
554556
stroke: "black",
555557
strokeWidth: 1,
556558
});

0 commit comments

Comments
 (0)