dist/jcanvas-handles.js
function (layer, props) {
		if (props.handle || objectContainsPathCoords(props)) {
			// Add handles if handle property was added
			removeHandles(layer);
			addHandles(layer);
		} else if (props.handle === null) {
			removeHandles(layer);
		}
		if (isRectLayer(layer)) {
			// If width/height was changed
			if (props.width !== undefined || props.height !== undefined || props.x !== undefined || props.y !== undefined) {
				// Update handle positions
				updateRectHandles(layer);
			}
		} else if (isPathLayer(layer)) {
			updatePathHandles(layer);
		}

	}
function (layer, props) {
		if (props.handle || objectContainsPathCoords(props)) {
			// Add handles if handle property was added
			removeHandles(layer);
			addHandles(layer);
		} else if (props.handle === null) {
			removeHandles(layer);
		}
		if (isRectLayer(layer)) {
			// If width/height was changed
			if (props.width !== undefined || props.height !== undefined || props.x !== undefined || props.y !== undefined) {
				// Update handle positions
				updateRectHandles(layer);
			}
		} else if (isPathLayer(layer)) {
			updatePathHandles(layer);
		}

	}
function ( layer , props ) { if ( props . handle || objectContainsPathCoords ( props ) ) { // Add handles if handle property was added removeHandles ( layer ) ; addHandles ( layer ) ; } else if ( props . handle === null ) { removeHandles ( layer ) ; } if ( isRectLayer ( layer ) ) { // If width/height was changed if ( props . width !== undefined || props . height !== undefined || props . x !== undefined || props . y !== undefined ) { // Update handle positions updateRectHandles ( layer ) ; } } else if ( isPathLayer ( layer ) ) { updatePathHandles ( layer ) ; } }
Update handle positions when changing parent layer's dimensions
Update handle positions when changing parent layer s dimensions