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

Method get_cell_transform

js/src/MarketMap.ts:849–869  ·  view source on GitHub ↗
(index)

Source from the content-addressed store, hash-verified

847 }
848
849 get_cell_transform(index) {
850 if (!this.past_border_y()) {
851 if (this.past_border_x()) {
852 this.y_direction = -1 * this.y_direction;
853 this.prev_x += this.x_direction;
854 } else {
855 this.x_direction = -1 * this.x_direction;
856 this.prev_y += this.y_direction;
857 this.group_iter += 1;
858 }
859 } else {
860 this.prev_y += this.y_direction;
861 }
862 return (
863 'translate(' +
864 this.prev_x * this.column_width +
865 ', ' +
866 this.prev_y * this.row_height +
867 ')'
868 );
869 }
870
871 get_new_cords() {
872 let new_x = this.prev_x;

Callers 1

draw_mapMethod · 0.80

Calls 2

past_border_yMethod · 0.95
past_border_xMethod · 0.95

Tested by

no test coverage detected