rem: outlet(DUMPOUT, "mouse", x2val(fctns[current], x), ejies.clip(y2val(fctns[current], y), fctns[current].range[0], fctns[current].range[1])); 
add: outlet(DUMPOUT, "mouse", 	ejies.clip(x2val(fctns[current], x), fctns[current].domain[0], fctns[current].domain[1]), ejies.clip(y2val(fctns[current], y), fctns[current].range[0], fctns[current].range[1]), but, SelectedPoint); 
context: function ondrag(x,y,but,cmd,shift,capslock,option,ctrl){	var tmpF = fctns[current];	var borderthing = -1;	if (AllowEdit == 0 || tmpF.display == 0)		return;	if ( but == 0 ||  SelectedPoint < 0) {		EditedWithMouse();	// quand c'est delete c'est fait dans onidle()		SelectedPoint = -2;	// si on a relch c'est qu'il n'y a plus de points slectionns.		onidle(x,y);		// tout pareil...		draw();		return;	}		if (MouseReportState)		outlet(DUMPOUT, "mouse", x2val(fctns[current], x), ejies.clip(y2val(fctns[current], y), fctns[current].range[0], fctns[current].range[1]));	if (SelectedPoint < tmpF.np) {		if (tmpF["pa"][SelectedPoint].fix)			return;					if ( Snap2GridState )			x = val2x(tmpF, Math.round((x2val(tmpF, x) - tmpF.domain[0]) / tmpF.GridStep) * tmpF.GridStep + tmpF.domain[0]);				x = ejies.clip(x, Bordure, BoxWidth - Bordure);		y = ejies.clip(y, Bordure + LegendBordure, BoxHeight - Bordure);			if ( BorderSyncState == 1 && tmpF.np > 2 && ( SelectedPoint == 0 || SelectedPoint == (tmpF.np - 1 ) )) {			SelectedPoint == 0 ? borderthing = (tmpF.np - 1) : borderthing = 0;		}		if (tmpF["np"] > 1) {			if (SelectedPoint == 0) {				x = ejies.clip(x, Bordure, tmpF["pa"][SelectedPoint+1].x );  			} else if (SelectedPoint > 0 && SelectedPoint < (tmpF["np"] - 1)) {				x = ejies.clip(x, tmpF["pa"][SelectedPoint-1].x, tmpF["pa"][SelectedPoint+1].x);			} else if (SelectedPoint == (tmpF["np"] - 1) ) {				x = ejies.clip(x, tmpF["pa"][SelectedPoint-1].x, BoxWidth - Bordure);			}		}		EditedWithMouse.state++;				tmpF["pa"][SelectedPoint].x = x;		tmpF["pa"][SelectedPoint].y = y;		tmpF["pa"][SelectedPoint].valx = x2val(tmpF, x);		tmpF["pa"][SelectedPoint].valy = y2val(tmpF, y);				if (borderthing != -1) {			tmpF["pa"][borderthing].y = y;			tmpF["pa"][borderthing].valy = y2val(tmpF, y);		}				UpdateDisplay();	}}
meta: 6421	/local1/tlutelli/issta_data/temp/all_js/javascript/2006_temp/2006/6421/88df6a0b8b4a2372a89baf38cb59b5676710537b/ej.function.js/buggy/ejies-jsui/ej.function.js