()
| 20 | |
| 21 | export class HeatMap extends Mark { |
| 22 | async render() { |
| 23 | const baseRenderPromise = super.render(); |
| 24 | |
| 25 | this.displayed.then(() => { |
| 26 | this.parent.tooltip_div.node().appendChild(this.tooltip_div.node()); |
| 27 | this.create_tooltip(); |
| 28 | }); |
| 29 | |
| 30 | this.image = d3 |
| 31 | .select(this.el) |
| 32 | .append('image') |
| 33 | .classed('heatmap', true) |
| 34 | .attr('width', this.parent.width) |
| 35 | .attr('height', this.parent.height); |
| 36 | |
| 37 | this.canvas = document.createElement('canvas'); |
| 38 | |
| 39 | await baseRenderPromise; |
| 40 | |
| 41 | this.event_listeners = {}; |
| 42 | this.process_interactions(); |
| 43 | this.create_listeners(); |
| 44 | this.compute_view_padding(); |
| 45 | this.draw(); |
| 46 | } |
| 47 | |
| 48 | set_ranges() { |
| 49 | if (this.scales.x) { |
nothing calls this directly
no test coverage detected