JavaScript - setPointCapture, Snap to grid, Fixed to grid

JavaScript Coding
//void setPointCapture(view, mode)[br]//view: 1 for graphics, 2 for graphics 2, -1 for 3D.[br]//mode: 0 for no capturing, 1 for snap to grid,[br]// 2 for fixed to grid, 3 for automatic.[br]var pointCaptureFixed = ggbApplet.getValue("fixed");[br]if (pointCaptureFixed) {[br] ggbApplet.setPointCapture(1, 1);[br] ggbApplet.setValue("fixed", 0);[br]} else {[br] ggbApplet.setPointCapture(1, 2);[br] ggbApplet.setValue("fixed", 1);[br]}
Captura de Punto
https://wiki.geogebra.org/es/Captura_de_Punto?fbclid=IwAR33CnDa18qOUEenRD9chzTbKdvpUMxiaxn2fI164e1es8lV7Go4e33Z7SE

Information: JavaScript - setPointCapture, Snap to grid, Fixed to grid