drawFeature(mlpose = this, posesToDraw) 
	{
	
		mlpose.ctx.fillStyle = 'rgb(255, 0, 0)';

		let valid = Array.isArray(posesToDraw) && posesToDraw.length > 0;

		// For one pose only (use a for loop for multiple poses!)
		for (let i = 0; valid && i < mlpose.poses.length; i++) {

			let pose = mlpose.poses[i].pose;

			posesToDraw.forEach(poseToDraw => {
				let feature = pose[poseToDraw]?? null;
				if (feature) {
					mlpose.ctx.beginPath();
					mlpose.ctx.arc(feature.x, feature.y, 7, 0, 2 * Math.PI);
					mlpose.ctx.fill();
				}
			});
		}
	}
/* 
    * function that draws the desired poses 
	* @mlpose: MlBody object is passed to the method
	* @posesToDraw: array of poses that the user wants to draw
    */
function that draws the desired poses
@mlpose: MlBody object is passed to the method
@posesToDraw: array of poses that the user wants to draw
function that draws the desired poses @mlpose : MlBody object is passed to the method @posesToDraw : array of poses that the user wants to draw
drawFeature(mlpose = this, posesToDraw) 
	{
		mlpose.ctx.fillStyle = 'rgb(255, 0, 0)';
		let valid = Array.isArray(posesToDraw) && posesToDraw.length > 0;
		for (let i = 0; valid && i < mlpose.poses.length; i++) {
			let pose = mlpose.poses[i].pose;
			posesToDraw.forEach(poseToDraw => {
				let feature = pose[poseToDraw]?? null;
				if (feature) {
					mlpose.ctx.beginPath();
					mlpose.ctx.arc(feature.x, feature.y, 7, 0, 2 * Math.PI);
					mlpose.ctx.fill();
				}
			});
		}
	}
drawFeature ( mlpose = this , posesToDraw ) { mlpose . ctx . fillStyle = 'rgb(255, 0, 0)' ; let valid = Array . isArray ( posesToDraw ) && posesToDraw . length > 0 ; for ( let i = 0 ; valid && i < mlpose . poses . length ; i ++ ) { let pose = mlpose . poses [ i ] . pose ; posesToDraw . forEach ( poseToDraw => { let feature = pose [ poseToDraw ] ?? null ; if ( feature ) { mlpose . ctx . beginPath ( ) ; mlpose . ctx . arc ( feature . x , feature . y , 7 , 0 , 2 * Math . PI ) ; mlpose . ctx . fill ( ) ; } } ) ; } }
function that draws the desired poses
 @mlpose: MlBody object is passed to the method
 @posesToDraw: array of poses that the user wants to draw
function that draws the desired poses @mlpose : MlBody object is passed to the method @posesToDraw : array of poses that the user wants to draw
// For one pose only (use a for loop for multiple poses!)