JSFiddle - React, Tailwind, and code Playground
by Darby Rathbone
JavaScript
//line 990
var xtest =evt.offsetX;
var ytest = evt.offsetY;
curobj.getContext('2d').globalCompositeOperation = 'destination-in';
curobj.getContext('2d').beginPath();
curobj.getContext('2d').rect(0,0,curobj.width,curobj.height);
curobj.getContext('2d').save();
curobj.getContext('2d').clip();
curobj.getContext('2d').globalCompositeOperation='source-atop';
curobj.getContext('2d').restore();
var in_path = curobj.getContext('2d').isPointInPath(xtest,ytest)
console.log(in_path);