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

Method get_axis_transform

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

Source from the content-addressed store, hash-verified

446 }
447
448 get_axis_transform() {
449 const is_vertical = ['left', 'right'].includes(this.model.get('side'));
450 if (is_vertical) {
451 return 'translate(' + this.process_offset() + ', 0)';
452 } else {
453 return 'translate(0, ' + this.process_offset() + ')';
454 }
455 }
456
457 process_offset() {
458 if (this.offset_scale === undefined || this.offset_scale === null) {

Callers 4

update_offsetMethod · 0.95
append_axisMethod · 0.95
get_offset_promiseMethod · 0.95
rescale_axisMethod · 0.95

Calls 1

process_offsetMethod · 0.95

Tested by

no test coverage detected