()
| 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" |
no test coverage detected