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

Function convertMarkerSelection

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

Source from the content-addressed store, hash-verified

402}
403
404function convertMarkerSelection(gd, trace, target) {
405 var optsIn = trace.marker;
406 var optsOut = {};
407
408 if (!target) return optsOut;
409
410 if (target.marker && target.marker.symbol) {
411 optsOut = convertMarkerStyle(gd, Lib.extendFlat({}, optsIn, target.marker));
412 } else if (target.marker) {
413 if (target.marker.size) optsOut.size = target.marker.size;
414 if (target.marker.color) optsOut.colors = target.marker.color;
415 if (target.marker.opacity !== undefined) optsOut.opacity = target.marker.opacity;
416 }
417
418 return optsOut;
419}
420
421function convertTextSelection(gd, trace, target) {
422 var optsOut = {};

Callers 2

calc.jsFile · 0.85
convertStyleFunction · 0.85

Calls 1

convertMarkerStyleFunction · 0.85

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…