MCPcopy Index your code
hub / github.com/plotly/plotly.js / convertTextSelection

Function convertTextSelection

src/traces/scattergl/convert.js:421–441  ·  view source on GitHub ↗
(gd, trace, target)

Source from the content-addressed store, hash-verified

419}
420
421function 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
443function convertErrorBarStyle(trace, target, plotGlPixelRatio) {
444 var optsOut = {

Callers 1

convertStyleFunction · 0.85

Calls 1

convertTextStyleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…