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');
17
17
var dragElement = require ( '../dragelement' ) ;
18
18
var Drawing = require ( '../drawing' ) ;
19
19
var Color = require ( '../color' ) ;
20
+ var svgTextUtils = require ( '../../lib/svg_text_utils' ) ;
20
21
21
22
var constants = require ( './constants' ) ;
22
23
var getLegendData = require ( './get_legend_data' ) ;
@@ -354,14 +355,14 @@ function drawTexts(g, gd) {
354
355
. text ( name ) ;
355
356
356
357
function textLayout ( s ) {
357
- Plotly . util . convertToTspans ( s , function ( ) {
358
+ svgTextUtils . convertToTspans ( s , function ( ) {
358
359
s . selectAll ( 'tspan.line' ) . attr ( { x : s . attr ( 'x' ) } ) ;
359
360
g . call ( computeTextDimensions , gd ) ;
360
361
} ) ;
361
362
}
362
363
363
364
if ( gd . _context . editable && ! isPie ) {
364
- text . call ( Plotly . util . makeEditable )
365
+ text . call ( svgTextUtils . makeEditable )
365
366
. call ( textLayout )
366
367
. on ( 'edit' , function ( text ) {
367
368
this . attr ( { 'data-unformatted' : text } ) ;
You can’t perform that action at this time.
0 commit comments