Remove objects of the same kind
Use the tool
to draw some points. Then click on Remove Points button.
to draw some points. Then click on Remove Points button.JavaScript on Click button
for (var ind = ggbApplet.getObjectNumber() - 1; ind >= 0; ind = ind - 1) {
var name = ggbApplet.getObjectName(ind)
var type = ggbApplet.getObjectType(name)
/*alert(""+ind+" "+name+" "+type)*/
if (type == "point") {
ggbApplet.deleteObject(name)
}
}
If you want to delete other kind of objects just change the value of type in the if statement, e. g. "line", "circle", "stroke", etc.