mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-02-04 07:13:25 +08:00
feat: add name attribute to line
This commit is contained in:
parent
31a287b7b0
commit
60a484f1e4
@ -343,10 +343,10 @@ const drawActorTypeParticipant = async function (elem, actor, conf, isFooter) {
|
|||||||
.attr('y1', centerY)
|
.attr('y1', centerY)
|
||||||
.attr('x2', center)
|
.attr('x2', center)
|
||||||
.attr('y2', 2000)
|
.attr('y2', 2000)
|
||||||
.attr('class', 'actor-line')
|
.attr('class', 'actor-line 200')
|
||||||
.attr('class', '200')
|
|
||||||
.attr('stroke-width', '0.5px')
|
.attr('stroke-width', '0.5px')
|
||||||
.attr('stroke', '#999');
|
.attr('stroke', '#999')
|
||||||
|
.attr('name', actor.name);
|
||||||
|
|
||||||
g = boxplusLineGroup.append('g');
|
g = boxplusLineGroup.append('g');
|
||||||
actor.actorCnt = actorCnt;
|
actor.actorCnt = actorCnt;
|
||||||
@ -425,10 +425,10 @@ const drawActorTypeActor = async function (elem, actor, conf, isFooter) {
|
|||||||
.attr('y1', centerY)
|
.attr('y1', centerY)
|
||||||
.attr('x2', center)
|
.attr('x2', center)
|
||||||
.attr('y2', 2000)
|
.attr('y2', 2000)
|
||||||
.attr('class', 'actor-line')
|
.attr('class', 'actor-line 200')
|
||||||
.attr('class', '200')
|
|
||||||
.attr('stroke-width', '0.5px')
|
.attr('stroke-width', '0.5px')
|
||||||
.attr('stroke', '#999');
|
.attr('stroke', '#999')
|
||||||
|
.attr('name', actor.name);
|
||||||
|
|
||||||
actor.actorCnt = actorCnt;
|
actor.actorCnt = actorCnt;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user