MCPcopy Create free account
hub / github.com/bqplot/bqplot / render

Method render

js/src/Lines.ts:29–54  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

27
28export class Lines extends Mark {
29 async render() {
30 const baseRenderPromise = super.render();
31 this.dot = bqSymbol().size(this.model.get('marker_size'));
32 if (this.model.get('marker')) {
33 this.dot.type(this.model.get('marker'));
34 }
35
36 // TODO: create_listeners is put inside the promise success handler
37 // because some of the functions depend on child scales being
38 // created. Make sure none of the event handler functions make that
39 // assumption.
40 this.displayed.then(() => {
41 this.parent.tooltip_div.node().appendChild(this.tooltip_div.node());
42 this.create_tooltip();
43 });
44
45 this.display_el_classes = ['line', 'legendtext', 'dot'];
46
47 await baseRenderPromise;
48
49 this.event_listeners = {};
50 this.process_interactions();
51 this.create_listeners();
52 this.compute_view_padding();
53 this.draw(false);
54 }
55
56 set_ranges(): void {
57 const xScale = this.scales.x;

Callers

nothing calls this directly

Calls 4

create_listenersMethod · 0.95
compute_view_paddingMethod · 0.95
drawMethod · 0.95
bqSymbolFunction · 0.85

Tested by

no test coverage detected