()
| 91 | |
| 92 | export abstract class BaseXSelector extends BaseSelector { |
| 93 | create_scales() { |
| 94 | if (this.scale) { |
| 95 | this.scale.remove(); |
| 96 | } |
| 97 | if (this.model.get('scale')) { |
| 98 | const that = this; |
| 99 | return this.create_child_view(this.model.get('scale')).then((view) => { |
| 100 | that.scale = view as WidgetView as LinearScale; |
| 101 | // The argument is to suppress the update to gui |
| 102 | that.update_scale_domain(true); |
| 103 | that.set_range([that.scale]); |
| 104 | that.scale.on('domain_changed', that.update_scale_domain, that); |
| 105 | return view; |
| 106 | }); |
| 107 | } |
| 108 | } |
| 109 | |
| 110 | update_scale_domain(ignore_gui_update = false) { |
| 111 | // When the domain of the scale is updated, the domain of the scale |
nothing calls this directly
no test coverage detected
searching dependent graphs…