MCPcopy Index your code
hub / github.com/bqplot/bqplot / render

Method render

js/src/GridHeatMap.ts:24–49  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

22
23export class GridHeatMap extends Mark {
24 async render() {
25 const base_render_promise = super.render();
26
27 // TODO: create_listeners is put inside the promise success handler
28 // because some of the functions depend on child scales being
29 // created. Make sure none of the event handler functions make that
30 // assumption.
31 this.displayed.then(() => {
32 this.parent.tooltip_div.node().appendChild(this.tooltip_div.node());
33 this.create_tooltip();
34 });
35
36 this.selected_indices = this.model.get('selected');
37 this.selected_style = this.model.get('selected_style');
38 this.unselected_style = this.model.get('unselected_style');
39 this.anchorStyle = this.model.get('anchor_style');
40 this.display_el_classes = ['heatmapcell'];
41
42 await base_render_promise;
43
44 this.event_listeners = {};
45 this.process_interactions();
46 this.create_listeners();
47 this.compute_view_padding();
48 this.draw();
49 }
50
51 initialize_additional_scales() {
52 if (this.scales.color) {

Callers

nothing calls this directly

Calls 3

create_listenersMethod · 0.95
compute_view_paddingMethod · 0.95
drawMethod · 0.95

Tested by

no test coverage detected