|
@ -21,14 +21,14 @@ export function StudySite(props) { |
|
|
useEffect(() => { |
|
|
useEffect(() => { |
|
|
window.visualiseMouseData = visualiseMouseData; |
|
|
window.visualiseMouseData = visualiseMouseData; |
|
|
heatmapInstance.setDataMax(HEATMAP_MAX); |
|
|
heatmapInstance.setDataMax(HEATMAP_MAX); |
|
|
var addData; |
|
|
|
|
|
|
|
|
var addData; |
|
|
|
|
|
|
|
|
if(MOUSE_MODE) { |
|
|
if(MOUSE_MODE) { |
|
|
const mouseDataFunc = function(ev) { |
|
|
const mouseDataFunc = function(ev) { |
|
|
if(!stopInput) { |
|
|
if(!stopInput) { |
|
|
heatmapInstance.addData({ |
|
|
heatmapInstance.addData({ |
|
|
x: ev.layerX, |
|
|
|
|
|
y: ev.layerY, |
|
|
|
|
|
|
|
|
x: ev.x, |
|
|
|
|
|
y: ev.y, |
|
|
value: 1, |
|
|
value: 1, |
|
|
}); |
|
|
}); |
|
|
} |
|
|
} |
|
|