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

Function create_scales

js/src/Selector.ts:93–108  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91
92export 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

Callers

nothing calls this directly

Calls 4

set_rangeMethod · 0.80
set_x_rangeMethod · 0.80
removeMethod · 0.45
update_scale_domainMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…