react-resizable 1.10.1 → 1.11.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (43) hide show
  1. package/.eslintrc +10 -6
  2. package/.flowconfig +8 -8
  3. package/CHANGELOG.md +48 -37
  4. package/README.md +13 -3
  5. package/__tests__/Resizable.test.js +245 -0
  6. package/__tests__/ResizableBox.test.js +99 -0
  7. package/__tests__/__snapshots__/Resizable.test.js.snap +29 -0
  8. package/__tests__/__snapshots__/ResizableBox.test.js.snap +23 -0
  9. package/build/Resizable.js +100 -134
  10. package/build/Resizable.js.flow +87 -161
  11. package/build/ResizableBox.js +32 -29
  12. package/build/ResizableBox.js.flow +44 -28
  13. package/build/propTypes.js +112 -0
  14. package/build/propTypes.js.flow +135 -0
  15. package/build/utils.js +3 -3
  16. package/coverage/clover.xml +107 -0
  17. package/coverage/coverage-final.json +5 -0
  18. package/coverage/lcov-report/Resizable.js.html +665 -0
  19. package/coverage/lcov-report/ResizableBox.js.html +374 -0
  20. package/coverage/lcov-report/base.css +224 -0
  21. package/coverage/lcov-report/block-navigation.js +79 -0
  22. package/coverage/lcov-report/favicon.png +0 -0
  23. package/coverage/lcov-report/flow-typed/npm/index.html +111 -0
  24. package/coverage/lcov-report/flow-typed/npm/jest_v26.x.x.js.html +3734 -0
  25. package/coverage/lcov-report/index.html +156 -0
  26. package/coverage/lcov-report/prettify.css +1 -0
  27. package/coverage/lcov-report/prettify.js +2 -0
  28. package/coverage/lcov-report/propTypes.js.html +485 -0
  29. package/coverage/lcov-report/react-resizable/dist/bundle.js.html +95 -0
  30. package/coverage/lcov-report/react-resizable/dist/index.html +111 -0
  31. package/coverage/lcov-report/react-resizable/flow-typed/npm/index.html +111 -0
  32. package/coverage/lcov-report/react-resizable/flow-typed/npm/jest_v26.x.x.js.html +3734 -0
  33. package/coverage/lcov-report/react-resizable/index.html +111 -0
  34. package/coverage/lcov-report/react-resizable/index.js.html +101 -0
  35. package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
  36. package/coverage/lcov-report/sorter.js +170 -0
  37. package/coverage/lcov-report/utils.js.html +122 -0
  38. package/coverage/lcov.info +233 -0
  39. package/dist/bundle.js +6 -0
  40. package/flow-typed/npm/jest_v26.x.x.js +1218 -0
  41. package/package.json +26 -20
  42. package/setupTests/enzyme.js +4 -0
  43. package/index.html +0 -15
