mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 04:44:08 +01:00 
			
		
		
		
	Merge branch 'develop' of github.com:mermaid-js/mermaid into develop
This commit is contained in:
		@@ -512,7 +512,7 @@ describe('Flowchart', () => {
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  it('24.1: Keep node label text (if already defined) when a style is applied', () => {
 | 
			
		||||
  it('24: Keep node label text (if already defined) when a style is applied', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `graph LR
 | 
			
		||||
      A(( )) -->|step 1| B(( ))
 | 
			
		||||
@@ -524,7 +524,7 @@ describe('Flowchart', () => {
 | 
			
		||||
      { flowchart: { htmlLabels: false } }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
it('24.2: Handle link click events (link, anchor, mailto, other protocol, script)', () => {
 | 
			
		||||
it('25: Handle link click events (link, anchor, mailto, other protocol, script)', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `graph TB
 | 
			
		||||
      TITLE["Link Click Events<br>(click the nodes below)"]
 | 
			
		||||
@@ -544,11 +544,15 @@ it('24.2: Handle link click events (link, anchor, mailto, other protocol, script
 | 
			
		||||
      );
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  it('25: Set node text color according to style when html labels are enabled', () => {
 | 
			
		||||
  it('26: Set text color of nodes and links according to styles when html labels are enabled', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `graph LR
 | 
			
		||||
      A[red<br>text] --> B(blue<br>text)
 | 
			
		||||
      C[/red<br/>text/] --> D{blue<br/>text}
 | 
			
		||||
      A[red<br>text] -->|red<br>text| B(blue<br>text)
 | 
			
		||||
      C[/red<br/>text/] -->|blue<br/>text| D{blue<br/>text}
 | 
			
		||||
      E{{default<br />style}} -->|default<br />style| F([default<br />style])
 | 
			
		||||
      linkStyle default color:Sienna;
 | 
			
		||||
      linkStyle 0 color:red;
 | 
			
		||||
      linkStyle 1 stroke:DarkGray,stroke-width:2px,color:#0000ff
 | 
			
		||||
      style A color:red;
 | 
			
		||||
      style B color:blue;
 | 
			
		||||
      style C stroke:#ff0000,fill:#ffcccc,color:#ff0000
 | 
			
		||||
@@ -560,11 +564,15 @@ it('24.2: Handle link click events (link, anchor, mailto, other protocol, script
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  it('26: Set node text color according to style when html labels are disabled', () => {
 | 
			
		||||
  it('27: Set text color of nodes and links according to styles when html labels are disabled', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `graph LR
 | 
			
		||||
      A[red<br>text] --> B(blue<br>text)
 | 
			
		||||
      C[/red<br/>text/] --> D{blue<br/>text}
 | 
			
		||||
      A[red<br>text] -->|red<br>text| B(blue<br>text)
 | 
			
		||||
      C[/red<br/>text/] -->|blue<br/>text| D{blue<br/>text}
 | 
			
		||||
      E{{default<br />style}} -->|default<br />style| F([default<br />style])
 | 
			
		||||
      linkStyle default color:Sienna;
 | 
			
		||||
      linkStyle 0 color:red;
 | 
			
		||||
      linkStyle 1 stroke:DarkGray,stroke-width:2px,color:#0000ff
 | 
			
		||||
      style A color:red;
 | 
			
		||||
      style B color:blue;
 | 
			
		||||
      style C stroke:#ff0000,fill:#ffcccc,color:#ff0000
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user