Skip to content

Commit

Permalink
fix(arch): Y axis labels rotated to opposite side
Browse files Browse the repository at this point in the history
  • Loading branch information
NicolasNewman committed Apr 29, 2024
1 parent b21fc9f commit cabb7b6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/mermaid/src/diagrams/architecture/svgDraw.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ export const drawEdges = function (edgesEl: D3Element, cy: cytoscape.Core) {
if (axis === 'X') {
textElem.attr('transform', 'translate(' + midX + ', ' + midY + ')');
} else if (axis === 'Y') {
textElem.attr('transform', 'translate(' + midX + ', ' + midY + ') rotate(90)');
textElem.attr('transform', 'translate(' + midX + ', ' + midY + ') rotate(-90)');
} else if (axis === 'XY') {
const pair = getArchitectureDirectionPair(sourceDir, targetDir);
if (pair && isArchitecturePairXY(pair)) {
Expand Down

0 comments on commit cabb7b6

Please sign in to comment.