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

Function update_scale_domain

js/src/Selector.ts:110–117  ·  view source on GitHub ↗
(ignore_gui_update = false)

Source from the content-addressed store, hash-verified

108 }
109
110 update_scale_domain(ignore_gui_update = false) {
111 // When the domain of the scale is updated, the domain of the scale
112 // for the selector must be expanded to account for the padding.
113 const xy = this.model.get('orientation') == 'vertical' ? 'y' : 'x';
114 const initial_range = this.parent.padded_range(xy, this.scale.model);
115 const target_range = this.parent.range(xy);
116 this.scale.expandDomain(initial_range, target_range);
117 }
118
119 set_range(array) {
120 const xy = this.model.get('orientation') == 'vertical' ? 'y' : 'x';

Callers

nothing calls this directly

Calls 2

padded_rangeMethod · 0.80
rangeMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…