mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-10-30 10:24:12 +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 useRough = config.look === 'handdrawn';
|
||||||
const look = config.look;
|
const look = config.look;
|
||||||
resetDataFetching();
|
resetDataFetching();
|
||||||
dataFetcher(undefined, getRootDocV2(), diagramStates, nodes, edges, true, useRough);
|
dataFetcher(undefined, getRootDocV2(), diagramStates, nodes, edges, true, useRough, look);
|
||||||
|
|
||||||
console.log('State Nodes XDX:', nodes);
|
console.log('State Nodes XDX:', nodes);
|
||||||
return { nodes, edges, other: {}, config };
|
return { nodes, edges, other: {}, config };
|
||||||
|
|||||||
@@ -449,7 +449,7 @@ const fixCorners = function (lineData) {
|
|||||||
Math.abs(nextPoint.x - prevPoint.x),
|
Math.abs(nextPoint.x - prevPoint.x),
|
||||||
Math.abs(nextPoint.y - prevPoint.y)
|
Math.abs(nextPoint.y - prevPoint.y)
|
||||||
);
|
);
|
||||||
const r = 3;
|
const r = 5;
|
||||||
if (cornerPoint.x === newPrevPoint.x) {
|
if (cornerPoint.x === newPrevPoint.x) {
|
||||||
newCornerPoint = {
|
newCornerPoint = {
|
||||||
x: xDiff < 0 ? newPrevPoint.x - r + a : newPrevPoint.x + r - a,
|
x: xDiff < 0 ? newPrevPoint.x - r + a : newPrevPoint.x + r - a,
|
||||||
|
|||||||
Reference in New Issue
Block a user