Skip to content

Commit 07aecd1

Browse files
committed
removed passes to HTML to unicode for 2D plots
1 parent 1178ee2 commit 07aecd1

File tree

2 files changed

+2
-4
lines changed

2 files changed

+2
-4
lines changed

src/plots/gl2d/convert.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,6 @@
1111

1212
var Axes = require('../cartesian/axes');
1313

14-
var convertHTMLToUnicode = require('../../lib/html2unicode');
1514
var str2RGBArray = require('../../lib/str2rgbarray');
1615

1716
function Axes2DOptions(scene) {
@@ -118,7 +117,7 @@ proto.merge = function(options) {
118117

119118
for(j = 0; j <= 2; j += 2) {
120119
this.labelEnable[i + j] = false;
121-
this.labels[i + j] = convertHTMLToUnicode(axTitle);
120+
this.labels[i + j] = axTitle;
122121
this.labelColor[i + j] = str2RGBArray(ax.titlefont.color);
123122
this.labelFont[i + j] = ax.titlefont.family;
124123
this.labelSize[i + j] = ax.titlefont.size;

src/plots/gl2d/scene2d.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ var getContext = require('webgl-context');
2020

2121
var createOptions = require('./convert');
2222
var createCamera = require('./camera');
23-
var convertHTMLToUnicode = require('../../lib/html2unicode');
2423
var showNoWebGlMsg = require('../../lib/show_no_webgl_msg');
2524
var axisConstraints = require('../cartesian/constraints');
2625
var enforceAxisConstraints = axisConstraints.enforce;
@@ -279,7 +278,7 @@ proto.computeTickMarks = function() {
279278
for(var j = 0; j < 2; ++j) {
280279
for(var i = 0; i < nextTicks[j].length; ++i) {
281280
// coercing tick value (may not be a string) to a string
282-
nextTicks[j][i].text = convertHTMLToUnicode(nextTicks[j][i].text + '');
281+
nextTicks[j][i].text = nextTicks[j][i].text + '';
283282
}
284283
}
285284

0 commit comments

Comments
 (0)