MCPcopy Create free account
hub / github.com/breck7/scroll / comparePoint

Function comparePoint

external/.d3.js:11179–11187  ·  view source on GitHub ↗
(a, b)

Source from the content-addressed store, hash-verified

11177 }
11178
11179 function comparePoint(a, b) {
11180 var ca = corner(a, 1),
11181 cb = corner(b, 1);
11182 return ca !== cb ? ca - cb
11183 : ca === 0 ? b[1] - a[1]
11184 : ca === 1 ? a[0] - b[0]
11185 : ca === 2 ? a[1] - b[1]
11186 : b[0] - a[0];
11187 }
11188
11189 return function(stream) {
11190 var activeStream = stream,

Callers 2

interpolateFunction · 0.85
compareIntersectionFunction · 0.85

Calls 1

cornerFunction · 0.85

Tested by

no test coverage detected