Fix for direction issue with elk rendering
This commit is contained in:
parent
aef989fe03
commit
343e48302e
|
@ -313,6 +313,7 @@ const getNextPosition = (position, edgeDirection, graphDirection) => {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
};
|
};
|
||||||
|
portPos.TD = portPos.TB;
|
||||||
log.info('abc88', graphDirection, edgeDirection, position);
|
log.info('abc88', graphDirection, edgeDirection, position);
|
||||||
return portPos[graphDirection][edgeDirection][position];
|
return portPos[graphDirection][edgeDirection][position];
|
||||||
// return 'south';
|
// return 'south';
|
||||||
|
@ -323,6 +324,7 @@ const getNextPort = (node, edgeDirection, graphDirection) => {
|
||||||
if (!portPos[node]) {
|
if (!portPos[node]) {
|
||||||
switch (graphDirection) {
|
switch (graphDirection) {
|
||||||
case 'TB':
|
case 'TB':
|
||||||
|
case 'TD':
|
||||||
portPos[node] = {
|
portPos[node] = {
|
||||||
inPosition: 'north',
|
inPosition: 'north',
|
||||||
outPosition: 'south',
|
outPosition: 'south',
|
||||||
|
|
|
@ -238,6 +238,9 @@ export const setDirection = function (dir) {
|
||||||
if (direction.match(/.*v/)) {
|
if (direction.match(/.*v/)) {
|
||||||
direction = 'TB';
|
direction = 'TB';
|
||||||
}
|
}
|
||||||
|
if (direction === 'TD') {
|
||||||
|
direction = 'TB';
|
||||||
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue