Add suport for start and end labels (cardinality) in elk renderer

This commit is contained in:
yari-dewalt
2024-10-17 08:58:06 -07:00
parent b7ef8b2b5a
commit 6041729ae2

View File

@@ -262,6 +262,8 @@ export const render = async (
interpolate: undefined; interpolate: undefined;
style: undefined; style: undefined;
labelType: any; labelType: any;
startLabelRight?: string;
endLabelLeft?: string;
}) { }) {
// Identify Link // Identify Link
const linkIdBase = edge.id; // 'L-' + edge.start + '-' + edge.end; const linkIdBase = edge.id; // 'L-' + edge.start + '-' + edge.end;
@@ -315,6 +317,9 @@ export const render = async (
let style = ''; let style = '';
let labelStyle = ''; let labelStyle = '';
edgeData.startLabelRight = edge.startLabelRight;
edgeData.endLabelLeft = edge.endLabelLeft;
switch (edge.stroke) { switch (edge.stroke) {
case 'normal': case 'normal':
style = 'fill:none;'; style = 'fill:none;';