File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -147,11 +147,11 @@ function parseAlignmentY(a) {
147147 ( a . indexOf ( 'bottom' ) > - 1 ) ? 1 : 0 ;
148148}
149149
150- function calculateTextOffset ( tp , dflt ) {
150+ function calculateTextOffset ( tp ) {
151151 // Read out text properties
152152
153- var defaultAlignmentX = parseAlignmentX ( dflt ) ;
154- var defaultAlignmentY = parseAlignmentY ( dflt ) ;
153+ var defaultAlignmentX = 0 ;
154+ var defaultAlignmentY = 0 ;
155155
156156 var textOffset = [
157157 defaultAlignmentX ,
@@ -266,7 +266,7 @@ function convertPlotlyOptions(scene, data) {
266266 }
267267
268268 if ( 'textposition' in data ) {
269- params . textOffset = calculateTextOffset ( data . textposition , data . dflt ) ;
269+ params . textOffset = calculateTextOffset ( data . textposition ) ;
270270 params . textColor = formatColor ( data . textfont , 1 , len ) ;
271271 params . textSize = formatParam ( data . textfont . size , len , Lib . identity , 12 ) ;
272272 params . textFont = data . textfont . family ; // arrayOk === false
You can’t perform that action at this time.
0 commit comments