#5237 Adding look to data4Layout generation and radius fix

This commit is contained in:
Knut Sveidqvist
2024-05-31 12:04:38 +02:00
parent 2c9c3b4571
commit cca1c41749
2 changed files with 2 additions and 2 deletions

View File

@@ -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 };

View File

@@ -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,