File tree 1 file changed +4
-4
lines changed
1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -147,11 +147,11 @@ function parseAlignmentY(a) {
147
147
( a . indexOf ( 'bottom' ) > - 1 ) ? 1 : 0 ;
148
148
}
149
149
150
- function calculateTextOffset ( tp , dflt ) {
150
+ function calculateTextOffset ( tp ) {
151
151
// Read out text properties
152
152
153
- var defaultAlignmentX = parseAlignmentX ( dflt ) ;
154
- var defaultAlignmentY = parseAlignmentY ( dflt ) ;
153
+ var defaultAlignmentX = 0 ;
154
+ var defaultAlignmentY = 0 ;
155
155
156
156
var textOffset = [
157
157
defaultAlignmentX ,
@@ -266,7 +266,7 @@ function convertPlotlyOptions(scene, data) {
266
266
}
267
267
268
268
if ( 'textposition' in data ) {
269
- params . textOffset = calculateTextOffset ( data . textposition , data . dflt ) ;
269
+ params . textOffset = calculateTextOffset ( data . textposition ) ;
270
270
params . textColor = formatColor ( data . textfont , 1 , len ) ;
271
271
params . textSize = formatParam ( data . textfont . size , len , Lib . identity , 12 ) ;
272
272
params . textFont = data . textfont . family ; // arrayOk === false
You can’t perform that action at this time.
0 commit comments