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

Method updateInternalScales

js/src/Bars.ts:208–220  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

206 }
207
208 private updateInternalScales(): void {
209 this.stackedScale.rangeRound(this.set_x_range());
210 // This padding logic is duplicated from OrdinalScale
211 // and should be factorized somewhere
212 const padding = this.model.get('padding');
213 this.stackedScale.paddingInner(padding);
214 this.stackedScale.paddingOuter(padding / 2.0);
215 this.adjustOffset();
216 this.groupedScale.rangeRound([
217 0,
218 Math.round(this.stackedScale.bandwidth() * 100) / 100,
219 ]);
220 }
221
222 relayout(): void {
223 this.set_ranges();

Callers 2

relayoutMethod · 0.95
drawMethod · 0.95

Calls 2

set_x_rangeMethod · 0.95
adjustOffsetMethod · 0.95

Tested by

no test coverage detected