mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-02-04 07:13:25 +08:00
fix: Use unicode arrows in quadrant chart axis
This commit is contained in:
parent
458ac84749
commit
d86d1e7887
@ -119,10 +119,10 @@ points
|
|||||||
|
|
||||||
axisDetails
|
axisDetails
|
||||||
: X-AXIS text AXIS-TEXT-DELIMITER text {yy.setXAxisLeftText($2); yy.setXAxisRightText($4);}
|
: 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);}
|
| 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 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);}
|
| Y-AXIS text {yy.setYAxisBottomText($2);}
|
||||||
;
|
;
|
||||||
|
|
||||||
|
@ -93,7 +93,7 @@ describe('Testing quadrantChart jison file', () => {
|
|||||||
str = 'quadrantChart\n x-AxIs "Urgent(* +=[❤" --> ';
|
str = 'quadrantChart\n x-AxIs "Urgent(* +=[❤" --> ';
|
||||||
expect(parserFnConstructor(str)).not.toThrow();
|
expect(parserFnConstructor(str)).not.toThrow();
|
||||||
expect(mockDB.setXAxisLeftText).toHaveBeenCalledWith({
|
expect(mockDB.setXAxisLeftText).toHaveBeenCalledWith({
|
||||||
text: 'Urgent(* +=[❤ --> ',
|
text: 'Urgent(* +=[❤ ⭢ ',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
});
|
});
|
||||||
expect(mockDB.setXAxisRightText).not.toHaveBeenCalled();
|
expect(mockDB.setXAxisRightText).not.toHaveBeenCalled();
|
||||||
@ -131,7 +131,7 @@ describe('Testing quadrantChart jison file', () => {
|
|||||||
str = 'quadrantChart\n y-AxIs "Urgent(* +=[❤" --> ';
|
str = 'quadrantChart\n y-AxIs "Urgent(* +=[❤" --> ';
|
||||||
expect(parserFnConstructor(str)).not.toThrow();
|
expect(parserFnConstructor(str)).not.toThrow();
|
||||||
expect(mockDB.setYAxisBottomText).toHaveBeenCalledWith({
|
expect(mockDB.setYAxisBottomText).toHaveBeenCalledWith({
|
||||||
text: 'Urgent(* +=[❤ --> ',
|
text: 'Urgent(* +=[❤ ⭢ ',
|
||||||
type: 'text',
|
type: 'text',
|
||||||
});
|
});
|
||||||
expect(mockDB.setYAxisTopText).not.toHaveBeenCalled();
|
expect(mockDB.setYAxisTopText).not.toHaveBeenCalled();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user