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

Method get_label_transform

js/src/ColorAxis.ts:373–386  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

371 }
372
373 get_label_transform() {
374 if (this.vertical) {
375 return (
376 'translate(' +
377 (this.side === 'right' ? this.bar_height / 2 : -this.bar_height / 2) +
378 ', ' +
379 (this.x_offset - 15) +
380 ')'
381 );
382 }
383 return (
384 'translate(' + (this.x_offset - 5) + ', ' + this.bar_height / 2 + ')'
385 );
386 }
387
388 get_colorbar_transform() {
389 if (this.vertical) {

Callers 2

append_axisMethod · 0.95
rescale_axisMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected