MCPcopy Create free account
hub / github.com/microsoft/SandDance / bboxPoint

Function bboxPoint

docs/app/js/sanddance-app.js:109372–109378  ·  view source on GitHub ↗
(p)

Source from the content-addressed store, hash-verified

109370exports.default = function(topology) {
109371 var t = (0, _transformJsDefault.default)(topology.transform), key, x0 = Infinity, y0 = x0, x1 = -x0, y1 = -x0;
109372 function bboxPoint(p) {
109373 p = t(p);
109374 if (p[0] < x0) x0 = p[0];
109375 if (p[0] > x1) x1 = p[0];
109376 if (p[1] < y0) y0 = p[1];
109377 if (p[1] > y1) y1 = p[1];
109378 }
109379 function bboxGeometry(o) {
109380 switch(o.type){
109381 case "GeometryCollection":

Callers 1

bboxGeometryFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected