function boundsChanged(shape, newBounds) {
  return shape.x !== newBounds.x ||
    shape.y !== newBounds.y ||
    shape.width !== newBounds.width ||
    shape.height !== newBounds.height;
}
Activate a resize operation.

You may specify additional contextual information and must specify a
resize direction during activation of the resize event.

@param {MouseEvent|TouchEvent} event
@param {Shape} shape
@param {Object|Direction} contextOrDirection