restore color after updating

This commit is contained in:
Jidong Xiao
2025-03-26 12:03:22 -04:00
committed by JamesFlare
parent 8e9b9675bf
commit eaa3021d47

View File

@@ -371,8 +371,9 @@ function nextstep() {
layer.draw(); layer.draw();
pc = pc + 1; pc = pc + 1;
}else if(pc==2){ }else if(pc==2){
// update 5 to 7 // update 5 to 7, and restore color to normal
stage.find('#node_text_'+5).text("7"); stage.find('#node_text_'+5).text("7");
stage.find('#node_'+5).fill("lightgray");
layer.draw(); layer.draw();
pc = pc + 1; pc = pc + 1;
}else if(pc==3){ }else if(pc==3){