src/utils/processShapeEditPath.js
function forceInRange (value, min, max)
{
	if (value > max)
	{return max;}
	else if (value < min)
	{return min;}
	else
	{return value;}
}
function forceInRange (value, min, max)
{
	if (value > max)
	{return max;}
	else if (value < min)
	{return min;}
	else
	{return value;}
}
Sets `value` back to the given `min` - `max` range if necessary

@param value
@param min
@param max
@returns {*}