Browse Source

Enable big nodes

master
Pete Shadbolt 6 years ago
parent
commit
7e12230ce9
2 changed files with 2 additions and 0 deletions
  1. +1
    -0
      static/scripts/api.js
  2. +1
    -0
      templates/index.html

+ 1
- 0
static/scripts/api.js View File

@@ -18,6 +18,7 @@ api.poll = function() {


api.update = function(s) { api.update = function(s) {
json = JSON.parse(s); json = JSON.parse(s);
materials.qubit.size = big.checked ? 2 : 0.4;
graph.update(json); graph.update(json);
} }




+ 1
- 0
templates/index.html View File

@@ -48,6 +48,7 @@
<li><a onclick="share()">Share</a></li> <li><a onclick="share()">Share</a></li>
<li><a href="/{{uuid}}/download">Download</a></li> <li><a href="/{{uuid}}/download">Download</a></li>
<li><input id=curvy type="checkbox" checked></input> Curved edges</li> <li><input id=curvy type="checkbox" checked></input> Curved edges</li>
<li><input id=big type="checkbox"></input> Big nodes</li>
<li><a href="/doc" id=help>Documentation</a></li> <li><a href="/doc" id=help>Documentation</a></li>
</ul> </ul>
</div> </div>


Loading…
Cancel
Save