From 2c23e4227eff4d005b14a39be65d2938290a3d11 Mon Sep 17 00:00:00 2001 From: Klemek Date: Fri, 12 Jul 2019 09:15:05 +0200 Subject: [PATCH] small change test --- src/placing.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/placing.js b/src/placing.js index 2d91bee..3c8d6ea 100644 --- a/src/placing.js +++ b/src/placing.js @@ -18,6 +18,7 @@ const newmap = (w, h, fill) => new Array(w).fill(0).map(() => new Array(h).fill( module.exports = (options) => { const self = { + /** * Get the current bounds of the graph of nodes * @param {Object} nodes @@ -39,6 +40,7 @@ module.exports = (options) => { }); return {x: minX, y: minY, w: maxX - minX + 1, h: maxY - minY + 1}; }, + /** * Get a new available position around the existing nodes * @param {Object} nodes @@ -62,6 +64,7 @@ module.exports = (options) => { else return {x: b.x, y: b.y + b.h}; //expand vertically }, + /** * Check if no other nodes are located in the path of n1 <-> n2 * @param {Object} nodes