Skip to content

Commit

Permalink
multiline gl2d texts
Browse files Browse the repository at this point in the history
  • Loading branch information
monfera committed Oct 26, 2016
1 parent fed224c commit b4a21d3
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@
"gl-line3d": "^1.1.0",
"gl-mat4": "^1.1.2",
"gl-mesh3d": "^1.2.0",
"gl-plot2d": "^1.1.9",
"gl-plot2d": "monfera/gl-plot2d#multiline",
"gl-plot3d": "^1.5.1",
"gl-pointcloud2d": "^1.0.0",
"gl-scatter2d": "^1.2.0",
Expand Down
5 changes: 2 additions & 3 deletions src/plots/gl2d/scene2d.js
Original file line number Diff line number Diff line change
Expand Up @@ -249,9 +249,8 @@ proto.computeTickMarks = function() {

for(var j = 0; j < 2; ++j) {
for(var i = 0; i < nextTicks[j].length; ++i) {
// TODO add support for '\n' in gl-plot2d,
// For now, replace '\n' with ' '
nextTicks[j][i].text = convertHTMLToUnicode(nextTicks[j][i].text + '').replace(/\n/g, ' ');
// coercing tick value (may not be a string) to a string
nextTicks[j][i].text = convertHTMLToUnicode(nextTicks[j][i].text + '');
}
}

Expand Down
Binary file modified test/image/baselines/gl2d_date_axes.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit b4a21d3

Please sign in to comment.