add actor-top class to rectangle actor and man actor

This commit is contained in:
Ronid1 2024-01-25 17:16:09 -08:00
parent 6939cf52e6
commit f2f8d89a28
1 changed files with 8 additions and 1 deletions

View File

@ -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;