MCPcopy Create free account
hub / github.com/plotly/plotly.js / sameEdge

Function sameEdge

src/traces/scatter/line_points.js:184–187  ·  view source on GitHub ↗
(pt1, pt2)

Source from the content-addressed store, hash-verified

182 }
183
184 function sameEdge(pt1, pt2) {
185 if(pt1[0] === pt2[0] && (pt1[0] === xEdge0 || pt1[0] === xEdge1)) return true;
186 if(pt1[1] === pt2[1] && (pt1[1] === yEdge0 || pt1[1] === yEdge1)) return true;
187 }
188
189 // for line shapes hv and vh, movement in the two dimensions is decoupled,
190 // so all we need to do is constrain each dimension independently

Callers 2

getHVEdgeIntersectionsFunction · 0.85
getABAEdgeIntersectionsFunction · 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…