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

Method remove_from_padding_dict

js/src/Figure.ts:735–746  ·  view source on GitHub ↗
(dict, mark_view: Mark, scale_model: ScaleModel)

Source from the content-addressed store, hash-verified

733 }
734
735 remove_from_padding_dict(dict, mark_view: Mark, scale_model: ScaleModel) {
736 if (scale_model === undefined || scale_model === null) {
737 return;
738 }
739 const scale_id = scale_model.model_id;
740 if (dict[scale_id] !== undefined) {
741 delete dict[scale_id][mark_view.model.model_id + '_' + mark_view.cid];
742 if (Object.keys(dict[scale_id]).length === 0) {
743 delete dict[scale_id];
744 }
745 }
746 }
747
748 update_padding_dict(dict, mark_view: Mark, scale_model: ScaleModel, value) {
749 const scale_id = scale_model.model_id;

Callers 2

mark_scales_updatedMethod · 0.95
remove_markMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected