MCPcopy Index your code
hub / github.com/microsoft/SandDance / offsetValue

Function offsetValue

docs/app/js/sanddance-app.js:120412–120414  ·  view source on GitHub ↗
(v)

Source from the content-addressed store, hash-verified

120410 return v != null ? v : d !== undefined ? d : 0;
120411}
120412function offsetValue(v) {
120413 return v < 0 ? Math.ceil(-v) : 0;
120414}
120415function gridLayout(view, groups, opt) {
120416 var dirty = !opt.nodirty, bbox = opt.bounds === Flush ? bboxFlush : bboxFull, bounds = tempBounds.set(0, 0, 0, 0), alignCol = get(opt.align, Column), alignRow = get(opt.align, Row), padCol = get(opt.padding, Column), padRow = get(opt.padding, Row), ncols = opt.columns || groups.length, nrows = ncols <= 0 ? 1 : Math.ceil(groups.length / ncols), n = groups.length, xOffset = Array(n), xExtent = Array(ncols), xMax = 0, yOffset = Array(n), yExtent = Array(nrows), yMax = 0, dx = Array(n), dy = Array(n), boxes = Array(n), m, i, c, r, b, g, px, py, x, y, offset;
120417 for(i = 0; i < ncols; ++i)xExtent[i] = 0;

Callers 2

gridLayoutFunction · 0.70
axisGridFunction · 0.70

Calls 1

isSignalFunction · 0.70

Tested by

no test coverage detected