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

View File

@@ -356,6 +356,9 @@ const drawActorTypeParticipant = function (elem, actor, conf, isFooter) {
} else { } else {
rect.fill = '#eaeaea'; rect.fill = '#eaeaea';
} }
if (!isFooter) {
cssclass += ' actor-top';
}
rect.x = actor.x; rect.x = actor.x;
rect.y = actorY; rect.y = actorY;
rect.width = actor.width; rect.width = actor.width;
@@ -420,7 +423,11 @@ const drawActorTypeActor = function (elem, actor, conf, isFooter) {
actor.actorCnt = actorCnt; actor.actorCnt = actorCnt;
} }
const actElem = elem.append('g'); 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(); const rect = svgDrawCommon.getNoteRect();
rect.x = actor.x; rect.x = actor.x;