react-resizable 3.0.0 → 3.0.1
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.
- package/CHANGELOG.md +4 -0
- package/package.json +1 -1
- package/__tests__/Resizable.test.js +0 -261
- package/__tests__/ResizableBox.test.js +0 -99
- package/__tests__/__snapshots__/Resizable.test.js.snap +0 -29
- package/__tests__/__snapshots__/ResizableBox.test.js.snap +0 -23
- package/coverage/clover.xml +0 -108
- package/coverage/coverage-final.json +0 -5
- package/coverage/lcov-report/Resizable.js.html +0 -686
- package/coverage/lcov-report/ResizableBox.js.html +0 -374
- package/coverage/lcov-report/base.css +0 -224
- package/coverage/lcov-report/block-navigation.js +0 -79
- package/coverage/lcov-report/favicon.png +0 -0
- package/coverage/lcov-report/index.html +0 -156
- package/coverage/lcov-report/prettify.css +0 -1
- package/coverage/lcov-report/prettify.js +0 -2
- package/coverage/lcov-report/propTypes.js.html +0 -515
- package/coverage/lcov-report/sort-arrow-sprite.png +0 -0
- package/coverage/lcov-report/sorter.js +0 -170
- package/coverage/lcov-report/utils.js.html +0 -122
- package/coverage/lcov.info +0 -236
- package/flow-typed/npm/jest_v26.x.x.js +0 -1218
- package/setupTests/enzyme.js +0 -4
package/CHANGELOG.md
CHANGED
package/package.json
CHANGED
|
@@ -1,261 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import renderer from 'react-test-renderer';
|
|
4
|
-
import {shallow} from 'enzyme';
|
|
5
|
-
import {DraggableCore} from "react-draggable";
|
|
6
|
-
|
|
7
|
-
import Resizable from '../lib/Resizable';
|
|
8
|
-
|
|
9
|
-
describe('render Resizable', () => {
|
|
10
|
-
const props = {
|
|
11
|
-
axis: 'both',
|
|
12
|
-
className: 'test-classname',
|
|
13
|
-
draggableOpts: {},
|
|
14
|
-
handleSize: [20, 20],
|
|
15
|
-
height: 50,
|
|
16
|
-
lockAspectRatio: false,
|
|
17
|
-
maxConstraints: [Infinity, Infinity],
|
|
18
|
-
minConstraints: [20, 20],
|
|
19
|
-
onResize: jest.fn(),
|
|
20
|
-
onResizeStart: jest.fn(),
|
|
21
|
-
onResizeStop: jest.fn(),
|
|
22
|
-
resizeHandles: ['se', 'e'],
|
|
23
|
-
transformScale: 1,
|
|
24
|
-
width: 50,
|
|
25
|
-
};
|
|
26
|
-
const handleFn = (axis, ref) => <span className={`custom-handle-${axis}`} ref={ref} />;
|
|
27
|
-
const userChildren = <span className={'children'} />;
|
|
28
|
-
const resizableBoxChildren = <div style={{width: '50px', height: '50px'}}>{userChildren}</div>;
|
|
29
|
-
|
|
30
|
-
beforeEach(() => {
|
|
31
|
-
jest.clearAllMocks();
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
test('snapshot default props', () => {
|
|
35
|
-
const tree = renderer.create(<Resizable {...props}>{resizableBoxChildren}</Resizable>).toJSON();
|
|
36
|
-
expect(tree).toMatchSnapshot();
|
|
37
|
-
});
|
|
38
|
-
|
|
39
|
-
test('with correct props', () => {
|
|
40
|
-
const element = shallow(<Resizable {...props}>{resizableBoxChildren}</Resizable>);
|
|
41
|
-
expect(element.find('.test-classname').find('.children'));
|
|
42
|
-
expect(element.find(DraggableCore)).toHaveLength(2);
|
|
43
|
-
const cursorSe = element.find('.react-resizable-handle-se');
|
|
44
|
-
const cursorE = element.find('.react-resizable-handle-e');
|
|
45
|
-
expect(cursorSe).toHaveLength(1);
|
|
46
|
-
expect(cursorE).toHaveLength(1);
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
test('with handle function', () => {
|
|
50
|
-
const handleFn = (axis, ref) => {
|
|
51
|
-
expect(axis).toMatch(/(se|e)/);
|
|
52
|
-
expect(ref).toMatchObject({current: null}); // ReactRef
|
|
53
|
-
return <span className={`custom-handle-${axis}`} ref={ref} />;
|
|
54
|
-
};
|
|
55
|
-
const element = shallow(<Resizable {...props} handle={handleFn}>{resizableBoxChildren}</Resizable>);
|
|
56
|
-
expect(element.find('.test-classname').find('.children'));
|
|
57
|
-
expect(element.find(DraggableCore)).toHaveLength(2);
|
|
58
|
-
const cursorSe = element.find('.custom-handle-se');
|
|
59
|
-
const cursorE = element.find('.custom-handle-e');
|
|
60
|
-
expect(cursorSe).toHaveLength(1);
|
|
61
|
-
expect(cursorE).toHaveLength(1);
|
|
62
|
-
});
|
|
63
|
-
|
|
64
|
-
describe('and pass handle props', () => {
|
|
65
|
-
test('as component', () => {
|
|
66
|
-
const customProps = {
|
|
67
|
-
...props,
|
|
68
|
-
resizeHandles: ['se'],
|
|
69
|
-
handle: <span className={'custom-component'} />
|
|
70
|
-
};
|
|
71
|
-
const element = shallow(<Resizable {...customProps}>{resizableBoxChildren}</Resizable>);
|
|
72
|
-
expect(element.find('.react-resizable-handle-se')).toHaveLength(0);
|
|
73
|
-
expect(element.find('.custom-component')).toHaveLength(1);
|
|
74
|
-
});
|
|
75
|
-
test('as function', () => {
|
|
76
|
-
const customProps = {
|
|
77
|
-
...props,
|
|
78
|
-
resizeHandles: ['se'],
|
|
79
|
-
handle: (h) => <span className={`custom-component-${h}`} />
|
|
80
|
-
};
|
|
81
|
-
const element = shallow(<Resizable {...customProps}>{resizableBoxChildren}</Resizable>);
|
|
82
|
-
expect(element.find('.custom-component-se')).toHaveLength(1);
|
|
83
|
-
});
|
|
84
|
-
});
|
|
85
|
-
|
|
86
|
-
describe('<Resizable> props filtering', () => {
|
|
87
|
-
const allProps = {
|
|
88
|
-
...props,
|
|
89
|
-
draggableOpts: {},
|
|
90
|
-
handle: <div />,
|
|
91
|
-
};
|
|
92
|
-
|
|
93
|
-
// Ensure everything in propTypes is represented here. Otherwise the next two tests are not valid
|
|
94
|
-
test('all intended props are in our allProps object', () => {
|
|
95
|
-
expect(['children', ...Object.keys(allProps)].sort()).toEqual(Object.keys(Resizable.propTypes).sort());
|
|
96
|
-
});
|
|
97
|
-
|
|
98
|
-
test('none of these props leak down to the child', () => {
|
|
99
|
-
const element = shallow(<Resizable {...allProps}><div className="foo" /></Resizable>);
|
|
100
|
-
expect(Object.keys(element.find('.foo').props())).toEqual(['className', 'children']);
|
|
101
|
-
});
|
|
102
|
-
|
|
103
|
-
test('className is constructed properly', () => {
|
|
104
|
-
const element = shallow(<Resizable {...allProps}><div className="foo" /></Resizable>);
|
|
105
|
-
expect(element.find('.foo').props().className).toEqual(`foo ${allProps.className} react-resizable`);
|
|
106
|
-
});
|
|
107
|
-
});
|
|
108
|
-
|
|
109
|
-
describe('onResize callback with modified position', () => {
|
|
110
|
-
const customProps = {
|
|
111
|
-
...props,
|
|
112
|
-
resizeHandles: ['nw', 'sw' ,'ne', 'se', 'n', 's', 'w', 'e'],
|
|
113
|
-
};
|
|
114
|
-
const mockClientRect = {
|
|
115
|
-
left: 0,
|
|
116
|
-
top: 0,
|
|
117
|
-
};
|
|
118
|
-
const node = document.createElement('div');
|
|
119
|
-
// $FlowIgnore need to override to have control over dummy dom element
|
|
120
|
-
node.getBoundingClientRect = () => ({ ...mockClientRect });
|
|
121
|
-
const mockEvent = { };
|
|
122
|
-
const element = shallow(<Resizable {...customProps}>{resizableBoxChildren}</Resizable>);
|
|
123
|
-
const nwHandle = element.find('DraggableCore').first();
|
|
124
|
-
|
|
125
|
-
test('Gradual resizing without movement between does not modify callback', () => {
|
|
126
|
-
expect(props.onResize).not.toHaveBeenCalled();
|
|
127
|
-
nwHandle.prop('onDrag')(mockEvent, { node, deltaX: 5, deltaY: 10 });
|
|
128
|
-
expect(props.onResize).lastCalledWith(
|
|
129
|
-
mockEvent,
|
|
130
|
-
expect.objectContaining({
|
|
131
|
-
size: {
|
|
132
|
-
height: 40,
|
|
133
|
-
width: 45,
|
|
134
|
-
},
|
|
135
|
-
})
|
|
136
|
-
);
|
|
137
|
-
});
|
|
138
|
-
|
|
139
|
-
test('Movement between callbacks modifies response values', () => {
|
|
140
|
-
expect(props.onResize).not.toHaveBeenCalled();
|
|
141
|
-
|
|
142
|
-
mockClientRect.top = -10; // Object moves between callbacks
|
|
143
|
-
nwHandle.prop('onDrag')(mockEvent, { node, deltaX: 5, deltaY: 10 });
|
|
144
|
-
expect(props.onResize).lastCalledWith(
|
|
145
|
-
mockEvent,
|
|
146
|
-
expect.objectContaining({
|
|
147
|
-
size: {
|
|
148
|
-
height: 50, // No height change since deltaY is caused by clientRect moving vertically
|
|
149
|
-
width: 45,
|
|
150
|
-
},
|
|
151
|
-
})
|
|
152
|
-
);
|
|
153
|
-
|
|
154
|
-
mockClientRect.left = 20; // Object moves between callbacks
|
|
155
|
-
nwHandle.prop('onDrag')(mockEvent, { node, deltaX: 5, deltaY: 10 });
|
|
156
|
-
expect(props.onResize).lastCalledWith(
|
|
157
|
-
mockEvent,
|
|
158
|
-
expect.objectContaining({
|
|
159
|
-
size: {
|
|
160
|
-
height: 40, // Height decreased as deltaY increases - no further top position change since last
|
|
161
|
-
width: 25, // Width decreased 25 - 5 from deltaX and 20 from changing position
|
|
162
|
-
},
|
|
163
|
-
})
|
|
164
|
-
);
|
|
165
|
-
|
|
166
|
-
props.onResize.mockClear();
|
|
167
|
-
mockClientRect.left -= 10; // Object moves between callbacks
|
|
168
|
-
mockClientRect.top -= 10; // Object moves between callbacks
|
|
169
|
-
nwHandle.prop('onDrag')(mockEvent, { node, deltaX: 10, deltaY: 10 });
|
|
170
|
-
expect(props.onResize).not.toHaveBeenCalled();
|
|
171
|
-
|
|
172
|
-
mockClientRect.left -= 10; // Object moves between callbacks
|
|
173
|
-
mockClientRect.top -= 10; // Object moves between callbacks
|
|
174
|
-
const swHandle = element.find('DraggableCore').at(1);
|
|
175
|
-
swHandle.prop('onDrag')(mockEvent, { node, deltaX: 10, deltaY: 10 });
|
|
176
|
-
expect(props.onResize).lastCalledWith(
|
|
177
|
-
mockEvent,
|
|
178
|
-
expect.objectContaining({
|
|
179
|
-
size: {
|
|
180
|
-
height: 60, // Changed since resizing from bottom doesn't cause position change
|
|
181
|
-
width: 50, // No change - movement has caused entire delta
|
|
182
|
-
},
|
|
183
|
-
})
|
|
184
|
-
);
|
|
185
|
-
|
|
186
|
-
mockClientRect.left -= 10; // Object moves between callbacks
|
|
187
|
-
mockClientRect.top -= 10; // Object moves between callbacks
|
|
188
|
-
const neHandle = element.find('DraggableCore').at(2);
|
|
189
|
-
neHandle.prop('onDrag')(mockEvent, { node, deltaX: 10, deltaY: 10 });
|
|
190
|
-
expect(props.onResize).lastCalledWith(
|
|
191
|
-
mockEvent,
|
|
192
|
-
expect.objectContaining({
|
|
193
|
-
size: {
|
|
194
|
-
height: 50, // No change - movement has caused entire delta
|
|
195
|
-
width: 60, // Changed since resizing from right doesn't cause position change
|
|
196
|
-
},
|
|
197
|
-
})
|
|
198
|
-
);
|
|
199
|
-
|
|
200
|
-
mockClientRect.left -= 10; // Object moves between callbacks
|
|
201
|
-
mockClientRect.top -= 10; // Object moves between callbacks
|
|
202
|
-
const seHandle = element.find('DraggableCore').at(3);
|
|
203
|
-
seHandle.prop('onDrag')(mockEvent, { node, deltaX: 10, deltaY: 10 });
|
|
204
|
-
expect(props.onResize).lastCalledWith(
|
|
205
|
-
mockEvent,
|
|
206
|
-
expect.objectContaining({
|
|
207
|
-
size: {
|
|
208
|
-
height: 60, // Changed since resizing from right doesn't cause position change
|
|
209
|
-
width: 60, // Changed since resizing from right doesn't cause position change
|
|
210
|
-
},
|
|
211
|
-
})
|
|
212
|
-
);
|
|
213
|
-
});
|
|
214
|
-
|
|
215
|
-
test('use of < 1 transformScale', () => {
|
|
216
|
-
const element = shallow(<Resizable {...customProps} transformScale={0.5}>{resizableBoxChildren}</Resizable>);
|
|
217
|
-
const nwHandle = element.find('DraggableCore').first();
|
|
218
|
-
expect(props.onResize).not.toHaveBeenCalled();
|
|
219
|
-
nwHandle.prop('onDrag')(mockEvent, { node, deltaX: 5, deltaY: 10 });
|
|
220
|
-
expect(props.onResize).lastCalledWith(
|
|
221
|
-
mockEvent,
|
|
222
|
-
expect.objectContaining({
|
|
223
|
-
size: {
|
|
224
|
-
// Should be doubled
|
|
225
|
-
height: 30,
|
|
226
|
-
width: 40,
|
|
227
|
-
},
|
|
228
|
-
})
|
|
229
|
-
);
|
|
230
|
-
|
|
231
|
-
mockClientRect.left = 20; // Object moves between callbacks
|
|
232
|
-
nwHandle.prop('onDrag')(mockEvent, { node, deltaX: 5, deltaY: 10 });
|
|
233
|
-
expect(props.onResize).lastCalledWith(
|
|
234
|
-
mockEvent,
|
|
235
|
-
expect.objectContaining({
|
|
236
|
-
size: {
|
|
237
|
-
height: 30, // Height decreased as deltaY increases - no further top position change since last
|
|
238
|
-
width: 20, // Width decreased 10 from deltaX and 20 from changing position
|
|
239
|
-
},
|
|
240
|
-
})
|
|
241
|
-
);
|
|
242
|
-
});
|
|
243
|
-
|
|
244
|
-
test('use of > 1 transformScale', () => {
|
|
245
|
-
const element = shallow(<Resizable {...customProps} transformScale={2}>{resizableBoxChildren}</Resizable>);
|
|
246
|
-
const nwHandle = element.find('DraggableCore').first();
|
|
247
|
-
expect(props.onResize).not.toHaveBeenCalled();
|
|
248
|
-
nwHandle.prop('onDrag')(mockEvent, { node, deltaX: 5, deltaY: 10 });
|
|
249
|
-
expect(props.onResize).lastCalledWith(
|
|
250
|
-
mockEvent,
|
|
251
|
-
expect.objectContaining({
|
|
252
|
-
size: {
|
|
253
|
-
// Should be halved
|
|
254
|
-
height: 45,
|
|
255
|
-
width: 47.5,
|
|
256
|
-
},
|
|
257
|
-
})
|
|
258
|
-
);
|
|
259
|
-
});
|
|
260
|
-
});
|
|
261
|
-
});
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
// @flow
|
|
2
|
-
import React from 'react';
|
|
3
|
-
import renderer from 'react-test-renderer';
|
|
4
|
-
import {shallow} from 'enzyme';
|
|
5
|
-
|
|
6
|
-
import ResizableBox from '../lib/ResizableBox';
|
|
7
|
-
import Resizable from "../lib/Resizable";
|
|
8
|
-
|
|
9
|
-
describe('render ResizableBox', () => {
|
|
10
|
-
const props = {
|
|
11
|
-
axis: 'x',
|
|
12
|
-
draggableOpts: {},
|
|
13
|
-
handle: (jest.fn((resizeHandle, ref) => <span className={`test-class-${resizeHandle}`} ref={ref} />): Function),
|
|
14
|
-
handleSize: [20, 20],
|
|
15
|
-
height: 50,
|
|
16
|
-
lockAspectRatio: false,
|
|
17
|
-
maxConstraints: [30, 30],
|
|
18
|
-
minConstraints: [10, 10],
|
|
19
|
-
onResize: jest.fn(),
|
|
20
|
-
onResizeStart: jest.fn(),
|
|
21
|
-
onResizeStop: jest.fn(),
|
|
22
|
-
resizeHandles: ['w'],
|
|
23
|
-
transformScale: 1,
|
|
24
|
-
width: 50,
|
|
25
|
-
};
|
|
26
|
-
const children = <span className="children" />;
|
|
27
|
-
|
|
28
|
-
beforeEach(() => {
|
|
29
|
-
jest.clearAllMocks();
|
|
30
|
-
});
|
|
31
|
-
|
|
32
|
-
test('snapshot default props', () => {
|
|
33
|
-
const tree = renderer.create(<ResizableBox {...props}>{children}</ResizableBox>).toJSON();
|
|
34
|
-
expect(tree).toMatchSnapshot();
|
|
35
|
-
});
|
|
36
|
-
|
|
37
|
-
test('with correct props', () => {
|
|
38
|
-
const element = shallow(<ResizableBox {...props}>{children}</ResizableBox>);
|
|
39
|
-
expect(element.state()).toEqual({
|
|
40
|
-
height: 50,
|
|
41
|
-
propsHeight: 50,
|
|
42
|
-
propsWidth: 50,
|
|
43
|
-
width: 50,
|
|
44
|
-
});
|
|
45
|
-
const resizable = element.find(Resizable);
|
|
46
|
-
const fakeEvent = {persist: jest.fn()};
|
|
47
|
-
const data = {node: children, size: {width: 30, height: 30}, handle: 'w'};
|
|
48
|
-
resizable.simulate('resize', fakeEvent, data);
|
|
49
|
-
expect(element.state()).toEqual({
|
|
50
|
-
height: 30,
|
|
51
|
-
propsHeight: 50,
|
|
52
|
-
propsWidth: 50,
|
|
53
|
-
width: 30,
|
|
54
|
-
});
|
|
55
|
-
expect(element.find('.children')).toHaveLength(1);
|
|
56
|
-
expect(fakeEvent.persist).toHaveBeenCalledTimes(1);
|
|
57
|
-
expect(props.onResize).toHaveBeenCalledWith(fakeEvent, data);
|
|
58
|
-
|
|
59
|
-
resizable.simulate('resizeStart', fakeEvent, data);
|
|
60
|
-
expect(props.onResizeStart).toHaveBeenCalledWith(fakeEvent, data);
|
|
61
|
-
|
|
62
|
-
resizable.simulate('resizeStop', fakeEvent, data);
|
|
63
|
-
expect(props.onResizeStop).toHaveBeenCalledWith(fakeEvent, data);
|
|
64
|
-
});
|
|
65
|
-
|
|
66
|
-
describe('<Resizable> props filtering', () => {
|
|
67
|
-
// Ensure everything in propTypes is represented here. Otherwise the next two tests are not valid
|
|
68
|
-
test('all intended props are in our props object', () => {
|
|
69
|
-
expect(['children', 'className', ...Object.keys(props)].sort()).toEqual(Object.keys(Resizable.propTypes).sort());
|
|
70
|
-
});
|
|
71
|
-
|
|
72
|
-
test('none of these props leak down to the child', () => {
|
|
73
|
-
const element = shallow(<ResizableBox {...props} />);
|
|
74
|
-
expect(Object.keys(element.find('div').props())).toEqual(['style']);
|
|
75
|
-
});
|
|
76
|
-
|
|
77
|
-
test('className is constructed properly', () => {
|
|
78
|
-
const element = shallow(<ResizableBox {...props} className='foo' />);
|
|
79
|
-
expect(element.find('div').props().className).toEqual(`foo`);
|
|
80
|
-
});
|
|
81
|
-
});
|
|
82
|
-
|
|
83
|
-
test('style prop', () => {
|
|
84
|
-
const element = shallow(<ResizableBox {...props} style={{backgroundColor: 'red'}}>{children}</ResizableBox>);
|
|
85
|
-
expect(element.find('div').at(0).prop('style')).toEqual({
|
|
86
|
-
width: '50px',
|
|
87
|
-
height: '50px',
|
|
88
|
-
backgroundColor: 'red'
|
|
89
|
-
});
|
|
90
|
-
});
|
|
91
|
-
|
|
92
|
-
test('style prop width and height ignored', () => {
|
|
93
|
-
const element = shallow(<ResizableBox {...props} style={{width: 10, height: 10}}>{children}</ResizableBox>);
|
|
94
|
-
expect(element.find('div').at(0).prop('style')).toEqual({
|
|
95
|
-
width: '50px',
|
|
96
|
-
height: '50px',
|
|
97
|
-
});
|
|
98
|
-
});
|
|
99
|
-
});
|
|
@@ -1,29 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`render Resizable snapshot default props 1`] = `
|
|
4
|
-
<div
|
|
5
|
-
className="test-classname react-resizable"
|
|
6
|
-
style={
|
|
7
|
-
Object {
|
|
8
|
-
"height": "50px",
|
|
9
|
-
"width": "50px",
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
>
|
|
13
|
-
<span
|
|
14
|
-
className="children"
|
|
15
|
-
/>
|
|
16
|
-
<span
|
|
17
|
-
className="react-resizable-handle react-resizable-handle-se"
|
|
18
|
-
onMouseDown={[Function]}
|
|
19
|
-
onMouseUp={[Function]}
|
|
20
|
-
onTouchEnd={[Function]}
|
|
21
|
-
/>
|
|
22
|
-
<span
|
|
23
|
-
className="react-resizable-handle react-resizable-handle-e"
|
|
24
|
-
onMouseDown={[Function]}
|
|
25
|
-
onMouseUp={[Function]}
|
|
26
|
-
onTouchEnd={[Function]}
|
|
27
|
-
/>
|
|
28
|
-
</div>
|
|
29
|
-
`;
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
// Jest Snapshot v1, https://goo.gl/fbAQLP
|
|
2
|
-
|
|
3
|
-
exports[`render ResizableBox snapshot default props 1`] = `
|
|
4
|
-
<div
|
|
5
|
-
className="react-resizable"
|
|
6
|
-
style={
|
|
7
|
-
Object {
|
|
8
|
-
"height": "50px",
|
|
9
|
-
"width": "50px",
|
|
10
|
-
}
|
|
11
|
-
}
|
|
12
|
-
>
|
|
13
|
-
<span
|
|
14
|
-
className="children"
|
|
15
|
-
/>
|
|
16
|
-
<span
|
|
17
|
-
className="test-class-w"
|
|
18
|
-
onMouseDown={[Function]}
|
|
19
|
-
onMouseUp={[Function]}
|
|
20
|
-
onTouchEnd={[Function]}
|
|
21
|
-
/>
|
|
22
|
-
</div>
|
|
23
|
-
`;
|
package/coverage/clover.xml
DELETED
|
@@ -1,108 +0,0 @@
|
|
|
1
|
-
<?xml version="1.0" encoding="UTF-8"?>
|
|
2
|
-
<coverage generated="1620660970322" clover="3.2.0">
|
|
3
|
-
<project timestamp="1620660970322" name="All files">
|
|
4
|
-
<metrics statements="90" coveredstatements="74" conditionals="82" coveredconditionals="61" methods="14" coveredmethods="11" elements="186" coveredelements="146" complexity="0" loc="90" ncloc="90" packages="1" files="4" classes="4"/>
|
|
5
|
-
<file name="Resizable.js" path="/Users/sreed/git/oss/react-resizable/lib/Resizable.js">
|
|
6
|
-
<metrics statements="71" coveredstatements="58" conditionals="64" coveredconditionals="47" methods="9" coveredmethods="6"/>
|
|
7
|
-
<line num="12" count="2" type="stmt"/>
|
|
8
|
-
<line num="14" count="2" type="stmt"/>
|
|
9
|
-
<line num="24" count="11" type="stmt"/>
|
|
10
|
-
<line num="25" count="11" type="stmt"/>
|
|
11
|
-
<line num="26" count="11" type="stmt"/>
|
|
12
|
-
<line num="29" count="0" type="stmt"/>
|
|
13
|
-
<line num="33" count="0" type="stmt"/>
|
|
14
|
-
<line num="34" count="0" type="stmt"/>
|
|
15
|
-
<line num="35" count="0" type="stmt"/>
|
|
16
|
-
<line num="39" count="0" type="stmt"/>
|
|
17
|
-
<line num="44" count="10" type="stmt"/>
|
|
18
|
-
<line num="45" count="10" type="cond" truecount="2" falsecount="2"/>
|
|
19
|
-
<line num="48" count="10" type="cond" truecount="1" falsecount="1"/>
|
|
20
|
-
<line num="49" count="0" type="stmt"/>
|
|
21
|
-
<line num="50" count="0" type="cond" truecount="0" falsecount="2"/>
|
|
22
|
-
<line num="51" count="0" type="stmt"/>
|
|
23
|
-
<line num="52" count="0" type="stmt"/>
|
|
24
|
-
<line num="53" count="0" type="stmt"/>
|
|
25
|
-
<line num="57" count="0" type="stmt"/>
|
|
26
|
-
<line num="58" count="0" type="stmt"/>
|
|
27
|
-
<line num="59" count="0" type="stmt"/>
|
|
28
|
-
<line num="63" count="10" type="stmt"/>
|
|
29
|
-
<line num="68" count="10" type="cond" truecount="2" falsecount="0"/>
|
|
30
|
-
<line num="69" count="10" type="stmt"/>
|
|
31
|
-
<line num="70" count="10" type="stmt"/>
|
|
32
|
-
<line num="72" count="10" type="cond" truecount="1" falsecount="1"/>
|
|
33
|
-
<line num="73" count="10" type="stmt"/>
|
|
34
|
-
<line num="74" count="10" type="stmt"/>
|
|
35
|
-
<line num="76" count="10" type="cond" truecount="1" falsecount="1"/>
|
|
36
|
-
<line num="77" count="10" type="stmt"/>
|
|
37
|
-
<line num="78" count="10" type="stmt"/>
|
|
38
|
-
<line num="82" count="10" type="stmt"/>
|
|
39
|
-
<line num="84" count="10" type="stmt"/>
|
|
40
|
-
<line num="94" count="111" type="stmt"/>
|
|
41
|
-
<line num="96" count="10" type="cond" truecount="1" falsecount="1"/>
|
|
42
|
-
<line num="99" count="10" type="cond" truecount="3" falsecount="1"/>
|
|
43
|
-
<line num="100" count="10" type="cond" truecount="3" falsecount="1"/>
|
|
44
|
-
<line num="102" count="10" type="cond" truecount="2" falsecount="2"/>
|
|
45
|
-
<line num="105" count="10" type="stmt"/>
|
|
46
|
-
<line num="106" count="10" type="stmt"/>
|
|
47
|
-
<line num="111" count="10" type="stmt"/>
|
|
48
|
-
<line num="112" count="10" type="cond" truecount="2" falsecount="0"/>
|
|
49
|
-
<line num="116" count="7" type="cond" truecount="2" falsecount="0"/>
|
|
50
|
-
<line num="117" count="5" type="stmt"/>
|
|
51
|
-
<line num="118" count="5" type="stmt"/>
|
|
52
|
-
<line num="120" count="7" type="cond" truecount="2" falsecount="0"/>
|
|
53
|
-
<line num="121" count="5" type="stmt"/>
|
|
54
|
-
<line num="122" count="5" type="stmt"/>
|
|
55
|
-
<line num="126" count="10" type="stmt"/>
|
|
56
|
-
<line num="129" count="10" type="cond" truecount="2" falsecount="0"/>
|
|
57
|
-
<line num="130" count="10" type="cond" truecount="2" falsecount="0"/>
|
|
58
|
-
<line num="133" count="10" type="cond" truecount="1" falsecount="1"/>
|
|
59
|
-
<line num="134" count="10" type="cond" truecount="1" falsecount="1"/>
|
|
60
|
-
<line num="137" count="10" type="stmt"/>
|
|
61
|
-
<line num="139" count="10" type="cond" truecount="2" falsecount="0"/>
|
|
62
|
-
<line num="142" count="10" type="cond" truecount="1" falsecount="1"/>
|
|
63
|
-
<line num="144" count="10" type="cond" truecount="2" falsecount="0"/>
|
|
64
|
-
<line num="145" count="10" type="cond" truecount="4" falsecount="0"/>
|
|
65
|
-
<line num="146" count="9" type="cond" truecount="1" falsecount="1"/>
|
|
66
|
-
<line num="147" count="9" type="stmt"/>
|
|
67
|
-
<line num="151" count="10" type="cond" truecount="1" falsecount="1"/>
|
|
68
|
-
<line num="157" count="37" type="stmt"/>
|
|
69
|
-
<line num="158" count="37" type="cond" truecount="2" falsecount="0"/>
|
|
70
|
-
<line num="159" count="9" type="cond" truecount="2" falsecount="0"/>
|
|
71
|
-
<line num="160" count="4" type="stmt"/>
|
|
72
|
-
<line num="162" count="5" type="stmt"/>
|
|
73
|
-
<line num="164" count="28" type="stmt"/>
|
|
74
|
-
<line num="172" count="11" type="stmt"/>
|
|
75
|
-
<line num="178" count="11" type="stmt"/>
|
|
76
|
-
<line num="185" count="37" type="cond" truecount="2" falsecount="0"/>
|
|
77
|
-
<line num="186" count="37" type="stmt"/>
|
|
78
|
-
</file>
|
|
79
|
-
<file name="ResizableBox.js" path="/Users/sreed/git/oss/react-resizable/lib/ResizableBox.js">
|
|
80
|
-
<metrics statements="13" coveredstatements="11" conditionals="10" coveredconditionals="8" methods="4" coveredmethods="4"/>
|
|
81
|
-
<line num="19" count="1" type="stmt"/>
|
|
82
|
-
<line num="24" count="6" type="stmt"/>
|
|
83
|
-
<line num="33" count="7" type="cond" truecount="3" falsecount="1"/>
|
|
84
|
-
<line num="34" count="0" type="stmt"/>
|
|
85
|
-
<line num="41" count="7" type="stmt"/>
|
|
86
|
-
<line num="44" count="6" type="stmt"/>
|
|
87
|
-
<line num="45" count="1" type="stmt"/>
|
|
88
|
-
<line num="46" count="1" type="cond" truecount="1" falsecount="1"/>
|
|
89
|
-
<line num="47" count="1" type="cond" truecount="2" falsecount="0"/>
|
|
90
|
-
<line num="48" count="1" type="cond" truecount="2" falsecount="0"/>
|
|
91
|
-
<line num="50" count="0" type="stmt"/>
|
|
92
|
-
<line num="75" count="7" type="stmt"/>
|
|
93
|
-
<line num="77" count="7" type="stmt"/>
|
|
94
|
-
</file>
|
|
95
|
-
<file name="propTypes.js" path="/Users/sreed/git/oss/react-resizable/lib/propTypes.js">
|
|
96
|
-
<metrics statements="1" coveredstatements="1" conditionals="0" coveredconditionals="0" methods="0" coveredmethods="0"/>
|
|
97
|
-
<line num="55" count="2" type="stmt"/>
|
|
98
|
-
</file>
|
|
99
|
-
<file name="utils.js" path="/Users/sreed/git/oss/react-resizable/lib/utils.js">
|
|
100
|
-
<metrics statements="5" coveredstatements="4" conditionals="8" coveredconditionals="6" methods="1" coveredmethods="1"/>
|
|
101
|
-
<line num="7" count="11" type="cond" truecount="2" falsecount="2"/>
|
|
102
|
-
<line num="8" count="0" type="stmt"/>
|
|
103
|
-
<line num="10" count="11" type="cond" truecount="4" falsecount="0"/>
|
|
104
|
-
<line num="11" count="2" type="stmt"/>
|
|
105
|
-
<line num="13" count="11" type="stmt"/>
|
|
106
|
-
</file>
|
|
107
|
-
</project>
|
|
108
|
-
</coverage>
|
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
{"/Users/sreed/git/oss/react-resizable/lib/Resizable.js": {"path":"/Users/sreed/git/oss/react-resizable/lib/Resizable.js","statementMap":{"0":{"start":{"line":12,"column":21},"end":{"line":12,"column":35}},"1":{"start":{"line":14,"column":39},"end":{"line":22,"column":3}},"2":{"start":{"line":24,"column":65},"end":{"line":24,"column":67}},"3":{"start":{"line":25,"column":32},"end":{"line":25,"column":36}},"4":{"start":{"line":26,"column":29},"end":{"line":26,"column":33}},"5":{"start":{"line":29,"column":4},"end":{"line":29,"column":21}},"6":{"start":{"line":33,"column":4},"end":{"line":33,"column":33}},"7":{"start":{"line":34,"column":4},"end":{"line":34,"column":33}},"8":{"start":{"line":35,"column":4},"end":{"line":35,"column":27}},"9":{"start":{"line":39,"column":4},"end":{"line":39,"column":44}},"10":{"start":{"line":44,"column":23},"end":{"line":44,"column":77}},"11":{"start":{"line":45,"column":4},"end":{"line":45,"column":45}},"12":{"start":{"line":45,"column":22},"end":{"line":45,"column":45}},"13":{"start":{"line":48,"column":4},"end":{"line":61,"column":5}},"14":{"start":{"line":49,"column":35},"end":{"line":49,"column":63}},"15":{"start":{"line":50,"column":6},"end":{"line":60,"column":7}},"16":{"start":{"line":51,"column":22},"end":{"line":51,"column":58}},"17":{"start":{"line":52,"column":8},"end":{"line":52,"column":31}},"18":{"start":{"line":53,"column":8},"end":{"line":53,"column":31}},"19":{"start":{"line":57,"column":22},"end":{"line":57,"column":58}},"20":{"start":{"line":58,"column":8},"end":{"line":58,"column":31}},"21":{"start":{"line":59,"column":8},"end":{"line":59,"column":31}},"22":{"start":{"line":63,"column":25},"end":{"line":63,"column":40}},"23":{"start":{"line":68,"column":27},"end":{"line":68,"column":47}},"24":{"start":{"line":69,"column":4},"end":{"line":69,"column":20}},"25":{"start":{"line":70,"column":4},"end":{"line":70,"column":21}},"26":{"start":{"line":72,"column":4},"end":{"line":75,"column":5}},"27":{"start":{"line":73,"column":6},"end":{"line":73,"column":38}},"28":{"start":{"line":74,"column":6},"end":{"line":74,"column":40}},"29":{"start":{"line":76,"column":4},"end":{"line":79,"column":5}},"30":{"start":{"line":77,"column":6},"end":{"line":77,"column":38}},"31":{"start":{"line":78,"column":6},"end":{"line":78,"column":40}},"32":{"start":{"line":82,"column":4},"end":{"line":82,"column":69}},"33":{"start":{"line":84,"column":4},"end":{"line":84,"column":27}},"34":{"start":{"line":94,"column":4},"end":{"line":152,"column":6}},"35":{"start":{"line":96,"column":6},"end":{"line":96,"column":60}},"36":{"start":{"line":96,"column":43},"end":{"line":96,"column":60}},"37":{"start":{"line":99,"column":23},"end":{"line":99,"column":110}},"38":{"start":{"line":100,"column":23},"end":{"line":100,"column":110}},"39":{"start":{"line":102,"column":6},"end":{"line":102,"column":41}},"40":{"start":{"line":102,"column":34},"end":{"line":102,"column":41}},"41":{"start":{"line":105,"column":20},"end":{"line":105,"column":27}},"42":{"start":{"line":106,"column":20},"end":{"line":106,"column":41}},"43":{"start":{"line":111,"column":25},"end":{"line":111,"column":53}},"44":{"start":{"line":112,"column":6},"end":{"line":124,"column":7}},"45":{"start":{"line":116,"column":8},"end":{"line":119,"column":9}},"46":{"start":{"line":117,"column":37},"end":{"line":117,"column":79}},"47":{"start":{"line":118,"column":10},"end":{"line":118,"column":39}},"48":{"start":{"line":120,"column":8},"end":{"line":123,"column":9}},"49":{"start":{"line":121,"column":36},"end":{"line":121,"column":76}},"50":{"start":{"line":122,"column":10},"end":{"line":122,"column":38}},"51":{"start":{"line":126,"column":6},"end":{"line":126,"column":39}},"52":{"start":{"line":129,"column":6},"end":{"line":129,"column":42}},"53":{"start":{"line":129,"column":25},"end":{"line":129,"column":42}},"54":{"start":{"line":130,"column":6},"end":{"line":130,"column":42}},"55":{"start":{"line":130,"column":25},"end":{"line":130,"column":42}},"56":{"start":{"line":133,"column":18},"end":{"line":133,"column":88}},"57":{"start":{"line":134,"column":19},"end":{"line":134,"column":90}},"58":{"start":{"line":137,"column":6},"end":{"line":137,"column":59}},"59":{"start":{"line":139,"column":32},"end":{"line":139,"column":90}},"60":{"start":{"line":142,"column":17},"end":{"line":142,"column":95}},"61":{"start":{"line":144,"column":27},"end":{"line":144,"column":75}},"62":{"start":{"line":145,"column":6},"end":{"line":148,"column":7}},"63":{"start":{"line":146,"column":8},"end":{"line":146,"column":57}},"64":{"start":{"line":146,"column":45},"end":{"line":146,"column":57}},"65":{"start":{"line":147,"column":8},"end":{"line":147,"column":59}},"66":{"start":{"line":151,"column":6},"end":{"line":151,"column":59}},"67":{"start":{"line":151,"column":42},"end":{"line":151,"column":59}},"68":{"start":{"line":157,"column":21},"end":{"line":157,"column":31}},"69":{"start":{"line":158,"column":4},"end":{"line":163,"column":5}},"70":{"start":{"line":159,"column":6},"end":{"line":161,"column":7}},"71":{"start":{"line":160,"column":8},"end":{"line":160,"column":39}},"72":{"start":{"line":162,"column":6},"end":{"line":162,"column":47}},"73":{"start":{"line":164,"column":4},"end":{"line":164,"column":104}},"74":{"start":{"line":172,"column":80},"end":{"line":172,"column":90}},"75":{"start":{"line":178,"column":4},"end":{"line":200,"column":7}},"76":{"start":{"line":185,"column":22},"end":{"line":185,"column":104}},"77":{"start":{"line":186,"column":10},"end":{"line":197,"column":12}}},"fnMap":{"0":{"name":"(anonymous_0)","decl":{"start":{"line":28,"column":2},"end":{"line":28,"column":3}},"loc":{"start":{"line":28,"column":25},"end":{"line":30,"column":3}},"line":28},"1":{"name":"(anonymous_1)","decl":{"start":{"line":32,"column":2},"end":{"line":32,"column":3}},"loc":{"start":{"line":32,"column":88},"end":{"line":36,"column":3}},"line":32},"2":{"name":"(anonymous_2)","decl":{"start":{"line":38,"column":2},"end":{"line":38,"column":3}},"loc":{"start":{"line":38,"column":14},"end":{"line":40,"column":3}},"line":38},"3":{"name":"(anonymous_3)","decl":{"start":{"line":43,"column":2},"end":{"line":43,"column":3}},"loc":{"start":{"line":43,"column":66},"end":{"line":85,"column":3}},"line":43},"4":{"name":"(anonymous_4)","decl":{"start":{"line":93,"column":2},"end":{"line":93,"column":3}},"loc":{"start":{"line":93,"column":110},"end":{"line":153,"column":3}},"line":93},"5":{"name":"(anonymous_5)","decl":{"start":{"line":94,"column":11},"end":{"line":94,"column":12}},"loc":{"start":{"line":94,"column":78},"end":{"line":152,"column":5}},"line":94},"6":{"name":"(anonymous_6)","decl":{"start":{"line":156,"column":2},"end":{"line":156,"column":3}},"loc":{"start":{"line":156,"column":90},"end":{"line":165,"column":3}},"line":156},"7":{"name":"(anonymous_7)","decl":{"start":{"line":167,"column":2},"end":{"line":167,"column":3}},"loc":{"start":{"line":167,"column":22},"end":{"line":201,"column":3}},"line":167},"8":{"name":"(anonymous_8)","decl":{"start":{"line":183,"column":29},"end":{"line":183,"column":30}},"loc":{"start":{"line":183,"column":45},"end":{"line":198,"column":9}},"line":183}},"branchMap":{"0":{"loc":{"start":{"line":45,"column":4},"end":{"line":45,"column":45}},"type":"if","locations":[{"start":{"line":45,"column":4},"end":{"line":45,"column":45}},{"start":{"line":45,"column":4},"end":{"line":45,"column":45}}],"line":45},"1":{"loc":{"start":{"line":45,"column":8},"end":{"line":45,"column":20}},"type":"binary-expr","locations":[{"start":{"line":45,"column":8},"end":{"line":45,"column":12}},{"start":{"line":45,"column":16},"end":{"line":45,"column":20}}],"line":45},"2":{"loc":{"start":{"line":48,"column":4},"end":{"line":61,"column":5}},"type":"if","locations":[{"start":{"line":48,"column":4},"end":{"line":61,"column":5}},{"start":{"line":48,"column":4},"end":{"line":61,"column":5}}],"line":48},"3":{"loc":{"start":{"line":50,"column":6},"end":{"line":60,"column":7}},"type":"if","locations":[{"start":{"line":50,"column":6},"end":{"line":60,"column":7}},{"start":{"line":50,"column":6},"end":{"line":60,"column":7}}],"line":50},"4":{"loc":{"start":{"line":68,"column":27},"end":{"line":68,"column":47}},"type":"binary-expr","locations":[{"start":{"line":68,"column":27},"end":{"line":68,"column":37}},{"start":{"line":68,"column":41},"end":{"line":68,"column":47}}],"line":68},"5":{"loc":{"start":{"line":72,"column":4},"end":{"line":75,"column":5}},"type":"if","locations":[{"start":{"line":72,"column":4},"end":{"line":75,"column":5}},{"start":{"line":72,"column":4},"end":{"line":75,"column":5}}],"line":72},"6":{"loc":{"start":{"line":76,"column":4},"end":{"line":79,"column":5}},"type":"if","locations":[{"start":{"line":76,"column":4},"end":{"line":79,"column":5}},{"start":{"line":76,"column":4},"end":{"line":79,"column":5}}],"line":76},"7":{"loc":{"start":{"line":96,"column":6},"end":{"line":96,"column":60}},"type":"if","locations":[{"start":{"line":96,"column":6},"end":{"line":96,"column":60}},{"start":{"line":96,"column":6},"end":{"line":96,"column":60}}],"line":96},"8":{"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},"9":{"loc":{"start":{"line":100,"column":23},"end":{"line":100,"column":110}},"type":"binary-expr","locations":[{"start":{"line":100,"column":24},"end":{"line":100,"column":50}},{"start":{"line":100,"column":54},"end":{"line":100,"column":77}},{"start":{"line":100,"column":82},"end":{"line":100,"column":94}},{"start":{"line":100,"column":98},"end":{"line":100,"column":110}}],"line":100},"10":{"loc":{"start":{"line":102,"column":6},"end":{"line":102,"column":41}},"type":"if","locations":[{"start":{"line":102,"column":6},"end":{"line":102,"column":41}},{"start":{"line":102,"column":6},"end":{"line":102,"column":41}}],"line":102},"11":{"loc":{"start":{"line":102,"column":10},"end":{"line":102,"column":32}},"type":"binary-expr","locations":[{"start":{"line":102,"column":10},"end":{"line":102,"column":19}},{"start":{"line":102,"column":23},"end":{"line":102,"column":32}}],"line":102},"12":{"loc":{"start":{"line":112,"column":6},"end":{"line":124,"column":7}},"type":"if","locations":[{"start":{"line":112,"column":6},"end":{"line":124,"column":7}},{"start":{"line":112,"column":6},"end":{"line":124,"column":7}}],"line":112},"13":{"loc":{"start":{"line":116,"column":8},"end":{"line":119,"column":9}},"type":"if","locations":[{"start":{"line":116,"column":8},"end":{"line":119,"column":9}},{"start":{"line":116,"column":8},"end":{"line":119,"column":9}}],"line":116},"14":{"loc":{"start":{"line":120,"column":8},"end":{"line":123,"column":9}},"type":"if","locations":[{"start":{"line":120,"column":8},"end":{"line":123,"column":9}},{"start":{"line":120,"column":8},"end":{"line":123,"column":9}}],"line":120},"15":{"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},"16":{"loc":{"start":{"line":130,"column":6},"end":{"line":130,"column":42}},"type":"if","locations":[{"start":{"line":130,"column":6},"end":{"line":130,"column":42}},{"start":{"line":130,"column":6},"end":{"line":130,"column":42}}],"line":130},"17":{"loc":{"start":{"line":133,"column":38},"end":{"line":133,"column":87}},"type":"cond-expr","locations":[{"start":{"line":133,"column":49},"end":{"line":133,"column":83}},{"start":{"line":133,"column":86},"end":{"line":133,"column":87}}],"line":133},"18":{"loc":{"start":{"line":134,"column":40},"end":{"line":134,"column":89}},"type":"cond-expr","locations":[{"start":{"line":134,"column":51},"end":{"line":134,"column":85}},{"start":{"line":134,"column":88},"end":{"line":134,"column":89}}],"line":134},"19":{"loc":{"start":{"line":139,"column":32},"end":{"line":139,"column":90}},"type":"binary-expr","locations":[{"start":{"line":139,"column":32},"end":{"line":139,"column":58}},{"start":{"line":139,"column":62},"end":{"line":139,"column":90}}],"line":139},"20":{"loc":{"start":{"line":142,"column":17},"end":{"line":142,"column":95}},"type":"cond-expr","locations":[{"start":{"line":142,"column":65},"end":{"line":142,"column":88}},{"start":{"line":142,"column":91},"end":{"line":142,"column":95}}],"line":142},"21":{"loc":{"start":{"line":144,"column":27},"end":{"line":144,"column":75}},"type":"binary-expr","locations":[{"start":{"line":144,"column":27},"end":{"line":144,"column":53}},{"start":{"line":144,"column":57},"end":{"line":144,"column":75}}],"line":144},"22":{"loc":{"start":{"line":145,"column":6},"end":{"line":148,"column":7}},"type":"if","locations":[{"start":{"line":145,"column":6},"end":{"line":148,"column":7}},{"start":{"line":145,"column":6},"end":{"line":148,"column":7}}],"line":145},"23":{"loc":{"start":{"line":145,"column":10},"end":{"line":145,"column":29}},"type":"binary-expr","locations":[{"start":{"line":145,"column":10},"end":{"line":145,"column":12}},{"start":{"line":145,"column":16},"end":{"line":145,"column":29}}],"line":145},"24":{"loc":{"start":{"line":146,"column":8},"end":{"line":146,"column":57}},"type":"if","locations":[{"start":{"line":146,"column":8},"end":{"line":146,"column":57}},{"start":{"line":146,"column":8},"end":{"line":146,"column":57}}],"line":146},"25":{"loc":{"start":{"line":151,"column":6},"end":{"line":151,"column":59}},"type":"if","locations":[{"start":{"line":151,"column":6},"end":{"line":151,"column":59}},{"start":{"line":151,"column":6},"end":{"line":151,"column":59}}],"line":151},"26":{"loc":{"start":{"line":158,"column":4},"end":{"line":163,"column":5}},"type":"if","locations":[{"start":{"line":158,"column":4},"end":{"line":163,"column":5}},{"start":{"line":158,"column":4},"end":{"line":163,"column":5}}],"line":158},"27":{"loc":{"start":{"line":159,"column":6},"end":{"line":161,"column":7}},"type":"if","locations":[{"start":{"line":159,"column":6},"end":{"line":161,"column":7}},{"start":{"line":159,"column":6},"end":{"line":161,"column":7}}],"line":159},"28":{"loc":{"start":{"line":180,"column":20},"end":{"line":180,"column":52}},"type":"cond-expr","locations":[{"start":{"line":180,"column":32},"end":{"line":180,"column":47}},{"start":{"line":180,"column":50},"end":{"line":180,"column":52}}],"line":180},"29":{"loc":{"start":{"line":185,"column":22},"end":{"line":185,"column":104}},"type":"binary-expr","locations":[{"start":{"line":185,"column":23},"end":{"line":185,"column":50}},{"start":{"line":185,"column":56},"end":{"line":185,"column":103}}],"line":185}},"s":{"0":2,"1":2,"2":11,"3":11,"4":11,"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":111,"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":37,"69":37,"70":9,"71":4,"72":5,"73":28,"74":11,"75":11,"76":37,"77":37},"f":{"0":0,"1":0,"2":0,"3":10,"4":111,"5":10,"6":37,"7":11,"8":37},"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":[9,28],"27":[4,5],"28":[10,1],"29":[37,37]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"80d428e6f61e9529b6bbffb6bef04cd82d9f2901"}
|
|
2
|
-
,"/Users/sreed/git/oss/react-resizable/lib/ResizableBox.js": {"path":"/Users/sreed/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":70},"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":106},"end":{"line":42,"column":3}},"line":31},"1":{"name":"(anonymous_1)","decl":{"start":{"line":44,"column":70},"end":{"line":44,"column":71}},"loc":{"start":{"line":44,"column":83},"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":"2969080e28701eb0f8f4681411e497c333e8fab7"}
|
|
3
|
-
,"/Users/sreed/git/oss/react-resizable/lib/propTypes.js": {"path":"/Users/sreed/git/oss/react-resizable/lib/propTypes.js","statementMap":{"0":{"start":{"line":55,"column":38},"end":{"line":145,"column":1}}},"fnMap":{},"branchMap":{},"s":{"0":2},"f":{},"b":{},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"4537e7ca5f0761a5e54a1bcee1d318f3818221b8"}
|
|
4
|
-
,"/Users/sreed/git/oss/react-resizable/lib/utils.js": {"path":"/Users/sreed/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":11,"1":0,"2":11,"3":2,"4":11},"f":{"0":11},"b":{"0":[0,11],"1":[11,0],"2":[2,9],"3":[11,11]},"_coverageSchema":"1a1c01bbd47fc00a2c39e90264f33305004495a9","hash":"f86f2293b3e0c4e6107950df5ab804c0e87305c4"}
|
|
5
|
-
}
|