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

Method update_axis_domain

js/src/Axis.ts:700–709  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

698 }
699
700 update_axis_domain() {
701 const initial_range = this.vertical
702 ? this.parent.padded_range('y', this.axis_scale.model)
703 : this.parent.padded_range('x', this.axis_scale.model);
704 const target_range = this.vertical
705 ? this.parent.range('y')
706 : this.parent.range('x');
707 this.axis_scale.expandDomain(initial_range, target_range);
708 this.axis.scale(this.axis_scale.scale as d3.AxisScale<d3.AxisDomain>);
709 }
710
711 parent_margin_updated() {
712 // sets the new dimensions of the g element for the axis.

Callers 1

rescale_axisMethod · 0.95

Calls 2

padded_rangeMethod · 0.80
rangeMethod · 0.80

Tested by

no test coverage detected