Skip to content

Commit

Permalink
fixed group rendering to work in phantomjs
Browse files Browse the repository at this point in the history
  • Loading branch information
drom committed Apr 6, 2016
1 parent 68818ac commit a0cd683
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/render-wave-form.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

var rec = require('./rec'),
lane = require('./lane'),
onmlStringify = require('onml/lib/stringify'),
jsonmlParse = require('./create-element'),
parseConfig = require('./parse-config'),
parseWaveLanes = require('./parse-wave-lanes'),
renderMarks = require('./render-marks'),
Expand Down Expand Up @@ -33,7 +33,7 @@ function renderWaveForm (index, source, output) {
renderMarks(root, content, index, lane);
renderArcs(root, ret.lanes, index, source, lane);
renderGaps(root, ret.lanes, index, lane);
groups.innerHTML = onmlStringify(renderGroups(ret.groups, index, lane));
groups.insertBefore(jsonmlParse(renderGroups(ret.groups, index, lane)), null);
lane.xg = Math.ceil((xmax - lane.tgo) / lane.xs) * lane.xs;
width = (lane.xg + (lane.xs * (lane.xmax + 1)));
height = (content.length * lane.yo +
Expand Down

0 comments on commit a0cd683

Please sign in to comment.