21 Nov 2013 by Michelle Higgins (Harmonia.com)
This article builds on a previous one where we created a selection box by dragging the mouse using the KineticJS library. In this article, we will add functions to allow these objects to be aligned along their left or right edges, tops or bottoms, and middles or centers.