mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-11-04 04:44:08 +01:00 
			
		
		
		
	Merge pull request #1345 from GDFaber/feature/1343_add_flowchart_subroutine_shape
Add flowchart subroutine node shape
This commit is contained in:
		@@ -652,4 +652,23 @@ describe('Flowchart', () => {
 | 
			
		||||
      { flowchart: { htmlLabels: false } }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
 | 
			
		||||
  it('32: Render Subroutine shape', () => {
 | 
			
		||||
    imgSnapshotTest(
 | 
			
		||||
      `graph LR
 | 
			
		||||
      A[[subroutine shape test]]
 | 
			
		||||
      A -->|Get money| B[[Go shopping]]
 | 
			
		||||
      B --> C[[Let me think...<br />Do I want something for work,<br />something to spend every free second with,<br />or something to get around?]]
 | 
			
		||||
      C -->|One| D[[Laptop]]
 | 
			
		||||
      C -->|Two| E[[iPhone]]
 | 
			
		||||
      C -->|Three| F[[Car<br/>wroom wroom]]
 | 
			
		||||
      click A "index.html#link-clicked" "link test"
 | 
			
		||||
      click B testClick "click test"
 | 
			
		||||
      classDef someclass fill:#f96;
 | 
			
		||||
      class A someclass;
 | 
			
		||||
      class C someclass;
 | 
			
		||||
      `,
 | 
			
		||||
      { flowchart: { htmlLabels: false } }
 | 
			
		||||
    );
 | 
			
		||||
  });
 | 
			
		||||
});
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user