(view: Mark)
| 754 | } |
| 755 | |
| 756 | mark_scales_updated(view: Mark) { |
| 757 | const model = view.model; |
| 758 | const prev_scale_models = model.previous('scales'); |
| 759 | this.remove_from_padding_dict( |
| 760 | this.x_pad_dict, |
| 761 | view, |
| 762 | prev_scale_models[model.get_key_for_orientation('horizontal')] |
| 763 | ); |
| 764 | this.remove_from_padding_dict( |
| 765 | this.y_pad_dict, |
| 766 | view, |
| 767 | prev_scale_models[model.get_key_for_orientation('vertical')] |
| 768 | ); |
| 769 | |
| 770 | const scale_models = model.getScales(); |
| 771 | this.update_padding_dict( |
| 772 | this.x_pad_dict, |
| 773 | view, |
| 774 | scale_models[model.get_key_for_orientation('horizontal')], |
| 775 | view.xPadding |
| 776 | ); |
| 777 | this.update_padding_dict( |
| 778 | this.y_pad_dict, |
| 779 | view, |
| 780 | scale_models[model.get_key_for_orientation('vertical')], |
| 781 | view.yPadding |
| 782 | ); |
| 783 | |
| 784 | this.update_paddings(); |
| 785 | } |
| 786 | |
| 787 | mark_padding_updated(view: Mark) { |
| 788 | const model = view.model; |
no test coverage detected