mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-18 23:09:49 +02:00
#2315 Adding docs and integration tests
This commit is contained in:
@@ -689,6 +689,7 @@ export const draw = function (text, id) {
|
||||
// Draw actors below diagram
|
||||
bounds.bumpVerticalPos(conf.boxMargin * 2);
|
||||
drawActors(diagram, actors, actorKeys, bounds.getVerticalPos());
|
||||
bounds.bumpVerticalPos(conf.boxMargin*2);
|
||||
fixLifeLineHeights(diagram, bounds.getVerticalPos());
|
||||
}
|
||||
|
||||
|
@@ -223,7 +223,7 @@ const drawActorTypeParticipant = function (elem, actor, conf) {
|
||||
rect.class = 'actor';
|
||||
rect.rx = 3;
|
||||
rect.ry = 3;
|
||||
drawRect(g, rect);
|
||||
const rectElem = drawRect(g, rect);
|
||||
|
||||
_drawTextCandidateFunc(conf)(
|
||||
actor.description,
|
||||
@@ -236,7 +236,10 @@ const drawActorTypeParticipant = function (elem, actor, conf) {
|
||||
conf
|
||||
);
|
||||
|
||||
return 75;
|
||||
const bounds = rectElem.node().getBBox();
|
||||
actor.height = bounds.height;
|
||||
console.log('Height = ',bounds.height)
|
||||
return bounds.height;
|
||||
};
|
||||
|
||||
const drawActorTypeActor = function (elem, actor, conf) {
|
||||
@@ -318,7 +321,7 @@ const drawActorTypeActor = function (elem, actor, conf) {
|
||||
conf
|
||||
);
|
||||
|
||||
return 100;
|
||||
return actor.height;
|
||||
};
|
||||
|
||||
export const drawActor = function (elem, actor, conf) {
|
||||
|
Reference in New Issue
Block a user