Skip to content

Commit

Permalink
fixes new TextBox rendering when duration is zero (closes #103)
Browse files Browse the repository at this point in the history
  • Loading branch information
davelandry committed Jan 22, 2019
1 parent 0551b88 commit 104375e
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/TextBox.js
Original file line number Diff line number Diff line change
Expand Up @@ -308,14 +308,17 @@ export default class TextBox extends BaseClass {

if (that._duration === 0) {

texts.call(textStyle);
texts
.call(textContent)
.call(textStyle);

texts.exit().remove();

texts.enter().append("text")
.attr("dominant-baseline", "alphabetic")
.style("baseline-shift", "0%")
.attr("unicode-bidi", "bidi-override")
.call(textContent)
.call(textStyle)
.attr("opacity", d.fO)
.style("opacity", d.fO);
Expand Down

0 comments on commit 104375e

Please sign in to comment.