MCPcopy Create free account
hub / github.com/bqplot/bqplot / get_colorbar_transform

Method get_colorbar_transform

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

Source from the content-addressed store, hash-verified

386 }
387
388 get_colorbar_transform() {
389 if (this.vertical) {
390 return 'translate(0, ' + String(this.x_offset) + ')';
391 }
392 return 'translate(' + String(this.x_offset) + ', 0)';
393 }
394
395 set_axisline_scale_range() {
396 const range = this.vertical

Callers 2

update_displayMethod · 0.95
draw_color_barMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected