MCPcopy Create free account
hub / github.com/bqplot/bqplot / update_scale

Method update_scale

js/src/Axis.ts:790–794  ·  view source on GitHub ↗
(old, scale)

Source from the content-addressed store, hash-verified

788 }
789
790 update_scale(old, scale) {
791 // Called when the child scale changes
792 this.axis_scale.off();
793 this.set_scale_promise(scale);
794 }
795
796 _get_digits(number) {
797 return number === 0 ? 1 : Math.floor(Math.log10(Math.abs(number))) + 1;

Callers 2

create_listenersMethod · 0.95
create_listenersMethod · 0.80

Calls 1

set_scale_promiseMethod · 0.95

Tested by

no test coverage detected