Skip to content

Function: inHeatmapGap() ​

ts
function inHeatmapGap(axis, a, cell, gap, pxPerUnit): boolean;

Experimental

Whether directed coordinate a in cell falls in the gap strip: within gap / 2 px of either cell edge, with px = data distance × pxPerUnit (|transform scale|). Always false for gap ≤ 0.

Parameters ​

ParameterType
axisHeatmapAxis
anumber
cellnumber
gapnumber
pxPerUnitnumber

Returns ​

boolean

Released under the MIT License.