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

Method compute_view_padding

js/src/Boxplot.ts:167–175  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

165 }
166
167 compute_view_padding() {
168 //This function sets the padding for the view through the constiables
169 //xPadding and y_padding which are view specific paddings in pixel
170 const xPadding = this.getBoxWidth() / 2.0 + 1;
171 if (xPadding !== this.xPadding) {
172 this.xPadding = xPadding;
173 this.trigger('mark_padding_updated');
174 }
175 }
176
177 private updateBoxWidth() {
178 this.compute_view_padding();

Callers 2

updateBoxWidthMethod · 0.95
relayoutMethod · 0.95

Calls 1

getBoxWidthMethod · 0.95

Tested by

no test coverage detected