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

Method process_offset

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

Source from the content-addressed store, hash-verified

455 }
456
457 process_offset() {
458 if (this.offset_scale === undefined || this.offset_scale === null) {
459 return this.get_basic_transform();
460 } else {
461 let value = this.offset_scale.scale(this.offset_value);
462 //The null check is required for two reasons. Value may be null
463 //or the scale is ordinal which does not include the value in
464 //its domain.
465 value = value === undefined ? this.get_basic_transform() : value;
466 return this.offset_scale.offset + value;
467 }
468 }
469
470 get_label_attributes() {
471 // Returns an object based on values of "label_location" and "label_offset"

Callers 1

get_axis_transformMethod · 0.95

Calls 1

get_basic_transformMethod · 0.95

Tested by

no test coverage detected