浏览代码

Use alpha metric on largest cluster by default

Kirk Trombley 3 年之前
父节点
当前提交
c6afa525b3
共有 1 个文件被更改,包括 4 次插入4 次删除
  1. 4 4
      nearest.html

+ 4 - 4
nearest.html

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