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

Method get_basic_transform

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

Source from the content-addressed store, hash-verified

435 }
436
437 get_basic_transform() {
438 const is_vertical = ['left', 'right'].includes(this.model.get('side'));
439 const side = this.model.get('side');
440
441 if (is_vertical) {
442 return side === 'right' ? this.width + this.autoOffset : -this.autoOffset;
443 } else {
444 return side === 'top' ? -this.autoOffset : this.height + this.autoOffset;
445 }
446 }
447
448 get_axis_transform() {
449 const is_vertical = ['left', 'right'].includes(this.model.get('side'));

Callers 2

process_offsetMethod · 0.95
get_topg_transformMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected