(datum)
| 120286 | return orient === Left || orient === Right; |
| 120287 | } |
| 120288 | function 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 | } |
| 120296 | function 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); |