dist/js/cropjs.js
function (color, point) {
            var ctx = this._canvas.getContext('2d');

            ctx.beginPath();
            ctx.fillStyle = color;
            ctx.strokeStyle = color;
            ctx.lineWidth = 0.5;

            ctx.arc(point.x, point.y, 5, 0, 2 * Math.PI, false);
            ctx.fill();

            ctx.beginPath();
            ctx.moveTo(point.x - 50, point.y);
            ctx.lineTo(point.x + 50, point.y);
            ctx.stroke();

            ctx.beginPath();
            ctx.moveTo(point.x, point.y - 50);
            ctx.lineTo(point.x, point.y + 50);
            ctx.stroke();
        }
function (color, point) {
            var ctx = this._canvas.getContext('2d');

            ctx.beginPath();
            ctx.fillStyle = color;
            ctx.strokeStyle = color;
            ctx.lineWidth = 0.5;

            ctx.arc(point.x, point.y, 5, 0, 2 * Math.PI, false);
            ctx.fill();

            ctx.beginPath();
            ctx.moveTo(point.x - 50, point.y);
            ctx.lineTo(point.x + 50, point.y);
            ctx.stroke();

            ctx.beginPath();
            ctx.moveTo(point.x, point.y - 50);
            ctx.lineTo(point.x, point.y + 50);
            ctx.stroke();
        }
function ( color , point ) { var ctx = this . _canvas . getContext ( '2d' ) ; ctx . beginPath ( ) ; ctx . fillStyle = color ; ctx . strokeStyle = color ; ctx . lineWidth = 0.5 ; ctx . arc ( point . x , point . y , 5 , 0 , 2 * Math . PI , false ) ; ctx . fill ( ) ; ctx . beginPath ( ) ; ctx . moveTo ( point . x - 50 , point . y ) ; ctx . lineTo ( point . x + 50 , point . y ) ; ctx . stroke ( ) ; ctx . beginPath ( ) ; ctx . moveTo ( point . x , point . y - 50 ) ; ctx . lineTo ( point . x , point . y + 50 ) ; ctx . stroke ( ) ; }
Helper function for drawing a cross mark
@param color
@param point
Helper function for drawing a cross mark