@@ -0,0 +1,135 @@
1
+ // @flow
2
+ import PropTypes from 'prop-types';
3
+ import {DraggableCore} from "react-draggable";
4
+ import type {Element as ReactElement, ElementConfig} from 'react';
5
+
6
+ export type Axis = 'both' | 'x' | 'y' | 'none';
7
+ export type ResizeHandleAxis = 's' | 'w' | 'e' | 'n' | 'sw' | 'nw' | 'se' | 'ne';
8
+ export type ResizableState = void;
9
+ export type ResizableBoxState = {|
10
+ width: number, height: number,
11
+ propsWidth: number, propsHeight: number
12
+ |};
13
+ export type DragCallbackData = {|
14
+ node: HTMLElement,
15
+ x: number, y: number,
16
+ deltaX: number, deltaY: number,
17
+ lastX: number, lastY: number
18
+ |};
19
+ export type ResizeCallbackData = {|
20
+ node: HTMLElement,
21
+ size: {|width: number, height: number|},
22
+ handle: ResizeHandleAxis
23
+ |};
24
+
25
+ // <Resizable>
26
+ export type Props = {|
27
+ axis: Axis,
28
+ children: ReactElement<any>,
29
+ className?: ?string,
30
+ draggableOpts?: ?ElementConfig<typeof DraggableCore>,
31
+ height: number,
32
+ handle?: ReactElement<any> | (resizeHandleAxis: ResizeHandleAxis) => ReactElement<any>,
33
+ handleSize: [number, number],
34
+ lockAspectRatio: boolean,
35
+ minConstraints: [number, number],
36
+ maxConstraints: [number, number],
37
+ onResizeStop?: ?(e: SyntheticEvent<>, data: ResizeCallbackData) => any,
38
+ onResizeStart?: ?(e: SyntheticEvent<>, data: ResizeCallbackData) => any,
39
+ onResize?: ?(e: SyntheticEvent<>, data: ResizeCallbackData) => any,
40
+ resizeHandles: ResizeHandleAxis[],
41
+ transformScale: number,
42
+ width: number,
43
+ |};
44
+
45
+ export const resizableProps = {
46
+ /*
47
+ * Restricts resizing to a particular axis (default: 'both')
48
+ * 'both' - allows resizing by width or height
49
+ * 'x' - only allows the width to be changed
50
+ * 'y' - only allows the height to be changed
51
+ * 'none' - disables resizing altogether
52
+ * */
53
+ axis: PropTypes.oneOf(['both', 'x', 'y', 'none']),
54
+ className: PropTypes.string,
55
+ /*
56
+ * Require that one and only one child be present.
57
+ * */
58
+ children: PropTypes.element.isRequired,
59
+ /*
60
+ * These will be passed wholesale to react-draggable's DraggableCore
61
+ * */
62
+ draggableOpts: PropTypes.shape({
63
+ allowAnyClick: PropTypes.bool,
64
+ cancel: PropTypes.string,
65
+ children: PropTypes.node,
66
+ disabled: PropTypes.bool,
67
+ enableUserSelectHack: PropTypes.bool,
68
+ offsetParent: PropTypes.node,
69
+ grid: PropTypes.arrayOf(PropTypes.number),
70
+ handle: PropTypes.string,
71
+ nodeRef: PropTypes.object,
72
+ onStart: PropTypes.func,
73
+ onDrag: PropTypes.func,
74
+ onStop: PropTypes.func,
75
+ onMouseDown: PropTypes.func,
76
+ scale: PropTypes.number,
77
+ }),
78
+ /*
79
+ * Initial height
80
+ * */
81
+ height: PropTypes.number.isRequired,
82
+ /*
83
+ * Customize cursor resize handle
84
+ * */
85
+ handle: PropTypes.oneOfType([
86
+ PropTypes.node,
87
+ PropTypes.func
88
+ ]),
89
+ /*
90
+ * If you change this, be sure to update your css
91
+ * */
92
+ handleSize: PropTypes.arrayOf(PropTypes.number),
93
+ lockAspectRatio: PropTypes.bool,
94
+ /*
95
+ * Max X & Y measure
96
+ * */
97
+ maxConstraints: PropTypes.arrayOf(PropTypes.number),
98
+ /*
99
+ * Min X & Y measure
100
+ * */
101
+ minConstraints: PropTypes.arrayOf(PropTypes.number),
102
+ /*
103
+ * Called on stop resize event
104
+ * */
105
+ onResizeStop: PropTypes.func,
106
+ /*
107
+ * Called on start resize event
108
+ * */
109
+ onResizeStart: PropTypes.func,
110
+ /*
111
+ * Called on resize event
112
+ * */
113
+ onResize: PropTypes.func,
114
+ /*
115
+ * Defines which resize handles should be rendered (default: 'se')
116
+ * 's' - South handle (bottom-center)
117
+ * 'w' - West handle (left-center)
118
+ * 'e' - East handle (right-center)
119
+ * 'n' - North handle (top-center)
120
+ * 'sw' - Southwest handle (bottom-left)
121
+ * 'nw' - Northwest handle (top-left)
122
+ * 'se' - Southeast handle (bottom-right)
123
+ * 'ne' - Northeast handle (top-center)
124
+ * */
125
+ resizeHandles: PropTypes.arrayOf(PropTypes.oneOf(['s', 'w', 'e', 'n', 'sw', 'nw', 'se', 'ne'])),
126
+
127
+ /*
128
+ * If `transform: scale(n)` is set on the parent, this should be set to `n`.
129
+ * */
130
+ transformScale: PropTypes.number,
131
+ /*
132
+ * Initial width
133
+ */
134
+ width: PropTypes.number.isRequired,
135
+ };
package/build/utils.js CHANGED
@@ -9,19 +9,19 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
9
9
 
10
10
  function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); if (enumerableOnly) symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; }); keys.push.apply(keys, symbols); } return keys; }
11
11
 
12
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(source, true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(source).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
12
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i] != null ? arguments[i] : {}; if (i % 2) { ownKeys(Object(source), true).forEach(function (key) { _defineProperty(target, key, source[key]); }); } else if (Object.getOwnPropertyDescriptors) { Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)); } else { ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } } return target; }
13
13
 
14
14
  function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
15
 
16
16
  // React.addons.cloneWithProps look-alike that merges style & className.
17
17
  function cloneElement(element, props) {
18
18
  if (props.style && element.props.style) {
19
- props.style = _objectSpread({}, element.props.style, {}, props.style);
19
+ props.style = _objectSpread(_objectSpread({}, element.props.style), props.style);
20
20
  }
21
21
 
22
22
  if (props.className && element.props.className) {
23
23
  props.className = element.props.className + " " + props.className;
24
24
  }
25
25
 
26
- return _react.default.cloneElement(element, props);
26
+ return /*#__PURE__*/_react.default.cloneElement(element, props);
27
27
  }
@@ -0,0 +1,107 @@
1
+ <?xml version="1.0" encoding="UTF-8"?>
2
+ <coverage generated="1599153161187" clover="3.2.0">
3
+ <project timestamp="1599153161187" name="All files">
4
+ <metrics statements="89" coveredstatements="73" conditionals="80" coveredconditionals="59" methods="14" coveredmethods="11" elements="183" coveredelements="143" complexity="0" loc="89" ncloc="89" packages="1" files="4" classes="4"/>
5
+ <file name="Resizable.js" path="/Users/samuelreed/git/oss/react-resizable/lib/Resizable.js">
6
+ <metrics statements="70" coveredstatements="57" conditionals="62" coveredconditionals="45" methods="9" coveredmethods="6"/>
7
+ <line num="10" count="2" type="stmt"/>
8
+ <line num="12" count="2" type="stmt"/>
9
+ <line num="22" count="10" type="stmt"/>
10
+ <line num="24" count="10" type="stmt"/>
11
+ <line num="25" count="10" type="stmt"/>
12
+ <line num="28" count="0" type="stmt"/>
13
+ <line num="32" count="0" type="stmt"/>
14
+ <line num="33" count="0" type="stmt"/>
15
+ <line num="34" count="0" type="stmt"/>
16
+ <line num="38" count="0" type="stmt"/>
17
+ <line num="43" count="10" type="stmt"/>
18
+ <line num="44" count="10" type="cond" truecount="2" falsecount="2"/>
19
+ <line num="47" count="10" type="cond" truecount="1" falsecount="1"/>
20
+ <line num="48" count="0" type="stmt"/>
21
+ <line num="49" count="0" type="cond" truecount="0" falsecount="2"/>
22
+ <line num="50" count="0" type="stmt"/>
23
+ <line num="51" count="0" type="stmt"/>
24
+ <line num="52" count="0" type="stmt"/>
25
+ <line num="56" count="0" type="stmt"/>
26
+ <line num="57" count="0" type="stmt"/>
27
+ <line num="58" count="0" type="stmt"/>
28
+ <line num="62" count="10" type="stmt"/>
29
+ <line num="67" count="10" type="cond" truecount="2" falsecount="0"/>
30
+ <line num="68" count="10" type="stmt"/>
31
+ <line num="69" count="10" type="stmt"/>
32
+ <line num="71" count="10" type="cond" truecount="1" falsecount="1"/>
33
+ <line num="72" count="10" type="stmt"/>
34
+ <line num="73" count="10" type="stmt"/>
35
+ <line num="75" count="10" type="cond" truecount="1" falsecount="1"/>
36
+ <line num="76" count="10" type="stmt"/>
37
+ <line num="77" count="10" type="stmt"/>
38
+ <line num="81" count="10" type="stmt"/>
39
+ <line num="83" count="10" type="stmt"/>
40
+ <line num="93" count="105" type="stmt"/>
41
+ <line num="95" count="10" type="cond" truecount="1" falsecount="1"/>
42
+ <line num="98" count="10" type="cond" truecount="3" falsecount="1"/>
43
+ <line num="99" count="10" type="cond" truecount="3" falsecount="1"/>
44
+ <line num="101" count="10" type="cond" truecount="2" falsecount="2"/>
45
+ <line num="104" count="10" type="stmt"/>
46
+ <line num="105" count="10" type="stmt"/>
47
+ <line num="110" count="10" type="stmt"/>
48
+ <line num="111" count="10" type="cond" truecount="2" falsecount="0"/>
49
+ <line num="115" count="7" type="cond" truecount="2" falsecount="0"/>
50
+ <line num="116" count="5" type="stmt"/>
51
+ <line num="117" count="5" type="stmt"/>
52
+ <line num="119" count="7" type="cond" truecount="2" falsecount="0"/>
53
+ <line num="120" count="5" type="stmt"/>
54
+ <line num="121" count="5" type="stmt"/>
55
+ <line num="125" count="10" type="stmt"/>
56
+ <line num="128" count="10" type="cond" truecount="2" falsecount="0"/>
57
+ <line num="129" count="10" type="cond" truecount="2" falsecount="0"/>
58
+ <line num="132" count="10" type="cond" truecount="1" falsecount="1"/>
59
+ <line num="133" count="10" type="cond" truecount="1" falsecount="1"/>
60
+ <line num="136" count="10" type="stmt"/>
61
+ <line num="138" count="10" type="cond" truecount="2" falsecount="0"/>
62
+ <line num="141" count="10" type="cond" truecount="1" falsecount="1"/>
63
+ <line num="143" count="10" type="cond" truecount="2" falsecount="0"/>
64
+ <line num="144" count="10" type="cond" truecount="4" falsecount="0"/>
65
+ <line num="145" count="9" type="cond" truecount="1" falsecount="1"/>
66
+ <line num="146" count="9" type="stmt"/>
67
+ <line num="150" count="10" type="cond" truecount="1" falsecount="1"/>
68
+ <line num="155" count="35" type="stmt"/>
69
+ <line num="156" count="35" type="cond" truecount="2" falsecount="0"/>
70
+ <line num="157" count="7" type="cond" truecount="2" falsecount="0"/>
71
+ <line num="158" count="2" type="stmt"/>
72
+ <line num="160" count="5" type="stmt"/>
73
+ <line num="162" count="28" type="stmt"/>
74
+ <line num="170" count="10" type="stmt"/>
75
+ <line num="176" count="10" type="stmt"/>
76
+ <line num="182" count="35" type="stmt"/>
77
+ </file>
78
+ <file name="ResizableBox.js" path="/Users/samuelreed/git/oss/react-resizable/lib/ResizableBox.js">
79
+ <metrics statements="13" coveredstatements="11" conditionals="10" coveredconditionals="8" methods="4" coveredmethods="4"/>
80
+ <line num="19" count="1" type="stmt"/>
81
+ <line num="24" count="6" type="stmt"/>
82
+ <line num="33" count="7" type="cond" truecount="3" falsecount="1"/>
83
+ <line num="34" count="0" type="stmt"/>
84
+ <line num="41" count="7" type="stmt"/>
85
+ <line num="44" count="6" type="stmt"/>
86
+ <line num="45" count="1" type="stmt"/>
87
+ <line num="46" count="1" type="cond" truecount="1" falsecount="1"/>
88
+ <line num="47" count="1" type="cond" truecount="2" falsecount="0"/>
89
+ <line num="48" count="1" type="cond" truecount="2" falsecount="0"/>
90
+ <line num="50" count="0" type="stmt"/>
91
+ <line num="75" count="7" type="stmt"/>
92
+ <line num="77" count="7" type="stmt"/>
93
+ </file>
94
+ <file name="propTypes.js" path="/Users/samuelreed/git/oss/react-resizable/lib/propTypes.js">
95
+ <metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
96
+ <line num="45" count="2" type="stmt"/>
97
+ </file>
98
+ <file name="utils.js" path="/Users/samuelreed/git/oss/react-resizable/lib/utils.js">
99
+ <metrics statements="5" coveredstatements="4" conditionals="8" coveredconditionals="6" methods="1" coveredmethods="1"/>
100
+ <line num="7" count="10" type="cond" truecount="2" falsecount="2"/>
101
+ <line num="8" count="0" type="stmt"/>
102
+ <line num="10" count="10" type="cond" truecount="4" falsecount="0"/>
103
+ <line num="11" count="2" type="stmt"/>
104
+ <line num="13" count="10" type="stmt"/>
105
+ </file>
106
+ </project>
107
+ </coverage>
@@ -0,0 +1,5 @@
1
+ {"/Users/samuelreed/git/oss/react-resizable/lib/Resizable.js": {"path":"/Users/samuelreed/git/oss/react-resizable/lib/Resizable.js","statementMap":{"0":{"start":{"line":10,"column":21},"end":{"line":10,"column":35}},"1":{"start":{"line":12,"column":25},"end":{"line":20,"column":3}},"2":{"start":{"line":22,"column":26},"end":{"line":22,"column":35}},"3":{"start":{"line":24,"column":32},"end":{"line":24,"column":36}},"4":{"start":{"line":25,"column":29},"end":{"line":25,"column":33}},"5":{"start":{"line":28,"column":4},"end":{"line":28,"column":21}},"6":{"start":{"line":32,"column":4},"end":{"line":32,"column":33}},"7":{"start":{"line":33,"column":4},"end":{"line":33,"column":33}},"8":{"start":{"line":34,"column":4},"end":{"line":34,"column":27}},"9":{"start":{"line":38,"column":4},"end":{"line":38,"column":44}},"10":{"start":{"line":43,"column":23},"end":{"line":43,"column":77}},"11":{"start":{"line":44,"column":4},"end":{"line":44,"column":45}},"12":{"start":{"line":44,"column":22},"end":{"line":44,"column":45}},"13":{"start":{"line":47,"column":4},"end":{"line":60,"column":5}},"14":{"start":{"line":48,"column":35},"end":{"line":48,"column":63}},"15":{"start":{"line":49,"column":6},"end":{"line":59,"column":7}},"16":{"start":{"line":50,"column":22},"end":{"line":50,"column":58}},"17":{"start":{"line":51,"column":8},"end":{"line":51,"column":31}},"18":{"start":{"line":52,"column":8},"end":{"line":52,"column":31}},"19":{"start":{"line":56,"column":22},"end":{"line":56,"column":58}},"20":{"start":{"line":57,"column":8},"end":{"line":57,"column":31}},"21":{"start":{"line":58,"column":8},"end":{"line":58,"column":31}},"22":{"start":{"line":62,"column":25},"end":{"line":62,"column":40}},"23":{"start":{"line":67,"column":27},"end":{"line":67,"column":47}},"24":{"start":{"line":68,"column":4},"end":{"line":68,"column":20}},"25":{"start":{"line":69,"column":4},"end":{"line":69,"column":21}},"26":{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},"27":{"start":{"line":72,"column":6},"end":{"line":72,"column":38}},"28":{"start":{"line":73,"column":6},"end":{"line":73,"column":40}},"29":{"start":{"line":75,"column":4},"end":{"line":78,"column":5}},"30":{"start":{"line":76,"column":6},"end":{"line":76,"column":38}},"31":{"start":{"line":77,"column":6},"end":{"line":77,"column":40}},"32":{"start":{"line":81,"column":4},"end":{"line":81,"column":69}},"33":{"start":{"line":83,"column":4},"end":{"line":83,"column":27}},"34":{"start":{"line":93,"column":4},"end":{"line":151,"column":6}},"35":{"start":{"line":95,"column":6},"end":{"line":95,"column":60}},"36":{"start":{"line":95,"column":43},"end":{"line":95,"column":60}},"37":{"start":{"line":98,"column":23},"end":{"line":98,"column":110}},"38":{"start":{"line":99,"column":23},"end":{"line":99,"column":110}},"39":{"start":{"line":101,"column":6},"end":{"line":101,"column":41}},"40":{"start":{"line":101,"column":34},"end":{"line":101,"column":41}},"41":{"start":{"line":104,"column":20},"end":{"line":104,"column":27}},"42":{"start":{"line":105,"column":20},"end":{"line":105,"column":41}},"43":{"start":{"line":110,"column":25},"end":{"line":110,"column":53}},"44":{"start":{"line":111,"column":6},"end":{"line":123,"column":7}},"45":{"start":{"line":115,"column":8},"end":{"line":118,"column":9}},"46":{"start":{"line":116,"column":37},"end":{"line":116,"column":79}},"47":{"start":{"line":117,"column":10},"end":{"line":117,"column":39}},"48":{"start":{"line":119,"column":8},"end":{"line":122,"column":9}},"49":{"start":{"line":120,"column":36},"end":{"line":120,"column":76}},"50":{"start":{"line":121,"column":10},"end":{"line":121,"column":38}},"51":{"start":{"line":125,"column":6},"end":{"line":125,"column":39}},"52":{"start":{"line":128,"column":6},"end":{"line":128,"column":42}},"53":{"start":{"line":128,"column":25},"end":{"line":128,"column":42}},"54":{"start":{"line":129,"column":6},"end":{"line":129,"column":42}},"55":{"start":{"line":129,"column":25},"end":{"line":129,"column":42}},"56":{"start":{"line":132,"column":18},"end":{"line":132,"column":88}},"57":{"start":{"line":133,"column":19},"end":{"line":133,"column":90}},"58":{"start":{"line":136,"column":6},"end":{"line":136,"column":59}},"59":{"start":{"line":138,"column":32},"end":{"line":138,"column":90}},"60":{"start":{"line":141,"column":17},"end":{"line":141,"column":95}},"61":{"start":{"line":143,"column":27},"end":{"line":143,"column":75}},"62":{"start":{"line":144,"column":6},"end":{"line":147,"column":7}},"63":{"start":{"line":145,"column":8},"end":{"line":145,"column":57}},"64":{"start":{"line":145,"column":45},"end":{"line":145,"column":57}},"65":{"start":{"line":146,"column":8},"end":{"line":146,"column":59}},"66":{"start":{"line":150,"column":6},"end":{"line":150,"column":59}},"67":{"start":{"line":150,"column":42},"end":{"line":150,"column":59}},"68":{"start":{"line":155,"column":21},"end":{"line":155,"column":31}},"69":{"start":{"line":156,"column":4},"end":{"line":161,"column":5}},"70":{"start":{"line":157,"column":6},"end":{"line":159,"column":7}},"71":{"start":{"line":158,"column":8},"end":{"line":158,"column":40}},"72":{"start":{"line":160,"column":6},"end":{"line":160,"column":20}},"73":{"start":{"line":162,"column":4},"end":{"line":162,"column":100}},"74":{"start":{"line":170,"column":80},"end":{"line":170,"column":90}},"75":{"start":{"line":176,"column":4},"end":{"line":193,"column":7}},"76":{"start":{"line":182,"column":10},"end":{"line":190,"column":26}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":27,"column":2},"end":{"line":27,"column":3}},"loc":{"start":{"line":27,"column":25},"end":{"line":29,"column":3}},"line":27},"1":{"name":"(anonymous_1)","decl":{"start":{"line":31,"column":2},"end":{"line":31,"column":3}},"loc":{"start":{"line":31,"column":88},"end":{"line":35,"column":3}},"line":31},"2":{"name":"(anonymous_2)","decl":{"start":{"line":37,"column":2},"end":{"line":37,"column":3}},"loc":{"start":{"line":37,"column":14},"end":{"line":39,"column":3}},"line":37},"3":{"name":"(anonymous_3)","decl":{"start":{"line":42,"column":2},"end":{"line":42,"column":3}},"loc":{"start":{"line":42,"column":66},"end":{"line":84,"column":3}},"line":42},"4":{"name":"(anonymous_4)","decl":{"start":{"line":92,"column":2},"end":{"line":92,"column":3}},"loc":{"start":{"line":92,"column":110},"end":{"line":152,"column":3}},"line":92},"5":{"name":"(anonymous_5)","decl":{"start":{"line":93,"column":11},"end":{"line":93,"column":12}},"loc":{"start":{"line":93,"column":78},"end":{"line":151,"column":5}},"line":93},"6":{"name":"(anonymous_6)","decl":{"start":{"line":154,"column":2},"end":{"line":154,"column":3}},"loc":{"start":{"line":154,"column":68},"end":{"line":163,"column":3}},"line":154},"7":{"name":"(anonymous_7)","decl":{"start":{"line":165,"column":2},"end":{"line":165,"column":3}},"loc":{"start":{"line":165,"column":22},"end":{"line":194,"column":3}},"line":165},"8":{"name":"(anonymous_8)","decl":{"start":{"line":181,"column":29},"end":{"line":181,"column":30}},"loc":{"start":{"line":182,"column":10},"end":{"line":190,"column":26}},"line":182}},"branchMap":{"0":{"loc":{"start":{"line":44,"column":4},"end":{"line":44,"column":45}},"type":"if","locations":[{"start":{"line":44,"column":4},"end":{"line":44,"column":45}},{"start":{"line":44,"column":4},"end":{"line":44,"column":45}}],"line":44},"1":{"loc":{"start":{"line":44,"column":8},"end":{"line":44,"column":20}},"type":"binary-expr","locations":[{"start":{"line":44,"column":8},"end":{"line":44,"column":12}},{"start":{"line":44,"column":16},"end":{"line":44,"column":20}}],"line":44},"2":{"loc":{"start":{"line":47,"column":4},"end":{"line":60,"column":5}},"type":"if","locations":[{"start":{"line":47,"column":4},"end":{"line":60,"column":5}},{"start":{"line":47,"column":4},"end":{"line":60,"column":5}}],"line":47},"3":{"loc":{"start":{"line":49,"column":6},"end":{"line":59,"column":7}},"type":"if","locations":[{"start":{"line":49,"column":6},"end":{"line":59,"column":7}},{"start":{"line":49,"column":6},"end":{"line":59,"column":7}}],"line":49},"4":{"loc":{"start":{"line":67,"column":27},"end":{"line":67,"column":47}},"type":"binary-expr","locations":[{"start":{"line":67,"column":27},"end":{"line":67,"column":37}},{"start":{"line":67,"column":41},"end":{"line":67,"column":47}}],"line":67},"5":{"loc":{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},"type":"if","locations":[{"start":{"line":71,"column":4},"end":{"line":74,"column":5}},{"start":{"line":71,"column":4},"end":{"line":74,"column":5}}],"line":71},"6":{"loc":{"start":{"line":75,"column":4},"end":{"line":78,"column":5}},"type":"if","locations":[{"start":{"line":75,"column":4},"end":{"line":78,"column":5}},{"start":{"line":75,"column":4},"end":{"line":78,"column":5}}],"line":75},"7":{"loc":{"start":{"line":95,"column":6},"end":{"line":95,"column":60}},"type":"if","locations":[{"start":{"line":95,"column":6},"end":{"line":95,"column":60}},{"start":{"line":95,"column":6},"end":{"line":95,"column":60}}],"line":95},"8":{"loc":{"start":{"line":98,"column":23},"end":{"line":98,"column":110}},"type":"binary-expr","locations":[{"start":{"line":98,"column":24},"end":{"line":98,"column":50}},{"start":{"line":98,"column":54},"end":{"line":98,"column":77}},{"start":{"line":98,"column":82},"end":{"line":98,"column":94}},{"start":{"line":98,"column":98},"end":{"line":98,"column":110}}],"line":98},"9":{"loc":{"start":{"line":99,"column":23},"end":{"line":99,"column":110}},"type":"binary-expr","locations":[{"start":{"line":99,"column":24},"end":{"line":99,"column":50}},{"start":{"line":99,"column":54},"end":{"line":99,"column":77}},{"start":{"line":99,"column":82},"end":{"line":99,"column":94}},{"start":{"line":99,"column":98},"end":{"line":99,"column":110}}],"line":99},"10":{"loc":{"start":{"line":101,"column":6},"end":{"line":101,"column":41}},"type":"if","locations":[{"start":{"line":101,"column":6},"end":{"line":101,"column":41}},{"start":{"line":101,"column":6},"end":{"line":101,"column":41}}],"line":101},"11":{"loc":{"start":{"line":101,"column":10},"end":{"line":101,"column":32}},"type":"binary-expr","locations":[{"start":{"line":101,"column":10},"end":{"line":101,"column":19}},{"start":{"line":101,"column":23},"end":{"line":101,"column":32}}],"line":101},"12":{"loc":{"start":{"line":111,"column":6},"end":{"line":123,"column":7}},"type":"if","locations":[{"start":{"line":111,"column":6},"end":{"line":123,"column":7}},{"start":{"line":111,"column":6},"end":{"line":123,"column":7}}],"line":111},"13":{"loc":{"start":{"line":115,"column":8},"end":{"line":118,"column":9}},"type":"if","locations":[{"start":{"line":115,"column":8},"end":{"line":118,"column":9}},{"start":{"line":115,"column":8},"end":{"line":118,"column":9}}],"line":115},"14":{"loc":{"start":{"line":119,"column":8},"end":{"line":122,"column":9}},"type":"if","locations":[{"start":{"line":119,"column":8},"end":{"line":122,"column":9}},{"start":{"line":119,"column":8},"end":{"line":122,"column":9}}],"line":119},"15":{"loc":{"start":{"line":128,"column":6},"end":{"line":128,"column":42}},"type":"if","locations":[{"start":{"line":128,"column":6},"end":{"line":128,"column":42}},{"start":{"line":128,"column":6},"end":{"line":128,"column":42}}],"line":128},"16":{"loc":{"start":{"line":129,"column":6},"end":{"line":129,"column":42}},"type":"if","locations":[{"start":{"line":129,"column":6},"end":{"line":129,"column":42}},{"start":{"line":129,"column":6},"end":{"line":129,"column":42}}],"line":129},"17":{"loc":{"start":{"line":132,"column":38},"end":{"line":132,"column":87}},"type":"cond-expr","locations":[{"start":{"line":132,"column":49},"end":{"line":132,"column":83}},{"start":{"line":132,"column":86},"end":{"line":132,"column":87}}],"line":132},"18":{"loc":{"start":{"line":133,"column":40},"end":{"line":133,"column":89}},"type":"cond-expr","locations":[{"start":{"line":133,"column":51},"end":{"line":133,"column":85}},{"start":{"line":133,"column":88},"end":{"line":133,"column":89}}],"line":133},"19":{"loc":{"start":{"line":138,"column":32},"end":{"line":138,"column":90}},"type":"binary-expr","locations":[{"start":{"line":138,"column":32},"end":{"line":138,"column":58}},{"start":{"line":138,"column":62},"end":{"line":138,"column":90}}],"line":138},"20":{"loc":{"start":{"line":141,"column":17},"end":{"line":141,"column":95}},"type":"cond-expr","locations":[{"start":{"line":141,"column":65},"end":{"line":141,"column":88}},{"start":{"line":141,"column":91},"end":{"line":141,"column":95}}],"line":141},"21":{"loc":{"start":{"line":143,"column":27},"end":{"line":143,"column":75}},"type":"binary-expr","locations":[{"start":{"line":143,"column":27},"end":{"line":143,"column":53}},{"start":{"line":143,"column":57},"end":{"line":143,"column":75}}],"line":143},"22":{"loc":{"start":{"line":144,"column":6},"end":{"line":147,"column":7}},"type":"if","locations":[{"start":{"line":144,"column":6},"end":{"line":147,"column":7}},{"start":{"line":144,"column":6},"end":{"line":147,"column":7}}],"line":144},"23":{"loc":{"start":{"line":144,"column":10},"end":{"line":144,"column":29}},"type":"binary-expr","locations":[{"start":{"line":144,"column":10},"end":{"line":144,"column":12}},{"start":{"line":144,"column":16},"end":{"line":144,"column":29}}],"line":144},"24":{"loc":{"start":{"line":145,"column":8},"end":{"line":145,"column":57}},"type":"if","locations":[{"start":{"line":145,"column":8},"end":{"line":145,"column":57}},{"start":{"line":145,"column":8},"end":{"line":145,"column":57}}],"line":145},"25":{"loc":{"start":{"line":150,"column":6},"end":{"line":150,"column":59}},"type":"if","locations":[{"start":{"line":150,"column":6},"end":{"line":150,"column":59}},{"start":{"line":150,"column":6},"end":{"line":150,"column":59}}],"line":150},"26":{"loc":{"start":{"line":156,"column":4},"end":{"line":161,"column":5}},"type":"if","locations":[{"start":{"line":156,"column":4},"end":{"line":161,"column":5}},{"start":{"line":156,"column":4},"end":{"line":161,"column":5}}],"line":156},"27":{"loc":{"start":{"line":157,"column":6},"end":{"line":159,"column":7}},"type":"if","locations":[{"start":{"line":157,"column":6},"end":{"line":159,"column":7}},{"start":{"line":157,"column":6},"end":{"line":159,"column":7}}],"line":157},"28":{"loc":{"start":{"line":178,"column":20},"end":{"line":178,"column":52}},"type":"cond-expr","locations":[{"start":{"line":178,"column":32},"end":{"line":178,"column":47}},{"start":{"line":178,"column":50},"end":{"line":178,"column":52}}],"line":178}},"s":{"0":2,"1":2,"2":10,"3":10,"4":10,"5":0,"6":0,"7":0,"8":0,"9":0,"10":10,"11":10,"12":0,"13":10,"14":0,"15":0,"16":0,"17":0,"18":0,"19":0,"20":0,"21":0,"22":10,"23":10,"24":10,"25":10,"26":10,"27":10,"28":10,"29":10,"30":10,"31":10,"32":10,"33":10,"34":105,"35":10,"36":0,"37":10,"38":10,"39":10,"40":0,"41":10,"42":10,"43":10,"44":10,"45":7,"46":5,"47":5,"48":7,"49":5,"50":5,"51":10,"52":10,"53":8,"54":10,"55":8,"56":10,"57":10,"58":10,"59":10,"60":10,"61":10,"62":10,"63":9,"64":0,"65":9,"66":10,"67":0,"68":35,"69":35,"70":7,"71":2,"72":5,"73":28,"74":10,"75":10,"76":35},"f":{"0":0,"1":0,"2":0,"3":10,"4":105,"5":10,"6":35,"7":10,"8":35},"b":{"0":[0,10],"1":[10,0],"2":[0,10],"3":[0,0],"4":[10,3],"5":[10,0],"6":[10,0],"7":[0,10],"8":[10,0,10,10],"9":[10,0,10,10],"10":[0,10],"11":[10,0],"12":[7,3],"13":[5,2],"14":[5,2],"15":[8,2],"16":[8,2],"17":[10,0],"18":[10,0],"19":[10,2],"20":[10,0],"21":[10,10],"22":[9,1],"23":[10,10],"24":[0,9],"25":[0,10],"26":[7,28],"27":[2,5],"28":[9,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"ac17adea78801bbf722e7d243214b50ff54f62e9"}
2
+ ,"/Users/samuelreed/git/oss/react-resizable/lib/ResizableBox.js": {"path":"/Users/samuelreed/git/oss/react-resizable/lib/ResizableBox.js","statementMap":{"0":{"start":{"line":19,"column":21},"end":{"line":22,"column":3}},"1":{"start":{"line":24,"column":29},"end":{"line":29,"column":3}},"2":{"start":{"line":33,"column":4},"end":{"line":40,"column":5}},"3":{"start":{"line":34,"column":6},"end":{"line":39,"column":8}},"4":{"start":{"line":41,"column":4},"end":{"line":41,"column":16}},"5":{"start":{"line":44,"column":13},"end":{"line":52,"column":3}},"6":{"start":{"line":45,"column":19},"end":{"line":45,"column":23}},"7":{"start":{"line":46,"column":4},"end":{"line":51,"column":5}},"8":{"start":{"line":47,"column":6},"end":{"line":47,"column":31}},"9":{"start":{"line":48,"column":6},"end":{"line":48,"column":85}},"10":{"start":{"line":48,"column":32},"end":{"line":48,"column":83}},"11":{"start":{"line":50,"column":6},"end":{"line":50,"column":26}},"12":{"start":{"line":75,"column":8},"end":{"line":75,"column":18}},"13":{"start":{"line":77,"column":4},"end":{"line":96,"column":6}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":31,"column":2},"end":{"line":31,"column":3}},"loc":{"start":{"line":31,"column":86},"end":{"line":42,"column":3}},"line":31},"1":{"name":"(anonymous_1)","decl":{"start":{"line":44,"column":13},"end":{"line":44,"column":14}},"loc":{"start":{"line":44,"column":64},"end":{"line":52,"column":3}},"line":44},"2":{"name":"(anonymous_2)","decl":{"start":{"line":48,"column":26},"end":{"line":48,"column":27}},"loc":{"start":{"line":48,"column":32},"end":{"line":48,"column":83}},"line":48},"3":{"name":"(anonymous_3)","decl":{"start":{"line":54,"column":2},"end":{"line":54,"column":3}},"loc":{"start":{"line":54,"column":22},"end":{"line":97,"column":3}},"line":54}},"branchMap":{"0":{"loc":{"start":{"line":33,"column":4},"end":{"line":40,"column":5}},"type":"if","locations":[{"start":{"line":33,"column":4},"end":{"line":40,"column":5}},{"start":{"line":33,"column":4},"end":{"line":40,"column":5}}],"line":33},"1":{"loc":{"start":{"line":33,"column":8},"end":{"line":33,"column":78}},"type":"binary-expr","locations":[{"start":{"line":33,"column":8},"end":{"line":33,"column":40}},{"start":{"line":33,"column":44},"end":{"line":33,"column":78}}],"line":33},"2":{"loc":{"start":{"line":46,"column":4},"end":{"line":51,"column":5}},"type":"if","locations":[{"start":{"line":46,"column":4},"end":{"line":51,"column":5}},{"start":{"line":46,"column":4},"end":{"line":51,"column":5}}],"line":46},"3":{"loc":{"start":{"line":47,"column":6},"end":{"line":47,"column":30}},"type":"binary-expr","locations":[{"start":{"line":47,"column":6},"end":{"line":47,"column":15}},{"start":{"line":47,"column":19},"end":{"line":47,"column":30}}],"line":47},"4":{"loc":{"start":{"line":48,"column":32},"end":{"line":48,"column":83}},"type":"binary-expr","locations":[{"start":{"line":48,"column":32},"end":{"line":48,"column":51}},{"start":{"line":48,"column":55},"end":{"line":48,"column":83}}],"line":48}},"s":{"0":1,"1":6,"2":7,"3":0,"4":7,"5":6,"6":1,"7":1,"8":1,"9":1,"10":1,"11":0,"12":7,"13":7},"f":{"0":7,"1":1,"2":1,"3":7},"b":{"0":[0,7],"1":[7,7],"2":[1,0],"3":[1,1],"4":[1,1]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"13b4735b99bb58453494ef994e82e17066364f0b"}
3
+ ,"/Users/samuelreed/git/oss/react-resizable/lib/propTypes.js": {"path":"/Users/samuelreed/git/oss/react-resizable/lib/propTypes.js","statementMap":{"0":{"start":{"line":45,"column":30},"end":{"line":135,"column":1}}},"fnMap":{},"branchMap":{},"s":{"0":2},"f":{},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"f52cf26a1f1552c79f36287b8963a4f61e041113"}
4
+ ,"/Users/samuelreed/git/oss/react-resizable/lib/utils.js": {"path":"/Users/samuelreed/git/oss/react-resizable/lib/utils.js","statementMap":{"0":{"start":{"line":7,"column":2},"end":{"line":9,"column":3}},"1":{"start":{"line":8,"column":4},"end":{"line":8,"column":59}},"2":{"start":{"line":10,"column":2},"end":{"line":12,"column":3}},"3":{"start":{"line":11,"column":4},"end":{"line":11,"column":70}},"4":{"start":{"line":13,"column":2},"end":{"line":13,"column":44}}},"fnMap":{"0":{"name":"cloneElement","decl":{"start":{"line":6,"column":16},"end":{"line":6,"column":28}},"loc":{"start":{"line":6,"column":91},"end":{"line":14,"column":1}},"line":6}},"branchMap":{"0":{"loc":{"start":{"line":7,"column":2},"end":{"line":9,"column":3}},"type":"if","locations":[{"start":{"line":7,"column":2},"end":{"line":9,"column":3}},{"start":{"line":7,"column":2},"end":{"line":9,"column":3}}],"line":7},"1":{"loc":{"start":{"line":7,"column":6},"end":{"line":7,"column":40}},"type":"binary-expr","locations":[{"start":{"line":7,"column":6},"end":{"line":7,"column":17}},{"start":{"line":7,"column":21},"end":{"line":7,"column":40}}],"line":7},"2":{"loc":{"start":{"line":10,"column":2},"end":{"line":12,"column":3}},"type":"if","locations":[{"start":{"line":10,"column":2},"end":{"line":12,"column":3}},{"start":{"line":10,"column":2},"end":{"line":12,"column":3}}],"line":10},"3":{"loc":{"start":{"line":10,"column":6},"end":{"line":10,"column":48}},"type":"binary-expr","locations":[{"start":{"line":10,"column":6},"end":{"line":10,"column":21}},{"start":{"line":10,"column":25},"end":{"line":10,"column":48}}],"line":10}},"s":{"0":10,"1":0,"2":10,"3":2,"4":10},"f":{"0":10},"b":{"0":[0,10],"1":[10,0],"2":[2,8],"3":[10,10]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"45ba6f3fb4cceee1fdbdf3eb9f9637ea6ff5356d"}
5
+ }