Skip to content

Commit

Permalink
Merge pull request #4400 from mermaid-js/sidv/quadrantArrows
Browse files Browse the repository at this point in the history
Quadrant chart unicode arrows
  • Loading branch information
sidharthv96 committed May 26, 2023
2 parents cb2bc2a + b925849 commit 5fd5de1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Expand Up @@ -119,10 +119,10 @@ points

axisDetails
: X-AXIS text AXIS-TEXT-DELIMITER text {yy.setXAxisLeftText($2); yy.setXAxisRightText($4);}
| X-AXIS text AXIS-TEXT-DELIMITER {$2.text += $3; yy.setXAxisLeftText($2);}
| X-AXIS text AXIS-TEXT-DELIMITER {$2.text += ""; yy.setXAxisLeftText($2);}
| X-AXIS text {yy.setXAxisLeftText($2);}
| Y-AXIS text AXIS-TEXT-DELIMITER text {yy.setYAxisBottomText($2); yy.setYAxisTopText($4);}
| Y-AXIS text AXIS-TEXT-DELIMITER {$2.text += $3; yy.setYAxisBottomText($2);}
| Y-AXIS text AXIS-TEXT-DELIMITER {$2.text += ""; yy.setYAxisBottomText($2);}
| Y-AXIS text {yy.setYAxisBottomText($2);}
;

Expand Down
Expand Up @@ -93,7 +93,7 @@ describe('Testing quadrantChart jison file', () => {
str = 'quadrantChart\n x-AxIs "Urgent(* +=[❤" --> ';
expect(parserFnConstructor(str)).not.toThrow();
expect(mockDB.setXAxisLeftText).toHaveBeenCalledWith({
text: 'Urgent(* +=[❤ --> ',
text: 'Urgent(* +=[❤ ',
type: 'text',
});
expect(mockDB.setXAxisRightText).not.toHaveBeenCalled();
Expand Down Expand Up @@ -131,7 +131,7 @@ describe('Testing quadrantChart jison file', () => {
str = 'quadrantChart\n y-AxIs "Urgent(* +=[❤" --> ';
expect(parserFnConstructor(str)).not.toThrow();
expect(mockDB.setYAxisBottomText).toHaveBeenCalledWith({
text: 'Urgent(* +=[❤ --> ',
text: 'Urgent(* +=[❤ ',
type: 'text',
});
expect(mockDB.setYAxisTopText).not.toHaveBeenCalled();
Expand Down

0 comments on commit 5fd5de1

Please sign in to comment.