mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-19 23:39:50 +02:00
#945 Increasing size, handling forks and joins in multiple directions
This commit is contained in:
@@ -206,7 +206,7 @@ const drawForkJoinState = (g, stateDef) => {
|
||||
let width = 70;
|
||||
let height = 7;
|
||||
|
||||
if (Math.PI > 3 || stateDef.parentId) {
|
||||
if (stateDef.parentId) {
|
||||
let tmp = width;
|
||||
width = height;
|
||||
height = tmp;
|
||||
@@ -296,6 +296,8 @@ export const drawNote = (text, g) => {
|
||||
* @param {*} elem
|
||||
* @param {*} stateDef
|
||||
*/
|
||||
|
||||
let cnt = 0;
|
||||
export const drawState = function(elem, stateDef, graph, doc) {
|
||||
const id = stateDef.id;
|
||||
const stateInfo = {
|
||||
|
Reference in New Issue
Block a user