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

Method expandRect

js/src/HeatMap.ts:145–148  ·  view source on GitHub ↗
(value: number)

Source from the content-addressed store, hash-verified

143 }
144
145 private expandRect(value: number): number {
146 // Add 0.5px to width and height to fill gaps between rectangles
147 return value > 0 ? value + 0.5 : value - 0.5;
148 }
149
150 private getPlottingData() {
151 const xData: Array<number> = Array.from(this.model.mark_data.x).map(

Callers 1

drawMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected