mirror of
				https://github.com/mermaid-js/mermaid.git
				synced 2025-10-29 09:54:10 +01:00 
			
		
		
		
	#5237 Adding look to data4Layout generation and radius fix
This commit is contained in:
		| @@ -585,7 +585,7 @@ export const getData = () => { | ||||
|   const useRough = config.look === 'handdrawn'; | ||||
|   const look = config.look; | ||||
|   resetDataFetching(); | ||||
|   dataFetcher(undefined, getRootDocV2(), diagramStates, nodes, edges, true, useRough); | ||||
|   dataFetcher(undefined, getRootDocV2(), diagramStates, nodes, edges, true, useRough, look); | ||||
|  | ||||
|   console.log('State Nodes XDX:', nodes); | ||||
|   return { nodes, edges, other: {}, config }; | ||||
|   | ||||
| @@ -449,7 +449,7 @@ const fixCorners = function (lineData) { | ||||
|           Math.abs(nextPoint.x - prevPoint.x), | ||||
|           Math.abs(nextPoint.y - prevPoint.y) | ||||
|         ); | ||||
|         const r = 3; | ||||
|         const r = 5; | ||||
|         if (cornerPoint.x === newPrevPoint.x) { | ||||
|           newCornerPoint = { | ||||
|             x: xDiff < 0 ? newPrevPoint.x - r + a : newPrevPoint.x + r - a, | ||||
|   | ||||
		Reference in New Issue
	
	Block a user
	 Knut Sveidqvist
					Knut Sveidqvist