()
| 27 | |
| 28 | export 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; |
nothing calls this directly
no test coverage detected