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

Method setScaleOrientation

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

Source from the content-addressed store, hash-verified

51 }
52
53 private setScaleOrientation(): void {
54 // TODO: we should probably use this.model.get("orientation")?
55 // var orient = this.model.get("orientation");
56 this.domScale = this.scales.x; //(orient === "vertical") ? this.scales.x : this.scales.y;
57 this.rangeScale = this.scales.y; //(orient === "vertical") ? this.scales.y : this.scales.x;
58 }
59
60 set_ranges(): void {
61 const orient = this.model.get('orientation');

Callers 2

set_rangesMethod · 0.95
drawZeroLineMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected