From c8cd6d8ce199741ebb8429a86d584e16c586c451 Mon Sep 17 00:00:00 2001 From: NunoSempere Date: Tue, 8 Feb 2022 17:44:59 -0500 Subject: [PATCH] feat: align graph --- lib/.comparisonView.js.swp | Bin 0 -> 77824 bytes lib/comparisonView.js | 12 +++++++++--- lib/labeledGraph.js | 13 +++++++++---- 3 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 lib/.comparisonView.js.swp diff --git a/lib/.comparisonView.js.swp b/lib/.comparisonView.js.swp new file mode 100644 index 0000000000000000000000000000000000000000..6f77f0c86a9ddff39999278d5a5d534412441fa0 GIT binary patch literal 77824 zcmeI537i~9b^iy0!6fFg4cI_PYc1O&dk^he#%84zmSq_WTb8hVBo+eA?#^n*nw?qC z%xbkPYx2h!lW>LmNC+l?At77|f#lB(e{3*^0|CMjFy|l00R#wO{(nQhzpAe8>gt}= zWpmimAN@4j)!kLEUcGu%uj*CR`0C3xZ;8$t94>J^uvEJ4`$vq=J*<46U;OtyOZDcS znu7OtZLe2rvyED7fA3wb2#3yXPRz|z8=dyhM6*>LYB#4k^A-M>YE|3QLszzk8r6Lr ze&#y0dabiCFg4eh=+v5x0fJkViB7XMRIiQm@yu+cRckjJm({BCgIBiqmwNAcj{|pO z4$O6?2F|))>GYA|)#Ad5eJi44kGb@2%#dEzdmQL-pvQq82YMXnaiGV69tV0HxchOS zGy9;@Q_1!ban_HIfA10e-YdQzh<_gzJimW@-xvQrHh6yT;C?!|KQg{|?_C)@zfXLB za{N0RJU=SFUlaenBzXQi@x4puqrvn0#`nJ)|K1Wje?WYHcKrLr;5kDl<~lb1eOSyu z$H$}N@H67y{@}SwcT@a)Ja~S;INasqhT!>w;^$|_zi$hk9}|b45dZ#H@cf=}`1$eg zePe-$UyDO~KRpigIMCxjj{`jp^f=JtK#v1G4)i$C<3NuCzpWgoOqNPJF|NNL0~;gO z+5bPp;Qb7EBe)8j10DcAhoOHxm;oc;2yh$5>9@hB!9QY1zYJUho(8T0U&lB<7io>d@E@do16Tk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uD@mSX|W3p^l~KT+I@ zg*TvQkKmI1e-W~I<-H&S`~PfybbS_^|CO=re>*b!9dHY{9$W`zK@&V4oB%#SR<#~r zJ9q%lIKUq82Vf)6nt&njAn<-_)OBDtI0DEI;AZena07TTcoCQb+rb!kG6i}bcqOcQ zE?5Lw=f4A70Y<_1s8`w(@Xx`uU=z?@dpA*is^9`J3LXs}0=|TVe-JzkoCod&{t`Zj z7o$M_0`~zwgFin7p8_udPY0KQpCUy64s?#+JHYF~4M6+s={&y)&<~CU_W`$4%f19& z1)k+{&(@Yu(a;$ul(Ky@@8IMuX(FobwogKzXQwC-163fW%mU^ zbeF;nFl>Bx^nM3Y=wV}U8e!cki=_hcvggEn^f=r9tV0H=y9OOfgT5X z9O!YN$AKOPdK~C+;LhQIZx-F1X4$a0jB~e!LGw0#I{dhpSdSV`N@pc=18TpSGjH1e SCBG*_TIgv;d%J9_g8dI(6xwkB literal 0 HcmV?d00001 diff --git a/lib/comparisonView.js b/lib/comparisonView.js index d0fda06..b721909 100644 --- a/lib/comparisonView.js +++ b/lib/comparisonView.js @@ -319,9 +319,15 @@ export default function ComparisonView({ listOfElementsForView }) { }) => { if (!dontPushSubmitButtonAnyMore) { if (inputValue < 1 && inputValue > 0) { - inputValue = 1 / inputValue; + let inverse = 1 / inputValue; + if (squiggleString == inputValue) { + inputValue = inverse; + squiggleString = inverse; + } else { + inputValue = inverse; + squiggleString = `(${squiggleString})^(-1)`; + } [element1, element2] = [element2, element1]; - squiggleString = `(${squiggleString})^(-1)`; } console.log(`posList@nextStepInput:`); console.log(posList); @@ -470,7 +476,7 @@ export default function ComparisonView({ listOfElementsForView }) { {/* Results section */}
{/* Graph */} -
+
number.toString().length; @@ -48,7 +48,7 @@ function drawGraphInner({ nodes, links }) { // Build the d3 graph removeOldSvg(); - var svg = d3 + let svg = d3 .select("#graph") .append("svg") .attr("width", width + margin.left + margin.right) @@ -147,6 +147,7 @@ function drawGraphInner({ nodes, links }) { }) .text(function (d) { let distanceFormatted = formatLargeOrSmall(Number(d.distance)); + return distanceFormatted; if (d.distance == d.squiggleString || !d.squiggleString) { return distanceFormatted; } else { @@ -158,6 +159,7 @@ function drawGraphInner({ nodes, links }) { //return(Number(d.distance).toPrecision(2).toString()) }) .style("text-anchor", "middle"); + // background } export function DrawGraph({ @@ -174,8 +176,11 @@ export function DrawGraph({ drawGraphInner({ nodes, links }); } return ( -
-
+
+
); }