File tree Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Expand file tree Collapse file tree 4 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 11
11
12
12
var Plotly = require ( '../../plotly' ) ;
13
13
14
- var htmlToUnicode = require ( '../../lib/html2unicode' ) ;
14
+ var convertHTMLToUnicode = require ( '../../lib/html2unicode' ) ;
15
15
var str2RGBArray = require ( '../../lib/str2rgbarray' ) ;
16
16
17
17
function Axes2DOptions ( scene ) {
@@ -115,7 +115,7 @@ proto.merge = function(options) {
115
115
116
116
for ( j = 0 ; j <= 2 ; j += 2 ) {
117
117
this . labelEnable [ i + j ] = false ;
118
- this . labels [ i + j ] = htmlToUnicode ( axTitle ) ;
118
+ this . labels [ i + j ] = convertHTMLToUnicode ( axTitle ) ;
119
119
this . labelColor [ i + j ] = str2RGBArray ( ax . titlefont . color ) ;
120
120
this . labelFont [ i + j ] = ax . titlefont . family ;
121
121
this . labelSize [ i + j ] = ax . titlefont . size ;
Original file line number Diff line number Diff line change @@ -18,7 +18,7 @@ var createSelectBox = require('gl-select-box');
18
18
19
19
var createOptions = require ( './convert' ) ;
20
20
var createCamera = require ( './camera' ) ;
21
- var htmlToUnicode = require ( '../../lib/html2unicode' ) ;
21
+ var convertHTMLToUnicode = require ( '../../lib/html2unicode' ) ;
22
22
var showNoWebGlMsg = require ( '../../lib/show_no_webgl_msg' ) ;
23
23
24
24
var AXES = [ 'xaxis' , 'yaxis' ] ;
@@ -231,7 +231,7 @@ proto.computeTickMarks = function() {
231
231
for ( var i = 0 ; i < nextTicks [ j ] . length ; ++ i ) {
232
232
// TODO add support for '\n' in gl-plot2d,
233
233
// For now, replace '\n' with ' '
234
- nextTicks [ j ] [ i ] . text = htmlToUnicode ( nextTicks [ j ] [ i ] . text + '' ) . replace ( / \n / g, ' ' ) ;
234
+ nextTicks [ j ] [ i ] . text = convertHTMLToUnicode ( nextTicks [ j ] [ i ] . text + '' ) . replace ( / \n / g, ' ' ) ;
235
235
}
236
236
}
237
237
Original file line number Diff line number Diff line change 10
10
'use strict' ;
11
11
12
12
var arrtools = require ( 'arraytools' ) ;
13
- var convertHTML = require ( '../../../lib/html2unicode' ) ;
13
+ var convertHTMLToUnicode = require ( '../../../lib/html2unicode' ) ;
14
14
var str2RgbaArray = require ( '../../../lib/str2rgbarray' ) ;
15
15
16
16
var arrayCopy1D = arrtools . copy1D ;
@@ -77,7 +77,7 @@ proto.merge = function(sceneLayout) {
77
77
var axes = sceneLayout [ AXES_NAMES [ i ] ] ;
78
78
79
79
/////// Axes labels //
80
- opts . labels [ i ] = convertHTML ( axes . title ) ;
80
+ opts . labels [ i ] = convertHTMLToUnicode ( axes . title ) ;
81
81
if ( 'titlefont' in axes ) {
82
82
if ( axes . titlefont . color ) opts . labelColor [ i ] = str2RgbaArray ( axes . titlefont . color ) ;
83
83
if ( axes . titlefont . family ) opts . labelFont [ i ] = axes . titlefont . family ;
Original file line number Diff line number Diff line change 14
14
module . exports = computeTickMarks ;
15
15
16
16
var Plotly = require ( '../../../plotly' ) ;
17
- var convertHTML = require ( '../../../lib/html2unicode' ) ;
17
+ var convertHTMLToUnicode = require ( '../../../lib/html2unicode' ) ;
18
18
19
19
var AXES_NAMES = [ 'xaxis' , 'yaxis' , 'zaxis' ] ;
20
20
@@ -70,7 +70,7 @@ function computeTickMarks(scene) {
70
70
var dataTicks = Plotly . Axes . calcTicks ( axes ) ;
71
71
for ( var j = 0 ; j < dataTicks . length ; ++ j ) {
72
72
dataTicks [ j ] . x = dataTicks [ j ] . x * scene . dataScale [ i ] ;
73
- dataTicks [ j ] . text = convertHTML ( dataTicks [ j ] . text ) ;
73
+ dataTicks [ j ] . text = convertHTMLToUnicode ( dataTicks [ j ] . text ) ;
74
74
}
75
75
ticks [ i ] = dataTicks ;
76
76
You can’t perform that action at this time.
0 commit comments