Browse Source

Use alpha metric on largest cluster by default

Kirk Trombley 3 years ago
parent
commit
c6afa525b3
1 changed files with 4 additions and 4 deletions
  1. 4 4
      nearest.html

+ 4 - 4
nearest.html

@@ -20,14 +20,14 @@
     const state = {
       target: null,
       number: 10,
-      useCluster: false,
+      useCluster: true,
       clusterSettings: {
         sortMetric: "size",
         scaleOption: "none",
         sortOrder: "max",
       },
       space: "jab",
-      sortMetric: "sigma",
+      sortMetric: "alpha",
       scaleOption: "inverse",
       sortOrder: "min",
     };
@@ -66,7 +66,7 @@
         addOption(metric.option, value);
       });
 
-      document.getElementById("sort-metric").firstChild.nextSibling.nextSibling.selected = true;
+      document.getElementById("sort-metric").firstChild.nextSibling.nextSibling.nextSibling.nextSibling.selected = true;
       document.getElementById("cluster-sort-metric").lastChild.selected = true;
       
       onColorChanged(state, "#222222");
@@ -134,7 +134,7 @@
         </div>
         <div class="toggle-box cluster-grid">
           <input autocomplete="off" type="checkbox" class="toggle-button" id="cluster-toggle" role="button"
-            onchange="state.useCluster = event.target.checked; onControlsChanged(state)">
+            checked onchange="state.useCluster = event.target.checked; onControlsChanged(state)">
           <label for="cluster-toggle"
             style="grid-area: albl; display: flex; flex-flow: row nowrap; justify-content: flex-start; align-items: flex-start; padding-bottom: 0.5em;">
             Across&nbsp;