function boundsChanged(newBounds, oldBounds) {
  return (
    newBounds.x !== oldBounds.x ||
    newBounds.y !== oldBounds.y ||
    newBounds.width !== oldBounds.width ||
    newBounds.height !== oldBounds.height
  );
}
Perform the actual resize operation.

@param {Shape} shape
@param {Rect} newBounds
@param {Object} [hints]
@param {string} [hints.autoResize]