mirror of
https://github.com/brianshea2/meshmap.net.git
synced 2024-11-09 23:24:09 -08:00
Fix for off-by-one precision radius
This commit is contained in:
parent
b2021f7b31
commit
c4f896520c
|
@ -105,10 +105,10 @@
|
|||
const neighborsByNode = {}
|
||||
const nodesBySearchTitle = {}
|
||||
const precisionMargins = [
|
||||
16151245, 11939464, 5969732, 2984866, 1492433, 746217, 373108, 186554,
|
||||
11939464, 5969732, 2984866, 1492433, 746217, 373108, 186554,
|
||||
93277, 46639, 23319, 11660, 5830, 2915, 1457, 729,
|
||||
364, 182, 91, 46, 23, 11, 6, 3,
|
||||
1, 1, 0, 0, 0, 0, 0, 0
|
||||
1, 1, 0, 0, 0, 0, 0, 0, 0
|
||||
]
|
||||
// encodes html reserved characters
|
||||
const html = str => str?.replace(/["&<>]/g, match => `&#${match.charCodeAt(0)};`)
|
||||
|
|
Loading…
Reference in a new issue