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

Function axisIndices

docs/app/js/sanddance-app.js:120288–120295  ·  view source on GitHub ↗
(datum)

Source from the content-addressed store, hash-verified

120286 return orient === Left || orient === Right;
120287}
120288function axisIndices(datum) {
120289 let index = +datum.grid;
120290 return [
120291 datum.ticks ? index++ : -1,
120292 datum.labels ? index++ : -1,
120293 index + +datum.domain // title index
120294 ];
120295}
120296function axisLayout(view, axis, width, height) {
120297 var item = axis.items[0], datum = item.datum, delta = item.translate != null ? item.translate : 0.5, orient = item.orient, indices = axisIndices(datum), range = item.range, offset = item.offset, position = item.position, minExtent = item.minExtent, maxExtent = item.maxExtent, title = datum.title && item.items[indices[2]].items[0], titlePadding = item.titlePadding, bounds = item.bounds, dl = title && (0, _vegaScenegraph.multiLineOffset)(title), x = 0, y = 0, i, s;
120298 tempBounds.clear().union(bounds);

Callers 1

axisLayoutFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected