(gd, trace, target)
| 419 | } |
| 420 | |
| 421 | function convertTextSelection(gd, trace, target) { |
| 422 | var optsOut = {}; |
| 423 | |
| 424 | if (!target) return optsOut; |
| 425 | |
| 426 | if (target.textfont) { |
| 427 | var optsIn = { |
| 428 | opacity: 1, |
| 429 | text: trace.text, |
| 430 | texttemplate: trace.texttemplate, |
| 431 | textposition: trace.textposition, |
| 432 | textfont: Lib.extendFlat({}, trace.textfont) |
| 433 | }; |
| 434 | if (target.textfont) { |
| 435 | Lib.extendFlat(optsIn.textfont, target.textfont); |
| 436 | } |
| 437 | optsOut = convertTextStyle(gd, optsIn); |
| 438 | } |
| 439 | |
| 440 | return optsOut; |
| 441 | } |
| 442 | |
| 443 | function convertErrorBarStyle(trace, target, plotGlPixelRatio) { |
| 444 | var optsOut = { |
no test coverage detected
searching dependent graphs…