From 372a9c1a3742215de27d8abcc515407b6d38a55f Mon Sep 17 00:00:00 2001 From: Mike Lynch Date: Fri, 4 Aug 2023 17:11:41 +1000 Subject: [PATCH] fixed bug with nodesize from links --- gui.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/gui.js b/gui.js index ee8c6f8..bccb0ba 100644 --- a/gui.js +++ b/gui.js @@ -13,6 +13,7 @@ class FourDGUI { this.gui = new GUI(); this.parseLinkParams(); const guiObj = this; + console.log(this.link); this.params = { shape: this.link['shape'] || DEFAULT_SHAPE, thickness: this.link['thickness'] || 1, @@ -80,6 +81,7 @@ class FourDGUI { const guiObj = this; this.link['hyperplane'] = this.numParam('hyperplane', parseFloat, 2); this.link['thickness'] = this.numParam('thickness', parseFloat, 1); + this.link['nodesize'] = this.numParam('nodesize', parseFloat, 1); this.link['color'] = this.numParam( 'color', (s) => guiObj.stringToHex(s), DEFAULT_COLOR ); @@ -96,6 +98,7 @@ class FourDGUI { const url = new URL(this.linkUrl.origin + this.linkUrl.pathname); url.searchParams.append("shape", this.params.shape); url.searchParams.append("thickness", this.params.thickness.toString()); + url.searchParams.append("nodesize", this.params.nodesize.toString()); url.searchParams.append("color", this.hexToString(this.params.color)); url.searchParams.append("background", this.hexToString(this.params.background)); url.searchParams.append("hyperplane", this.params.hyperplane.toString());