Skip to content

Commit a23cc1c

Browse files
committed
Regression fix
1 parent 318ef42 commit a23cc1c

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

gallifreyan.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ $(document).ready(function(){
4545
function updateText(){
4646
resetZoom();
4747

48-
mainCircles=[];allCircles=[];lines=[];currentCircle=0;
48+
mainCircles=[];allCircles=[];lines=[];currentCircle=0;selectedCircle=-1;selectedLine=-1;
4949

5050
var t=$('input').val().trim().toLowerCase().split(" ");
5151
localStorage.setItem("input", $('input').val());
@@ -352,6 +352,8 @@ function generateWords(words){
352352
}
353353
generateWord(word, wordL, r, d, angle)
354354
}
355+
redraw();
356+
355357
createLines();
356358

357359
redraw();
@@ -443,7 +445,6 @@ function createLines(){
443445
for(i=1;i<allCircles.length;++i){
444446
circle=allCircles[i];
445447
if(circle.nLines==0) continue;
446-
447448
var passes=0;
448449
while(circle.lines.length<circle.nLines){
449450
//looks for the best path to the base circle if there are no other options left
@@ -484,7 +485,6 @@ function createLines(){
484485
circle2=allCircles[j];
485486
if(circle2.lines.length>=circle2.nLines) continue;
486487
if(circle2.type>=5 && circle2.subtype==5) continue;
487-
488488
angle=Math.atan2(circle2.y-circle.y,circle2.x-circle.x);
489489
var x=circle.x+circle.r*Math.cos(angle), y=circle.y+circle.r*Math.sin(angle);
490490

0 commit comments

Comments
 (0)