dist/jcanvas-handles.js
function addHandles(parent) {
	var $canvas = $(parent.canvas);

	// If parent's list of handles doesn't exist
	if (parent._handles === undefined) {
		// Create list to store handles
		parent._handles = [];
	}

	if (isRectLayer(parent)) {
		// Add four handles to corners of a rectangle/ellipse/image
		addRectHandles($canvas, parent);
	} else if (isPathLayer(parent)) {
		// Add two or more handles to a line path
		addPathHandles($canvas, parent);
	}
}
function addHandles(parent) {
	var $canvas = $(parent.canvas);

	// If parent's list of handles doesn't exist
	if (parent._handles === undefined) {
		// Create list to store handles
		parent._handles = [];
	}

	if (isRectLayer(parent)) {
		// Add four handles to corners of a rectangle/ellipse/image
		addRectHandles($canvas, parent);
	} else if (isPathLayer(parent)) {
		// Add two or more handles to a line path
		addPathHandles($canvas, parent);
	}
}
function addHandles ( parent ) { var $canvas = $ ( parent . canvas ) ; // If parent's list of handles doesn't exist if ( parent . _handles === undefined ) { // Create list to store handles parent . _handles = [ ] ; } if ( isRectLayer ( parent ) ) { // Add four handles to corners of a rectangle/ellipse/image addRectHandles ( $canvas , parent ) ; } else if ( isPathLayer ( parent ) ) { // Add two or more handles to a line path addPathHandles ( $canvas , parent ) ; } }
Add drag handles to all four corners of rectangle layer
Add drag handles to all four corners of rectangle layer