Added callback to be called after each diagram is rendered as described in issue #176

This commit is contained in:
knsv
2015-07-15 11:39:46 +02:00
parent a8c8f9a472
commit fcb2af780d
11 changed files with 168 additions and 39 deletions

View File

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