mirror of
https://github.com/mermaid-js/mermaid.git
synced 2025-09-16 22:09:57 +02:00
Added callback to be called after each diagram is rendered as described in issue #176
This commit is contained in:
@@ -372,9 +372,9 @@ module.exports.draw = function (text, id) {
|
||||
var box = exports.bounds.getBounds();
|
||||
|
||||
// Adjust line height of actor lines now that the height of the diagram is known
|
||||
log.debug('For line height fix Querying: #' + id + ' .actor-line')
|
||||
log.debug('For line height fix Querying: #' + id + ' .actor-line');
|
||||
var actorLines = d3.selectAll('#' + id + ' .actor-line');
|
||||
actorLines.attr('y2',box.stopy)
|
||||
actorLines.attr('y2',box.stopy);
|
||||
|
||||
|
||||
var height = box.stopy - box.starty + 2*conf.diagramMarginY;
|
||||
|
Reference in New Issue
Block a user