(view, title, offset, pad, dl, isYAxis1, sign, bounds)
| 120342 | return item.mark.bounds.clear().union(bounds); |
| 120343 | } |
| 120344 | function axisTitleLayout(view, title, offset, pad, dl, isYAxis1, sign, bounds) { |
| 120345 | const b = title.bounds; |
| 120346 | if (title.auto) { |
| 120347 | const v = sign * (offset + dl + pad); |
| 120348 | let dx = 0, dy = 0; |
| 120349 | view.dirty(title); |
| 120350 | isYAxis1 ? dx = (title.x || 0) - (title.x = v) : dy = (title.y || 0) - (title.y = v); |
| 120351 | title.mark.bounds.clear().union(b.translate(-dx, -dy)); |
| 120352 | view.dirty(title); |
| 120353 | } |
| 120354 | bounds.union(b); |
| 120355 | } |
| 120356 | const min = (a, b)=>Math.floor(Math.min(a, b)); |
| 120357 | const max = (a, b)=>Math.ceil(Math.max(a, b)); |
| 120358 | function gridLayoutGroups(group) { |
no test coverage detected