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

Method set_ranges

js/src/HeatMap.ts:48–59  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

46 }
47
48 set_ranges() {
49 if (this.scales.x) {
50 const xRange = this.parent.padded_range('x', this.scales.x.model);
51 this.scales.x.setRange(xRange);
52 }
53
54 if (this.scales.y) {
55 this.scales.y.setRange(
56 this.parent.padded_range('y', this.scales.y.model)
57 );
58 }
59 }
60
61 set_positional_scales() {
62 this.listenTo(this.scales.x, 'domain_changed', () => {

Callers 2

relayoutMethod · 0.95
drawMethod · 0.95

Calls 1

padded_rangeMethod · 0.80

Tested by

no test coverage detected