feat(markers): add more properties for custom markers

This commit is contained in:
Christopher Möller
2021-10-15 11:51:54 +02:00
parent d3b1148bca
commit 1b73c8fff5
3 changed files with 37 additions and 27 deletions
+6 -2
View File
@@ -56,7 +56,12 @@ const initialElements: Elements = [
labelStyle: { fill: 'red', fontWeight: 700 },
style: { stroke: '#ffcc00' },
markerEnd: {
type: ArrowHeadType.ArrowClosed,
type: ArrowHeadType.Arrow,
color: '#FFCC00',
units: 'userSpaceOnUse',
width: 20,
height: 20,
strokeWidth: 2,
},
markerStart: {
type: ArrowHeadType.Arrow,
@@ -73,7 +78,6 @@ const initialElements: Elements = [
labelBgStyle: { fill: '#FFCC00', color: '#fff', fillOpacity: 0.7 },
markerEnd: {
type: ArrowHeadType.ArrowClosed,
color: '#FFCC00',
},
},
{