mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-24 09:49:46 +02:00
add actor-top class to rectangle actor and man actor
This commit is contained in:
@@ -356,6 +356,9 @@ const drawActorTypeParticipant = function (elem, actor, conf, isFooter) {
|
||||
} else {
|
||||
rect.fill = '#eaeaea';
|
||||
}
|
||||
if (!isFooter) {
|
||||
cssclass += ' actor-top';
|
||||
}
|
||||
rect.x = actor.x;
|
||||
rect.y = actorY;
|
||||
rect.width = actor.width;
|
||||
@@ -420,7 +423,11 @@ const drawActorTypeActor = function (elem, actor, conf, isFooter) {
|
||||
actor.actorCnt = actorCnt;
|
||||
}
|
||||
const actElem = elem.append('g');
|
||||
actElem.attr('class', 'actor-man');
|
||||
let cssClass = 'actor-man';
|
||||
if (!isFooter) {
|
||||
cssClass += ' actor-top';
|
||||
}
|
||||
actElem.attr('class', cssClass);
|
||||
|
||||
const rect = svgDrawCommon.getNoteRect();
|
||||
rect.x = actor.x;
|
||||
|
Reference in New Issue
Block a user