(view, g, offset, isX, bounds, band)
| 120587 | return edge; |
| 120588 | } |
| 120589 | function layoutTitle(view, g, offset, isX, bounds, band) { |
| 120590 | if (!g) return; |
| 120591 | view.dirty(g); // compute title coordinates |
| 120592 | var x = offset, y = offset; |
| 120593 | isX ? x = Math.round(bounds.x1 + band * bounds.width()) : y = Math.round(bounds.y1 + band * bounds.height()); // assign coordinates and update bounds |
| 120594 | g.bounds.translate(x - (g.x || 0), y - (g.y || 0)); |
| 120595 | g.mark.bounds.clear().union(g.bounds); |
| 120596 | g.x = x; |
| 120597 | g.y = y; // queue title for redraw |
| 120598 | view.dirty(g); |
| 120599 | } |
| 120600 | function lookup$1(config, orient) { |
| 120601 | const opt = config[orient] || {}; |
| 120602 | return (key, d)=>opt[key] != null ? opt[key] : config[key] != null ? config[key] : d; |
no test coverage detected