Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit ef66311

Browse files
committedOct 26, 2016
multiline gl2d texts
1 parent fed224c commit ef66311

File tree

3 files changed

+2
-4
lines changed

3 files changed

+2
-4
lines changed
 

‎package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@
6666
"gl-line3d": "^1.1.0",
6767
"gl-mat4": "^1.1.2",
6868
"gl-mesh3d": "^1.2.0",
69-
"gl-plot2d": "^1.1.9",
69+
"gl-plot2d": "monfera/gl-plot2d#multiline",
7070
"gl-plot3d": "^1.5.1",
7171
"gl-pointcloud2d": "^1.0.0",
7272
"gl-scatter2d": "^1.2.0",

‎src/plots/gl2d/scene2d.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -249,9 +249,7 @@ proto.computeTickMarks = function() {
249249

250250
for(var j = 0; j < 2; ++j) {
251251
for(var i = 0; i < nextTicks[j].length; ++i) {
252-
// TODO add support for '\n' in gl-plot2d,
253-
// For now, replace '\n' with ' '
254-
nextTicks[j][i].text = convertHTMLToUnicode(nextTicks[j][i].text + '').replace(/\n/g, ' ');
252+
nextTicks[j][i].text = convertHTMLToUnicode(nextTicks[j][i].text + '');
255253
}
256254
}
257255

116 Bytes
Loading

0 commit comments

Comments
 (0)
Please sign in to comment.