mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-14 21:09:50 +02:00
Fix merge changes for pr 722 and issue #782
This commit is contained in:
@@ -181,6 +181,23 @@ export const insertArrowHead = function (elem) {
|
||||
.append('path')
|
||||
.attr('d', 'M 0,0 V 4 L6,2 Z') // this is actual shape for arrowhead
|
||||
}
|
||||
/**
|
||||
* Setup node number. The result is appended to the svg.
|
||||
*/
|
||||
export const insertSequenceNumber = function (elem) {
|
||||
elem.append('defs').append('marker')
|
||||
.attr('id', 'sequencenumber')
|
||||
.attr('refX', 15)
|
||||
.attr('refY', 15)
|
||||
.attr('markerWidth', 60)
|
||||
.attr('markerHeight', 40)
|
||||
.attr('orient', 'auto')
|
||||
.append('circle')
|
||||
.attr('cx', 15)
|
||||
.attr('cy', 15)
|
||||
.attr('r', 6)
|
||||
// .style("fill", '#f00');
|
||||
}
|
||||
/**
|
||||
* Setup arrow head and define the marker. The result is appended to the svg.
|
||||
*/
|
||||
@@ -315,6 +332,7 @@ export default {
|
||||
drawActivation,
|
||||
drawLoop,
|
||||
insertArrowHead,
|
||||
insertSequenceNumber,
|
||||
insertArrowCrossHead,
|
||||
getTextObj,
|
||||
getNoteRect
|
||||
|
Reference in New Issue
Block a user