/* harmony default export */

/* harmony export (binding) */

/* harmony import */

/*#__PURE__*/

/** @class */

/***/

//

// #93 Wrap the resize box in span (will not break 100% width/height)

// API

// Cache

// Calculate max size from boundary settings

// Calculate new size

// Fix #168

// For boundary

// For lockAspectRatio case

// For parent boundary

// For target boundary

// For target(html element) boundary

// HACK: Apply position adjustment

// HACK: MouseEvent does not have `which` from flow-bin v0.68.

// HACK: To get `react-draggable` state x and y.

// INFO: Apply x position by resize to draggable.

// INFO: Make uncontorolled component when resizing to control position by setPostion.

// INFO: To calculate parent width with flex layout

// INFO: To set bounds in `lock aspect ratio with bounds` case. See also that story.

// INFO: Use original width or height if set auto.

// Main

// Remove unknown props, see also https://reactjs.org/warnings/unknown-prop.html

// Restore original position

// Serializer

// Strategy

// This file is a fallback for a consumer who is not yet on React 16

// When user click with right button the resize is stuck in resizing mode

// as createPortal was introduced in React 16

// https://gist.github.com/jimfb/d99e0678e9da715ccf6454961ef04d1b

// until users clicks again, dont continue if right click is used.
