diff --git a/lib/solvers/InlineNetLabelSolver/InlineNetLabelSolver.ts b/lib/solvers/InlineNetLabelSolver/InlineNetLabelSolver.ts index 691333db9..402be6526 100644 --- a/lib/solvers/InlineNetLabelSolver/InlineNetLabelSolver.ts +++ b/lib/solvers/InlineNetLabelSolver/InlineNetLabelSolver.ts @@ -344,6 +344,8 @@ export class InlineNetLabelSolver extends BaseSolver { color: "green", fontSize: inlineLabel.height, anchorSide: "center", + // Vertical labels read bottom-to-top, alongside the wire they name. + rotation: inlineLabel.axis === "y" ? 90 : undefined, }) graphics.points.push({ x: inlineLabel.anchorPoint.x, diff --git a/package.json b/package.json index 85f68647b..599f1d2d1 100644 --- a/package.json +++ b/package.json @@ -19,7 +19,7 @@ "calculate-elbow": "^0.0.12", "connectivity-map": "^1.0.0", "flatbush": "^4.5.0", - "graphics-debug": "^0.0.96", + "graphics-debug": "^0.0.98", "react": "^19.1.1", "react-cosmos": "^7.0.0", "react-cosmos-plugin-vite": "^7.0.0", diff --git a/tests/solvers/InlineNetLabelSolver/__snapshots__/inline-net-label01.snap.svg b/tests/solvers/InlineNetLabelSolver/__snapshots__/inline-net-label01.snap.svg index 87510f153..f5ffc12c6 100644 --- a/tests/solvers/InlineNetLabelSolver/__snapshots__/inline-net-label01.snap.svg +++ b/tests/solvers/InlineNetLabelSolver/__snapshots__/inline-net-label01.snap.svg @@ -1,14 +1,14 @@ -USER_LED_ANODESPI_SCK