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

Function spikesChanged

src/components/fx/hover.js:2465–2474  ·  view source on GitHub ↗
(gd, oldspikepoints)

Source from the content-addressed store, hash-verified

2463}
2464
2465function spikesChanged(gd, oldspikepoints) {
2466 // don't relayout the plot because of new spikelines if spikelines points didn't change
2467 if (!oldspikepoints) return true;
2468 if (
2469 oldspikepoints.vLinePoint !== gd._spikepoints.vLinePoint ||
2470 oldspikepoints.hLinePoint !== gd._spikepoints.hLinePoint
2471 )
2472 return true;
2473 return false;
2474}
2475
2476function plainText(s, len) {
2477 return svgTextUtils.plainText(s || '', {

Callers 1

_hoverFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…