Merge pull request #3641 from ishuen/bug/3637_extra_arrow

Remove extra arrow and adjust cross position
This commit is contained in:
Knut Sveidqvist
2022-11-18 10:38:57 +01:00
committed by GitHub

View File

@@ -752,7 +752,7 @@ export const insertSequenceNumber = function (elem) {
// .style("fill", '#f00'); // .style("fill", '#f00');
}; };
/** /**
* Setup arrow head and define the marker. The result is appended to the svg. * Setup cross head and define the marker. The result is appended to the svg.
* *
* @param {any} elem * @param {any} elem
*/ */
@@ -764,26 +764,16 @@ export const insertArrowCrossHead = function (elem) {
.attr('markerWidth', 15) .attr('markerWidth', 15)
.attr('markerHeight', 8) .attr('markerHeight', 8)
.attr('orient', 'auto') .attr('orient', 'auto')
.attr('refX', 16) .attr('refX', 4)
.attr('refY', 4); .attr('refY', 5);
// The arrow
marker
.append('path')
.attr('fill', 'black')
.attr('stroke', '#000000')
.style('stroke-dasharray', '0, 0')
.attr('stroke-width', '1px')
.attr('d', 'M 9,2 V 6 L16,4 Z');
// The cross // The cross
marker marker
.append('path') .append('path')
.attr('fill', 'none') .attr('fill', 'none')
.attr('stroke', '#000000') .attr('stroke', '#000000')
.style('stroke-dasharray', '0, 0') .style('stroke-dasharray', '0, 0')
.attr('stroke-width', '1px') .attr('stroke-width', '1pt')
.attr('d', 'M 0,1 L 6,7 M 6,1 L 0,7'); .attr('d', 'M 1,2 L 6,7 M 6,2 L 1,7');
// this is actual shape for arrowhead // this is actual shape for arrowhead
}; };