style(collection-marker): adjust svg path to align with parallel marker

Closes #1371
This commit is contained in:
Alexis Zeghers 2020-11-17 18:47:01 +01:00 committed by Nico Rehwaldt
parent 4b46f695ce
commit 5d339676f2
2 changed files with 7 additions and 10 deletions

View File

@ -1829,7 +1829,7 @@ export default function BpmnRenderer(
function renderDataItemCollection(parentGfx, element) { function renderDataItemCollection(parentGfx, element) {
var yPosition = (element.height - 16) / element.height; var yPosition = (element.height - 18) / element.height;
var pathData = pathMap.getScaledPath('DATA_OBJECT_COLLECTION_PATH', { var pathData = pathMap.getScaledPath('DATA_OBJECT_COLLECTION_PATH', {
xScaleFactor: 1, xScaleFactor: 1,
@ -1837,7 +1837,7 @@ export default function BpmnRenderer(
containerWidth: element.width, containerWidth: element.width,
containerHeight: element.height, containerHeight: element.height,
position: { position: {
mx: 0.451, mx: 0.33,
my: yPosition my: yPosition
} }
}); });

View File

@ -171,14 +171,11 @@ export default function PathMap() {
widthElements: [10, 40, 50, 60] widthElements: [10, 40, 50, 60]
}, },
'DATA_OBJECT_COLLECTION_PATH': { 'DATA_OBJECT_COLLECTION_PATH': {
d:'m {mx}, {my} ' + d: 'm{mx},{my} m 3,2 l 0,10 m 3,-10 l 0,10 m 3,-10 l 0,10',
'm 0 15 l 0 -15 ' + height: 10,
'm 4 15 l 0 -15 ' + width: 10,
'm 4 15 l 0 -15 ', heightElements: [],
height: 61, widthElements: []
width: 51,
heightElements: [12],
widthElements: [1, 6, 12, 15]
}, },
'DATA_ARROW': { 'DATA_ARROW': {
d:'m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z', d:'m 5,9 9,0 0,-3 5,5 -5,5 0,-3 -9,0 z',