Centering the Canvas object - JS

// MOVE THE SELECTED OBJECT TO THE CENTER 
function center_object() OF CANVAS
        {
            var obj = canvas.getActiveObject();
            obj.center().setCoords();
            canvas.renderAll();
        }

Popular posts from this blog

[Solved] Hive installation error: java.net.URISyntaxException: Relative path in absolute URI

Install Android SDK in centOs

Top 10 Crackers websites 2017