rem: for(i=0; i< tmpF.np; i++) {  if ( (Math.abs(x - tmpF["pa"][i].x) < Tolerance) && (Math.abs(y - tmpF["pa"][i].y) < Tolerance) ) { SelectedPoint = i;  if (cmd) { tmpF.pa[SelectedPoint].sustain = 1 - tmpF.pa[SelectedPoint].sustain; EditedWithMouse.state++; UpdateDisplay(); return ; }  if (shift) { DeletePoint(tmpF, SelectedPoint); SelectedPoint = -1; ApplyAutoSustain(); EditedWithMouse.state++; EditedWithMouse(); notifyclients(); /* 				MyPointsInside(tmpF); */ onidle(x, y);  return; } break; 
add: if (IdlePoint != -1) { SelectedPoint = IdlePoint; if (cmd) { tmpF.pa[SelectedPoint].sustain = 1 - tmpF.pa[SelectedPoint].sustain; EditedWithMouse.state++; UpdateDisplay(); return ; }  if (shift) { DeletePoint(tmpF, SelectedPoint); SelectedPoint = -1; ApplyAutoSustain(); EditedWithMouse.state++; EditedWithMouse(); notifyclients(); onidle(x, y); return; 
context: function onclick(x,y,but,cmd,shift,capslock,option,ctrl){	var tmpF = fctns[current];	if (AllowEdit == 0 || tmpF.display == 0)		return;		SelectedPoint = -2;	x = ejies.clip(x - 2, Bordure, BoxWidth - Bordure);	y = ejies.clip(y - 2, Bordure + LegendBordure, BoxHeight - Bordure);	for(i=0; i< tmpF.np; i++) {		if ( (Math.abs(x - tmpF["pa"][i].x) < Tolerance) && (Math.abs(y - tmpF["pa"][i].y) < Tolerance) ) {			SelectedPoint = i;						if (cmd) {				tmpF.pa[SelectedPoint].sustain = 1 - tmpF.pa[SelectedPoint].sustain;				EditedWithMouse.state++;				UpdateDisplay();				return ;			}						if (shift) {				DeletePoint(tmpF, SelectedPoint);				SelectedPoint = -1;				ApplyAutoSustain();				EditedWithMouse.state++;				EditedWithMouse();				notifyclients();/* 				MyPointsInside(tmpF); */				onidle(x, y);	// pour ne pas afficher la position (puisqu'on y est)//				draw();				return;			}			break;		}	}	if (SelectedPoint != -2 && ClickMove == 0)	// ClickMove dsactiv		SelectedPoint = -1;	// ajout d'un point	if (cmd == 0 && shift == 0 && SelectedPoint == -2 && ClickAdd == 1) {		if ( Snap2Grid )			x = val2x(tmpF, Math.round(x2val(tmpF, x) / tmpF.GridStep) * tmpF.GridStep);		SelectedPoint = AddPoint(tmpF, x, y);		ApplyAutoSustain();		EditedWithMouse.state++;/* 		MyPointsInside(tmpF); */		notifyclients();		onidle(x,y);//		draw();	}}
meta: 6421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6421/9d9cadec7f1f13592436bb93207f7569ed9a24c8/ej.function.js/buggy/ejies-jsui/ej.function.js