Functions / find
find(map)
find(object map)

map is an object that contains an object attrs, array fns, or both.
find(object map)
return: group
attrs is an object whose keys match the names of attributes and values are the values ​​of the attributes, or objects that specifies some value and relation of it to attribute value. Possible relations are '==', '===', '!=', '!==', '>', '<', '>=', '<=', 'typeof'.

fns is an array, that contains objects {fn: 'functionName', rel: 'relation', val: matchingValue, args: argumentsArray}

Code
<script type="text/javascript">	
	function onload_1(idCanvas)	
	{	
		jc.start(idCanvas,true);
		jc.circle(50,50,50,1);
		jc.circle(100,50,50,1);
		jc.circle(100,100,50);
		jc.rect(100,120,50,60,1);		
	}
	function start_1(idCanvas)	
	{
		//we take group of objects on canvas
		jc({canvas:idCanvas})
		//choose from them those
			.find({attrs:{
				//.attr('proto')=='circle'
				proto:'circle',
				//.attr('fill')>0
				fill:{val:0,rel:'>'}
			},fns:[{
					fn:'isPointIn',
					rel:'==',
					val:true,
					args:[49,50]
				},
				{
					fn:'attr',
					rel:'>',
					val:-10,
					args:['x']
				}]})
			.color('#ff0000');
	}
	function stop_1(idCanvas)	
	{
		jc.clear(idCanvas);
		onload_1(idCanvas);
	}
</script>
<canvas id="canvas_1" width="250px" height="265px">
</canvas>
View