File tree Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Expand file tree Collapse file tree 1 file changed +3
-2
lines changed Original file line number Diff line number Diff line change @@ -17,6 +17,7 @@ var Plots = require('../../plots/plots');
1717var dragElement = require ( '../dragelement' ) ;
1818var Drawing = require ( '../drawing' ) ;
1919var Color = require ( '../color' ) ;
20+ var svgTextUtils = require ( '../../lib/svg_text_utils' ) ;
2021
2122var constants = require ( './constants' ) ;
2223var getLegendData = require ( './get_legend_data' ) ;
@@ -354,14 +355,14 @@ function drawTexts(g, gd) {
354355 . text ( name ) ;
355356
356357 function textLayout ( s ) {
357- Plotly . util . convertToTspans ( s , function ( ) {
358+ svgTextUtils . convertToTspans ( s , function ( ) {
358359 s . selectAll ( 'tspan.line' ) . attr ( { x : s . attr ( 'x' ) } ) ;
359360 g . call ( computeTextDimensions , gd ) ;
360361 } ) ;
361362 }
362363
363364 if ( gd . _context . editable && ! isPie ) {
364- text . call ( Plotly . util . makeEditable )
365+ text . call ( svgTextUtils . makeEditable )
365366 . call ( textLayout )
366367 . on ( 'edit' , function ( text ) {
367368 this . attr ( { 'data-unformatted' : text } ) ;
You can’t perform that action at this time.
0 commit comments