From 9041401b73f93228cc9b5183a9ef30e5f7f171a6 Mon Sep 17 00:00:00 2001 From: Jules Laplace Date: Sun, 7 Jun 2020 16:51:27 +0200 Subject: drawing graphs with backlinks --- frontend/util/index.js | 1 + 1 file changed, 1 insertion(+) (limited to 'frontend/util/index.js') diff --git a/frontend/util/index.js b/frontend/util/index.js index e951182..4a6cef8 100644 --- a/frontend/util/index.js +++ b/frontend/util/index.js @@ -68,6 +68,7 @@ export const px = (n, w) => Math.round(n * w) + 'px' export const clamp = (n, a=0, b=1) => n < a ? a : n < b ? n : b export const dist = (x1, y1, x2, y2) => Math.sqrt(Math.pow(x1 - x2, 2) + Math.pow(y1 - y2, 2)) +export const mod = (n, m) => n - (m * Math.floor(n / m)) /* URLs */ -- cgit v1.2.3-70-g09d2