MCPcopy Create free account
hub / github.com/adobe/react-spectrum / rect

Function rect

packages/react-aria/test/dnd/dnd.test.js:1969–1976  ·  view source on GitHub ↗
(left, top)

Source from the content-addressed store, hash-verified

1967 let droppable = draggable.parentElement;
1968 let droppable2 = tree.getByText('Drop here 2');
1969 let rect = (left, top) => ({
1970 left,
1971 top,
1972 x: left,
1973 y: top,
1974 width: 100,
1975 height: 50
1976 });
1977
1978 jest.spyOn(HTMLElement.prototype, 'getBoundingClientRect').mockImplementation(function () {
1979 if (this === droppable) {

Callers 1

dnd.test.jsFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected