Heatmap fix (#2396)

* fix norm coordinates

* changelogs

* changelogs
This commit is contained in:
Delirium 2024-07-16 18:15:22 +02:00 committed by GitHub
parent 80c9dd2bb9
commit 5887d61207
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 6 additions and 2 deletions

View file

@ -1,3 +1,7 @@
# 14.0.3
- send integer instead of float for normalizedX/Y coords (basically moving from 0-100 to 0-10000 range)
# 14.0.2
- fix logger check

View file

@ -1,7 +1,7 @@
{
"name": "@openreplay/tracker",
"description": "The OpenReplay tracker main package",
"version": "14.0.2",
"version": "14.0.3",
"keywords": [
"logging",
"replay"

View file

@ -262,5 +262,5 @@ export default function (app: App, options?: MouseHandlerOptions): void {
* 0.39643 => 396.43 => 396 => 39.6%
* */
function roundNumber(num: number) {
return Math.round(num * 1e3) / 1e1
return Math.round(num * 1e4)
}