Added lollipop feature for updated codebase

This commit is contained in:
may4everL
2022-08-09 22:44:11 -07:00
parent 48fe013c83
commit 7257bba3f3
8 changed files with 78 additions and 1 deletions

View File

@@ -119,6 +119,24 @@ const dependency = (elem, type) => {
.append('path')
.attr('d', 'M 18,7 L9,13 L14,7 L9,1 Z');
};
const lollipop = (elem, type, id) => {
elem
.append('defs')
.append('marker')
.attr('id', type + '-lollipopStart')
.attr('class', 'marker lollipop ' + type)
.attr('refX', 0)
.attr('refY', 7)
.attr('markerWidth', 190)
.attr('markerHeight', 240)
.attr('orient', 'auto')
.append('circle')
.attr('stroke', 'black')
.attr('fill', 'white')
.attr('cx', 6)
.attr('cy', 7)
.attr('r', 6);
};
const point = (elem, type) => {
elem
.append('marker')
@@ -250,6 +268,7 @@ const markers = {
composition,
aggregation,
dependency,
lollipop,
point,
circle,
cross,