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

Method mark_scales_updated

js/src/Figure.ts:756–785  ·  view source on GitHub ↗
(view: Mark)

Source from the content-addressed store, hash-verified

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;

Callers 1

add_markMethod · 0.95

Calls 5

update_padding_dictMethod · 0.95
update_paddingsMethod · 0.95
getScalesMethod · 0.45

Tested by

no test coverage detected