Sign in
chromium
/
catapult.git
/
819f08fc146681de1bd0850b733f9ac42232e2dc
/
.
/
experimental
/
heatmap
/
heatmap.js
blob: e5645339a3f3e2a710174d5ddf5f21a8a7c2ae44 [
file
] [
log
] [
blame
]
Heatmap
=
function
(
canvas
,
resolutionSlider
,
data
)
{
this
.
canvas
=
canvas
.
get
(
0
);
this
.
context
=
this
.
canvas
.
getContext
(
'2d'
);
this
.
scaleCanvas
();
this
.
calculate
(
data
);
this
.
installInputHandlers
(
canvas
,
resolutionSlider
);
this
.
draw
();
};