examples/plugins/image/js/main.js
function drawImageOnCanvas(img) {
    var ctx = $('canvas')[0].getContext('2d');

    ctx.drawImage(img, 0, 0);
    ctx.rotate(-Math.PI / 12);
    ctx.translate(0, 150);
}
function drawImageOnCanvas(img) {
    var ctx = $('canvas')[0].getContext('2d');

    ctx.drawImage(img, 0, 0);
    ctx.rotate(-Math.PI / 12);
    ctx.translate(0, 150);
}
function drawImageOnCanvas ( img ) { var ctx = $ ( 'canvas' ) [ 0 ] . getContext ( '2d' ) ; ctx . drawImage ( img , 0 , 0 ) ; ctx . rotate ( - Math . PI / 12 ) ; ctx . translate ( 0 , 150 ) ; }
LMD require.js() and shortcuts example
LMD require . js () and shortcuts example