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

Function styleOnSelect

src/traces/scatter/style.js:43–53  ·  view source on GitHub ↗
(gd, cd, sel)

Source from the content-addressed store, hash-verified

41}
42
43function styleOnSelect(gd, cd, sel) {
44 var trace = cd[0].trace;
45
46 if(trace.selectedpoints) {
47 Drawing.selectedPointStyle(sel.selectAll('path.point'), trace);
48 Drawing.selectedTextStyle(sel.selectAll('text'), trace);
49 } else {
50 stylePoints(sel, trace, gd);
51 styleText(sel, trace, gd);
52 }
53}
54
55module.exports = {
56 style: style,

Callers

nothing calls this directly

Calls 2

styleTextFunction · 0.85
stylePointsFunction · 0.70

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…