mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-08-23 02:06:45 +02:00
Removing hard coding with dynamic values for cardinalities
This commit is contained in:
@@ -155,12 +155,11 @@ export const addRelations = function(relations, g) {
|
||||
}
|
||||
|
||||
logger.info(edgeData, edge);
|
||||
|
||||
//Set edge extra labels
|
||||
edgeData.startLabelLeft = 'TL';
|
||||
edgeData.startLabelRight = 'TR';
|
||||
edgeData.endLabelLeft = 'BL';
|
||||
edgeData.endLabelRight = 'BR';
|
||||
//edgeData.startLabelLeft = edge.relationTitle1;
|
||||
edgeData.startLabelRight = edge.relationTitle1 === 'none' ? '' : edge.relationTitle1;
|
||||
edgeData.endLabelLeft = edge.relationTitle2 === 'none' ? '' : edge.relationTitle2;
|
||||
//edgeData.endLabelRight = edge.relationTitle2;
|
||||
|
||||
//Set relation arrow types
|
||||
edgeData.arrowTypeStart = getArrowMarker(edge.relation.type1);
|
||||
|
Reference in New Issue
Block a user