support deleting 5

This commit is contained in:
Jidong Xiao
2025-03-26 11:35:52 -04:00
committed by JamesFlare
parent f8f4250479
commit 981bb8394b

View File

@@ -365,6 +365,16 @@ function nextstep() {
stage.find('#nullptr').show();
layer.draw();
}else if(key == 5){
// move 7.5 to 5
stage.find('#node_'+7.5).x(650);
stage.find('#node_'+7.5).y(100);
stage.find('#node_text_'+7.5).x(645);
stage.find('#node_text_'+7.5).y(90);
// hide 7.5 node, and show a NULL pointer.
stage.find('#nullptr').x(770);
stage.find('#nullptr').y(390);
stage.find('#nullptr').show();
layer.draw();
}else if(key == 8){
line5.hide();
stage.find('#node_'+key).hide();