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

Method set_ranges

js/src/Pie.ts:70–82  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

68 }
69
70 set_ranges() {
71 if (this.scales.x) {
72 this.scales.x.setRange(
73 this.parent.padded_range('x', this.scales.x.model)
74 );
75 }
76
77 if (this.scales.y) {
78 this.scales.y.setRange(
79 this.parent.padded_range('y', this.scales.y.model)
80 );
81 }
82 }
83
84 set_positional_scales() {
85 // If no scale for "x" or "y" is specified, figure scales are used.

Callers 2

relayoutMethod · 0.95
drawMethod · 0.95

Calls 1

padded_rangeMethod · 0.80

Tested by

no test coverage detected